/* Base reset */

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


/* Core layout variables (edit these) */

:root {
    /* Mobile stacked nav total height (enroll bar + header). Adjust until hero text clears nav */
    --nav-stack-height-mobile: 0px;
    /* <-- ADJUST */
    /* Fine‑tune extra gap below nav */
    --hero-mobile-extra: 10px;
    /* <-- ADJUST */
    /* Optional additional fine push (positive moves further down) */
    --hero-mobile-extra-2: 0px;
    /* <-- ADJUST */
    /* Derived offset applied as hero top padding on mobile */
    --hero-mobile-offset: calc(var(--nav-stack-height-mobile) + var(--hero-mobile-extra) + var(--hero-mobile-extra-2));
    /* Additional fine vertical adjust (positive pushes further DOWN) */
    --hero-mobile-offset-adjust: 0px;
    /* tweak this first for height fixes */
    /* Mobile outlined word responsive sizing */
    --hero-mobile-font-size: clamp(3.6rem, 19vw, 10rem);
    /* Horizontal padding for mobile hero content */
    --hero-mobile-hpad: 0.75rem;
    /* Horizontal fine adjustments */
    --hero-mobile-left-adjust: 0px;
    /* legacy (not applied now) */
    --hero-mobile-right-adjust: 13.5px;
    /* primary horizontal shift (positive pushes right, negative left) */
    /* Centering + spacing control for outlined hero word */
    --hero-mobile-center-shift: 0px;
    /* fine nudge after centering (positive -> right, negative -> left) */
    --hero-mobile-letter-spacing: 0.009em;
    /* tweak for slightly more openness (less tight than -0.03em) */
    --hero-mobile-stroke-width: 4px;
    /* can lower to 3px later if desired */
    /* Mobile image overscan values */
    --hero-mobile-overscan-w: 110vw;
    --hero-mobile-overscan-h: 110vh;
    --hero-mobile-overscan-top: -5vh;
    --hero-mobile-overscan-left: -5vw;
    /* Outlined text fine horizontal translate */
    --hero-mobile-text-shift: 0px;
}

*::before,
*::after {
    animation: initial;
}


/* Enrollment links */

.enroll-bluestem,
.enroll-montessori {
    text-decoration: none;
}


/* Loading state */

body.loading {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    touch-action: none;
}


/* Button styles moved to public.css */


/* Programs section title */

.programs-section-title {
    text-align: center;
    margin-bottom: 50px;
}


/* Footer section titles moved to public.css */


/* Base styles */

html,
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text-on-dark);
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}


/* Mobile overflow fix */

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }
}


/* Hero Section */

.hero-section {
    height: 200vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fallback color behind carousel images to mask parallax gaps */
    background-color: var(--color-red-primary);
}


/* Unified mobile hero adjustments (single source of truth) */

@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        /* fallback */
        min-height: 100vh;
        /* fallback */
        height: 100dvh;
        /* dynamic viewport height */
        min-height: 100dvh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow: hidden;
        /* ensure no scroll gaps */
        width: 100vw;
        width: 100dvw;
    }
    .hero-section__background {
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        min-height: 100dvh;
        width: 100vw;
        left: 0;
        top: 0;
    }
    .hero-section__bg-image {
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        min-height: 100dvh;
        width: var(--hero-mobile-overscan-w);
        height: var(--hero-mobile-overscan-h);
        top: var(--hero-mobile-overscan-top);
        left: var(--hero-mobile-overscan-left);
    }
    /* Fine focal tweaks retained */
    .hero-section__bg-image:nth-child(2) {
        background-position: center 48%;
    }
    .hero-section__bg-image:nth-child(3) {
        background-position: center 40%;
    }
    .hero-section__content {
        width: 100%;
        text-align: center;
        padding: 0 1.25rem;
        position: relative;
        top: calc(var(--hero-mobile-offset) + var(--hero-mobile-offset-adjust));
    }
}

.hero-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--color-dark-overlay-light), var(--color-dark-overlay-brown));
    z-index: 2;
}


/* Background image carousel */

.hero-section__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200vh;
    min-height: 200vh;
    z-index: 1;
    /* Same fallback to ensure no transparent gap during fast scroll */
    background-color: var(--color-red-primary);
}

.hero-section__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200vh;
    min-height: 200vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    animation: hero-carousel-fade 45s infinite;
}


/* Mobile-specific carousel image adjustments (balanced cover, slight focal shift, minimal background)*/

