.about-container {
    position: relative;
    display: flex;
    width: 100%;
    min-height: calc(100vh - 60px);  /* ✅ Let content grow beyond screen */
    margin-top: 60px;
    overflow-y: auto;                /* ✅ Allow vertical scrolling */
    overflow-x: hidden;
    flex-wrap: wrap;                 /* Ensures content wraps if necessary */
}
.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(187, 32, 31, 0.25); 
    z-index: 1;
    pointer-events: none; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.about-overlay h2 {
    font-size: 4rem;
    opacity: 0;
    animation: fadeInOut 5.4s ease-in-out forwards;
    animation-delay: 0.5s;
    color: white;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px  1px 0 black, 1px  1px 0 black;
}

.about-left {
    width: 50%;
    background-image: url(../img/backgrounds/about/about-1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #fff; 
    z-index: 0;
    overflow: hidden;
}

.about-right {
    width: 50%;
    background-image: url(../img/backgrounds/about/about-right.jpg); /* Use the right-side image here */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #fff;
    z-index: 0;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.about-left,
.about-right {
    animation: slideLeft 3s forwards;
    animation-delay: 5s;
}

.about-right {
    position: relative;
}



@keyframes slideInNew {
    0% {
        left: 100%;
    }
    100% {
        left: 0%;
    }
}

.about-right {
    position: relative;
    width: 50%;
    background-image: url(../img/backgrounds/about/about-right.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #fff;
    z-index: 0;
}

/* This places the text just OUTSIDE and to the right of the image */
.about-right-text {
    position: absolute;
    top: 50%;
    left: 100%; /* directly beside the image */
    transform: translateY(-50%);
    width: max-content;
    padding-left: 40px;
    color: white;
    opacity: 0;
    animation: fadeInRightText 2s ease forwards;
    animation-delay: 8s;
    z-index: 2;
    width: 90%; /* or a specific width like 400px */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-right-text h3 {
    font-size: 2.6rem;
    padding-bottom: 30px;
}

.about-right-text p {
    font-size: 1.65rem;
}

.about-right-text h4 {
    font-size: 2.6rem;
    padding-top: 50px;
    font-weight: 600;
    text-align: center;
}

@keyframes fadeInRightText {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* STATS SECTION */

.stats-list {
    flex-basis: 350px;
    padding: 20px 0;
    list-style: none;
}

.stats-facts {
    flex-basis: 300px;
    padding: 20px 0;
}

.stats-list li {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.stats-facts ul {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.stats-list li,
.fun-facts li,
.stats-facts ul li {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.5;
}

.fun-facts {
    flex-basis: 300px;
    padding: 20px 0;
}

.fun-facts ul {
    list-style: none; 
    font-size: 2rem;
    color: #fff;
    padding: 0;
    margin-bottom: 20px;
}

.fun-facts li {
    margin-bottom: 10px;
}

.about-left-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInLeftText 2s ease forwards;
    animation-delay: 8s;
    z-index: 2;

    width: 90%;
    max-width: calc(100% - 10%);
    box-sizing: border-box;
    overflow-wrap: break-word;
}



@keyframes fadeInLeftText {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.underline {
    text-decoration: 1px solid underline;
}

.stats-facts,
.stats-list,
.fun-facts {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #fff;
    width: fit-content; /* Add this line */
    max-width: 100%;     /* Prevent overflow on small screens */
}

.stats-facts ul,
.stats-list ul,
.fun-facts ul {
    white-space: normal; /* ensures wrapping */
    word-break: break-word;
}



@media (max-width: 1250px) {
    .about-right-text h3 {
        font-size: 2rem;
    }

    .about-right-text p {
        font-size: 1.25rem;
    }

    .about-right-text h4 {
        font-size: 2rem;
    }
}


@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    height: auto;
  }
  .about-left, .about-right {
    width: 100%;
    height: 50vh;
    border: none;
  }
  .about-overlay h2 {
    font-size: 2rem;
    padding: 0 10px;
  }
  .about-right-text {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding: 20px;
    font-size: 1rem;
    animation: none;
    opacity: 1;
  }
  .about-right-text h3 { font-size: 2rem; }
  .about-right-text p { font-size: 1.2rem; }
  .about-right-text h4 { font-size: 1.5rem; }
  .about-left-text {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 20px;
    animation: none;
    opacity: 1;
  }
  .stats-facts, .stats-list, .fun-facts {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
  }
  .stats-facts ul, .stats-list li, .fun-facts li {
    font-size: 1.8rem;
  }

    .about-left,
  .about-right {
    animation: none !important;
  }

.about-left-text {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  padding: 20px;
  animation: none;
  opacity: 1;
  margin-top: 300px; /* Add more space below it */
  z-index: 1;
}

.about-right-text {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 100%;
  padding: 20px;
  font-size: 1rem;
  animation: none;
  opacity: 1;
  margin-top: 30px;    /* <-- Added */
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  color: #fff;
  z-index: 1;          /* <-- Added */
}

.about-right-text h4 {
    display: none;
}

.about-overlay {
  align-items: flex-start; /* Push content to top */
  padding-top: 140px;       /* Optional spacing from top */
  text-align: center;
}

.about-overlay h2 {
  font-size: 2rem;
  padding: 0 10px;
    animation: none !important;
  opacity: 1 !important;
}
}

@media (max-width: 390px) {
  .about-right-text h3,
  .about-right-text h4,
  .about-left-text h3 {
    font-size: 1.6rem;
  }

  .stats-facts li,
  .fun-facts li,
  .stats-list li {
    font-size: 1.8rem;
  }

  .about-right-text h4 {
    display: none;
}

}