/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --color-dark: #000000;
    --color-light: #FFFFFC;
    --color-accent: #BEB7A4;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    --container-width: 1200px;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1rem;
    color: #333;
}

a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-dark);
    color: var(--color-light);
    border-color: var(--color-dark);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-dark);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
}


/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: rgba(255, 255, 252, 0.9);
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 252, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-dark);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle { display: none; }


/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--color-light);
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg.webp') no-repeat center center/cover;
    z-index: -2;
    animation: zoom-in 20s ease-out infinite;
}
@keyframes zoom-in {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    color: var(--color-light);
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 252, 0.9);
    margin-bottom: 2rem;
}

.hero-content .btn-primary {
    background-color: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-light);
}
.hero-content .btn-primary:hover {
    background-color: transparent;
    color: var(--color-light);
}


/* --- WHY-US SECTION --- */
/* --- WHY-US SECTION (SOPHISTICATED REDESIGN) --- */
.why-us-section {
    background-color: #f7f7f7;
    position: relative;
    overflow: hidden; /* Important for the background element */
}

/* Decorative background number */
.why-us-section::before {
    content: '01';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: 20rem;
    font-weight: 700;
    color: #e9e7e2; /* A lighter version of the accent */
    z-index: 0;
    user-select: none;
    line-height: 1;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1; /* Ensures grid is above the pseudo-element */
}

.why-us-content {
    grid-column: 1 / span 7;
    background: var(--color-light);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    z-index: 2; /* Content sits on top of the image */
}

.section-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.why-us-image-wrapper {
    grid-column: 7 / span 6;
    position: relative;
    border-radius: 10px;
    overflow: hidden; /* Essential for the reveal effect */
    aspect-ratio: 4 / 5; /* Creates a nice portrait shape */
}

/* This is the color mask for the reveal animation */
.why-us-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    z-index: 1;
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1);
    transition-delay: 0.2s;
}

.why-us-image-wrapper.is-visible::before {
    transform: scaleX(0);
}

.why-us-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

/* New animation class for staggered text */
.slide-in-up { 
    transform: translateY(30px);
    opacity: 0;
}
.slide-in-up.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive adjustments for the new design */
@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    .why-us-content {
        grid-column: 1 / -1;
        text-align: center;
    }
    .why-us-image-wrapper {
        grid-column: 1 / -1;
        grid-row: 1; /* Move image to the top on mobile */
        margin-bottom: -4rem; /* Pull the text block up to overlap */
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .why-us-section::before {
        font-size: 15rem;
        left: -2rem;
    }
}


/* --- VALUES SECTION --- */
.values-section {
    background-color: #f7f7f7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--color-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.value-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.value-card h3, .value-card p {
    padding: 0 1.5rem;
}

.value-card h3 {
    padding-top: 1.5rem;
}

.value-card p {
    padding-bottom: 1.5rem;
}


/* --- PROGRAMS OVERVIEW --- */
/* --- PROGRAMS OVERVIEW SECTION (OVERLAPPING CARDS REDESIGN) --- */
.programs-overview-section {
    background-color: #f7f7f7;
    padding: 6rem 0 8rem; /* Add extra padding at the bottom for space */
}

.programs-card-layout {
    position: relative;
    max-width: 1100px;
    margin: 4rem auto 0;
    min-height: 500px; /* Give the container height for the absolute cards */
}

.program-card {
    position: absolute;
    display: flex;
    width: 65%;
    max-width: 700px;
    background: var(--color-light);
    border-radius: 15px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                opacity 0.4s ease;
}

/* Positioning for each card */
.stem-card {
    top: 0;
    left: 0;
    z-index: 2; /* On top */
}

.humanities-card {
    top: 100px;
    right: 0;
    z-index: 1; /* Behind */
}

/* Hover effects */
.programs-card-layout:hover .program-card:not(:hover) {
    transform: scale(0.95);
    opacity: 0.8;
}

.program-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 40px 60px -15px rgba(0,0,0,0.2);
    z-index: 3;
}

.card-image {
    flex: 0 0 45%; /* Image takes up 45% of the card width */
}
.card-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.card-text {
    flex: 1;
    padding: 2.5rem;
}
.card-text h3 { margin-bottom: 1rem; }
.card-text p { font-size: 0.95rem; }

/* New Animations for the cards */
.float-in-left { transform: translateX(-50px) rotate(-5deg); opacity: 0; }
.float-in-right { transform: translateX(50px) rotate(5deg); opacity: 0; }

.float-in-left.is-visible,
.float-in-right.is-visible {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}


/* Responsive adjustments for the card layout */
@media (max-width: 992px) {
    .programs-card-layout {
        position: static;
        min-height: auto;
    }
    .program-card {
        position: relative;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        flex-direction: column;
    }
    .stem-card {
        margin-bottom: 2rem;
    }
    .humanities-card {
        top: auto;
        right: auto;
    }
    .card-image {
        flex-basis: 250px; /* Give the image a fixed height */
    }
    .card-text {
        padding: 2rem;
    }
}

/* --- TESTIMONIAL SECTION --- */
.testimonial-section {
    background-color: var(--color-accent);
    color: var(--color-dark);
    text-align: center;
}

.testimonial-section .container {
    max-width: 800px;
}

blockquote {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.5;
    border: none;
    margin-bottom: 1.5rem;
}

cite {
    font-style: normal;
    font-weight: 600;
    font-size: 1.1rem;
}


/* --- GALLERY SECTION --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
}
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(4) { grid-row: span 2; }


/* --- CTA SECTION --- */
.cta-section {
    padding: 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.cta-background-image {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: url('images/cta-bg.webp') no-repeat center center/cover;
    filter: grayscale(50%) brightness(0.7);
    z-index: -1;
}
.cta-box {
    background: rgba(255, 255, 252, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 252, 0.2);
    border-radius: 15px;
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-light);
}
.cta-box h2 {
    color: var(--color-light);
}
.cta-box p {
    color: rgba(255, 255, 252, 0.9);
}
.cta-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.cta-box .btn-primary {
    background-color: var(--color-light);
    color: var(--color-dark);
}
.cta-box .btn-secondary {
    border-color: var(--color-light);
    color: var(--color-light);
}
.cta-box .btn-secondary:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}