@media (max-width: 768px) {
    .hero-section {
        overflow: hidden;
        height: 100vh;
        min-height: 100vh;
        background-color: var(--color-red-primary);
    }
    .hero-section__overlay {
        height: 100vh;
    }
    .hero-section__background {
        height: 100vh;
        min-height: 100vh;
        background-color: var(--color-red-primary);
    }
    .hero-section__bg-image {
        height: 100vh;
        min-height: 100vh;
        background-size: cover;
        background-position: center 42%;
        background-repeat: no-repeat;
        animation-duration: 45s;
    }
    .hero-section__bg-image:nth-child(2) {
        background-position: center 48%;
    }
    .hero-section__bg-image:nth-child(3) {
        background-position: center 40%;
    }
}


/* Stagger animation for each image */

.hero-section__bg-image:nth-child(1) {
    animation-delay: 0s;
}

.hero-section__bg-image:nth-child(2) {
    animation-delay: 15s;
}

.hero-section__bg-image:nth-child(3) {
    animation-delay: 30s;
}

@keyframes hero-carousel-fade {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    30% {
        opacity: 1;
    }
    40% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.hero-section__bg-image.active {
    opacity: 1;
}


/* Hero content */

.hero-section__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
}


/* Masked text effect */

.hero-section__masked-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero-section__masked-word {
    display: block;
    position: relative;
    margin-bottom: 0.2em;
}


/* Hero title with outlined text */

.hero-section__outlined-text {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 0.8;
    color: var(--color-transparent);
    -webkit-text-stroke: 4px var(--color-white);
    text-stroke: 4px var(--color-white);
    position: relative;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--color-black-50);
}


/* Mobile hero text override placed AFTER base rule so it wins without !important */

@media (max-width: 768px) {
    .hero-section__content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: none;
        width: 100dvw;
        padding: 0 var(--hero-mobile-hpad);
        box-sizing: border-box;
        position: relative;
        transform: none;
    }
    .hero-section__outlined-text {
        font-size: var(--hero-mobile-font-size);
        line-height: 0.85;
        display: inline-block;
        /* shrink wrap to word width for predictable centering */
        width: auto;
        padding: 0;
        margin: 0;
        /* reset autos */
        position: relative;
        left: 50%;
        /* Combine primary center shift + optional legacy/right + explicit text shift hooks */
        transform: translateX(calc(-50% + var(--hero-mobile-center-shift) + var(--hero-mobile-right-adjust) + var(--hero-mobile-text-shift)));
        letter-spacing: var(--hero-mobile-letter-spacing);
        -webkit-text-stroke: var(--hero-mobile-stroke-width) var(--color-white);
    }
    /* Match scroll indicator horizontal alignment to content */
    .hero-section__scroll-indicator {
        left: 50%;
        transform: translateX(calc(-50% + var(--hero-mobile-center-shift) + var(--hero-mobile-right-adjust) + var(--hero-mobile-text-shift)));
    }
    /* Horizontal nudge already applied above */
}

.hero-section__outlined-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--color-dark-overlay-55), var(--color-dark-overlay-55)), url('https://images.unsplash.com/photo-1464983953574-0892a716854b?w=1400') center/cover;
    background-blend-mode: darken;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--color-transparent);
    animation: slideBackgroundOutlined 32s ease-in-out infinite;
}


/* Subtitle */

.hero-section__subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--color-white);
    margin-bottom: 3rem;
    text-shadow: 1px 1px 3px var(--color-black-70);
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeInUp 1s ease 1s both;
}


/* CTA Button */

.hero-section__cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-white-transparency-80);
    color: var(--color-text-on-dark);
    padding: 1.5rem 3rem;
    border: 2px solid var(--color-black-20);
    border-radius: 60px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px var(--color-black-30);
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s both;
}

.hero-section__cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--color-black-40);
    background: var(--color-white);
}


/* Scroll indicator */

.hero-section__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    text-align: center;
    z-index: 3;
    opacity: 0;
    animation: fadeInUp 1s ease 2s both;
}

.hero-section__scroll-arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
}


/* School Module Styles */

.school-module {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--color-card-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 70px var(--color-black-20), 0 5px 20px var(--color-brown-primary-15);
    border: 1px solid var(--color-white-10);
    border-radius: 40px;
    padding: 80px;
    position: relative;
    overflow: hidden;
}

.school-module .split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}


/* Typography Section */

.school-module .content-section {
    position: relative;
}

.school-module .big-typography {
    font-size: 3.8rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-text-on-dark);
    font-family: 'Fredericka the Great', cursive;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.school-module .big-typography .highlight {
    color: var(--color-brown-primary);
    position: relative;
}

.school-module .content-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-green-primary);
    margin-bottom: 25px;
    font-weight: 400;
    font-family: 'Overlock', sans-serif;
}


