/* ============================
   HERO SECTION (CAROUSEL)
============================= */

/* ===== HERO WRAPPER FIX ===== */
#heroCarousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* VERY IMPORTANT */
}

/* Hero Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 70px;
    z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background-size: 60%;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(255, 255, 255, 0.6);
}


/* MAIN SLIDE */
.hero-slide {
    position: relative;
    height: calc(100vh - 120px);
    /* accounts for topbar + navbar */
    min-height: 520px;
    background-size: cover;
    background-position: center;
}

/* FIX WHITE FLASH / JUMP */
.carousel-item {
    background-color: transparent;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, 0.65);
    z-index: 1;
}

/* Content */
.hero-content {
    position: relative;
    /* CHANGED from absolute */
    z-index: 2;
    max-width: 700px;
    color: #fff;
    padding-top: 160px;
    text-align: left;
    /* pushes content below navbar */
}

/* Text */
.welcome {
    color: #F97316;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 65px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.hero-content h1 span {
    color: #F97316;
}

.hero-text {
    margin: 25px 0;
    font-size: 20px;
    max-width: 700px;
}

/* Buttons */
.hero-buttons a {
    padding: 15px 40px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    margin-right: 15px;
}

.but-orange {
    background: #F97316;
    color: #fff;
}

.but-white {
    background: #fff;
    color: #000;
}

.but-orange:hover,
.but-white:hover {
    background: #116E63;
    color: #fff;
}

/* Controls */
.carousel-control-next-icon,
.carousel-control-prev-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background-size: 60%;
}

.carousel-control-next-icon:hover,
.carousel-control-prev-icon:hover {
    background-color: rgba(255, 255, 255, 0.5);
}



.features-section {
    padding: 100px 0;
    margin-top: -150px;
    /* Overlap hero bottom like screenshot */
    position: relative;
    z-index: 10;
}

.feature-box {
    background: #fff;
    border-radius: 40px;
    padding: 40px 30px;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.icon-wrap {
    background: #0d766e;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.08);
}

.icon-wrap i {
    color: #fff;
    font-size: 40px;
}

.number {
    font-size: 55px;
    font-weight: 700;
    color: #0d766e;
    margin-bottom: 10px;
}

.title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-box p {
    font-size: 16px;
    color: #555;
}

.about-sec-left {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.about-img-1 {
    border-radius: 80px 80px 0px 80px;
}

.about-img-2 {
    border: 3px dashed #F97316;
    padding: 10px;
}

.about-img-3 {
    border-radius: 0px 80px 80px 80px;
}

.about-head i,
h5 {
    color: #F97316;
}

.about-head span {
    font-size: 20px;
}

.about-experience {
    background: #F97316;
    padding: 50px 20px 50px 20px;
    border-radius: 50px 50px 50px 0;
    box-shadow: 0 0 40px 5px rgb(0 0 0 / 10%);
    gap: 10px;
}

.about-experience .icon {
    font-size: 50px;
    padding: 10px;
    background-color: #fff;
    color: #F97316;
    border-radius: 40%;
}

.about-experience p {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.about-card h5 {
    font-weight: 600
}

.about-card p {
    font-weight: 400;
    font-size: 14px;
}

.about-card {
    gap: 30px;
}

.about-card .icon {
    width: 60px;
    height: 55px;
    line-height: 58px;
    text-align: center;
    margin-bottom: 12px;
    background: #F97316;
    border-radius: 50%;
    font-size: 26px;
    color: white;
    padding: 10px;
    box-shadow: -5px 5px 0 #EAF2F1;
}

.about-btn {
    font-size: 14px;
    color: white;
    padding: 14px 20px;
    transition-behavior: normal;
    transition-duration: 0.5s;
    transition-timing-function: ease-in-out;
    transition-delay: 0s;
    border-radius: 50px 50px 50px 0;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    border: none;
    background: #F97316;
    box-shadow: 0 0 40px 5px rgb(0 0 0 / 5%);
    z-index: 1;
    text-decoration: none;
}

.about-btn:hover {
    background-color: #116E63;
    color: white;
}


/* Background Section */
.stats-section {
    position: relative;
    background: url('./img/about/happy-parents.jpg') center/cover no-repeat;
    padding: 10px 0;
    color: #fff;
}

.stats-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: RGB(17, 110, 99, 0.1); */
    z-index: 1;
}

/* Content */
.stat-box {
    position: relative;
    z-index: 2;
}

.stat-icon {
    width: 110px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 20px;
    font-weight: 500;
}

/* .stat-box .icon{
    border: 2px solid white; 
    width: fit-content;
    border-radius: 50%;
    padding: 20px 16px 20px 16px;
    font-size: 30px;
} */

.stat-box .icon {
    position: relative;
    text-align: center;
    font-size: 60px;
    width: 100px;
    height: 100px;
    line-height: 88px;
    color: white;
    background: #F97316;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.stat-box .icon::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    border: 3px solid white;
    transition-behavior: normal;
    transition-duration: 0.5s;
    transition-timing-function: ease-in-out;
    transition-delay: 0s;
    transition-property: all;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
}

/* SECTION SPACING */
.latest-video-section {
    padding: 80px 0;
}

/* LEFT CONTENT */
.video-subtitle {
    color: #F97316;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 15px;
}

.video-subtitle i {
    margin-right: 6px;
}

.video-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #0d2c54;
}

.video-title span {
    color: #F97316;
}

.video-text {
    margin: 25px 0;
    font-size: 16px;
    color: #555;
    max-width: 90%;
}

.video-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    line-height: 1.6;
}