/* --- MISSION PAGE STYLES --- */

/* --- MISSION HERO SECTION --- */
.mission-hero-section {
    background-color: #f7f7f7;
    padding-top: 150px; /* Offset for fixed header */
    padding-bottom: 6rem;
}
.mission-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.mission-title {
    font-size: 4rem;
    color: var(--color-dark);
}
.mission-hero-text p {
    font-size: 1.2rem;
    max-width: 500px;
}
.mission-hero-visual img {
    border-radius: 10px;
    height: 400px;
    width: 100%;
    object-fit: cover;
}


/* --- PHILOSOPHY SECTION --- */
/* --- PHILOSOPHY SECTION (TYPOGRAPHY REDESIGN) --- */
.philosophy-section {
    background-color: var(--color-accent); /* Change background to make it a feature section */
}

.philosophy-container {
    max-width: 900px;
}

.philosophy-content .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* The main paragraph text */
.philosophy-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #1a1a1a; /* Slightly darker text for readability on the accent background */
    column-count: 2; /* Creates a two-column layout for a magazine feel */
    column-gap: 3rem;
}

/* The Drop Cap for the first letter */
.philosophy-text::first-letter {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 6rem;
    color: var(--color-dark);
    float: left;
    line-height: 0.8;
    margin-right: 1rem;
    margin-bottom: -0.2rem;
}

/* The Pull Quote */
.philosophy-content blockquote {
    border: none;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-dark);
    position: relative;
    padding: 0 1rem;
}

/* Decorative quote marks */
.philosophy-content blockquote::before,
.philosophy-content blockquote::after {
    content: '“';
    font-family: 'Times New Roman', serif;
    font-size: 5rem;
    position: absolute;
    color: rgba(0,0,0,0.1);
    line-height: 1;
}
.philosophy-content blockquote::before {
    content: '“';
    top: -1rem;
    left: -1rem;
}
.philosophy-content blockquote::after {
    content: '”';
    bottom: -2.5rem;
    right: -1rem;
}


/* Responsive adjustments for the typography */
@media (max-width: 768px) {
    .philosophy-text {
        column-count: 1; /* Switch to a single column on smaller screens */
    }
    
    .philosophy-content blockquote {
        font-size: 1.8rem;
    }

    .philosophy-content blockquote::before,
    .philosophy-content blockquote::after {
        font-size: 4rem;
    }
}

/* --- PILLARS SECTION --- */
/* --- PILLARS SLIDER STYLES --- */

.pillars-section {
    background-color: #f7f7f7;
    overflow: hidden; /* Prevent horizontal scrollbar */
}

.pillar-slider {
    position: relative;
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 5%;
    height: 500px; /* Set a fixed height for the container */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
                opacity 0.6s ease;
    cursor: pointer;
    overflow: visible;
    background: var(--color-light);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* --- Slide States --- */
.slider-slide {
    transform: scale(0.8);
    opacity: 0.5;
    z-index: 1;
}

.slider-slide.is-active {
    transform: scale(1);
    opacity: 1;
    z-index: 2;
    cursor: default;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.slider-slide.is-prev {
    transform: translateX(-55%) scale(0.85);
    opacity: 0.7;
}

.slider-slide.is-next {
    transform: translateX(55%) scale(0.85);
    opacity: 0.7;
}

/* --- Slide Content --- */
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    padding: 1.5rem 2rem;
    text-align: center;
}
.slide-content h3 { margin-bottom: 0.75rem; }
.slide-content p { font-size: 0.95rem; margin-bottom: 0; }


/* --- Navigation --- */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none; /* Let clicks pass through to slides */
}
.slider-btn {
    pointer-events: all; /* Make only buttons clickable */
    background: rgba(255, 255, 252, 0.8);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.slider-btn svg { fill: var(--color-dark); width: 28px; height: 28px; }
.slider-btn:hover { background: var(--color-light); transform: scale(1.1); }
.slider-btn--prev { margin-left: -25px; }
.slider-btn--next { margin-right: -25px; }

.slider-dots {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #beb7a4;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.slider-dot.is-active {
    background-color: var(--color-dark);
    transform: scale(1.2);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .slider-slide.is-prev, .slider-slide.is-next {
        /* Hide side slides on smaller screens for a simpler view */
        transform: translateX(0) scale(0.8);
        opacity: 0;
        pointer-events: none;
    }
    .pillar-slider { height: 450px; }
    .slider-nav { padding: 0 1rem; }
}

@media (max-width: 768px) {
    .pillar-slider { padding: 0; }
    .slide-content { padding: 1rem 1.5rem; }
    .slide-content h3 { font-size: 1.25rem; }
    .slide-content p { font-size: 0.9rem; }
}


/* --- FOUNDER SECTION --- */
.founder-section {
    background-color: var(--color-light);
}
.founder-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: center;
}
.founder-image img {
    border-radius: 50%;
    border: 10px solid var(--color-light);
    box-shadow: 0 0 0 2px var(--color-accent);
}
.founder-letter cite {
    display: block;
    margin-top: 1.5rem;
    font-style: normal;
    font-weight: 600;
}

/* --- ENVIRONMENT SECTION --- */
.environment-section {
    background-color: var(--color-accent);
}
.environment-section .section-title,
.environment-section .section-subtitle {
    color: var(--color-dark);
}
.environment-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1rem;
}
.gallery-item-env {
    overflow: hidden;
    border-radius: 10px;
}
.gallery-item-env img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-item-env:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}
.gallery-item-env:nth-child(1) { grid-column: 1 / 3; }
.gallery-item-env:nth-child(3) { grid-row: 1 / 3; grid-column: 3 / 4; }


/* --- SUCCESS SECTION --- */
.success-section {
    background-color: var(--color-dark);
}
.success-section .section-title,
.success-section .section-subtitle {
    color: var(--color-light);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    color: var(--color-light);
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-accent);
}
.stat-number::after {
    content: '%';
}
.stat-item:nth-child(2) .stat-number::after { content: ''; }
.stat-label {
    font-size: 1rem;
    max-width: 250px;
    margin: 0 auto;
    color: rgba(255, 255, 252, 0.8);
}