/* Announcement Banner Styles */

.announcement-banner {
    width: 100%;
    margin: 50px 0;
    padding: 50px 40px;
    background: var(--color-announcement-bg);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.announcement-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    font-family: 'Impact', sans-serif;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.announcement-text {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}


/* Quote Loader Animation */

.quote-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-gray-darkest);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    opacity: 1;
    transition: background-color 3s ease-in-out, opacity 3s ease-out;
}

.quote-loader.show-bg {
    background-color: var(--color-red-primary);
}

.quote-loader.show-quote .quote-text {
    opacity: 1;
    transform: translateY(0);
}

.quote-loader.show-author .quote-author {
    opacity: 1;
    transform: translateY(0);
}

.quote-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.quote-text {
    font-family: "Gravitas One", serif;
    font-size: 2rem;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease-in-out, transform 2s ease-out;
}

.quote-author {
    font-size: 1.2rem;
    color: var(--color-brown-primary);
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease-in-out, transform 2s ease-out;
}


/* Split Modules Container */

.split-modules-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-white-gradient);
}


/* Left Side: Logo Module */

.logo-module-left {
    width: 50%;
    position: relative;
    background: var(--color-transparent);
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 800px;
}


/* Right Side: Sandbox Module */

.founder-module {
    width: 50%;
    position: relative;
    background: var(--color-transparent);
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 800px;
}


/* Center Logo Circle */

.center-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.green-circle {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-green-primary), var(--color-green-secondary));
    border-radius: 50%;
    position: relative;
    box-shadow: 0 20px 60px var(--color-green-primary-30);
}


/* Additional organic green shapes */

.organic-shape {
    position: absolute;
    background: var(--gradient-green-secondary);
    border-radius: 50%;
    opacity: 0.6;
    z-index: 2;
}

.organic-1 {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -80px;
    background: var(--gradient-green-tertiary);
}

.organic-2 {
    width: 120px;
    height: 120px;
    bottom: -40px;
    left: -50px;
    background: var(--gradient-green-quaternary);
}

.organic-3 {
    width: 200px;
    height: 200px;
    top: 150px;
    left: -70px;
    background: var(--gradient-green-dark);
    opacity: 0.4;
}

.organic-4 {
    width: 140px;
    height: 140px;
    top: -50px;
    left: 50px;
    background: var(--gradient-green-darker);
    opacity: 0.5;
}

.organic-5 {
    width: 160px;
    height: 160px;
    bottom: 30px;
    right: -60px;
    background: var(--gradient-green-darkest);
    opacity: 0.3;
}

.white-logo-circle {
    width: 280px;
    height: 280px;
    background: var(--color-white);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--color-black-10);
    z-index: 6;
}

.grass-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.grass-icon img {
    width: 180px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--color-text-on-dark);
    font-family: 'Impact', 'Arial Black', sans-serif;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px var(--color-black-10);
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--color-gray-lighter);
    font-weight: 300;
    letter-spacing: 2px;
    font-family: 'Times New Roman', serif;
}


/* Programs grid styles */

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--color-card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-black-10);
    transition: all 0.3s ease;
    cursor: pointer;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--color-black-15);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.early-childhood {
    background-image: url('../Images/Preschool_Snapshot.png');
}

.elementary {
    background-image: url('../Images/Elementary_Snapshot.png');
}

.adolescent {
    background-image: url('../Images/Adolecent_Snapshot.png');
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-green-primary-80), var(--color-green-secondary-80));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-dark);
    font-size: 1.2rem;
    font-weight: bold;
}

.program-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-on-dark);
}

.card-content p {
    color: var(--color-text-on-dark);
    line-height: 1.6;
}


/* Values Section */

.values {
    background: linear-gradient(135deg, var(--color-gray-bg-light), var(--color-gray-bg-lighter));
    padding: 5rem 2rem;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    background: var(--color-card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--color-black-08);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}


/* Principles Module Styles */

.principles-module {
    max-width: 1400px;
    margin: 80px auto;
    background: var(--color-card-bg-solid);
    border-radius: 40px;
    padding: 80px;
    box-shadow: 0 20px 60px var(--color-black-08);
    position: relative;
    overflow: hidden;
}

.principle-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.principle-block:nth-child(even) .principle-content {
    order: 2;
}

.principle-block:nth-child(even) .principle-visual {
    order: 1;
}

.principle-content {
    padding: 20px 0;
    position: relative;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    z-index: 0;
}


/* Arrow indicators */