.video-list li i {
    margin-right: 10px;
    margin-top: 5px;
    color: #F97316;
    min-width: 18px;
    /* Ensures perfect alignment */
    text-align: center;
}


/* LEARN MORE BUTTON */
.video-btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 30px 30px 30px 0px;
    color: white;
    background-color: #F97316;
    border: none;
    text-decoration: none;
}

.video-btn:hover {
    background-color: #116E63;
    color: #fff;
}

.video-img {
    border-radius: 100px 100px 100px 0px;
}

.video-wrapper {
    position: relative;
    display: inline-block;
}

.video-play-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-button {
    width: 80px;
    height: 80px;
    background: #F97316;
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.video-ripple {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid #F97316;
    border-radius: 50%;
    animation: rippleWave 2.5s infinite ease-out;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-ripple:nth-child(1) {
    animation-delay: 0s;
}

.video-ripple:nth-child(2) {
    animation-delay: 0.7s;
}

.video-ripple:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes rippleWave {
    0% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.5);
    }

    70% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.6);
    }
}

.admission-section {
    background: #fff;
}

.admission-img {
    object-fit: cover;
    height: 100%;
}

.admission-box {
    background: #F97316;
    color: white;
    padding: 60px;
    border-radius: 40px 40px 40px 0px;
    border: 8px double white;
    outline: 8px solid #F97316;
}

.admission-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 25px;
}