/* --- MISSION CTA SECTION --- */
.mission-cta-section {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    background: url('images/mission-cta-bg.webp') no-repeat center center/cover;
    color: var(--color-light);
}
.mission-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
}
.mission-cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.mission-cta-content h2 {
    color: var(--color-light);
}
.mission-cta-content .btn-primary {
    background-color: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-light);
}
.mission-cta-content .btn-primary:hover {
    background-color: transparent;
    color: var(--color-light);
}


/* --- MISSION PAGE RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .mission-hero-container, .founder-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .mission-hero-text p { margin: 0 auto 2rem auto; }
    .mission-hero-visual { order: -1; margin-bottom: 2rem; }
    .founder-image { margin: 0 auto; }
    .founder-image img { width: 250px; height: 250px; }

    .pillars-grid {
        grid-template-columns: 1fr;
    }
    .environment-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 300px);
    }
    .gallery-item-env:nth-child(1) { grid-column: auto; }
    .gallery-item-env:nth-child(3) { grid-row: auto; grid-column: auto; }
    .gallery-item-env:nth-child(5) { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
    .mission-title { font-size: 3rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 4rem;}
    .environment-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 300px);
    }
    .gallery-item-env:nth-child(5) { grid-column: auto; }
}

/* --- PROGRAMS PAGE STYLES --- */

/* --- PROGRAMS HERO SECTION --- */
.programs-hero-section {
    background-color: var(--color-light);
    padding: 150px 0 6rem 0;
    overflow: hidden;
}
.programs-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}
.programs-hero-content {
    max-width: 500px;
}
.programs-hero-image-wrapper {
    position: relative;
    height: 600px;
}
.programs-hero-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.zoom-in { transform: scale(0.9); }
.zoom-in.is-visible { transform: scale(1); }

/* --- CURRICULUM APPROACH SECTION --- */
/* --- CURRICULUM APPROACH SECTION (UNUSUAL TYPOGRAPHY REDESIGN) --- */
.curriculum-approach-section {
    background-color: var(--color-dark); /* Invert colors for dramatic effect */
    color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.curriculum-layout-container {
    display: grid;
    grid-template-columns: auto 1fr; /* Column for vertical text, and the rest for content */
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- Decorative Elements --- */
.background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 25vw; /* Scales with the viewport width */
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    z-index: -1;
    
    /* The key effect: transparent text with a faint outline */
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 252, 0.1);
}

.vertical-label-wrapper {
    justify-self: center;
}

.vertical-label {
    display: inline-block;
    writing-mode: vertical-rl; /* Makes text vertical */
    transform: rotate(180deg); /* Flips it to read top-to-bottom */
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 4px;
    color: var(--color-accent);
    font-size: 0.9rem;
}

/* --- Main Content Typography --- */
.curriculum-main-content .section-title {
    color: var(--color-light);
    text-align: left;
}

.curriculum-main-content p {
    font-size: 1.2rem;
    line-height: 2;
    color: rgba(255, 255, 252, 0.85);
}

.highlight-word {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-accent);
    font-size: 1.1em; /* Slightly larger than surrounding text */
    text-shadow: 0 0 10px rgba(190, 183, 164, 0.2); /* Subtle glow */
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .background-text {
        font-size: 30vw;
    }
}

@media (max-width: 768px) {
    .curriculum-layout-container {
        grid-template-columns: 1fr; /* Stack elements on mobile */
        gap: 1.5rem;
    }
    .vertical-label-wrapper {
        display: none; /* Hide vertical text on small screens for simplicity */
    }
    .curriculum-main-content .section-title {
        text-align: center;
    }
    .curriculum-main-content p {
        font-size: 1.1rem;
        text-align: center;
    }
    .background-text {
        font-size: 45vw;
        top: 40%;
    }
}

/* --- ACADEMIC DIVISIONS (TABS) --- */
.divisions-section {
    background-color: var(--color-light);
}
.tab-buttons {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 2rem;
}
.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: #888;
    transition: color 0.3s ease;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-dark);
    transition: width 0.3s ease;
}
.tab-btn.active, .tab-btn:hover {
    color: var(--color-dark);
}
.tab-btn.active::after {
    width: 100%;
}
.tab-pane {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    animation: fadeIn 0.6s;
}
.tab-pane.active {
    display: grid;
}
.tab-pane img {
    border-radius: 10px;
    width: 100%;
    height: 350px;
    object-fit: cover;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SIGNATURE PROGRAMS SECTION --- */
.signature-programs-section {
    background-color: #f7f7f7;
}
.signature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}
.signature-item:last-child { margin-bottom: 0; }
.signature-item.reverse .signature-image { order: 2; }
.signature-item .signature-text {
    background: var(--color-light);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.signature-image img { 
    border-radius: 10px; 
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- BEYOND THE CLASSROOM SECTION --- */
.beyond-classroom-section {
    background-color: var(--color-dark);
}
.beyond-classroom-section .section-title {
    color: var(--color-light);
}
.beyond-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 400px;
    gap: 1rem;
}
.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.grid-item:hover img {
    transform: scale(1.1);
}
.grid-item:nth-child(1) { grid-column: span 2; }
.grid-item:nth-child(4) { grid-column: span 2; }
.grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--color-light);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.grid-item:hover .grid-overlay {
    transform: translateY(0);
}
.grid-overlay h3 {
    color: var(--color-light);
    font-size: 1.5rem;
}

/* --- FACULTY SPOTLIGHT SECTION --- */
.faculty-spotlight-section {
    background-color: var(--color-accent);
}
.faculty-spotlight-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    align-items: center;
    gap: 4rem;
}
.faculty-image img {
    border-radius: 10px;
}
.faculty-bio h2 {
    margin-bottom: 2rem;
}
.faculty-bio blockquote {
    font-size: 1.5rem;
    line-height: 1.6;
    border-left: 4px solid var(--color-dark);
    padding-left: 2rem;
    margin-bottom: 1rem;
}
.faculty-bio cite {
    font-weight: 600;
}