.slide-arrow {
    position: absolute;
    font-size: 2rem;
    color: var(--color-green-primary);
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    animation: pulse 2s ease-in-out infinite;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.slide-arrow:hover {
    opacity: 1;
}


/* Arrow positions */

.principle-block .slide-arrow {
    right: -30px;
}

.principle-block:nth-child(even) .slide-arrow {
    left: -30px;
    right: auto;
    transform: translateY(-50%) rotate(180deg);
}


/* Hide arrows when cards are visible */

.principle-block.card-visible .slide-arrow {
    opacity: 0;
    pointer-events: none;
}

@keyframes pulse {
    0%,
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-50%) scale(1.1);
        opacity: 1;
    }
}

.principle-block:nth-child(even) .slide-arrow {
    animation: pulseRotated 2s ease-in-out infinite;
}

@keyframes pulseRotated {
    0%,
    100% {
        transform: translateY(-50%) rotate(180deg) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-50%) rotate(180deg) scale(1.1);
        opacity: 1;
    }
}


/* Text content box */

.text-content-box {
    background: linear-gradient(135deg, var(--color-green-primary), var(--color-green-secondary));
    border-radius: 25px;
    padding: 40px 120px 40px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateX(80%);
    opacity: 1;
    transition: all 0.5s ease;
    height: 350px;
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    justify-content: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    border: 8px solid var(--color-green-primary);
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}


/* Hide WebKit scrollbar */

.text-content-box::-webkit-scrollbar {
    display: none;
}


/* Show text box when visual is hovered */

.principle-block.card-visible .text-content-box {
    transform: translateX(0);
    opacity: 1;
}


/* Slide directions */

.principle-block:nth-child(even) .text-content-box {
    transform: translateX(-80%);
    left: auto;
    right: 0;
    padding: 40px 40px 40px 120px;
}

.principle-block:nth-child(even).card-visible .text-content-box {
    transform: translateX(0);
}


/* Principle card shake animations */

@keyframes shake {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(80%);
    }
    10% {
        transform: translateX(85%);
    }
    30% {
        transform: translateX(75%);
    }
    40% {
        transform: translateX(75%);
    }
    60% {
        transform: translateX(83%);
    }
    70% {
        transform: translateX(77%);
    }
}

@keyframes shakeLeft {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-80%);
    }
    10% {
        transform: translateX(-85%);
    }
    30% {
        transform: translateX(-75%);
    }
    40% {
        transform: translateX(-75%);
    }
    60% {
        transform: translateX(-83%);
    }
    70% {
        transform: translateX(-77%);
    }
}

.text-content-box .principle-text {
    color: var(--color-green-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-shadow: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    transition: color 0.3s ease;
}


/* Text visibility */

.principle-block.card-visible .text-content-box .principle-text {
    color: var(--color-gray-dark);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.principle-title {
    cursor: pointer;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-brown-primary);
    margin-bottom: 25px;
    font-family: 'Fredericka the Great', cursive;
    letter-spacing: 1px;
    position: relative;
    z-index: 5;
    transition: opacity 0.3s ease 0.5s;
}


/* Hide titles when cards are visible */

.principle-block.card-visible .principle-title {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease 0s;
}


/* Title positioning */

.mission-block .principle-title,
.lifelong-block .principle-title {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    left: auto;
}


/* Add padding for mobile positioning of Lifelong Love title */

.lifelong-block .principle-content {
    padding-left: 25px;
}


/* Founder Module Styles on Right */

.founder-module__content-wrapper {
    max-width: 700px;
    width: 100%;
    padding: 20px;
}

.founder-module__header {
    text-align: center;
    margin-bottom: 40px;
}

.founder-module__title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-green-primary);
    font-family: 'Fredericka the Great', cursive;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.founder-module__subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-lighter);
    font-style: italic;
}

.founder-module__main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    align-items: start;
}

.founder-module__photo-section {
    position: relative;
}

.founder-module__photo {
    width: 280px;
    height: 520px;
    border-radius: 20px;
    background: var(--color-green-primary-40);
    box-shadow: 0 15px 30px var(--color-black-10);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-module__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.founder-module__quote {
    background: var(--color-white);
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px var(--color-black-12);
    border-left: 5px solid var(--color-green-primary);
    margin-top: 20px;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-gray-light);
    line-height: 1.6;
    font-weight: 500;
}

.founder-module__name-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-on-dark);
    margin-bottom: 8px;
    font-family: 'Times New Roman', serif;
}

.founder-module__credentials {
    color: var(--color-green-primary);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1rem;
}

.founder-module__story-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-medium);
    margin-bottom: 18px;
    font-family: 'Georgia', serif;
}

.founder-module__values {
    background: var(--color-green-primary-40);
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
    border-left: 5px solid var(--color-green-primary);
    width: 100%;
}

