/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2D328E;
    /* Brand Blue from logo */
    --primary-dark: #1A1F6D;
    --secondary: #FFCE00;
    /* Brand Yellow/Gold */
    --brand-red: #D32F2F;
    /* Brand Red from banner */
    --brand-green: #4CAF50;
    /* Brand Green from circle */
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --bg-main: #F9FAFB;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 135px;
    /* Space for fixed nav */
}

/* Premium Page Loader - Enhanced */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #ffffff 0%, #f0f4f8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s cubic-bezier(0.77, 0, 0.175, 1), visibility 1s;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-visuals {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.loader-logo {
    width: 100px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(45, 50, 142, 0.15));
    animation: floatLogo 3s infinite ease-in-out;
}

/* Dual Concentric Rings */
.ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    border-radius: 50%;
    animation: spinClockwise 2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.ring-inner {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px solid transparent;
    border-left: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
    border-radius: 50%;
    animation: spinCounterClockwise 1.5s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.loader-text-container {
    overflow: hidden;
}

.loader-text {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: flex;
    gap: 4px;
}

.loader-text span {
    display: inline-block;
    animation: jumpText 1.5s infinite ease-in-out;
}

/* Staggered animation for letters */
.loader-text span:nth-child(1) {
    animation-delay: 0.1s;
}

.loader-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-text span:nth-child(3) {
    animation-delay: 0.3s;
}

.loader-text span:nth-child(4) {
    animation-delay: 0.4s;
}

.loader-text span:nth-child(5) {
    animation-delay: 0.5s;
}

.loader-text span:nth-child(6) {
    animation-delay: 0.6s;
}

.loader-text span:nth-child(7) {
    animation-delay: 0.7s;
}

.loader-text span:nth-child(6) {
    animation-delay: 0.6s;
}

.loader-text span:nth-child(7) {
    animation-delay: 0.7s;
}

.loader-text span:nth-child(8) {
    animation-delay: 0.6s;
}

.loader-text span:nth-child(9) {
    animation-delay: 0.7s;
}

.loader-text span:nth-child(10) {
    animation-delay: 0.6s;
}

.loader-text span:nth-child(11) {
    animation-delay: 0.7s;
}

.loader-text span:nth-child(12) {
    animation-delay: 0.6s;
}

.loader-text span:nth-child(13) {
    animation-delay: 0.7s;
}

.loader-text span:nth-child(14) {
    animation-delay: 0.7s;
}

.loader-text span:nth-child(15) {
    animation-delay: 0.6s;
}

.loader-text span:nth-child(16) {
    animation-delay: 0.7s;
}

.loader-text span:nth-child(17) {
    animation-delay: 0.6s;
}

.loader-text span:nth-child(18) {
    animation-delay: 0.7s;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes spinClockwise {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinCounterClockwise {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes jumpText {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
        color: var(--secondary);
    }
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Reveal Animation for Body Content */
body.loading-active {
    overflow: hidden;
}

body.loading-active main,
body.loading-active nav,
body.loading-active section {
    filter: blur(10px);
    transform: scale(1.1);
    transition: filter 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

body.loaded main,
body.loaded nav,
body.loaded section {
    filter: blur(0);
    transform: scale(1);
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
        /* Less space on mobile */
    }
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Navigation */
nav {
    position: relative;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: padding 0.3s ease;
}

.main-navigation-bar {
    background: white;
    width: 100%;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

/* Navigation Logo Typography */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img-main {
    height: 40px;
    width: auto;
}

.logo-text-main {
    font-size: 1.2rem;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .logo-img-main {
        height: 30px;
    }

    .logo-text-main {
        font-size: 0.95rem;
    }
}

.brand-tagline {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

.nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    font-size: 0.95rem;
    color: #555;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav-links,
.nav-links-new {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-contact-new {
    display: flex;
    gap: 35px;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

@media (max-width: 1024px) {

    .nav-top-row,
    .nav-bottom-row {
        padding: 12px 20px;
    }

    .nav-contact-new {
        display: none;
    }

    .nav-links,
    .nav-links-new {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: var(--primary) !important;
        font-size: 2rem;
    }

    .nav-links,
    .nav-links-new {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 30px;
        gap: 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
        border-bottom: 3px solid var(--primary);
        z-index: 2000;
        /* Ensure it's above everything */
    }

    .nav-links.mobile-active,
    .nav-links-new.mobile-active {
        display: flex;
    }

    .nav-top-row {
        justify-content: space-between;
        padding: 10px 20px;
        width: 100%;
    }

    .nav-bottom-row {
        display: block;
        padding: 0;
        margin: 0;
    }

    .nav-bottom-row .nav-contact-new {
        display: none;
    }

    hr {
        display: none;
    }

    .logo {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        justify-content: center;
        width: 100%;
    }

    .nav-top-row {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
}

.get-in-touch:hover {
    background: #000;
    color: #fff !important;
}

/* Scrolled State Nav Adjustments */
.main-navigation-bar.scrolled .nav-top-row {
    padding: 8px 20px;
}

.main-navigation-bar.scrolled .logo-text-main {
    display: none;
    /* Hide text on scroll to save space */
}

.main-navigation-bar.scrolled .logo-img-main {
    height: 35px;
}

@media (max-width: 768px) {
    .main-navigation-bar.scrolled .logo-text-main {
        display: none;
    }
}


/* Enrollment Wave Responsive Adjustment */
.enrollment-wave {
    display: block;
    width: 100%;
    height: 45px;
    transform: rotate(180deg);
    transition: height 0.3s ease;
}

@media (max-width: 1024px) {
    .enrollment-wave {
        height: 30px;
    }
}

@media (max-width: 768px) {
    .enrollment-wave {
        height: 20px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    gap: 50px;
    position: relative;
    background: radial-gradient(circle at top right, rgba(74, 144, 226, 0.1), transparent);
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.badge {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

/* Full Hero Section */
.hero-full {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-image: url('img/01.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(45, 50, 142, 0.6), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    background: var(--secondary) !important;
    color: var(--primary) !important;
    font-weight: 800;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--secondary);
}

.c-red {
    color: var(--brand-red) !important;
}

.c-green {
    color: var(--brand-green) !important;
}

.c-yellow {
    color: var(--secondary) !important;
}

.c-blue {
    color: var(--primary) !important;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.center-flex {
    justify-content: center;
}

.btn-secondary.ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary.ghost:hover {
    background: var(--white);
    color: var(--primary);
}

.staggered-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px 80px;
    align-items: start;
}

.staggered-col-right {
    margin-top: 100px;
}

.staggered-col-left-bottom {
    margin-top: -60px;
}

.staggered-col-right-bottom {
    margin-top: 40px;
}

.staggered-item {
    text-align: center;
}

.staggered-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.staggered-item h3 {
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 20px;
    font-weight: 800;
}

.staggered-item p {
    font-size: 1.15rem;
    color: #222;
    line-height: 1.8;
    font-weight: 600;
    padding: 0 10%;
}

@media (max-width: 768px) {
    .staggered-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .staggered-col-right,
    .staggered-col-left-bottom,
    .staggered-col-right-bottom {
        margin-top: 0;
    }

    .staggered-item p {
        padding: 0 5%;
    }
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background: var(--bg-main);
    /* Match the rest of the site */
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 50px 30px;
    border-radius: 40px;
    background: var(--white);
    transition: var(--transition);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    background: var(--white);
    /* Keep white background on hover */
}

/* Ensure text remains visible on hover */
.stat-card:hover h3,
.stat-card:hover p,
.stat-card:hover i {
    opacity: 1;
}

.stat-card i {
    font-size: 2.8rem;
    margin-bottom: 25px;
    display: block;
}

/* Unique Icon Colors */
.stat-card:nth-child(1) i {
    color: var(--brand-red);
}

.stat-card:nth-child(2) i {
    color: var(--primary);
}

.stat-card:nth-child(3) i {
    color: var(--brand-green);
}

.stat-card:nth-child(4) i {
    color: var(--secondary);
}

.stat-card h3 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

/* Number colors matching icons */
.stat-card:nth-child(1) h3 {
    color: var(--brand-red);
}

.stat-card:nth-child(2) h3 {
    color: var(--primary);
}

.stat-card:nth-child(3) h3 {
    color: var(--brand-green);
}

.stat-card:nth-child(4) h3 {
    color: var(--secondary);
}

.stat-card p {
    font-weight: 700;
    font-size: 1.1rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Environment Section */
.environment-section {
    padding-top: 50px;
}

.env-full-img {
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 0;
}

.env-full-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.env-split {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.env-split-img {
    flex: 1 1 50%;
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
}

.env-split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.env-split-text {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    background: #ffffff;
    text-align: center;
}

.env-split-text h3 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #000;
    font-weight: 800;
}

.env-split-text h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: bold;
    color: #333;
}

.env-split-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #222;
    max-width: 85%;
    font-weight: 600;
}

@media (max-width: 768px) {
    .env-full-img {
        height: 350px;
    }

    .env-split {
        flex-direction: column;
    }

    .env-split-reverse {
        flex-direction: column-reverse;
    }

    .env-split-img,
    .env-split-text {
        flex: 1 1 100%;
        max-height: none;
        padding: 40px 20px;
    }

    .env-split-img {
        min-height: 300px;
    }

    .env-split-text h3 {
        font-size: 2rem;
    }
}

/* Uneven Gallery */
/* Uneven Gallery */
.uneven-gallery {
    column-count: 3;
    column-gap: 20px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
    filter: contrast(1.05) brightness(1.02);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .uneven-gallery {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .uneven-gallery {
        column-count: 1;
    }
}

.title-tag {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.title-tag.red {
    color: var(--brand-red);
}

.title-tag.green {
    color: var(--brand-green);
}

.title-tag.blue {
    color: var(--primary);
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.features li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.features li i {
    color: var(--brand-green);
    font-size: 1.3rem;
}

/* Programs */
.programs {
    padding: 100px 0;
    background: var(--white);
}

.programs h2 {
    font-size: 3rem;
    margin-bottom: 60px;
    color: #1a1a1a;
}

/* Reviews Section */
.reviews-section {
    padding: 100px 0;
    background: var(--bg-main);
}

/* Reviews Carousel */
.reviews-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto 50px;
}

.reviews-track-container {
    padding: 10px;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.reviews-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 500ms ease-in-out;
}

.review-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 100%;
    max-width: 700px;
    margin: 0 20px;
}

.review-card .stars {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.review-card p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.review-card h4 {
    color: var(--primary);
    font-size: 1.15rem;
}

.review-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    font-size: 2.5rem;
    color: rgba(45, 50, 142, 0.4);
    transition: var(--transition);
}

.review-btn:hover {
    color: var(--primary);
}

.review-btn.btn-left {
    left: -60px;
}

.review-btn.btn-right {
    right: -60px;
}

@media (max-width: 900px) {
    .review-btn.btn-left {
        left: -20px;
    }

    .review-btn.btn-right {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .review-btn.btn-left {
        left: 0px;
    }

    .review-btn.btn-right {
        right: 0px;
    }

    .review-card {
        padding: 30px 20px;
    }

    .review-card p {
        font-size: 1.05rem;
    }

    .split-img,
    .split-text {
        flex: 1 1 100%;
    }

    .split-img {
        min-height: 300px;
        max-height: 400px;
    }

    .split-text {
        padding: 40px 20px;
    }

    .split-text h3 {
        font-size: 2rem;
    }

    /* Target inline styles in Environment Section */
    #environment>div:first-of-type {
        height: 350px !important;
    }

    #environment div[style*="display: flex"] {
        flex-direction: column !important;
    }

    #environment div[style*="flex: 1 1 50%"] {
        flex: 1 1 100% !important;
        max-height: none !important;
        padding: 40px 20px !important;
    }

    #environment img {
        height: 300px !important;
    }

    /* Target Enrollment Section */
    #enrollment {
        padding: 60px 20px !important;
    }

    #enrollment>div {
        padding: 40px 20px !important;
        margin-top: 20px !important;
    }

    #enrollment h2 {
        font-size: 2rem !important;
    }

    /* Target Visit Section */
    #visit {
        padding: 60px 20px 0 !important;
    }

    #visit h2 {
        font-size: 2.2rem !important;
    }

    #visit p {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }
}

.review-card .stars {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.review-card p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.review-card h4 {
    color: var(--primary);
    font-size: 1.15rem;
}

.review-form-container {
    background: var(--white);
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 80px auto 0;
}

.review-form-container h3 {
    text-align: center;
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 30px;
}

#review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#review-form input,
#review-form textarea {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #E2E8F0;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: var(--transition);
    background: #fdfdfd;
}

#review-form input:focus,
#review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

#review-form button {
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 10px;
}


.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.program-card {
    padding: 50px 40px;
    background: var(--bg-main);
    border-radius: 40px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #E2E8F0;
}

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.icon-box.blue {
    background: var(--primary);
}

.icon-box.orange {
    background: var(--secondary);
    color: var(--primary);
}

.icon-box.green {
    background: var(--brand-green);
}

.icon-box.red {
    background: var(--brand-red);
}

.program-card h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.program-card p {
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--bg-main);
    padding: 100px 0 30px;
    border-top: 1px solid #E2E8F0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-info p {
    margin: 20px 0;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: var(--primary);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--primary);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #E2E8F0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* --- Responsive Design --- */

/* Tablet & Mobile Nav */
@media (max-width: 1024px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .logo-img-main {
        height: 35px;
    }

    .logo-text-main {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-2 {
        gap: 40px;
    }
}

@media (max-width: 768px) {

    /* Navigation Mobile */
    .nav-container {
        padding: 0 20px;
    }

    .logo-img-main {
        height: 30px;
    }

    .logo-text-main {
        font-size: 0.95rem;
    }

    .logo {
        gap: 10px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 30px;
        gap: 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
        border-bottom: 3px solid var(--primary);
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        color: var(--primary);
    }

    /* Hero Mobile */
    /* Hero Mobile */
    .hero-full {
        padding: 40px 15px 40px;
        height: auto;
        min-height: 70vh;
        background-attachment: scroll;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: visible;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Grids to Single Column */
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 30px 15px;
        border-radius: 25px;
    }

    .stat-card h3 {
        font-size: 2.2rem;
    }

    .stat-card i {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-img {
        max-width: 500px;
        margin: 0 auto;
    }

    .features li {
        justify-content: center;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-contact p,
    .social-links {
        justify-content: center;
    }

    /* Modal Mobile */
    .modal-card {
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-info-col {
        padding: 30px 20px;
    }

    .modal-info-col h2 {
        font-size: 2rem;
    }

    .close-modal {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
        top: 10px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }

    .logo-img-main {
        height: 28px;
    }

    .logo-text-main {
        font-size: 0.85rem;
    }

    .menu-toggle {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stats .container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .img-badge {
        right: 0;
        bottom: -10px;
        padding: 15px;
    }
}

/* Modal Styling Refinement for "Fit" */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--white);
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 90vh;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    /* Flex container for the card itself */
    animation: modalIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-content-split {
    display: flex;
    width: 100%;
}

.modal-image-col {
    flex: 1.1;
    background: #000;
    overflow: hidden;
}

.modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.modal-info-col {
    flex: 0.9;
    padding: 50px 60px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.modal-info-col h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-family: var(--font-heading);
}

.modal-info-col p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.6;
}

.activity-media h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.media-mini-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-swipe-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none;
    /* Firefox */
}

.video-swipe-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.video-wrapper {
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-radius: 20px;
    overflow: hidden;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    width: 100%;
    height: 440px;
    pointer-events: auto;
    border: none;
    display: block;
}

.swipe-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: -5px;
    margin-bottom: 15px;
    font-style: italic;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.image-grid img {
    width: 100%;
    height: 180px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--white);
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.1);
}

@keyframes modalIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .modal-card {
        max-width: 95%;
    }

    .modal-info-col {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .modal-card {
        border-radius: 30px;
    }

    .modal-content-split {
        flex-direction: column;
    }

    .modal-image-col {
        height: 350px;
        flex: none;
    }

    .modal-info-col {
        flex: 1;
        padding: 35px 25px;
    }

    .modal-info-col h2 {
        font-size: 2.5rem;
    }

    .media-mini-grid {
        grid-template-columns: 1fr 1fr;
    }
}