/* --- PROGRAMS CTA SECTION --- */
.programs-cta-section {
    background-color: #f7f7f7;
    text-align: center;
}
.programs-cta-container {
    max-width: 700px;
}

/* --- PROGRAMS PAGE RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .programs-hero-container, .signature-item, .signature-item.reverse, .faculty-spotlight-container {
        grid-template-columns: 1fr;
        display: block;
    }
    .signature-item.reverse .signature-image { order: 1; }
    .programs-hero-image-wrapper { height: 400px; margin-top: 2rem; }
    .programs-hero-image-wrapper img { clip-path: none; }
    .beyond-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 300px 300px;
    }
    .grid-item:nth-child(1), .grid-item:nth-child(4) { grid-column: auto; }
}

@media (max-width: 768px) {
    .tab-buttons { flex-direction: column; }
    .tab-btn { width: 100%; text-align: left; }
    .tab-pane { grid-template-columns: 1fr; }
    .tab-pane img { order: -1; margin-bottom: 2rem; }
    .faculty-spotlight-container {
        gap: 2rem;
        grid-template-columns: 1fr;
    }
    .faculty-image { max-width: 300px; margin: 0 auto; }
    .faculty-bio { text-align: center; }
    .faculty-bio blockquote { border-left: none; border-top: 4px solid var(--color-dark); padding: 2rem 0 0; }
    .beyond-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 300px); }
}

/* --- ADMISSIONS PAGE STYLES --- */

/* --- ADMISSIONS HERO SECTION --- */
.admissions-hero-section {
    min-height: 70vh;
    background: url('images/admission-bg.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.admissions-hero-box {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 10px;
    max-width: 600px;
    color: var(--color-light);
}
.admissions-hero-box h1 {
    color: var(--color-light);
}
.admissions-hero-box p {
    color: rgba(255, 255, 252, 0.9);
    font-size: 1.1rem;
}
.admissions-hero-box .btn-primary {
    background-color: var(--color-light);
    color: var(--color-dark);
}
.admissions-hero-box .btn-primary:hover {
    background-color: transparent;
    color: var(--color-light);
    border-color: var(--color-light);
}

/* --- WELCOME SECTION --- */
/* --- WELCOME SECTION (SPLIT REVEAL REDESIGN) --- */
.welcome-section {
    height: 100vh; /* Full viewport height */
    min-height: 1100px; /* Minimum height for content visibility */
    display: flex;
    overflow: hidden; /* Crucial: hides the panels before they animate in */
    padding: 0;
}

.reveal-panel {
    width: 50%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.86, 0, 0.07, 1); /* Slower, elegant ease */
}

/* --- Image Panel (Left) --- */
.reveal-panel--image {
    background-color: #333;
    overflow: hidden;
    /* Initial state: pushed off-screen to the left */
    transform: translateX(-100%); 
}
.reveal-panel--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2); /* Start slightly zoomed in */
    transition: transform 1.2s cubic-bezier(0.86, 0, 0.07, 1) 0.2s; /* Delay the zoom */
}

/* --- Text Panel (Right) --- */
.reveal-panel--text {
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    /* Initial state: pushed off-screen to the right */
    transform: translateX(100%);
}

.text-content-card {
    max-width: 500px;
}
.text-content-card h2,
.text-content-card p,
.text-content-card cite {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s; /* Delay until panel is open */
}
.text-content-card p { transition-delay: 1s; }
.text-content-card cite { transition-delay: 1.2s; }

.text-content-card h2 { color: var(--color-dark); margin-bottom: 2rem; }
.text-content-card p { color: #3d3b36; margin-bottom: 1.5rem; line-height: 1.8; }
.text-content-card cite {
    display: block;
    margin-top: 2rem;
    font-style: normal;
    font-weight: 600;
    color: var(--color-dark);
}

/* --- The Revealed State (triggered by JS) --- */
.welcome-section.is-revealed .reveal-panel {
    transform: translateX(0); /* Move panels into view */
}
.welcome-section.is-revealed .reveal-panel--image img {
    transform: scale(1); /* Zoom out to normal size */
}
.welcome-section.is-revealed .text-content-card h2,
.welcome-section.is-revealed .text-content-card p,
.welcome-section.is-revealed .text-content-card cite {
    opacity: 1;
    transform: translateY(0); /* Animate text into view */
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .welcome-section {
        flex-direction: column; /* Stack panels vertically */
    }
    .reveal-panel {
        width: 100%;
        height: 50%;
    }
    .reveal-panel--image {
        /* Initial state: pushed off-screen to the top */
        transform: translateY(-100%);
    }
    .reveal-panel--text {
        /* Initial state: pushed off-screen to the bottom */
        transform: translateY(100%);
        padding: 2rem;
    }
}

/* --- PROCESS SECTION --- */
.process-section {
    background-color: var(--color-light);
}
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}
.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-accent);
    top: 0;
    bottom: 0;
    left: 50px;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 1rem 0 3rem 130px;
    position: relative;
}
.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-light);
    box-shadow: 0 0 0 3px var(--color-accent);
    z-index: 1;
}
/* Add this to your css/style.css file */

.timeline-icon svg {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This might not be necessary but is good practice */
    padding: 25px; /* Adjust padding to control icon size inside the circle */
    color: var(--color-dark); /* The icon will take this color */
    background-color: var(--color-accent); /* Gives the icon a colored background */
}

/* --- TUITION SECTION --- */
.tuition-section {
    background-color: #f7f7f7;
}
.tuition-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.tuition-info-card, .aid-info-card {
    padding: 2.5rem;
    border-radius: 10px;
}
.tuition-info-card {
    background-color: var(--color-accent);
}
.aid-info-card {
    background-color: var(--color-light);
}
.aid-info-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.tuition-list {
    list-style: none;
    margin-top: 1.5rem;
}
.tuition-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.tuition-list li:last-child {
    border-bottom: none;
}