.founder-module__values-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-on-dark);
    margin-bottom: 12px;
}

.founder-module__values-text {
    font-size: 0.95rem;
    color: var(--color-gray-light);
    font-style: italic;
    line-height: 1.6;
}


/* Founder Concepts Section  */

.founder-module__concepts {
    margin: 35px 0;
    padding: 30px;
    background: var(--color-bg-white-soft);
    border-left: 4px solid var(--color-green-primary);
    border-radius: 0 20px 20px 0;
    position: relative;
    overflow: hidden;
}

.founder-section .founder-concepts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-green-primary), var(--color-green-primary-30));
}

.founder-module__concepts-text {
    font-family: 'Overlock', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-darkest);
    margin: 0;
}

.founder-module__first-letter {
    float: left;
    font-family: 'Fredericka the Great', cursive;
    font-size: 3.5rem;
    line-height: 0.8;
    margin: 8px 8px 0 0;
    color: var(--color-green-primary);
    font-weight: 400;
}

.founder-module__concepts-text strong {
    color: var(--color-green-primary);
    font-weight: 700;
}

.founder-module__concepts-text em {
    font-style: normal;
    color: var(--color-gray-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--color-green-primary-20);
    padding-bottom: 1px;
}


/* Animations */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Card entrance animations */

.programs-grid .program-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.programs-grid .program-card:nth-child(1) {
    animation-delay: 0.3s;
}

.programs-grid .program-card:nth-child(2) {
    animation-delay: 0.5s;
}

.programs-grid .program-card:nth-child(3) {
    animation-delay: 0.7s;
}

.values-grid .value-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.values-grid .value-item:nth-child(1) {
    animation-delay: 0.4s;
}

.values-grid .value-item:nth-child(2) {
    animation-delay: 0.6s;
}

.values-grid .value-item:nth-child(3) {
    animation-delay: 0.8s;
}

.values-grid .value-item:nth-child(4) {
    animation-delay: 1s;
}


/* Hover state -*/

.values-grid .value-item:hover .value-icon {
    background: linear-gradient(135deg, var(--color-brown-primary), var(--color-brown-tertiary));
}


/* Hover state - card background and text color */

.values-grid .value-item:hover {
    background: var(--color-green-primary-15);
}