.admission-text {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.apply-btn {
    background: #fff;
    color: #000 !important;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px 50px 50px 0px;
    transition: 0.3s ease;
    text-decoration: none;
}

.apply-btn:hover {
    background: #116E63;
    color: #fff !important;
}

.teachers-section h1,
h5 {
    font-weight: 800;

}

.teachers-section span {
    color: #F97316;
}

.teachers-section-1 h1 {
    font-size: 1.5rem;
}

.teacher-card {
    background: #fff;
    border-radius: 30px 30px 30px 0px;
    transition: all 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.teacher-card img {
    height: 260px;
    object-fit: cover;
    border-radius: 25px 25px 25px 0px;
    width: 100%;
}

.achievers-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.achievers-carousel {
    overflow: hidden;
    width: 100%;
}

.ach-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s ease;
    will-change: transform;
    align-items: stretch;
}

.ach-slide {
    flex: 0 0 calc((100% - 60px) / 3);
    /* default: 3 per view, 30px gap => adjust via media queries */
    box-sizing: border-box;
}

.ach-slide img {
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.achievers-carousel-2 {
    overflow: hidden;
}

.ach-track-2 {
    display: flex;
}

.ach-slide-2 {
    min-width: calc((100% - 40px) / 3);
}

@media (max-width: 576px) {
    .ach-slide-2 {
        min-width: 100%;
    }
}

/* controls */
.btn-control {
    background: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.btn-control:active {
    transform: scale(.98);
}


/* ===================================== */
/* Achievements */
/* ===================================== */

.auto-container {
    position: static;
    max-width: 1170px;
    padding: 20px 15px;
    margin: 0 auto;
}

.classes-section {
    position: relative;
    background-color: #f8f8f8;
    padding: 60px 0 80px;
}

.classes-section h1
 {
    font-size: 1.5rem;
}

.classes-section .sec-title {
    margin-bottom: 70px;
}

.doll-4 {
    background-image: url(../images/icons/doll-4.png);
    height: 109px;
    width: 81px;
}

.classes-section .sec-title .icon-1 {
    position: absolute;
    left: 29%;
    top: -5px;
}

.classes-section .sec-title .icon-2 {
    position: absolute;
    left: 74%;
    top: -10px;
}

.class-block {
    position: relative;
    margin-bottom: 40px;
}

.class-block .inner-box {
    position: relative;
    background-color: #ffffff;
    text-align: center;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
}

.class-block .inner-box:hover {
    -webkit-transform: scale(1.05, 1.05);
    -ms-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05);
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.20);
    -ms-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.20);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.20);
}

.class-block .image-box {
    position: relative;
    display: block;
}

.class-block .image-box img {
    display: block;
    width: 100%;
}

.class-block .lower-content {
    position: relative;
    padding: 38px 15px;
    border: 1px solid #dddddd;
    border-top: 0;
}

.class-block .lower-content h3 {
    font-size: 22px;
    line-height: 1.2em;
    color: #333333;
}

.class-block .lower-content h3 a {
    color: #333333;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
}

.class-block .lower-content h3 a:hover {
    color: #f73f3f;
}

.class-block .lower-content p {
    font-size: 14px;
    line-height: 26px;
    color: #666666;
    margin-bottom: 15px;
}

.class-block .lower-content .rating {
    position: relative;
    display: block;
    text-align: center;
    margin-bottom: 30px;
}

.class-block .lower-content .rating .icon {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    background-size: cover;
    top: 3px;
}

.class-block .lower-content .theme-btn {
    padding: 8px 27px;
    font-size: 14px;
    line-height: 20px;
}

/* ===================================== */
/* Achievements */
/* ===================================== */

.testimonial-section {
    background: url('./img/school_build.jpg') center/cover no-repeat;
    position: relative;
}

.testimonial-section span {
    color: #F97316;
}

.testimonial-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(1, 39, 88, .85);
    ;
}

.testimonial-section * {
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: #fff;
    border-radius: 30px 30px 30px 0px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-bottom: 5px solid #F97316;
}

.testimonial-section h1,
h5 {
    font-weight: 800;
}

.profile-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px dotted #F97316;
    padding: 3px;
}

.testimonial-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 50px 0;
}

.testimonial-wrapper {
    position: relative;
}

/* Arrow button */
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #F97316;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: all 0.3s ease;
}

/* Left & Right positioning */
.testimonial-arrow.left {
    left: 5%;
}

.testimonial-arrow.right {
    right: 5%;
}

/* Hover */
.testimonial-arrow:hover {
    background: #0d2c54;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-carousel {
    width: 80%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s ease;
}