/* --- DATES SECTION --- */
.dates-section {
    background-color: var(--color-dark);
    color: var(--color-light);
}
.dates-section .section-title {
    color: var(--color-light);
}
.dates-list {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
    text-align: center;
}
.dates-list li {
    font-size: 1.2rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,252,0.2);
}
.dates-list li:last-child {
    border: none;
}
.dates-list strong {
    font-family: var(--font-heading);
    color: var(--color-accent);
}

/* --- VISIT SECTION --- */
.visit-section {
    background-color: var(--color-light);
}
.visit-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}
.visit-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1rem;
}
.visit-gallery-item {
    overflow: hidden;
    border-radius: 10px;
}
.visit-gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
}
.visit-gallery-item:nth-child(1) { grid-row: 1 / 3; }
.visit-text { text-align: center; }
.visit-text .btn {
    margin: 0.5rem;
}

/* --- FAQ SECTION --- */
.faq-section {
    background-color: #f7f7f7;
}
.faq-container {
    max-width: 900px;
}
.faq-item {
    border-bottom: 1px solid #ddd;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 2.5rem 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer p {
    padding: 0 0 1.5rem;
    line-height: 1.8;
}

/* --- ADMISSIONS PAGE RESPONSIVE --- */
@media (max-width: 992px) {
    .welcome-container, .tuition-container, .visit-content {
        grid-template-columns: 1fr;
    }
    .process-timeline::after { left: 50px; }
    .timeline-item { padding-left: 130px; }
}
@media (max-width: 768px) {
    .admissions-hero-section {
        justify-content: center;
        text-align: center;
    }
    .process-timeline::after { left: 25px; }
    .timeline-item { padding-left: 70px; }
    .timeline-icon {
        width: 50px;
        height: 50px;
        border-width: 2px;
        box-shadow: 0 0 0 2px var(--color-accent);
    }
    .visit-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
    .visit-gallery-item, .visit-gallery-item:nth-child(1) { height: 300px; }
}

/* --- STUDENT LIFE PAGE STYLES --- */

/* --- STUDENT LIFE HERO --- */
.student-life-hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-image-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    animation: pan-image 30s linear infinite;
}
.grid-img img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}
@keyframes pan-image {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Pan two images over */
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}
.hero-text-container {
    position: relative;
    z-index: 2;
    color: var(--color-light);
    max-width: 800px;
}
.hero-text-container h1 { color: var(--color-light); font-size: 4rem; }
.hero-text-container p { color: rgba(255,255,252,0.9); font-size: 1.2rem; }

/* --- DAY IN THE LIFE SECTION --- */
.day-in-life-section {
    background-color: #f7f7f7;
}
.daily-timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}
.daily-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--color-accent);
    transform: translateX(-50%);
}
.daily-event {
    position: relative;
    width: 50%;
    margin-bottom: 3rem;
}
.daily-event:nth-child(odd) { left: 0; padding-right: 4rem; text-align: right; }
.daily-event:nth-child(even) { left: 50%; padding-left: 4rem; }
.event-time {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}
.daily-event::after {
    content: '';
    position: absolute;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-light);
    border: 4px solid var(--color-accent);
}
.daily-event:nth-child(odd)::after { right: -10px; }
.daily-event:nth-child(even)::after { left: -10px; }


/* --- CLUBS SECTION --- */
.clubs-section {
    background-color: var(--color-light);
}
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}
.club-card {
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.club-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.club-card svg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    padding: 22px; /* Controls the size of the icon inside the circle */
    background-color: var(--color-light);
    color: var(--color-dark);
    border: 2px solid var(--color-accent);
    transition: all 0.3s ease;
}

/* Optional: Add a hover effect for more interactivity */
.club-card:hover svg {
    background-color: var(--color-dark);
    color: var(--color-light);
    border-color: var(--color-dark);
}


/* --- ATHLETICS SECTION --- */
/* --- ATHLETICS SECTION (SOPHISTICATED TYPOGRAPHY REDESIGN) --- */
.athletics-section {
    position: relative;
    padding: 8rem 0;
    color: var(--color-light);
    display: flex; /* Use flex to center the container vertically */
    align-items: center;
    min-height: 90vh;
}

.athletics-parallax {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('images/athletic-bg.webp') no-repeat center center/cover;
    background-attachment: fixed;
    filter: brightness(0.5); /* Darker for more contrast */
    z-index: -2;
}

/* Giant background text */
.athletics-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 800; /* Extra bold for impact */
    font-size: 25vw;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    color: rgba(255, 255, 252, 0.05); /* Very subtle */
    z-index: -1;
}

.athletics-content-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.athletics-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Asymmetrical split */
    gap: 4rem;
    align-items: center;
}

/* Left Column Styling */
.athletics-headlines h2 {
    font-size: 5rem;
    line-height: 1.1;
    color: var(--color-light);
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin: 0;
}

.athletics-headlines h3 {
    font-size: 1.2rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-top: 1rem;
}

/* Right Column Styling */
.athletics-description p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 252, 0.85);
    border-left: 3px solid var(--color-accent);
    padding-left: 2rem;
}

/* Reusing the fade-up-stagger animation if not already present */
.fade-up-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}
.fade-up-stagger.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .athletics-grid {
        grid-template-columns: 1fr; /* Stack columns on tablets */
        gap: 2rem;
        text-align: center;
    }
    .athletics-headlines h2 {
        font-size: 4rem;
    }
    .athletics-description p {
        border-left: none;
        border-top: 3px solid var(--color-accent);
        padding-left: 0;
        padding-top: 2rem;
        max-width: 600px;
        margin: 0 auto;
    }
    .athletics-bg-text {
        font-size: 30vw;
    }
}
@media (max-width: 768px) {
    .athletics-headlines h2 {
        font-size: 3rem;
    }
}

/* --- WELLNESS SECTION --- */
.wellness-section {
    background-color: var(--color-accent);
}
.wellness-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.wellness-text ul {
    list-style: none;
    margin-top: 1.5rem;
}
.wellness-text li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}
.wellness-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-dark);
    font-weight: 700;
}
.wellness-image img { 
    border-radius: 10px;
    width: 100%;
    height: 400px;
    object-fit: cover;
 }