.values-grid .value-item:hover p {
    color: var(--color-brown-darker);
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


/* Responsive styles */

@media (max-width: 1200px) {
    .hero-section__content {
        margin: auto;
        min-height: 0;
        width: 100%;
        text-align: center;
    }
    /* Removed smaller clamp here to allow dedicated mobile sizing below */
    .hero-section__bg-image {
        width: 110vw;
        height: 110vh;
        top: -5vh;
        left: -5vw;
    }
    .founder-section {
        border-top: 1px solid var(--color-black-05);
    }
}

@media (max-width: 768px) {
    /* Removed duplicate outlined text override (kept single source earlier) */
    .green-circle {
        width: 300px;
        height: 300px;
    }
    .white-logo-circle {
        width: 200px;
        height: 200px;
    }
    .logo-text {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
    .logo-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    .principles-module {
        padding: 60px 40px;
    }
    .principle-block {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .principle-block:nth-child(even) .principle-content,
    .principle-block:nth-child(even) .principle-visual {
        order: initial;
    }
    /* Reset positioning for mobile - all titles centered */
    .mission-block .principle-title,
    .lifelong-block .principle-title {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        left: auto;
        text-align: center;
    }
    /* Remove mobile padding when not needed */
    .lifelong-block .principle-content {
        padding-left: 0;
    }
    /* Stack Individualized Learning title on mobile */
    .individual-block .principle-title {
        white-space: pre-line;
    }
    .principle-title {
        font-size: 2rem;
    }
    .principle-visual {
        height: 300px;
        font-size: 4rem;
    }
    /* Mobile text boxes behavior */
    .text-content-box {
        position: relative;
        transform: none;
        opacity: 0;
        height: auto;
        padding: 30px;
        margin-top: 20px;
    }
    .principle-block.card-visible .text-content-box {
        opacity: 1;
        transform: none;
    }
    .principle-block:nth-child(even) .text-content-box {
        transform: none;
        padding: 30px;
    }
    .slide-arrow {
        display: none;
    }
    .hero-content {
        padding: 0 1rem;
    }
    .hero-cta {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
    .outlined-text {
        -webkit-text-stroke: 2px white;
        text-stroke: 2px white;
    }
}

@media (max-width: 600px) {
    .principles-module {
        padding: 40px 30px;
    }
    .principle-title {
        font-size: 1.8rem;
    }
    .principle-text {
        font-size: 1rem;
    }
    .principle-visual {
        height: 250px;
        font-size: 3rem;
    }
}


/* Removed experimental commented mobile hero override block (cleaned for clarity) */

@keyframes slideBackgroundOutlined {
    0%,
    100% {
        background-position: 0% 50%;
        background-size: 120% 120%;
        filter: brightness(1.1) contrast(1.1);
    }
    25% {
        background-position: 100% 25%;
        background-size: 130% 130%;
        filter: brightness(1.08) contrast(1.12);
    }
    50% {
        background-position: 50% 100%;
        background-size: 110% 110%;
        filter: brightness(1.13) contrast(1.0);
    }
    75% {
        background-position: 25% 0%;
        background-size: 125% 125%;
        filter: brightness(1.0) contrast(1.13);
    }
}


/* Laura's Story Modal Styles */

.founder-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.founder-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Laura Story Modal Header  */

.founder-modal-content .founder-story-header {
    text-align: center;
    padding: 40px 40px 20px;
    background: linear-gradient(135deg, var(--color-green-primary), var(--color-green-secondary));
    color: var(--color-white);
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    overflow: hidden;
    flex-shrink: 0;
}


/* Laura Story Header Animation */

.founder-modal-content .founder-story-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-white-10) 0%, var(--color-transparent) 70%);
    animation: founder-gentle-rotate 20s ease-in-out infinite;
}

@keyframes founder-gentle-rotate {
    0%,
    100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}


/* Global Fredericka Header Styles */

.fredericka-header-green {
    font-family: 'Fredericka the Great', cursive;
    font-weight: 400;
    color: var(--color-green-primary);
    text-shadow: 1px 1px 2px var(--color-black-20);
    letter-spacing: 1px;
    font-size: 2.5rem;
}

.fredericka-header-brown {
    font-family: 'Fredericka the Great', cursive;
    font-weight: 400;
    color: var(--color-brown-primary);
    text-shadow: 1px 1px 2px var(--color-black-20);
    letter-spacing: 1px;
    font-size: 2.5rem;
}


/* Featured boxes are now in public.css - removed duplicate code */


/* Laura Story Title */

.founder-modal-content .founder-story-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    font-family: 'Fredericka the Great', cursive;
    color: var(--color-brown-primary);
    -webkit-text-stroke: 1px var(--color-white-80);
    text-shadow: 0 2px 4px var(--color-black-30);
    z-index: 1;
}

.founder-modal-content .founder-story-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
    color: var(--color-text-on-dark);
}


/* Make the content area scrollable */

.founder-modal-content .founder-story-content {
    padding: 30px 40px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 140px);
}

.founder-modal-content .founder-story-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-gray-medium);
    margin-bottom: 30px;
    text-align: center;
    font-style: italic;
}

.founder-modal-content {
    background: var(--color-card-bg-solid);
    border-radius: 20px;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}


/* Sticky close button container */

.founder-modal-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    height: 0;
    pointer-events: none;
}

.founder-modal-sticky-header .founder-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    pointer-events: all;
}

.founder-modal-overlay.active .founder-modal-content {
    transform: scale(1);
}

.founder-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: var(--color-white-90);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-gray-lighter);
    z-index: 1000;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.founder-modal-close:hover {
    background: var(--color-red-primary-90);
    color: var(--color-gray-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--color-red-primary-30);
}

.founder-modal-close:active {
    transform: scale(0.95);
}

.founder-story-header {
    text-align: center;
    padding: 40px 40px 20px;
    background: linear-gradient(135deg, var(--color-brown-primary), var(--color-brown-secondary));
    color: var(--color-text-on-dark);
    border-radius: 20px 20px 0 0;
}

.founder-story-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Fredericka the Great', cursive;
}

.founder-story-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
}

.founder-story-content {
    padding: 30px 40px;
}

.founder-story-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-gray-medium);
    margin-bottom: 30px;
    text-align: center;
    font-style: italic;
}

.timeline {
    position: relative;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-green-primary), var(--color-brown-primary));
    border-radius: 2px;
}

.timeline__item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 80px;
}

.timeline__year {
    position: absolute;
    left: 0;
    top: 5px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-brown-primary), var(--color-brown-secondary));
    color: var(--color-gray-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px var(--color-brown-primary-30);
    z-index: 2;
}

.timeline__content {
    background: var(--color-value-card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--color-black-08);
    border-left: 4px solid var(--color-green-primary);
    transition: transform 0.3s ease;
}

.timeline__content:hover {
    transform: translateX(5px);
}

.timeline__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-on-dark);
    margin: 0;
}