.card {
    min-width: calc((100% - 40px) / 3);
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.rating {
    font-size: 20px;
    margin-bottom: 10px;
    color: #F97316;
}

.profile {
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.profile img {
    font-size: 40px;
    border-radius: 50%;
    border: 3px dotted #F97316;
    padding: 3px;
    margin-right: 10px;
    width: 80px;
}

.enrollment-section {
    position: relative;
    background: url('./img/call-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

/* COLOR OVERLAY ABOVE IMAGE */
.enrollment-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 33, 71, 0.70);
    /* <-- You can change color & opacity */
    backdrop-filter: blur(1px);
    /* optional: makes overlay soft */
    z-index: 1;
}

/* Bring content ABOVE overlay */
.enrollment-section .container {
    position: relative;
    z-index: 2;
}

.enroll-form-head {
    background: #F97316;
    padding: 30px;
    border-radius: 60px 60px 60px 0px;
}

/* Left Card */
.enroll-card {
    background: #fff;
    border-radius: 60px 60px 60px 0px;
}

.enroll-title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}

.enroll-subtitle {
    font-size: 15px;
    color: #fff;
}

.enroll-card form {
    padding: 30px;
}

.enroll-card .form-control {
    height: 55px;
    background: #f3f5fa;
    border: none;
    border-radius: 10px;
    padding: 10px;
}

/* Message box taller */
.enroll-card textarea {
    height: 140px !important;
}

.enroll-btn {
    background: #F97316;
    color: #fff;
    padding: 20px 30px;
    border-radius: 40px 40px 40px 0px;
    font-weight: bold;
    font-size: 16px;
}

.enroll-btn:hover {
    background-color: #116E63;
}

/* Right Section */
.skills-label {
    color: #F97316;
    text-transform: uppercase;
    font-weight: 600;
}

.skills-title {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
}

.skills-title .highlight {
    color: #F97316;
}

.skills-desc {
    color: #d1d1d1;
    margin-bottom: 25px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-item span {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.progress {
    height: 6px;
    background: #e7e7e7;
    border-radius: 5px;
}

.progress-bar {
    background: #F97316;
    border-radius: 5px;
}

.learn-btn {
    background: #F97316;
    color: #fff;
    border-radius: 40px 40px 40px 0px;
    padding: 20px 30px;
    font-weight: bold;
    border: none;
    font-size: 16px;
}

.learn-btn:hover {
    background-color: #116E63;
}


.blog-section {
    padding: 60px 0;
    text-align: center;
}

.blog-header h5 {
    color: #F97316;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-header h1 {
    font-size: 45px;
    font-weight: 800;
}

.blog-header h1 span {
    color: #F97316;
}

.blog-header p {
    max-width: 700px;
    margin: 10px auto 40px;
    color: #666;
    font-size: 17px;
}

.blog-container {
    display: flex;
    justify-content: center;
    gap: 35px;
    /*flex-wrap: wrap;*/
    padding: 0 40px;
}

.blog-card {
    width: 360px;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: .3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
}

/* IMAGE AREA */
.img-box {
    position: relative;
    width: 100%;
}

.img-box img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 25px 25px 0 0;
}

.date-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #F97316;
    color: #fff;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* TEXT AREA */
.info {
    text-align: left;
    padding: 20px 25px 30px;
}

.meta {
    color: #666;
    font-size: 15px;
    margin-bottom: 12px;
}

.info h3 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 20px;
}

/* BUTTON */
.read-btn {
    background: #F97316;
    color: #fff;
    border: none;
    padding: 20px 28px;
    border-radius: 30px 30px 30px 0px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.read-btn:hover {
    background: #116E63;
}


/* =========================
   GALLERY SECTION
========================= */

.gallery-section {
    padding: 80px 20px;
    background: #f9f9f9;
    text-align: center;
}

.gallery-header h5 {
    color: #F97316;
    font-weight: 700;
}

.gallery-header h1 span {
    color: #F97316;
}

.gallery-header p {
    max-width: 600px;
    margin: 10px auto 40px;
    color: #555;
}

/* =========================
   GRID LAYOUT
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    /* ✅ Smaller image size */
    gap: 16px;
}

/* Tall Images */
.g-item.tall {
    grid-row: span 2;
}

/* Wide Image */
.g-item.wide {
    grid-column: span 2;
}

/* Image Card */
.g-item {
    overflow: hidden;
    border-radius: 28px 28px 28px 0px;
    /* ✅ Rounded like your example */
    background: #eee;
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hover Zoom */
.g-item:hover img {
    transform: scale(1.07);
}


@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 170px;
    }

    .g-item.wide {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .g-item.tall,
    .g-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}


.guest-carousel {
    padding: 40px 0;
}

.carousel-container {
    max-width: 1200px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    background: #ffffff00;
    margin: 10px;
    flex: 0 0 calc(25% - 20px);
    text-align: center;
    border-radius: 6px;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);*/
}