/* --- TRADITIONS SECTION --- */
.traditions-section {
    background-color: #f7f7f7;
}
.traditions-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.tradition-item {
    background: var(--color-light);
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease;
}
.tradition-item:hover {
    transform: rotate(3deg) scale(1.05);
}
.tradition-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 1rem;
}
.tradition-item p {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0;
}


/* --- VIDEO CTA SECTION --- */


/* --- STUDENT LIFE RESPONSIVE --- */
@media (max-width: 992px) {
    .wellness-container { grid-template-columns: 1fr; }
    .hero-text-container h1 { font-size: 3rem; }
}
@media (max-width: 768px) {
    .daily-timeline::before { left: 20px; }
    .daily-event { width: 100%; padding: 0 0 3rem 4rem; text-align: left !important; }
    .daily-event:nth-child(odd), .daily-event:nth-child(even) { left: 0; }
    .daily-event::after { left: 10px; }
    .play-button { width: 80px; height: 80px; }
}

/* --- COMMUNITY PAGE STYLES --- */

/* --- COMMUNITY HERO --- */
.community-hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.community-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 300%; height: 100%;
    display: flex;
    animation: slide-hero-bg 25s ease-in-out infinite;
}
.hero-bg-image { width: 33.333%; height: 100%; }
.hero-bg-image img { width: 100%; height: 100%; object-fit: cover; }
@keyframes slide-hero-bg {
    0%, 25% { transform: translateX(0); }
    33%, 58% { transform: translateX(-33.333%); }
    66%, 92% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}
.community-hero-content {
    position: relative;
    z-index: 2;
}
.hero-content-box {
    max-width: 650px;
    padding: 3rem;
    background: rgba(255, 255, 252, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 252, 0.2);
    border-radius: 15px;
    color: var(--color-light);
}
.hero-content-box h1 { color: var(--color-light); font-size: 3.5rem; }
.hero-content-box p { color: rgba(255, 255, 252, 0.95); font-size: 1.1rem; }

/* --- PARENT PARTNERSHIP --- */
/* --- PARENT PARTNERSHIP SECTION (SOPHISTICATED REDESIGN) --- */
.parent-partnership-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

/* Full-bleed background image with a dark overlay */
.partnership-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('images/com-cta-bg.webp') no-repeat center center/cover;
    filter: brightness(0.7) blur(5px); /* Darken and blur the background */
    transform: scale(1.1);
    z-index: -2;
}

.partnership-layout {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 500px; /* Give space for absolute positioning */
}

/* Giant decorative background text */
.partnership-bg-text {
    position: absolute;
    top: 0;
    left: -2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 12rem;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    color: rgba(255, 255, 252, 0.1);
    z-index: 0;
}

/* The glass card */
.partnership-text-card {
    position: relative;
    max-width: 600px;
    padding: 3rem;
    z-index: 1;
    color: var(--color-light);
    border-radius: 15px;

    /* Glass morphism effect */
    background: rgba(255, 255, 252, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 252, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.partnership-text-card h2 { color: var(--color-light); }
.partnership-text-card p { color: rgba(255, 255, 252, 0.85); }

/* The overlapping image */
.partnership-image-wrapper {
    position: absolute;
    bottom: -50px;
    right: 0;
    width: 50%;
    max-width: 450px;
    z-index: 2; /* Sits on top of the glass card */
}
.partnership-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    border: 5px solid var(--color-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* A new generic animation for this effect */
.float-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}
.float-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .parent-partnership-section {
        min-height: auto;
        padding: 6rem 0;
    }
    .partnership-layout {
        min-height: auto;
    }
    .partnership-text-card {
        max-width: 100%;
    }
    .partnership-image-wrapper {
        position: relative;
        width: 80%;
        max-width: 400px;
        bottom: auto;
        right: auto;
        float: right; /* A simple float for text wrapping on medium screens */
        margin: -2rem -2rem 1rem 1rem;
    }
    .partnership-bg-text {
        font-size: 8rem;
    }
}

@media (max-width: 768px) {
    .partnership-image-wrapper {
        float: none; /* Stack vertically */
        position: relative;
        width: 100%;
        max-width: none;
        margin: 0 auto 2rem auto;
        top: -3rem; /* Pull up to overlap slightly */
    }
    .partnership-text-card {
        margin: 0;
        padding: 2rem;
    }
    .partnership-bg-text {
        display: none; /* Hide decorative text on small screens for clarity */
    }
}
/* --- FACULTY MENTORS --- */
.faculty-mentors-section { background-color: var(--color-light); }
.mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}
.mentor-card {
    background: #f7f7f7;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.mentor-card:hover { transform: scale(1.03); }
.mentor-card img { width: 100%; height: 300px; object-fit: cover; }
.mentor-info { padding: 1.5rem; }
.mentor-info p { font-style: italic; color: #555; }

/* --- ALUMNI NETWORK --- */
.alumni-section {
    position: relative;
    padding: 8rem 0;
    display: flex;
    align-items: center;
    background-color: var(--color-dark);
}
.alumni-map-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/alumni-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}
.alumni-container { position: relative; z-index: 1; }
.alumni-content-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-light);
}
.alumni-content-box h2 { color: var(--color-light); }
.alumni-content-box p { color: rgba(255, 255, 252, 0.8); }

