<style>
    /* --- LENIS REQUIRED CSS (Fixes mobile scroll getting stuck & desyncs) --- */
    html.lenis, html.lenis body {
        height: auto;
        width: 100%;
    }
    .lenis.lenis-smooth {
        scroll-behavior: auto !important;
    }
    .lenis.lenis-smooth[data-lenis-prevent] {
        overscroll-behavior: contain;
    }
    .lenis.lenis-stopped {
        overflow: hidden !important;
    }
    .lenis.lenis-scrolling iframe {
        pointer-events: none;
    }

    /* --- 1. VARIABLES & RESET (PREMIUM ACADEMIC THEME) --- */
    :root {
        /* CORE PALETTE: BURGUNDY, GOLDEN ORANGE, CREAM */
        --primary: #800000;
        --primary-dark: #4A0404;
        --secondary: #E67E22;
        --accent: #D4AF37;
        --maroon-frame: #800000;
        --text: #2C1E16;
        --text-light: #5A4A42;
        --white: #ffffff;
        --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

        /* BACKGROUND PASTELS -> CREAM & WARM NEUTRALS */
        --bg-cream: #FCFAF5;
        --bg-warm-white: #FFFFFF;
        --bg-soft-beige: #F9F6F0;
        --bg-light-gold: #FDFBF4;
        --bg-rose: #FFF8F5;
        --border-soft: #EAE3D9;

        /* THEME GRADIENTS */
        --grad-primary: linear-gradient(135deg, #800000 0%, #4A0404 100%);
        --grad-warm: linear-gradient(135deg, #D4AF37 0%, #E67E22 100%);
        --grad-cool: linear-gradient(120deg, #FDFBF4 0%, #F9F6F0 100%);
        --grad-royal: linear-gradient(to right, #800000 0%, #B30000 100%);
        --grad-text: -webkit-linear-gradient(45deg, #800000, #E67E22);

        --grad-vibrant-bg: linear-gradient(45deg, rgba(128,0,0,0.8), rgba(230,126,34,0.8));
        --grad-overlay: linear-gradient(180deg, rgba(252,250,245,0) 0%, rgba(252,250,245,0.95) 100%);

        --hero-theme: #800000;

        /* CORNERS & SHADOWS (12-18px range) */
        --radius-md: 16px;
        --radius-lg: 24px;
        --shadow-soft: 0 10px 30px rgba(74, 4, 4, 0.08);
        --shadow-hover: 0 15px 40px rgba(74, 4, 4, 0.15);
        --shadow-card: 0 8px 25px rgba(0, 0, 0, 0.05);
    }

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

    html { scroll-behavior: initial; }

    body {
        font-family: 'Lato', sans-serif;
        background: var(--bg-cream);
        color: var(--text);
        overflow-x: hidden;
        width: 100%;
        line-height: 1.6;
    }

    /* GLOBAL IMAGE FIX: PREVENTS OVERFLOW ON NEW ANDROIDS */
    img { max-width: 100%; height: auto; }

    /* SCROLL PROGRESS BAR */
    #scroll-progress {
        position: fixed; top: 0; left: 0; height: 4px; background: var(--grad-warm);
        width: 0%; z-index: 10001; transition: width 0.1s;
    }

    h1, h2, h3 {
        font-family: 'Cinzel', serif;
        color: var(--primary);
        font-weight: 700;
    }

    .section-title h2 {
        background: var(--grad-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: var(--primary);
    }

    h4, h5 { font-family: 'Lato', sans-serif; font-weight: 700; color: var(--primary-dark); }

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

    /* --- PATTERN CLASSES (ELEGANT WARM DOTS) --- */
    .pattern-dots.hero-pattern, .pattern-dots {
        background-image: radial-gradient(rgba(128, 0, 0, 0.06) 1.5px, transparent 1.5px);
        background-size: 30px 30px;
    }

    .pattern-crosshatch {
        background-image: linear-gradient(45deg, rgba(212, 175, 55, 0.05) 25%, transparent 25%, transparent 50%, rgba(212, 175, 55, 0.05) 50%, rgba(212, 175, 55, 0.05) 75%, transparent 75%, transparent);
        background-size: 20px 20px;
    }

    .pattern-grid-bg {
        background-image:
            linear-gradient(to right, rgba(128, 0, 0, 0.04) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(128, 0, 0, 0.04) 1px, transparent 1px);
        background-size: 40px 40px;
    }

    .pattern-diagonal {
        background-image: repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.05) 0, rgba(212, 175, 55, 0.05) 1px, transparent 0, transparent 50%);
        background-size: 20px 20px;
    }

    /* --- 2. LOADER STYLES --- */
    #loader-container {
        position: fixed;
        inset: 0;
        /* Optimized Background */
        background: linear-gradient(-45deg, #000000, #0A1128);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        padding: 20px;
        overflow: hidden;
    }

    .light-orb {
        width: 4px; height: 4px;
        background: var(--accent);
        border-radius: 50%;
        /* Optimized Box Shadow */
        box-shadow: 0 0 10px 2px rgba(212, 175, 55, 0.8);
        position: absolute;
        opacity: 0;
        animation: cinematicGenesis 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

    .school-name-loader {
        font-family: 'Cinzel', serif;
        font-size: clamp(1.2rem, 4.5vw, 3rem);
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 2px;
        display: flex; justify-content: center; align-items: center;
        margin-bottom: 10px; text-align: center; line-height: 1.4;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
        flex-wrap: wrap; max-width: 90%; gap: 10px;
    }

    /* Optimized text loader */
    .school-name-loader span { opacity: 0; transform: translateY(100%); transition: all 0.8s ease; display: inline-block; }
    .school-name-loader span.reveal { opacity: 1; transform: translateY(0); }
    .loader-word { display: inline-flex; white-space: nowrap; margin: 0 4px; justify-content: center; }

    .line-container { width: 60%; min-width: 200px; height: 2px; position: relative; margin: 15px 0 25px 0; display: flex; justify-content: center; }
    .glowing-line { width: 0%; height: 100%; background: linear-gradient(90deg, transparent, var(--accent), transparent); transition: width 1.5s ease; opacity: 0; }
    .line-flare { position: absolute; top: 50%; width: 60px; height: 4px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 20px 5px var(--accent); opacity: 0; transform: translate(-50%, -50%); }
    .animate-flare { animation: travelFlare 1.8s ease-in-out forwards; }
    .slogan-loader { font-size: clamp(0.8rem, 3vw, 1.1rem); color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 4px; opacity: 0; transform: scale(0.95); transition: 1.2s; text-align: center; padding: 0 10px; }
    .slogan-loader.show { opacity: 1; transform: scale(1); }
    .slogan-loader em { color: var(--accent); font-style: normal; font-weight: bold; }

    @keyframes cinematicGenesis { 0% { opacity:0; transform:scale(0); } 40% { opacity:1; transform:scale(1.5); } 100% { opacity:0; transform:scale(30); } }
    @keyframes travelFlare { 0% { left:0; opacity:0; } 10% { opacity:1; } 90% { opacity:1; } 100% { left:100%; opacity:0; } }

    /* --- 3. NAVIGATION --- */
    header {
        position: fixed;
        top: 0; left: 0; width: 100%;
        background: rgba(252, 250, 245, 0.95);
        backdrop-filter: blur(15px);
        z-index: 1000;
        box-shadow: 0 2px 15px rgba(0,0,0,0.05);
        padding: 0.8rem 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        opacity: 0;
        transition: opacity 1s ease, padding 0.3s;
        border-bottom: 3px solid transparent;
        border-image: var(--grad-warm) 1;
    }
    header.scrolled { padding: 0.5rem 5%; box-shadow: 0 5px 20px rgba(74, 4, 4, 0.1); }

    .logo {
        font-family: 'Cinzel', serif;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary);
        display: flex;
        align-items: center;
        gap: 15px;
        max-width: 60%;
        line-height: 1.2;
    }

    .logo img {
        width: 50px; height: 50px; border-radius: 50%; object-fit: contain;
        border: 2px solid var(--accent); flex-shrink: 0; background: #fff;
    }

    nav ul { display: flex; gap: 2rem; align-items: center; }
    nav a { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-dark); position: relative; }
    nav a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: -5px; left: 0; background: var(--grad-warm); transition: 0.3s; }
    nav a:hover { color: var(--secondary); }
    nav a:hover::after { width: 100%; }

    .contact-btn-nav {
        background: var(--grad-warm); color: #fff; padding: 10px 20px; border-radius: var(--radius-md);
        box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
        border: none;
    }
    .contact-btn-nav:hover { background: var(--secondary); color: #fff; box-shadow: 0 6px 15px rgba(230, 126, 34, 0.4); transform: translateY(-2px); }
    .contact-btn-nav::after { display: none; }
    .mobile-toggle { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

    /* --- NEW HERO ANIMATIONS & EFFECTS --- */
    .vignette {
        position: absolute; inset: 0;
        background: radial-gradient(circle at center, transparent 40%, rgba(26, 54, 93, 0.4) 100%);
        pointer-events: none; z-index: 3;
    }
    /* Optimized animation without blur */
    @keyframes bgFadeZoom {
        0% { opacity: 0; transform: scale(1.1); }
        100% { opacity: 1; transform: scale(1); }
    }
    @keyframes fade { 0% { opacity: 0; } 100% { opacity: 1; } }
    @keyframes riseUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
    @keyframes scaleIn { 0% { opacity: 0; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }

    /* --- GOLDEN GLOW PARTICLES --- */
    .golden-particle {
        position: absolute;
        background: #FFF8D6;
        border-radius: 50%;
        pointer-events: none;
        opacity: 0;
        animation: floatUpParticle linear infinite;
        box-shadow: 0 0 8px 2px rgba(212, 175, 55, 0.8), 0 0 15px 5px rgba(212, 175, 55, 0.4);
        z-index: 10;
    }

    @keyframes floatUpParticle {
        0% { bottom: -10%; transform: translateX(0px) scale(0); opacity: 0; }
        10% { opacity: 0.8; transform: translateX(15px) scale(1); }
        50% { transform: translateX(-15px) scale(1.2); }
        90% { opacity: 0.8; transform: translateX(15px) scale(1); }
        100% { bottom: 110%; transform: translateX(0px) scale(0); opacity: 0; }
    }

    /* Animation delays linked to #hero.active */
    .anim-bg, .anim-heading, .anim-subtext, .anim-buttons, .anim-prestige { opacity: 0; }

    #hero.active .anim-bg, #pu-college-page .anim-bg { animation: bgFadeZoom 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
    #hero.active .anim-heading, #pu-college-page .anim-heading { animation: riseUp 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards; }
    #hero.active .anim-subtext, #pu-college-page .anim-subtext { animation: fade 1.5s ease-in-out 1.2s forwards; }
    #hero.active .anim-buttons, #pu-college-page .anim-buttons { animation: riseUp 1.5s ease-out 1.5s forwards; }
    #hero.active .anim-prestige, #pu-college-page .anim-prestige { animation: fade 1.5s ease-in-out 2.0s forwards; }

    /* --- NEW VALUES SLIDER SECTION --- */
    #values-slider {
        background-color: var(--bg-cream);
        border-bottom: 1px solid var(--border-soft);
    }
    .values-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        max-width: 1200px;
        margin: 0 auto;
        align-items: center;
    }
    .values-img-wrapper {
        position: relative;
        width: 100%;
        height: 500px;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-hover);
        border: 6px solid #fff;
        background: var(--bg-soft-beige);
    }
    .values-img-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 2s ease-in-out, transform 4s ease-in-out;
        transform: scale(1.05);
    }
    .values-img-wrapper img.active {
        opacity: 1;
        transform: scale(1);
    }
    .values-text h2 {
        font-size: 2.6rem;
        color: var(--primary);
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    .values-text h2 span {
        color: var(--secondary);
    }
    .values-text p {
        font-size: 1.1rem;
        color: var(--text-light);
        margin-bottom: 2rem;
        line-height: 1.8;
        text-align: justify;
    }
    .values-list {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }
    .value-item {
        display: flex;
        align-items: center;
        gap: 15px;
        background: #fff;
        padding: 15px 20px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-card);
        border-left: 4px solid var(--accent);
        transition: var(--transition);
    }
    .value-item:hover {
        transform: translateX(10px);
        box-shadow: var(--shadow-hover);
        border-color: var(--primary);
    }
    .value-item i {
        font-size: 1.5rem;
        color: var(--primary);
    }
    .value-item h4 {
        margin: 0;
        font-size: 1.1rem;
        color: var(--primary-dark);
    }

    /* --- STATS SECTION --- */
    .stats-section {
        background: var(--grad-primary); color: #fff; padding: 4rem 5%;
        border-bottom: 5px solid rgba(212, 175, 55, 0.4);
        position: relative; overflow: hidden;
        border-top: 5px solid rgba(212, 175, 55, 0.4);
    }
    .stats-section::before {
        content: ''; position: absolute; top: -50%; left: -10%; width: 500px; height: 500px;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%); border-radius: 50%; pointer-events: none;
    }

    .stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; position: relative; z-index: 2; }
    .stat-item { position: relative; padding: 20px; border: 1px solid rgba(212, 175, 55, 0.2); background: rgba(0,0,0,0.2); backdrop-filter: blur(5px); border-radius: var(--radius-md); transition: 0.3s; }
    .stat-item:hover { background: rgba(0,0,0,0.3); transform: translateY(-5px); border-color: var(--accent); }
    .stat-item h2 { color: var(--accent); font-size: 2.5rem; margin-bottom: 0.5rem; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }
    .stat-item p { font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.9); }

    /* --- NEW SECTION STYLES (COLORIZED) --- */

    /* PROGRAMS OVERVIEW */
    #programs {
        background-color: var(--bg-soft-beige);
        border-top: 1px solid var(--border-soft);
        border-bottom: 1px solid var(--border-soft);
    }

    .programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
    .program-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: var(--transition); border: 2px solid transparent; }
    .program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
    .program-header { background: var(--grad-primary); padding: 25px 20px; color: #fff; text-align: center; position: relative; overflow: hidden; }
    .program-header h3 { color: #ffffff; position: relative; z-index: 2; margin: 0; }
    .program-header::after {
        content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1h2v2H1V1zm4 0h2v2H5V1zm4 0h2v2H9V1z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    }
    .program-body { padding: 30px; text-align: center; background: #fff; }
    .program-body ul { text-align: left; margin: 15px 0; padding-left: 20px; list-style-type: square; color: var(--primary); }
    .program-body li { margin-bottom: 8px; color: var(--text-light); }

    /* ACHIEVEMENTS */
    #achievements {
        background-color: var(--bg-light-gold);
        border-top: 1px solid var(--border-soft);
    }
    .achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
    .achievement-card { display: flex; align-items: center; gap: 15px; background: #fff; padding: 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-card); border-left: 5px solid var(--accent); transition: var(--transition); border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); border-top: 1px solid var(--border-soft); }
    .achievement-card:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); }
    .achievement-icon { font-size: 2rem; color: var(--primary); background: rgba(128,0,0,0.05); padding: 15px; border-radius: var(--radius-md); }

    /* TIMELINE */
    #admission-timeline {
        background-color: var(--bg-cream);
        border-bottom: 1px solid var(--border-soft);
        border-top: 1px solid var(--border-soft);
    }
    .timeline-container { display: flex; justify-content: space-between; max-width: 1000px; margin: 0 auto; position: relative; }
    .timeline-step { flex: 1; text-align: center; position: relative; padding: 0 10px; }
    .timeline-step::after { content: ''; position: absolute; top: 30px; right: -50%; width: 100%; height: 2px; background: var(--border-soft); z-index: -1; }
    .timeline-step:last-child::after { display: none; }
    .step-icon { width: 60px; height: 60px; background: var(--bg-warm-white); color: var(--primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 15px; font-size: 1.5rem; border: 2px solid var(--accent); box-shadow: var(--shadow-card); transition: var(--transition); }
    .timeline-step:hover .step-icon { transform: scale(1.1); background: var(--primary); color: #fff; box-shadow: var(--shadow-hover); border-color: var(--primary); }
    .step-content h4 { color: var(--primary-dark); margin-bottom: 5px; }

    /* FAQ */
    #faq {
        background-color: var(--bg-warm-white);
        border-top: 1px solid var(--border-soft);
    }

    .faq-container { max-width: 800px; margin: 0 auto; }
    .faq-item { border: 1px solid var(--border-soft); margin-bottom: 15px; border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-card); transition: var(--transition); border-left: 4px solid var(--primary); }
    .faq-question { background: var(--bg-cream); padding: 20px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--primary-dark); transition: var(--transition); }
    .faq-question:hover { background: var(--bg-soft-beige); color: var(--primary); }
    .faq-answer { max-height: 0; overflow: hidden; transition: all 0.4s ease; background: #fff; }
    .faq-answer p { padding: 20px 25px; color: var(--text-light); border-top: 1px solid var(--border-soft); }
    .faq-item.active .faq-answer { max-height: 200px; }
    .faq-item.active .faq-question { background: var(--primary); color: #fff; }
    .faq-item.active .faq-question i { transform: rotate(180deg); color: var(--accent); }


    /* --- TOPPERS SECTION --- */
    .toppers-section {
        padding: 5rem 5%;
        background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-soft-beige) 100%);
        position: relative;
        border-bottom: 1px solid var(--border-soft);
        border-top: 1px solid var(--border-soft);
    }

    .toppers-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 3rem; }
    .topper-card {
        background: #fff; border-radius: var(--radius-lg); padding: 2.5rem 1.5rem; text-align: center;
        box-shadow: var(--shadow-card); position: relative; transition: var(--transition);
        border-top: 6px solid var(--accent); overflow: hidden;
        border-left: 1px solid var(--border-soft);
        border-right: 1px solid var(--border-soft);
        border-bottom: 1px solid var(--border-soft);
    }
    .topper-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
    .topper-img {
        width: 130px; height: 130px; margin: 0 auto 1.5rem; border-radius: 50%;
        overflow: hidden; border: 4px solid var(--bg-cream); box-shadow: var(--shadow-card);
        background: var(--bg-soft-beige);
    }
    .topper-img img { width: 100%; height: 100%; object-fit: cover; }
    .topper-info h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--primary); }
    .topper-info p { font-size: 0.9rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; }
    .percent-badge {
        position: absolute; top: -15px; right: -15px;
        background: var(--grad-warm);
        color: #fff; width: 80px; height: 80px; border-radius: 50%;
        display: flex; justify-content: center; align-items: center;
        font-weight: 700; font-size: 1.2rem; border: 4px solid #fff;
        box-shadow: var(--shadow-card); transform: rotate(15deg);
    }

    /* --- UPDATES SECTION --- */
    .updates-section {
        background-color: var(--bg-soft-beige);
        padding: 5rem 5%;
        border-bottom: 1px solid var(--border-soft);
    }
    .updates-container { max-width: 800px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 3rem; }
    .update-box {
        background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 2.5rem;
        box-shadow: var(--shadow-card); height: 420px; overflow: hidden; position: relative;
        border-left: 6px solid var(--primary);
    }
    .update-box h3 { border-bottom: 2px solid var(--border-soft); padding-bottom: 15px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; color: var(--primary-dark); }
    .update-box h3 i { color: var(--accent); }
    .news-list { height: 300px; overflow-y: auto; padding-right: 15px; }
    .news-list::-webkit-scrollbar { width: 6px; }
    .news-list::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 3px; }

    .news-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); display: flex; gap: 15px; }
    .news-date { background: var(--grad-primary); color: #fff; padding: 10px 15px; border-radius: 8px; text-align: center; min-width: 70px; height: fit-content; box-shadow: var(--shadow-card); }
    .news-date span { display: block; font-size: 1.4rem; font-weight: 700; line-height: 1; color: var(--accent); }
    .news-date small { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; }
    .news-content h4 { font-size: 1.1rem; color: var(--primary); margin-bottom: 5px; }
    .news-content p { font-size: 0.95rem; color: var(--text-light); }
    .new-badge { background: var(--secondary); color: white; padding: 3px 8px; font-size: 0.7rem; border-radius: 4px; margin-left: 8px; vertical-align: middle; }

    /* --- ADMISSION & CAREER OVERLAY --- */
    .admission-overlay {
        position: fixed; inset: 0;
        background: rgba(44, 30, 22, 0.85); z-index: 5000;
        display: flex; justify-content: center; align-items: center;
        opacity: 0; pointer-events: none; transition: 0.5s;
        backdrop-filter: blur(5px);
    }
    .admission-overlay.active { opacity: 1; pointer-events: all; }

    .admission-modal-box {
        background: #fff; width: 90%; max-width: 500px;
        padding: 0; border-radius: var(--radius-lg); position: relative;
        box-shadow: var(--shadow-hover);
        overflow: hidden; transform: scale(0.8); transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 4px solid var(--bg-cream);
    }
    .admission-overlay.active .admission-modal-box { transform: scale(1); }

    .modal-banner {
        background: var(--grad-primary); color: white; padding: 30px 20px; text-align: center;
        border-bottom: 4px solid var(--accent);
    }
    .modal-banner h2 { color: var(--accent); font-size: 2rem; margin-bottom: 5px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
    .modal-banner p { font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.9); }

    .modal-body { padding: 30px; text-align: center; background: var(--bg-warm-white); }
    .modal-body p { margin-bottom: 20px; color: var(--text-light); }
    .modal-body ul { text-align: left; margin-bottom: 25px; padding-left: 20px; }
    .modal-body ul li { list-style-type: none; margin-bottom: 10px; color: var(--text); position: relative; }
    .modal-body ul li::before { content: '★'; color: var(--accent); position: absolute; left: -20px; font-size: 0.9rem; }

    .apply-btn {
        background: var(--grad-warm); color: white; padding: 15px 35px; border-radius: 30px; font-weight: 700; text-transform: uppercase; cursor: pointer;
        transition: var(--transition); display: inline-block;
        border: none; box-shadow: var(--shadow-card); letter-spacing: 1px;
    }
    .apply-btn:hover { background: var(--grad-primary); transform: translateY(-3px); box-shadow: var(--shadow-hover); }

    .close-modal {
        position: absolute; top: 15px; right: 20px; color: #fff;
        font-size: 1.5rem; cursor: pointer; opacity: 0.8; transition: var(--transition);
    }
    .close-modal:hover { opacity: 1; transform: rotate(90deg); color: var(--accent); }

    /* --- ADMISSION & CAREER APPLICATION PAGE --- */
    #admission-application-page, #career-application-page {
        position: fixed; inset: 0;
        background: var(--bg-cream); z-index: 9000;
        overflow-y: auto; display: none;
        animation: slideInUp 0.5s ease-out forwards;
    }
    #career-application-page { z-index: 9001; background: var(--bg-soft-beige); }

    @keyframes slideInUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

    .app-page-header {
        background: var(--grad-primary); color: #fff; padding: 1.5rem 5%;
        display: flex; justify-content: space-between; align-items: center;
        box-shadow: var(--shadow-card); position: sticky; top: 0; z-index: 10;
        border-bottom: 4px solid var(--accent);
    }
    .app-page-header h2 { color: var(--accent); font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
    .close-app-page {
        background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
        padding: 10px 25px; border-radius: 30px; color: #fff; cursor: pointer; transition: var(--transition); font-weight: 700;
    }
    .close-app-page:hover { background: var(--accent); border-color: var(--accent); color: var(--primary-dark); }

    .app-form-container {
        max-width: 900px; margin: 3rem auto; padding: 3rem 5%;
        background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover);
        border: 1px solid var(--border-soft); border-top: 6px solid var(--primary);
    }
    .form-section-title { font-size: 1.3rem; color: var(--primary); border-bottom: 2px solid var(--border-soft); padding-bottom: 10px; margin-bottom: 25px; margin-top: 40px; }

    .app-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
    .form-group { margin-bottom: 20px; }
    .form-group label { display: block; font-weight: 700; margin-bottom: 10px; color: var(--text-light); font-size: 0.95rem; }
    .form-group input, .form-group select, .form-group textarea, .form-group .file-upload {
        width: 100%; padding: 15px; border: 1px solid var(--border-soft); border-radius: 8px;
        font-family: 'Lato', sans-serif; transition: var(--transition); background: var(--bg-cream);
        border-left: 4px solid transparent; font-size: 1rem;
    }
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); border-left: 4px solid var(--primary); outline: none; background: #fff; box-shadow: var(--shadow-card); }

    .file-upload { padding: 12px; background: var(--bg-soft-beige); cursor: pointer; }

    .submit-app-btn {
        width: 100%; background: var(--grad-primary); color: #fff; padding: 18px;
        font-size: 1.2rem; font-weight: 700; border: none; border-radius: 8px;
        cursor: pointer; margin-top: 40px; transition: var(--transition);
        box-shadow: var(--shadow-soft); text-transform: uppercase; letter-spacing: 1px;
    }
    .submit-app-btn:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: var(--shadow-hover); }

    /* --- 6. COMMON SECTION STYLES --- */
    section { padding: 6rem 5%; overflow: hidden; position: relative; }
    .section-title { text-align: center; margin-bottom: 4rem; position: relative; display: inline-block; width: 100%; }
    .section-title h2 { font-size: 2.8rem; margin-bottom: 1rem; display: inline-block; padding-bottom: 10px; letter-spacing: 1px; }
    .section-title h2::after { content:''; display: block; width: 80px; height: 4px; background: var(--accent); margin: 15px auto 0; border-radius: 2px; }
    .section-title p { color: var(--text-light); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

    /* --- UPDATED STORYTELLING ANIMATIONS (Optimized) --- */
    .reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
    .reveal-on-scroll.active { opacity: 1; transform: translateY(0); }

    .reveal-on-scroll.active > *:nth-child(1) { transition-delay: 0.1s; }
    .reveal-on-scroll.active > *:nth-child(2) { transition-delay: 0.2s; }
    .reveal-on-scroll.active > *:nth-child(3) { transition-delay: 0.3s; }
    .reveal-on-scroll.active > *:nth-child(4) { transition-delay: 0.4s; }


    /* --- 7. ABOUT & VISION --- */
    #about {
        background-color: var(--bg-warm-white);
        border-bottom: 1px solid var(--border-soft);
    }

    .about-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
    .about-text h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--primary); }
    .about-text p { margin-bottom: 1.2rem; text-align: justify; color: var(--text-light); font-size: 1.05rem; line-height: 1.8; }
    .about-img img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); border: 8px solid var(--bg-cream); }

    .vision-mission-grid { max-width: 1200px; margin: 4rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
    .vm-card {
        padding: 3rem; background: var(--bg-cream); border-top: 5px solid var(--primary); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
        border-bottom: 1px solid var(--border-soft); border-left: 1px solid var(--border-soft); border-right: 1px solid var(--border-soft);
        transition: var(--transition);
    }
    .vm-card:hover { transform: translateY(-8px); border-top-color: var(--accent); box-shadow: var(--shadow-hover); background: #fff; }
    .vm-card h3 { font-size: 1.5rem; margin-bottom: 15px; }

    /* --- 8. PRINCIPAL & FOUNDRESS --- */
    .bg-light { background: var(--bg-soft-beige); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); position: relative; }
    .bg-light::before {
        content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
        background-image: radial-gradient(var(--primary) 0.5px, transparent 0.5px); background-size: 20px 20px; opacity: 0.03; pointer-events: none;
    }

    #principal {
        background: var(--bg-warm-white);
        border-top: 1px solid var(--border-soft);
        border-bottom: 1px solid var(--border-soft);
    }

    .principal-wrapper { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; max-width: 1200px; margin: 0 auto; align-items: center; position: relative; z-index: 1; }
    .principal-img { position: relative; padding: 15px; border: 1px solid var(--border-soft); background: var(--bg-cream); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
    .principal-img img { width: 100%; border-radius: 8px; box-shadow: 8px 8px 0 var(--accent); }
    .principal-text blockquote { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-style: italic; color: var(--primary); border-left: 4px solid var(--accent); padding-left: 25px; margin-bottom: 25px; background: var(--bg-light-gold); padding: 20px; border-radius: 0 12px 12px 0; border: 1px solid var(--border-soft); line-height: 1.8; }
    .principal-text p { margin-bottom: 1.2rem; color: var(--text-light); text-align: justify; font-size: 1.05rem; }
    .signature { margin-top: 25px; font-weight: 700; color: var(--primary); font-size: 1.1rem; }

    .foundress-section { background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-warm-white) 100%); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
    .foundress-content { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; max-width: 1200px; margin: 0 auto; align-items: center; }
    .foundress-text p { margin-bottom: 1.2rem; color: var(--text-light); text-align: justify; font-size: 1.05rem; line-height: 1.8; }
    .foundress-img img { width: 100%; border-radius: 50%; border: 10px solid #fff; box-shadow: 0 0 0 4px var(--accent), var(--shadow-hover); }

    /* --- 9. FACILITIES --- */
    #facilities {
        background-color: var(--bg-soft-beige);
        border-bottom: 1px solid var(--border-soft);
    }
    .facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
    .facility-card {
        background: #fff; padding: 2.5rem 2rem; text-align: center; border-radius: var(--radius-md);
        box-shadow: var(--shadow-card); transition: var(--transition); border-bottom: 4px solid transparent;
        cursor: pointer; border: 1px solid var(--border-soft); overflow: hidden;
    }
    .facility-card:hover { transform: translateY(-8px); border-bottom: 4px solid var(--primary); background: var(--bg-cream); box-shadow: var(--shadow-hover); }
    .facility-card i {
        font-size: 3rem; margin-bottom: 1.5rem; color: var(--accent);
        transition: var(--transition);
    }
    .facility-card:hover i { transform: scale(1.15); color: var(--primary); }
    .facility-card h4 { color: var(--primary-dark); font-size: 1.2rem; }
    .click-info { font-size: 0.85rem; color: var(--text-light); margin-top: 12px; display: block; font-style: italic; opacity: 0.8; }

    .facility-modal {
        position: fixed; inset: 0;
        background: var(--bg-warm-white); z-index: 2000; overflow-y: auto; transform: translateY(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1); padding: 0;
    }
    .facility-modal.active { transform: translateY(0); }

    .modal-header {
        background: var(--grad-primary); color: #fff; padding: 20px 5%;
        display: flex; justify-content: space-between; align-items: center;
        position: sticky; top: 0; z-index: 10; border-bottom: 4px solid var(--accent); box-shadow: var(--shadow-card);
    }
    .modal-header .logo { color: #fff; }
    .modal-back-btn {
        background: transparent; border: 1px solid rgba(255,255,255,0.4);
        color: #fff; padding: 10px 25px; border-radius: 30px;
        cursor: pointer; font-family: 'Lato', sans-serif; font-weight: 700;
        text-transform: uppercase; transition: var(--transition); display: flex; align-items: center; gap: 8px;
    }
    .modal-back-btn:hover { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
    .modal-content { max-width: 1000px; margin: 50px auto; padding: 0 20px; }
    .modal-title { font-size: 2.8rem; color: var(--primary); margin-bottom: 30px; text-align: center; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 10px; width: 100%; }
    .modal-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 25px; margin-bottom: 40px; }
    .modal-img-holder { max-width: 100%; height: 260px; background: var(--bg-soft-beige); border-radius: var(--radius-md); overflow: hidden; position: relative; border: 4px solid #fff; box-shadow: var(--shadow-card); }
    .modal-img-holder img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
    .modal-img-holder:hover img { transform: scale(1.08); }
    .modal-desc {
        font-size: 1.15rem; color: var(--text-light); line-height: 1.9; text-align: justify;
        border-left: 5px solid var(--primary); padding-left: 25px;
        background: var(--bg-cream); padding: 30px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
        border: 1px solid var(--border-soft); box-shadow: var(--shadow-card);
        min-height: 200px; /* Fix Modal Layout Shift */
    }

    /* --- STICKY SOCIAL ICONS --- */
    .sticky-socials {
        position: fixed; right: 0; top: 50%; transform: translateY(-50%);
        z-index: 1100; display: flex; flex-direction: column; gap: 2px;
    }
    .social-link {
        display: flex; justify-content: center; align-items: center; width: 45px; height: 45px;
        background: var(--primary); color: #fff; transition: var(--transition);
        font-size: 1.2rem; border-top-left-radius: 8px; border-bottom-left-radius: 8px;
        border-left: 2px solid var(--accent); position: relative;
    }
    .social-link:hover { width: 60px; background: var(--accent); color: var(--primary-dark); }

    .admission-sticky { background: var(--secondary); color: #fff; border-left: 2px solid var(--primary-dark); }
    .admission-sticky:hover { background: var(--primary); color: #fff; }

    .sticky-text {
        position: absolute; right: 55px; background: var(--secondary); color: #fff;
        padding: 5px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: bold;
        opacity: 0; pointer-events: none; transition: 0.3s; white-space: nowrap;
        box-shadow: var(--shadow-card);
    }
    .admission-sticky:hover .sticky-text { opacity: 1; transform: translateX(-10px); }

    /* --- 10. GALLERY (MODERN SLIDING LAYOUT) --- */
    #gallery {
        background-color: var(--bg-cream);
        border-bottom: 1px solid var(--border-soft);
    }

    .gallery-slider-wrapper {
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
    }

    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 55px;
        height: 55px;
        background: #fff;
        border: 2px solid var(--accent);
        color: var(--primary);
        border-radius: 50%;
        font-size: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: var(--shadow-hover);
        transition: var(--transition);
    }
    .slider-btn:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        transform: translateY(-50%) scale(1.1);
    }
    .slider-btn.prev-btn { left: -25px; }
    .slider-btn.next-btn { right: -25px; }

    .gallery-grid {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding: 20px 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .gallery-grid::-webkit-scrollbar { display: none; }

    .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: var(--radius-md);
        cursor: pointer;
        border: 4px solid #fff;
        box-shadow: var(--shadow-card);
        flex: 0 0 min(100%, 320px);
        height: 400px;
        scroll-snap-align: center;
        opacity: 0;
        animation: fadeScaleIn 0.8s ease-out forwards;
    }
    .gallery-item.wide, .gallery-item.big { flex: 0 0 min(100%, 500px); }
    .gallery-item.tall { height: 400px; }

    @keyframes fadeScaleIn {
        from { opacity: 0; transform: scale(0.9); }
        to { opacity: 1; transform: scale(1); }
    }

    .gallery-item img {
        width: 100%; height: 100%;
        object-fit: cover;
        transition: transform 0.7s ease, filter 0.5s ease;
    }
    .gallery-overlay {
        position: absolute;
        inset: 0;
        padding: 30px;
        background: linear-gradient(to top, rgba(74, 4, 4, 0.95) 0%, rgba(128, 0, 0, 0.4) 50%, transparent 100%);
        color: #fff;
        transform: translateY(100%);
        transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
    }

    .gallery-item:hover img { transform: scale(1.1); filter: brightness(0.8); }
    .gallery-item:hover .gallery-overlay { transform: translateY(0); }
    .gallery-overlay h4 { margin: 0 0 8px 0; font-size: 1.6rem; font-family: 'Cinzel', serif; color: var(--accent); transform: translateY(20px); transition: 0.4s 0.1s; }
    .gallery-overlay p { margin: 0; font-size: 1rem; opacity: 0; transform: translateY(20px); transition: 0.4s 0.2s; }
    .gallery-item:hover .gallery-overlay h4 { transform: translateY(0); }
    .gallery-item:hover .gallery-overlay p { opacity: 1; transform: translateY(0); }

    .gallery-permanent-label {
        position: absolute;
        bottom: 20px;
        left: 20px;
        background: var(--grad-primary);
        color: #fff;
        padding: 8px 18px;
        border-radius: var(--radius-pill);
        font-weight: 700;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        box-shadow: var(--shadow-card);
        z-index: 2;
        transition: opacity 0.4s ease;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    .gallery-item:hover .gallery-permanent-label {
        opacity: 0;
    }

    @media (max-width: 1250px) {
        .slider-btn.prev-btn { left: 10px; }
        .slider-btn.next-btn { right: 10px; }
    }

    @media (max-width: 768px) {
        .gallery-item { flex: 0 0 min(100%, 280px) !important; height: 350px; }
        .gallery-item.wide, .gallery-item.big { flex: 0 0 min(100%, 320px) !important; }
        .slider-btn { width: 45px; height: 45px; font-size: 1.2rem; }
    }

    /* --- 11. TESTIMONIALS --- */
    #testimonials {
        background-color: var(--bg-light-gold);
        border-top: 1px solid var(--border-soft);
        border-bottom: 1px solid var(--border-soft);
    }
    .testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 2.5rem; max-width: 1200px; margin: 0 auto; }
    .testi-card { background: #fff; padding: 2.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-card); position: relative; border: 1px solid var(--border-soft); transition: var(--transition); }
    .testi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
    .testi-card::before { content: '\201C'; font-family: 'Cinzel', serif; font-size: 8rem; color: rgba(212, 175, 55, 0.15); position: absolute; top: -20px; left: 15px; z-index: 0; line-height: 1; }
    .testi-text { position: relative; z-index: 1; font-style: italic; color: var(--text-light); margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.8; }
    .testi-author h5 { color: var(--primary); font-size: 1.1rem; }
    .testi-author span { font-size: 0.85rem; color: var(--accent); font-weight: 700; text-transform: uppercase; }

    /* --- 12. CONTACT & FOOTER --- */
    #contact {
        background: var(--bg-cream);
        border-top: 1px solid var(--border-soft);
    }

    .contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1200px; margin: 0 auto; }
    .contact-form input, .contact-form textarea { width: 100%; padding: 18px; margin-bottom: 1.2rem; border: 1px solid var(--border-soft); border-radius: 8px; font-family: inherit; transition: var(--transition); background: var(--bg-soft-beige); font-size: 1rem; }
    .contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1); }
    .contact-form textarea { height: 160px; resize: none; }
    .contact-form button { width: 100%; padding: 18px; background: var(--grad-primary); color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: var(--transition); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; box-shadow: var(--shadow-card); }
    .contact-form button:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: var(--shadow-hover); }

    .contact-info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; border-bottom: 1px solid var(--border-soft); padding-bottom: 15px; }
    .contact-info-item i { color: var(--accent); font-size: 1.5rem; margin-top: 5px; }
    .contact-info-item h5 { font-size: 1.1rem; margin-bottom: 5px; }
    .contact-info-item p { color: var(--text-light); }

    footer {
        background: var(--grad-primary);
        color: #fff; padding: 5rem 5% 2rem;
        border-top: 5px solid var(--accent);
    }
    .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 4rem; max-width: 1200px; margin: 0 auto 3rem; }
    .footer-col h3 { color: var(--accent); margin-bottom: 1.8rem; font-size: 1.3rem; position: relative; display: inline-block; padding-bottom: 10px; }
    .footer-col h3::after { content:''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: #fff; border-radius: 2px; }
    .footer-col ul li { margin-bottom: 12px; }
    .footer-col ul li a { color: rgba(255,255,255,0.8); transition: var(--transition); }
    .footer-col ul li a:hover { color: var(--accent); padding-left: 8px; }
    .footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; color: rgba(255,255,255,0.6); font-size: 0.95rem; }

    /* --- 13. MORELLO KINDERGARTEN (MINI WEBSITE) --- */
    #morello-kindergarten-page {
        position: fixed; inset: 0;
        background: var(--bg-cream); z-index: 7000; overflow-y: auto; display: none;
        font-family: 'Quicksand', sans-serif; animation: zoomIn 0.4s ease-out forwards;
    }
    @keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

    :root {
        --kg-primary: #800000;
        --kg-secondary: #E67E22;
        --kg-yellow: #D4AF37;
        --kg-text: #2C1E16;
    }

    .kg-header { background: #fff; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-card); position: sticky; top: 0; z-index: 100; border-bottom: 4px solid var(--kg-primary); }
    .kg-logo { font-family: 'Fredoka One', cursive; font-size: 1.8rem; color: var(--kg-primary); display: flex; align-items: center; gap: 12px; }
    .kg-back-btn { background: var(--kg-primary); color: #fff; border: none; padding: 12px 30px; border-radius: 30px; font-weight: 700; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-card); }
    .kg-back-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); background: var(--primary-dark); }

    .kg-hero {
        background: linear-gradient(180deg, var(--bg-soft-beige) 0%, var(--bg-cream) 100%);
        background-image: radial-gradient(rgba(212, 175, 55, 0.1) 15%, transparent 16%), radial-gradient(rgba(128, 0, 0, 0.05) 15%, transparent 16%);
        background-size: 60px 60px;
        background-position: 0 0, 30px 30px;
        opacity: 0.95;
        padding: 5rem 5%; text-align: center; position: relative;
    }

    .kg-hero h1 { font-family: 'Fredoka One', cursive; font-size: 3.8rem; color: var(--kg-primary); margin-bottom: 20px; text-shadow: 2px 2px 0 var(--bg-cream); }
    .kg-hero p { font-size: 1.4rem; color: var(--kg-text); max-width: 750px; margin: 0 auto 40px; background: rgba(255,255,255,0.9); padding: 20px; border-radius: var(--radius-md); border: 2px solid var(--border-soft); box-shadow: var(--shadow-card); }
    .kg-hero-img { max-width: 850px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-hover); }
    .kg-hero-img img { width: 100%; display: block; }
    .kg-section { padding: 5rem 5%; }
    .kg-title { text-align: center; margin-bottom: 4rem; }
    .kg-title h2 { font-family: 'Fredoka One', cursive; font-size: 2.8rem; color: var(--kg-secondary); margin-bottom: 15px; border-bottom: 4px solid var(--kg-yellow); display: inline-block; padding-bottom: 10px; }
    .kg-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 1100px; margin: 0 auto; }
    .kg-card { background: #fff; border-radius: var(--radius-lg); padding: 3rem 2rem; text-align: center; transition: var(--transition); border-bottom: 6px solid var(--kg-yellow); box-shadow: var(--shadow-card); border: 1px solid var(--border-soft); }
    .kg-card:hover { transform: translateY(-10px); border-color: var(--kg-primary); box-shadow: var(--shadow-hover); }
    .kg-card i { font-size: 3.5rem; color: var(--kg-primary); margin-bottom: 1.5rem; }
    .kg-card h3 { font-size: 1.6rem; margin-bottom: 15px; font-family: 'Fredoka One', cursive; color: var(--kg-text); }
    .kg-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
    .kg-img-box { height: 220px; border-radius: var(--radius-md); overflow: hidden; position: relative; border: 4px solid #fff; box-shadow: var(--shadow-card); }
    .kg-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
    .kg-img-box:hover img { transform: scale(1.08); }
    .kg-footer { background: var(--grad-primary); color: #fff; text-align: center; padding: 3rem; margin-top: 3rem; border-top: 8px solid var(--kg-yellow); }

    /* --- 14. PU COLLEGE PAGE (MINI WEBSITE) --- */
    #pu-college-page {
        position: fixed; inset: 0;
        background: var(--bg-cream); z-index: 7001; overflow-y: auto; display: none;
        font-family: 'Merriweather', serif; animation: zoomIn 0.4s ease-out forwards;
    }

    :root {
        --pu-primary: #4A0404;
        --pu-secondary: #D4AF37;
        --pu-accent: #E67E22;
        --pu-text: #2C1E16;
    }

    .pu-header {
        background: #fff; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center;
        box-shadow: var(--shadow-card); position: sticky; top: 0; z-index: 100;
        border-bottom: 4px solid var(--pu-primary);
    }
    .pu-logo { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--pu-primary); font-weight: 700; display: flex; gap: 12px; align-items: center; }
    .pu-back-btn {
        background: var(--pu-primary); color: #fff; border: 2px solid var(--pu-primary); padding: 10px 30px;
        border-radius: 8px; font-weight: 700; cursor: pointer; transition: var(--transition); font-family: 'Lato', sans-serif;
    }
    .pu-back-btn:hover { background: #fff; color: var(--pu-primary); }

    /* ENHANCED PU HERO FOR FULL SCREEN DESKTOP */
    .pu-hero {
        background-color: var(--pu-primary);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 100vh;
    }

    .pu-badge {
        display: inline-block; background: var(--pu-secondary); color: var(--pu-primary); padding: 12px 30px;
        border-radius: 30px; font-weight: 700; text-transform: uppercase; animation: pulse 2s infinite; font-family: 'Lato', sans-serif; box-shadow: var(--shadow-card);
    }
    @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

    .pu-section { padding: 5rem 5%; max-width: 1200px; margin: 0 auto; }
    .pu-title { text-align: center; margin-bottom: 4rem; }
    .pu-title h2 { color: var(--pu-primary); font-size: 2.5rem; display: inline-block; border-bottom: 3px solid var(--pu-secondary); padding-bottom: 10px; font-family: 'Cinzel', serif; }

    .pu-streams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2.5rem; }
    .stream-card {
        background: #fff; padding: 2.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-card);
        border-top: 6px solid var(--pu-secondary); text-align: center; transition: var(--transition); border: 1px solid var(--border-soft);
    }
    .stream-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--pu-primary); }
    .stream-icon { font-size: 3rem; color: var(--pu-primary); margin-bottom: 20px; }
    .stream-card h3 { color: var(--pu-primary); margin-bottom: 20px; font-family: 'Cinzel', serif; font-size: 1.6rem; }
    .stream-list { list-style: none; padding: 0; text-align: left; margin-left: 25px; }
    .stream-list li { margin-bottom: 10px; font-family: 'Lato', sans-serif; position: relative; padding-left: 25px; color: var(--pu-text); font-size: 1.05rem; }
    .stream-list li::before { content: '✓'; color: var(--pu-accent); position: absolute; left: 0; font-weight: bold; }

    .pu-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2rem; }
    .feat-item { display: flex; align-items: center; gap: 15px; background: #fff; padding: 20px; border-radius: var(--radius-md); border-left: 4px solid var(--pu-primary); box-shadow: var(--shadow-card); border: 1px solid var(--border-soft); }
    .feat-item i { color: var(--pu-secondary); font-size: 1.2rem; }
    .feat-item span { font-family: 'Lato', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--pu-text); }

    .pu-about { background: var(--bg-soft-beige); border-radius: var(--radius-lg); padding: 4rem; text-align: center; margin-bottom: 5rem; border: 1px solid var(--border-soft); box-shadow: var(--shadow-card); }
    .pu-about p { max-width: 850px; margin: 0 auto; font-size: 1.15rem; line-height: 1.9; color: var(--text-light); }

    .pu-principal-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: center; background: #fff; padding: 3rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); border-left: 6px solid var(--pu-secondary); border: 1px solid var(--border-soft); }
    .pu-principal-img img { width: 100%; border-radius: 8px; box-shadow: 8px 8px 0 var(--pu-primary); border: 1px solid var(--border-soft); }
    .pu-quote { font-family: 'Cinzel', serif; color: var(--pu-primary); font-size: 1.2rem; margin-bottom: 20px; font-style: italic; background: var(--bg-light-gold); padding: 25px; border-radius: 8px; border-left: 4px solid var(--pu-secondary); line-height: 1.8; }

    .pu-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 2rem; }
    .pu-img-card { height: 220px; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-card); border: 3px solid #fff; }
    .pu-img-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
    .pu-img-card:hover img { transform: scale(1.08); }

    .pu-footer { background: var(--pu-primary); color: #fff; padding: 4rem 5% 2rem; text-align: center; font-family: 'Lato', sans-serif; border-top: 5px solid var(--pu-secondary); }
    .pu-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 3rem; max-width: 1100px; margin: 0 auto; text-align: left; }
    .pu-contact-box h4 { color: var(--pu-secondary); margin-bottom: 20px; text-transform: uppercase; font-size: 1.1rem; letter-spacing: 1px; }
    .pu-contact-box p { margin-bottom: 12px; font-size: 1.05rem; color: rgba(255,255,255,0.8); }
    .pu-contact-box i { width: 25px; margin-right: 10px; color: var(--pu-secondary); }


    /* --- CUSTOM TOAST NOTIFICATION --- */
    #toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 10000; }
    .toast {
        background: #fff; border-left: 5px solid var(--primary);
        padding: 20px 30px; margin-top: 15px;
        border-radius: 8px; box-shadow: var(--shadow-hover);
        display: flex; align-items: center; gap: 15px;
        transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        max-width: 350px; border: 1px solid var(--border-soft);
    }
    .toast.show { transform: translateX(0); }
    .toast.success { border-left-color: var(--secondary); }
    .toast i { font-size: 1.5rem; }
    .toast.success i { color: var(--secondary); }
    .toast-msg { font-size: 1rem; color: var(--text); font-weight: 700; }

    /* --- RESPONSIVE MOBILE STYLES --- */
    @media (max-width: 992px) {
        section { padding: 4rem 5%; }
        .section-title h2 { font-size: 2.2rem; }
        header { padding: 15px 5%; }
        .logo { font-size: 0.9rem; line-height: 1.3; max-width: 75%; text-align: left; }
        .logo img { width: 45px; height: 45px; }
        .mobile-toggle { display: block; z-index: 1002; }
        nav ul {
            position: fixed; top: 0; right: -100%; width: 85%; height: 100vh;
            background: var(--bg-cream); flex-direction: column; justify-content: center;
            align-items: center; transition: 0.4s;
            box-shadow: -5px 0 25px rgba(0,0,0,0.1);
            border-left: 5px solid var(--primary);
            z-index: 1001;
        }
        nav ul.active { right: 0; }
        nav li { margin: 20px 0; }

        .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
        .stat-item h2 { font-size: 2rem; }
        .about-container, .principal-wrapper, .foundress-content, .contact-container, .vision-mission-grid, .updates-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
        .principal-wrapper { display: flex; flex-direction: column; }
        .principal-img { order: 1; margin-bottom: 20px; width: 85%; margin-inline: auto; }
        .principal-text { order: 2; }
        .foundress-content { display: flex; flex-direction: column-reverse; }
        .foundress-img { width: 65%; margin: 0 auto 20px; }
        .app-form-grid { grid-template-columns: 1fr; }
        .modal-content { padding: 0 15px; margin: 80px auto 30px; }
        .modal-gallery { grid-template-columns: 1fr; }
        .admission-modal-box { width: 95%; }
        .kg-features { grid-template-columns: 1fr; }
        .kg-hero h1 { font-size: 2.5rem; }
        .kg-header { flex-direction: column; gap: 15px; }
        .updates-container { grid-template-columns: 1fr; }
        .update-box { height: auto; min-height: 380px; }
        .footer-grid { text-align: center; gap: 2.5rem; }
        .footer-col h3::after { left: 50%; transform: translateX(-50%); }

        .sticky-socials { transform: translateY(-50%) scale(0.85); right: -5px; }
        .social-link:hover { width: 45px; }

        .programs-grid { grid-template-columns: 1fr; }
        .timeline-container { flex-direction: column; gap: 30px; }
        .timeline-step::after { display: none; }

        .pu-contact-grid { grid-template-columns: 1fr; text-align: center; }
        .pu-header { flex-direction: column; gap: 15px; }
        .pu-principal-grid { grid-template-columns: 1fr; text-align: center; }
        .pu-principal-img { max-width: 85%; margin: 0 auto 20px; }

        /* Mobile adjustment for new values slider */
        .values-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
        .values-img-wrapper { height: 400px; }
        .value-item { text-align: left; }
    }

    @media (max-width: 480px) {
        .main-title { font-size: 2.2rem; }
        .school-name-loader { font-size: 1.1rem; letter-spacing: 1px; margin-top: 10px; }
        .values-img-wrapper { height: 300px; }
    }

    /* 💎 OVERRIDE VARIABLES FOR PREMIUM SOFTNESS 💎 */
    :root {
        --radius-md: 24px;
        --radius-lg: 32px;
        --radius-pill: 50px;
        --shadow-soft: 0 15px 40px rgba(128, 0, 0, 0.05);
        --shadow-hover: 0 25px 50px rgba(128, 0, 0, 0.12);
        --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.04);
    }

    /* 💎 1. FLOATING HEADER & PREMIUM PILL BUTTONS 💎 */
    header {
        width: calc(100% - 40px) !important;
        margin: 15px 20px 0 !important;
        left: 0 !important;
        border-radius: var(--radius-pill) !important;
        background: rgba(252, 250, 245, 0.85) !important;
        box-shadow: var(--shadow-card) !important;
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
    }

    header.scrolled {
        margin-top: 10px !important;
        background: rgba(252, 250, 245, 0.98) !important;
        box-shadow: var(--shadow-soft) !important;
    }

    .btn-hero-dark, .btn-hero-orange, .contact-btn-nav, .submit-app-btn, .apply-btn,
    .kg-back-btn, .pu-back-btn, .modal-back-btn, .contact-form button {
        border-radius: var(--radius-pill) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    /* Adjust specific buttons for perfect pill proportion */
    .btn-hero-orange { padding: 12px 40px !important; }
    .apply-btn { padding: 18px 45px !important; }

    /* 💎 2. PREMIUM CURVED SECTION EDGES (ISLAND LAYOUT) 💎 */
    #hero {
        border-bottom-left-radius: 80px !important;
        border-bottom-right-radius: 80px !important;
        box-shadow: var(--shadow-soft) !important;
        position: relative;
        z-index: 2;
        overflow: hidden !important; /* CRITICAL FIX: Forces smooth clipping across all Windows scaling settings */
    }

    /* Apply smooth curved edges to all major sections */
    #values-slider, .stats-section, #programs, .toppers-section, #achievements,
    .updates-section, #about, #principal, .foundress-section, #admission-timeline,
    #facilities, #gallery, #faq, #testimonials, #contact {
        border-radius: 60px !important;
        margin: 25px 20px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
    }

    footer {
        border-top-left-radius: 80px !important;
        border-top-right-radius: 80px !important;
        margin-top: 25px !important;
    }

    /* 💎 3. SUBTLE CARD ELEVATION & SOFTNESS 💎 */
    .feature-box, .program-card, .achievement-card, .faq-item, .topper-card,
    .update-box, .facility-card, .testi-card, .vm-card, .stream-card, .kg-card,
    .app-form-container, .contact-container > div {
        border-radius: var(--radius-lg) !important;
        box-shadow: var(--shadow-card) !important;
        border: 1px solid rgba(255, 255, 255, 0.9) !important;
        /* Optimized glassy replacement without heavy blur */
        background: rgba(255, 255, 255, 0.95) !important;
        transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    }

    /* Remove sharp boxy borders from existing cards */
    .achievement-card { border-left: 6px solid var(--accent) !important; border-right: none !important; border-top: none !important; border-bottom: none !important;}
    .topper-card { border-top: 6px solid var(--accent) !important; border-left: none !important; border-right: none !important; border-bottom: none !important; }
    .update-box { border-left: 6px solid var(--primary) !important; }
    .stream-card { border-top: 6px solid var(--pu-secondary) !important; }

    /* Beautiful Hover Elevation */
    .feature-box:hover, .program-card:hover, .achievement-card:hover, .topper-card:hover,
    .update-box:hover, .facility-card:hover, .testi-card:hover, .vm-card:hover,
    .stream-card:hover, .kg-card:hover {
        transform: translateY(-12px) scale(1.01) !important;
        box-shadow: var(--shadow-hover) !important;
        background: rgba(255, 255, 255, 1) !important;
        border: 1px solid #fff !important;
    }

    /* Inner images & form inputs get soft curves */
    .topper-img, .kg-img-box, .pu-img-card, .modal-img-holder,
    .principal-img, .about-img img {
        border-radius: var(--radius-md) !important;
        border: 4px solid #fff !important;
    }

    .gallery-item {
        border-radius: 28px !important;
        border: 2px solid rgba(255,255,255,0.5) !important;
        box-shadow: var(--shadow-card) !important;
    }

    .contact-form input, .contact-form textarea, .form-group input, .form-group select, .form-group textarea {
        border-radius: 16px !important;
        border: 1px solid rgba(0,0,0,0.06) !important;
        background: rgba(255, 255, 255, 0.6) !important;
    }

    /* Specific Object Fit Overrides to maintain aspect ratios */
    .topper-img img, .kg-img-box img, .pu-img-card img, .modal-img-holder img,
    .principal-img img, .about-img img { object-fit: cover; }
    .pu-hero img.object-contain { object-fit: contain !important; }

    /* 💎 4. 5 BLENDED BACKGROUND IMAGES 💎 */
    /* Optimized standard overlays */
    #programs {
        background-image:
            linear-gradient(120deg, rgba(249, 246, 240, 0.95) 0%, rgba(253, 251, 244, 0.85) 100%),
            url('https://images.unsplash.com/photo-1497633762265-9d179a990aa6?q=80&w=2000&auto=format&fit=crop') !important;
        background-size: cover !important;
        background-position: center !important;
    }

    #about {
        background-image:
            linear-gradient(to right, rgba(255, 255, 255, 0.98) 30%, rgba(255, 255, 255, 0.8) 100%),
            url('https://images.unsplash.com/photo-1577896851231-70ef18881754?q=80&w=2000&auto=format&fit=crop') !important;
        background-size: cover !important;
        background-position: center 20% !important;
    }

    /* 💎 MOBILE CURVE ADJUSTMENTS & IOS SCROLL LAG FIXES 💎 */
    @media (max-width: 992px) {
        #hero { border-bottom-left-radius: 45px !important; border-bottom-right-radius: 45px !important; }
        footer { border-top-left-radius: 45px !important; border-top-right-radius: 45px !important; }
        header {
            width: calc(100% - 20px) !important;
            margin: 10px 10px 0 !important;
            border-radius: 30px !important;
        }
        #values-slider, .stats-section, #programs, .toppers-section, #achievements,
        .updates-section, #about, #principal, .foundress-section, #admission-timeline,
        #facilities, #gallery, #faq, #testimonials, #contact {
            border-radius: 40px !important;
            margin: 15px 10px !important;
        }
    }

    /* --- HIDE UGLY SCROLLBARS FOR MODALS & SUB-PAGES --- */
    #morello-kindergarten-page::-webkit-scrollbar,
    #pu-college-page::-webkit-scrollbar,
    #admission-application-page::-webkit-scrollbar,
    #career-application-page::-webkit-scrollbar,
    #facilityModal::-webkit-scrollbar {
        display: none;
    }

    #morello-kindergarten-page,
    #pu-college-page,
    #admission-application-page,
    #career-application-page,
    #facilityModal {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
        overscroll-behavior: contain;
    }

    /* --- HERO SECTION CSS --- */
    .hero {
        position: relative;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        display: grid;
        place-items: center;
        text-align: center;
        background: #0d1b3e;
        overflow: hidden;
    }

    .hero-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(13, 27, 62, 0.55),
            rgba(13, 27, 62, 0.85)
        );
    }

    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 900px;
        padding: 20px;
        color: #ffffff;
    }

    .hero-content h1 {
        font-family: 'Cinzel', serif;
        font-size: clamp(2.2rem, 5vw, 4rem);
        font-weight: 700;
        margin: 0;
    }

    .hero-content h1 span {
        color: #d4af37;
    }

    .hero-content p {
        margin-top: 20px;
        font-size: clamp(1rem, 2vw, 1.2rem);
        opacity: 0.9;
        font-family: 'Montserrat', sans-serif;
        line-height: 1.6;
    }

    .hero-btn {
        display: inline-block;
        margin-top: 30px;
        padding: 14px 32px;
        background: #d4af37;
        color: #000;
        text-decoration: none;
        border-radius: 40px;
        font-weight: 600;
        transition: all 0.3s ease;
        font-family: 'Montserrat', sans-serif;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.9rem;
    }

    .hero-btn:hover {
        background: #f5d76e;
        transform: scale(1.05);
    }
</style>