.carousel-item img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-item h3 {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #333;
}

.carousel-item p {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 10px;
    color: #F97316;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #316e854a;
    border: none;
    color: #ffffff7a;
    font-size: 2rem;
    padding: 2px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

@media(max-width:600px) {
    .carousel-item {
        flex: 0 0 calc(50% - 20px);
    }
}

.logo-carousel {
  background: #f9f9f9;
  padding: 40px 0;
  overflow: hidden;
  text-align: center;
}

.logo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.logo-track {
  display: flex;
  width: calc(200px * 10);
  /* 5 logos × 2 */
  animation: scroll 20s linear infinite;
}

.logo-track img {
  height: 80px;
  width: auto;
  margin: 0 40px;
  object-fit: contain;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-track img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Smooth scrolling animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}







/* ===== PARENT SAYS SECTION ===== */
.testimonials-section {
    padding: 80px 20px;
    background: #f9f7f7;
}

/* Header */
.testimonials-header {
    text-align: center;
    margin-bottom: 48px;
}


.parent-section {
    background: #f9f7f7;
}

.parent-section h1{
    font-size: 1.5rem;
}

/* --- HEADER GRID (if needed elsewhere) --- */
.parent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* ===== CARD DESIGN ===== */
.parent-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 16px;
    transition: 0.3s;
}

.parent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* ==========================================================
   ================  CAROUSEL SECTION  =====================
   ========================================================== */

.parent-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.parent-carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.4s ease;
    justify-content: space-around;
}

/* SHOW 2 VIDEOS BY DEFAULT */
.parent-carousel-item {
    flex: 0 0 calc(50% - 15px);
}

/* ===== Thumbnail ===== */
.video-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.video-thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
}

/* Play Button */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* ===== NAVIGATION BUTTONS ===== */
.parent-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2b2b2b;
    color: #fff;
    border: none;
    padding: 9px 15px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

.parent-carousel-btn.prev {
    left: 0px;
}

.parent-carousel-btn.next {
    right: 0px;
}

.parent-carousel-btn:hover {
    background: #000;
}

/* ===== CARD TEXT ===== */
.parent-card h4 {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #1D3557;
}

.parent-card p {
    font-size: 14px;
    color: #555;
}

/* ==========================================================
   ====================  VIDEO MODAL  ======================
   ========================================================== */

.parent-video-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.parent-video-modal video {
    width: 50%;
    max-width: 900px;
    border-radius: 14px;
    background: #000;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}


/* Intro Banner Section */
.intro-banner {
  position: relative;
  height: 75vh;
  background: url('./images/intro_video.JPG') center center / cover no-repeat;
  display: flex;
  align-items: center;
  padding-left: 8%;
  color: #fff;
  overflow: hidden;
}

.about-banner {
  position: relative;
  height: 75vh;
  background: url('./images/resource/School_Song.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  padding-left: 8%;
  color: #fff;
  overflow: hidden;
}

/* Dark Overlay (lower opacity for better image visibility) */
.intro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75vh;
  background: rgba(0, 0, 0, 0.55);
  /* Reduced opacity */
  z-index: 1;
}

.intro-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.intro-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: bold;
}

