body {
    margin: 0;
    padding: 0;
    background-color: #F4F3EE !important;
}

.carousel-top-part {
    width: 96% !important;
}

.carousel-top-part .top-part-head {
    display: flex;
    gap: 10px;
}

.about-us-index {
    position: relative;
    padding: 150px 50px;
    width: 100%;
    height: 100vh;
    background-color: #f5f5f5;
    background: url(../images/about-us/1.jpg) no-repeat center center/cover;
    font-family: "Alegreya Sans SC", sans-serif;
}

/* dark overlay */
.about-us-index::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(13 22 34 / 34%);
    z-index: 1;
    pointer-events: none;
}

.about-us-index>* {
    position: relative;
    z-index: 2;
}

.about-contents {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.index-heading {
    font-size: 78px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 20px;
}

.index-text {
    font-size: 28px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.2;
}

.section-padding {
    padding: 75px 50px;
}

h4.main-heading {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 20px;
    text-decoration: 1.5px underline;
    text-underline-offset: 8px;
}

h5.main-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
}

p {
    font-size: 18px;
    font-weight: 500 !important;
    line-height: 1.6;
    color: #333333;
    letter-spacing: 0px;
    word-spacing: 8px;
}

ul {
    padding-left: 15px;

}

ul li {
    font-size: 20px;
    font-weight: 500 !important;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 10px;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    padding: 30px 0 0 0;
}

h5.content-title {
    font-size: 28px;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
    margin-bottom: 25px;
}

.about-section-3 {
    position: relative;
    padding: 35px 50px;
    background-color: #f5f5f5;
    background: url(../images/about-us/Frame-03.png) no-repeat center center/cover;
    font-family: "Alegreya Sans SC", sans-serif;
    color: white;
}

.about-section-3>* {
    position: relative;
    z-index: 2;
}

.about-section-3 .content-title {
    margin-bottom: 15px;
}

.about-section-3 p {
    color: white;
    font-weight: 300;
}

.sqaure-box {
    border-width: 1px 0px 1px 0px;
    border-style: solid;
    border-color: #9E9E9E;
    font-weight: 900;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 2px;
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-section-5 {
    padding: 45px 50px 20px;
}

.mission-vision-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    padding: 35px 50px;
}

.mission-vision-card h4.main-heading {
    font-weight: 900;
    text-underline-offset: 12px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.grid-card h5 {
    font-weight: 900;
}

.about-section-7 ul {
    padding-left: 50px;
}

@media (max-width: 1024.5px) {

    p {
        font-size: 18px;
        word-spacing: 5px;
    }

    ul li {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .mission-vision-card {
        padding: 25px;
    }
}

@media (max-width: 825px) {
    .index-heading {
        font-size: 60px;
    }

    .index-text {
        font-size: 24px;
    }

    p {
        font-size: 16px;
        word-spacing: 8px;
    }

    ul li {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 765.5px) {
    .mission-vision-card .vision-section {
        margin-bottom: 30px;
    }

    .mission-vision-card h4.main-heading {
        margin-bottom: 0;
    }
}

@media (max-width: 625px) {
    .about-us-index {
        padding: 120px 15px;
    }

    .about-contents {
        align-items: center;

        justify-content: center;
    }

    .index-heading {
        font-size: 54px;
    }

    .index-text {
        text-align: center;
        font-size: 20px;
    }

    .section-padding {
        padding: 50px 25px;
    }

    .sqaure-box {
        font-size: 16px;
        padding: 15px;
        margin: 15px 0;
    }

    .about-section-5 {
        padding: 0 20px 20px;
    }
}

@media (max-width: 575.5px) {
    .about-content img {
        margin-bottom: 20px;
    }
}


@media (max-width: 525.5px) {
    .about-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .sqaure-box {
        font-size: 14px;
        padding: 8px;
        margin: 15px 0;
    }
}

/* Scroll Animation Base */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Extra smooth look for hero */
.about-contents {
  transition-delay: .3s;
}

.about-us-index .index-heading,
.about-us-index .index-text {
  opacity: 0;
  transform: translateY(25px);
  animation: heroFade .9s ease forwards;
}

.about-us-index .index-text {
  animation-delay: .4s;
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

ul li {
  transition-delay: .1s;
}

ul li:nth-child(2){ transition-delay: .2s; }
ul li:nth-child(3){ transition-delay: .3s; }
ul li:nth-child(4){ transition-delay: .4s; }
ul li:nth-child(5){ transition-delay: .5s; }





/* Vision and Mission Image Animations */
.vision-section img,
.mission-section img {
  opacity: 0;
  transform: scale(0.9) rotate(-5deg);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vision-section img.visible,
.mission-section img.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Alternative fade and slide animation */
.fade-slide-in {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.9s ease;
}

.fade-slide-in.visible {
  opacity: 1;
  transform: translateX(0);
}


/* Image slide from right animation */
.slide-from-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.9s ease;
}

.slide-from-right.visible {
  opacity: 1;
  transform: translateX(0);
}