/* --- LOCAL ENGAGEMENT --- */
.engagement-section { background-color: #f7f7f7; }
.engagement-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
    background: var(--color-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.engagement-image { align-self: stretch; }
.engagement-image img { width: 100%; height: 400px; object-fit: cover; }
.engagement-text { padding: 3rem; }

/* --- SIGNATURE EVENTS --- */
.events-section { background-color: var(--color-accent); overflow: hidden; }
.events-scroller-wrapper {
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-dark) transparent;
}
.events-scroller {
    display: flex;
    gap: 2rem;
    width: max-content; /* Critical for flex scrolling */
}
.event-card {
    width: 400px;
    flex-shrink: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.event-card img { width: 100%; height: 500px; object-fit: cover; display: block; }
.event-caption {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--color-light);
}
.event-caption h4 { color: var(--color-light); font-size: 1.5rem; margin: 0; }

/* --- COMMUNITY CTA --- */
.community-cta-section {
    background: url('images/com-cta-bg.webp') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    text-align: center;
    color: var(--color-light);
}
.community-cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.community-cta-container { position: relative; z-index: 1; max-width: 700px; }
.community-cta-container h2 { color: var(--color-light); }
.community-cta-container .btn-primary {
    background-color: var(--color-light);
    color: var(--color-dark);
}
.community-cta-container .btn-primary:hover {
    background-color: transparent;
    color: var(--color-light);
    border-color: var(--color-light);
}

/* --- COMMUNITY PAGE RESPONSIVE --- */
@media (max-width: 992px) {
    .parent-partnership-container { grid-template-columns: 1fr; }
    .partnership-image { order: -1; }
    .engagement-container { grid-template-columns: 1fr; }
    .hero-content-box h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .hero-content-box { padding: 2rem; }
    .event-card { width: 300px; }
}

/* --- PHOTOS PAGE STYLES --- */

/* --- PHOTOS HERO (PARALLAX) --- */
.photos-hero-section {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--color-light);
}
.parallax-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%; /* Extra height for scroll effect */
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.parallax-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}
.layer-1 {
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}
.photos-hero-content h1 { color: var(--color-light); }
.photos-hero-content p { color: rgba(255, 255, 252, 0.9); font-size: 1.2rem; }

/* --- GALLERY INTRO SECTION --- */
/* --- GALLERY INTRO SECTION (BOLD TYPOGRAPHY REDESIGN) --- */
.gallery-intro-section {
    background-color: var(--color-light);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
}

/* The container for the deconstructed title */
.intro-title-grid {
    position: relative;
    user-select: none;
}

/* The GIANT outlined word */
.title-large {
    font-family: var(--font-heading);
    font-weight: 800; /* Extra bold */
    /* Responsive font size: min 5rem, preferred 16vw, max 14rem */
    font-size: clamp(5rem, 16vw, 14rem);
    line-height: 0.85;
    
    /* The outline effect */
    color: transparent;
    -webkit-text-stroke: 2px var(--color-dark);
    stroke: 2px var(--color-dark);
}

/* The smaller supporting words */
.title-small {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-our {
    top: 0.5em;
    left: 0.5em;
}

.title-story {
    bottom: 0.5em;
    right: 0.5em;
}

/* The paragraph content */
.intro-paragraph p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #333;
    max-width: 500px;
}

.intro-divider {
    border: none;
    height: 3px;
    width: 80px;
    background-color: var(--color-accent);
    margin: 2rem 0 0 0;
}

/* New generic animations for this section */
.fade-in-left { opacity: 0; transform: translateX(-20px); }
.fade-in-right { opacity: 0; transform: translateX(20px); }
.fade-in-up { opacity: 0; transform: translateY(20px); }

.fade-in-left.is-visible,
.fade-in-right.is-visible,
.fade-in-up.is-visible {
    opacity: 1;
    transform: translate(0, 0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr; /* Stack the grid */
        text-align: center;
        gap: 2rem;
        min-height: auto;
    }
    .intro-title-grid {
        margin-bottom: 2rem;
    }
    .intro-paragraph p {
        margin: 0 auto;
    }
    .intro-divider {
        margin: 2rem auto 0 auto;
    }
}