.intro-highlight {
  color: #f15a29;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.intro-content p {
  margin-top: 20px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
}

/* Glowing Play Button */
.intro-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  border: 3px dashed rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  z-index: 2;
  animation: glowPulse 2s infinite ease-in-out;
}

.intro-play button {
  background: transparent;
  border: none;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 28px;
  color: white;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.video-modal video {
    width: 100%;
    border-radius: 12px;
    background: #000;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 32px;
    background: none;
    color: #fff;
    border: none;
    cursor: pointer;
}


#openVideo {
    font-size: 22px;
    padding: 10px 16px;
    cursor: pointer;
}


/* ==========================================================
   ======================= RESPONSIVE ======================
   ========================================================== */

/* MOBILE + TABLET */
@media (max-width: 768px) {

    /* make carousel show 1 item */
    .parent-carousel-item {
        flex: 0 0 100%;
    }

    .video-thumb img {
        height: 200px;
    }

    .parent-video-modal video {
        width: 95%;
    }
}

/* MOBILE — single column grid */
@media (max-width: 600px) {
    .parent-grid {
        grid-template-columns: 1fr;
    }
}






/* ============================
   RESPONSIVE
============================= */

@media (max-width: 991px) {
    .hero-carousel {
        height: auto;
    }

    .hero-slide {
        height: 80vh;
    }

    .hero-content {
        max-width: 600px;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 45px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-buttons {
        margin-top: 15px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 45px;
        height: 45px;
    }

    .video-title {
        font-size: 36px;
    }

    .video-subtitle {
        font-size: 16px;
    }

    .video-text {
        font-size: 16px;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .ach-slide {
        flex: 0 0 calc((100% - 30px) / 2);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .g-item.wide {
        grid-column: span 1;
    }

    .testimonial-carousel {
        width: 90%;
    }

    .card {
        min-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {

    .hero-slide {
        height: 85vh;
        min-height: 480px;
    }

    .hero-content {
        padding-top: 120px;
        text-align: left;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-text {
        font-size: 16px;
    }

    .features-section {
        margin-top: -120px;
        padding: 60px 0;
    }

    .feature-box {
        text-align: center;
    }

    .icon-wrap {
        margin-left: auto;
        margin-right: auto;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-icon {
        width: 90px;
    }

    .testimonial-arrow {
        display: none;
    }

    .testimonial-carousel {
        width: 100%;
    }

    .card {
        min-width: 85%;
    }
    .card {
        min-width: 100%;
        margin-left: 4px;
    }

    .carousel-track {
        gap: 15px;
    }

    .testimonial-wrapper {
        padding: 30px 0;
    }
    
    .teachers-section {
        display: block;
    }

    .classes-section {
        display: none;
        padding: 60px 0 20px;
    }
    
    .blog-container{
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) {
    .teachers-section {
        display: none;
    }

    .classes-section {
        display: block;
    }
}


@media (max-width: 576px) {
    .hero-slide {
        height: 75vh;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .welcome {
        font-size: 16px;
    }

    .hero-text {
        font-size: 15px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
        /* Hide arrows on very small devices */
    }

    .ach-slide {
        flex: 0 0 100%;
    }

    .ach-slide img {
        border-radius: 12px;
    }

    .btn-control {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .g-item.tall {
        grid-row: span 1;
    }

    .g-item.wide {
        grid-column: span 1;
    }
    
    .about-sec-left{
        margin-top: 20px;
    }
    
    .about-experience p{
        font-size: 30px;
    }
    
    .about-head{
        margin-top: 20px;
    }
}