.timeline__highlight {
    color: var(--color-brown-primary);
    font-weight: 700;
    background: var(--color-brown-primary-10);
    padding: 2px 6px;
    border-radius: 4px;
}

.timeline__milestone {
    font-weight: 600;
    color: var(--color-green-primary);
}

.founder-story-footer {
    background: var(--color-gray-bg-light);
    padding: 30px 40px;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.founder-footer-text {
    font-size: 1.1rem;
    color: var(--color-text-on-dark);
    margin-bottom: 20px;
    font-style: italic;
}


/* Responsive Modal */

@media (max-width: 768px) {
    .founder-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    .founder-story-header {
        padding: 30px 25px 15px;
    }
    .founder-story-title {
        font-size: 2rem;
    }
    .founder-story-subtitle {
        font-size: 1rem;
    }
    .founder-story-content {
        padding: 20px 25px;
    }
    .timeline__item {
        flex-direction: column;
        text-align: center;
    }
    .timeline__year {
        min-width: auto;
        align-self: center;
    }
}


/* Header */

.header {
    background: var(--color-white-95);
    backdrop-filter: blur(10px);
    color: var(--color-gray-darker);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--color-black-10);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.3rem 2rem 0.3rem 2rem;
    position: relative;
    max-width: 220px;
}


/* Header */

.header {
    background: var(--color-white-95);
    backdrop-filter: blur(10px);
    color: var(--color-gray-darker);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--color-black-10);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.3rem 2rem 0.3rem 2rem;
    position: relative;
    max-width: 220px;
}


/* Background images for carousel */

.hero-section__bg-image:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1587614203976-365c74645e83?w=1200');
}

.hero-section__bg-image:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?w=1200');
}

.hero-section__bg-image:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1581726690015-c9861fa5057f?w=1200');
}


/* CTA Button Icon */

.cta-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.hero-cta:hover .cta-icon {
    transform: translateX(5px);
}


/* Float Animation */


/* Floating elements */

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.floating-shape {
    position: absolute;
    background: var(--color-white-10);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}


/* Additional school module styles */

.school-module .big-typography .highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--color-transparent), var(--color-brown-primary), var(--color-transparent));
    opacity: 0.3;
}

.school-module .founder-highlight {
    background: var(--color-green-primary-40);
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid var(--color-green-primary);
    margin: 30px 0;
    position: relative;
}

.school-module .founder-highlight p {
    color: var(--color-green-primary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.school-module .founder-name {
    font-weight: 700;
    color: var(--color-green-primary);
}


/* Montessori Difference Section */

.school-module .montessori-difference {
    position: relative;
    margin: 40px 0;
    padding: 35px;
    background: linear-gradient(135deg, var(--color-brown-primary-03), var(--color-brown-primary-08));
    border-radius: 25px;
    border: 2px solid var(--color-brown-primary-15);
    overflow: hidden;
}

.school-module .montessori-difference::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-brown-primary-05) 0%, var(--color-transparent) 70%);
    animation: subtle-rotate 20s linear infinite;
}

.school-module .accent-number {
    font-family: 'Overlock', sans-serif;
    font-size: 1.3rem;
    color: var(--color-brown-primary);
    font-weight: 900;
}

.school-module .accent-name {
    font-weight: 600;
    color: var(--color-gray-dark);
    background: linear-gradient(90deg, var(--color-transparent), var(--color-brown-primary-10), var(--color-transparent));
    padding: 0 8px;
    border-radius: 4px;
}


/* Children Concepts Section */

.school-module .children-concepts {
    margin: 35px 0;
    padding: 30px;
    background: var(--color-bg-white-warm);
    border-left: 4px solid var(--color-brown-primary);
    border-radius: 0 20px 20px 0;
    position: relative;
    overflow: hidden;
}

.school-module .children-concepts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-brown-primary), var(--color-brown-primary-30));
}

.school-module .concepts-text {
    font-family: 'Overlock', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-darkest);
    margin: 0 0 15px 0;
}

.school-module .concepts-text:last-child {
    margin-bottom: 0;
}

.school-module .first-letter {
    float: left;
    font-family: 'Fredericka the Great', cursive;
    font-size: 3.5rem;
    line-height: 0.8;
    margin: 8px 8px 0 0;
    color: var(--color-brown-primary);
    font-weight: 400;
}

.school-module .concepts-text strong {
    color: var(--color-brown-primary);
    font-weight: 700;
}

.school-module .concepts-text em {
    font-style: normal;
    color: var(--color-gray-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--color-brown-primary-20);
    padding-bottom: 1px;
}