/* --- TABBED GALLERY SECTION --- */
.tabbed-gallery-section { background-color: var(--color-light); }
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.gallery-tab-btn {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gallery-tab-btn:hover, .gallery-tab-btn.active {
    background-color: var(--color-dark);
    color: var(--color-light);
    border-color: var(--color-dark);
}
.gallery-pane { display: none; }
.gallery-pane.active { display: block; animation: fadeIn 0.6s; }
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-image:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- PHOTO QUOTE SECTION --- */
.photo-quote-section {
    background: url('images/phone-bg.webp') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    text-align: center;
    padding: 8rem 0;
    color: var(--color-light);
}
.photo-quote-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.photo-quote-container {
    position: relative;
    max-width: 800px;
}
.photo-quote-container blockquote {
    font-size: 2rem;
    color: var(--color-light);
    border: none;
}
.photo-quote-container cite {
    color: var(--color-accent);
}

/* --- SPOTLIGHT SECTION --- */
/* --- SPOTLIGHT SECTION (FRAMED REDESIGN) --- */
.spotlight-section {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 8rem 0;
}

.spotlight-container {
    display: grid;
    /* The core layout: text | image | text */
    grid-template-columns: 1fr auto 1.5fr;
    gap: clamp(2rem, 5vw, 4rem); /* Responsive gap */
    align-items: center;
}

/* --- Left Column: Title --- */
.spotlight-title {
    text-align: right;
}
.spotlight-title span {
    display: block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
.spotlight-title h2 {
    color: var(--color-light);
    font-size: clamp(3rem, 8vw, 6rem); /* Responsive font size */
    line-height: 1;
    margin: 0;
}

/* --- Center Column: Image --- */
.spotlight-image {
    width: 300px; /* Fixed width for the image column */
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 4px solid var(--color-accent);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.spotlight-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- Right Column: Details --- */
.spotlight-details p {
    color: rgba(255, 255, 252, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
}
.spotlight-details blockquote {
    border: none;
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
    margin-top: 2rem;
    font-style: italic;
    color: var(--color-light);
    font-size: 1.1rem;
}

/* A new animation for the image */
.zoom-in-slow {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease-out, transform 1s ease-out;
    transition-delay: var(--delay, 0.2s);
}
.zoom-in-slow.is-visible {
    opacity: 1;
    transform: scale(1);
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .spotlight-container {
        grid-template-columns: 1fr; /* Stack everything into a single column */
        text-align: center;
    }
    .spotlight-title {
        text-align: center;
        grid-row: 1; /* Explicitly order: Title */
        margin-bottom: 2rem;
    }
    .spotlight-image {
        grid-row: 2; /* Image */
        width: 100%;
        max-width: 400px;
        /* height: auto; */
        aspect-ratio: 3 / 4;
        margin: 0 auto;
    }
    .spotlight-details {
        grid-row: 3; /* Details */
        margin-top: 2rem;
    }
    .spotlight-details blockquote {
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }
}

/* --- CLOSING GALLERY SECTION --- */
/* --- CLOSING GALLERY SECTION (ASYMMETRIC REDESIGN) --- */
.closing-gallery-section {
    background-color: var(--color-light);
    padding: 6rem 0 8rem;
}

.closing-grid {
    display: grid;
    /* A 6-column grid provides placement flexibility */
    grid-template-columns: repeat(6, 1fr);
    /* Define a base row height for predictable spanning */
    grid-auto-rows: minmax(150px, auto);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.closing-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

/* --- Asymmetric Placement --- */
.item-1 {
    grid-column: 1 / span 3;
    grid-row: 1 / span 3; /* Tall portrait shape */
    z-index: 1;
}
.item-2 {
    grid-column: 4 / span 3;
    grid-row: 1 / span 2; /* Wide landscape shape */
    z-index: 2; /* Overlaps slightly */
}
.item-3 {
    grid-column: 3 / span 3;
    grid-row: 3 / span 2; /* Offset square shape */
    z-index: 3;
}

.closing-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* --- CSS-Only Interactive Hover Effects --- */

/* When hovering over the grid, fade out the non-hovered items */
.closing-grid:hover .closing-item:not(:hover) {
    opacity: 0.6;
    filter: grayscale(80%);
}

.closing-item:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 4; /* Bring hovered item to the very top */
}
.closing-item:hover img {
    transform: scale(1.1);
}

/* --- Title Overlay on Hover --- */
.closing-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.closing-item:hover::after {
    opacity: 1;
}

.item-title {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 5;
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.closing-item:hover .item-title {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .closing-grid {
        display: flex; /* Switch to a simple flex column layout */
        flex-direction: column;
        gap: 2rem;
    }
    .closing-item {
        /* Reset any grid properties */
        grid-column: auto;
        grid-row: auto;
        height: 350px; /* Give a consistent height */
    }
}

/* --- PHOTOS CTA SECTION --- */
.photos-cta-section { background-color: var(--color-accent); text-align: center; }
.photos-cta-container { max-width: 700px; }

/* --- LIGHTBOX MODAL --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.lightbox.active { display: flex; }
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
}
.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    color: var(--color-accent);
}
.lightbox-close { top: 20px; right: 30px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* --- PHOTOS PAGE RESPONSIVE --- */
@media(max-width: 992px) {
    .spotlight-container { grid-template-columns: 1fr; }
    .spotlight-image { order: -1; max-width: 500px; margin: 0 auto; }
}
@media(max-width: 768px) {
    .photo-grid, .closing-grid { grid-template-columns: 1fr; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
    .lightbox-prev { left: 20%; }
    .lightbox-next { right: 20%; }
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--color-light);
}

.footer-col p, .footer-col ul {
    font-size: 0.9rem;
    color: rgba(255, 255, 252, 0.7);
}

.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: rgba(255, 255, 252, 0.7);
}
.footer-col a:hover {
    color: var(--color-light);
}

.footer-col:last-child {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 252, 0.2);
}


/* --- SCROLL ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}
.fade-in.is-visible {
    opacity: 1;
}
.slide-in-left { transform: translateX(-50px); }
.slide-in-right { transform: translateX(50px); }

.slide-in-left.is-visible,
.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .hero-content h1 { font-size: 3.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 4rem 0; }

    .why-us-container, .program-feature, .program-feature.reverse {
        grid-template-columns: 1fr;
    }
    .program-feature.reverse .program-text { order: 1; }
    .program-feature.reverse .program-image { order: 2; }
    
    .values-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--color-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }
    .nav-links.nav-active {
        transform: translateX(0);
    }
    
    .nav-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0.5rem;
    }
    .hamburger {
        display: block;
        position: relative;
        width: 25px;
        height: 2px;
        background-color: var(--color-dark);
        transition: all 0.3s ease;
    }
    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 2px;
        background-color: var(--color-dark);
        transition: all 0.3s ease;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { top: 8px; }

    .nav-toggle.open .hamburger { background-color: transparent; }
    .nav-toggle.open .hamburger::before { transform: rotate(45deg); top: 0; }
    .nav-toggle.open .hamburger::after { transform: rotate(-45deg); top: 0; }

    /* General responsive styles */
    .footer-container { grid-template-columns: 1fr; }
    .footer-col { text-align: center; }

    .hero-content h1 { font-size: 2.5rem; }
    .cta-box { padding: 2rem; }
    .cta-buttons { flex-direction: column; }
}

/* --- LEGAL & UTILITY PAGE STYLES --- */

.legal-hero {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 8rem 0 6rem;
    text-align: center;
    margin-top: 60px; /* Adjust if your fixed header height is different */
}

.legal-page-title {
    font-size: 3rem;
    color: var(--color-light);
}

.legal-page-subtitle {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-top: 0.5rem;
}

.legal-content {
    padding: 5rem 0;
    background-color: var(--color-light);
}

.legal-content-container {
    max-width: 800px; /* Optimized for readability */
}

.legal-content .last-updated {
    font-style: italic;
    color: #777;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.legal-content article {
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.legal-content p {
    line-height: 1.8;
    color: #333;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: #333;
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 6rem 0 4rem;
        margin-top: 50px;
    }
    .legal-page-title {
        font-size: 2.5rem;
    }
}

/* --- UTILITY & THANK YOU PAGE --- */
.utility-page-body {
    background-color: #f7f7f7;
    background-image: radial-gradient(circle, #f7f7f7 0%, #e9e7e2 100%);
}

.thank-you-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.thank-you-box {
    background-color: var(--color-light);
    border-radius: 15px;
    padding: 3rem;
    max-width: 550px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.thank-you-box h1 {
    font-size: 2.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.thank-you-box p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.thank-you-box .btn {
    padding: 1rem 2.5rem;
}


/* --- Checkmark Animation --- */
.checkmark-container {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.checkmark-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--color-accent);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: var(--color-dark);
    fill: none;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 768px) {
    .thank-you-box {
        padding: 2rem;
    }
    .thank-you-box h1 {
        font-size: 2rem;
    }
}