.school-module .cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-brown-primary), var(--color-brown-secondary));
    color: var(--color-white);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--color-brown-primary-30);
    font-family: 'Overlock', sans-serif;
}

.school-module .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(152, 121, 82, 0.4);
    background: linear-gradient(135deg, var(--color-brown-secondary), var(--color-brown-dark));
}


/* Photo Collage Section */

.school-module .photo-section {
    position: relative;
    perspective: 1000px;
}

.school-module .photo-collage {
    position: relative;
    width: 800px;
    height: 600px;
    transform-style: preserve-3d;
}

.school-module .photo-box {
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease;
    position: absolute;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-style: preserve-3d;
    opacity: 1;
}

.school-module .photo-box.elevated {
    transform: scale(1.05) rotate(2deg) translateZ(120px);
    box-shadow: 0 20px 50px var(--color-black-20);
    z-index: 10;
    animation: fadeUp 0.4s ease-out;
}

.school-module .photo-box.animating-down {
    z-index: 10;
    pointer-events: none;
    animation: fadeDown 0.5s ease-out;
}

.school-module .photo-box.fade-others {
    opacity: 0.4;
    transform: scale(0.98);
    transition-delay: 0.1s;
}

@keyframes fadeUp {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.85;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeDown {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
    100% {
        opacity: 0.7;
    }
}

.school-module .photo-1 {
    width: 320px;
    height: 450px;
    top: 0px;
    left: 0px;
    z-index: 1;
    background-image: url('../Images/Learning.jpg');
}

.school-module .photo-1-duplicate {
    width: 320px;
    height: 450px;
    top: 0px;
    left: 0px;
    z-index: 10;
    background-image: url('../Images/Learning.jpg');
    clip-path: polygon(0% 0%, 68.75% 0%, 68.75% 62%, 100% 62%, 100% 100%, 0% 100%);
}

.school-module .photo-caption {
    position: absolute;
    background: var(--color-white-transparency-80);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-on-dark);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px var(--color-black-20);
    font-family: 'Overlock', sans-serif;
    border: 2px solid var(--color-black-20);
}

.school-module .photo-1 .photo-caption {
    top: 15px;
    left: 15px;
}

.school-module .connector-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--color-transparent), var(--color-brown-primary-20), var(--color-transparent));
    transform-origin: left center;
}

.school-module .line-1 {
    top: 25%;
    left: 45%;
    width: 150px;
    transform: rotate(15deg);
}

.school-module .line-2 {
    bottom: 30%;
    right: 45%;
    width: 120px;
    transform: rotate(-25deg);
}


/* Additional animations */

@keyframes shimmer {
    0%,
    100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-white-10) 0%, var(--color-transparent) 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.grade-offerings {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.grade-bubble {
    background: var(--color-white-20);
    padding: 20px 30px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
}

.grade-bubble:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.grade-age {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.grade-label {
    font-size: 0.9rem;
    opacity: 0.9;
}


/* Program Video Cards */

.card-video {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.program-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-video:hover .program-video {
    transform: scale(1.05);
}

.card-video .card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-gray-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 2;
}

.card-video:hover .card-overlay {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
}


/* Remove old background image styles for programs */

.card-image.early-childhood,
.card-image.elementary,
.card-image.adolescent {
    display: none;
}


/* Values Section Styles */

.values {
    padding: 80px 0;
    background: var(--color-gray-bg);
}

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

.values .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-family: 'Fredericka the Great', cursive;
    color: var(--color-brown-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    background: var(--color-value-card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--color-green-primary), var(--color-green-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: background-color 0.3s ease;
}

.value-item:hover .value-icon {
    background: var(--color-brown-primary);
}


/* Dark mode: Make vectors white on hover for better contrast */

@media (prefers-color-scheme: dark) {
    .value-item:nth-child(2):hover .value-svg,
    .value-item:nth-child(4):hover .value-svg {
        filter: brightness(0) invert(1);
    }
}

body.dark-mode .value-item:nth-child(2):hover .value-svg,
body.dark-mode .value-item:nth-child(4):hover .value-svg {
    filter: brightness(0) invert(1);
}

.value-svg {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text-on-dark);
    font-family: 'Overlock', sans-serif;
    font-weight: 700;
}

.value-item p {
    color: var(--color-text-on-dark);
    line-height: 1.6;
    font-size: 1rem;
}


/* Keep original values section responsive behavior */


/* Announcement banner mobile styles */

.announcement-banner {
    margin: 30px 0;
    padding: 30px 20px;
}

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

.announcement-text {
    font-size: 1.1rem;
}

.grade-offerings {
    gap: 15px;
}

.grade-bubble {
    padding: 15px 20px;
}