/* Base Reset & Variables */
        :root {
            --primary-blue: #008cd6;
            --dark-blue: #004d80;
            --accent-yellow: #f1c40f;
            --text-dark: #444444;
            --text-muted: #666666;
            --light-bg: #f9f9f9;
            --nav-blue: #008cd6;
            --dropdown-bg: #1c52a3;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            scroll-snap-type: y mandatory;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--text-dark);
            line-height: 1.6;
            background-color: #ffffff;
            overflow-x: hidden;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .snap-section {
            scroll-snap-align: start;
            scroll-snap-stop: always;
            scroll-margin-top: 55px; 
        }

        /* --- GRADIENT SECTION PANELS --- */
        .showcase-background-section {
            background: linear-gradient(to bottom, #1196dd 0%, #a2d240 100%);
            padding: 60px 0;
        }

        .dual-card-grid {
            display: grid;
            grid-template-columns: 0.7fr 1.3fr;
            gap: 30px;
            align-items: stretch;
            margin-bottom: 40px;
        }

        .dual-card-grid.reverse-ratio {
            grid-template-columns: 1.2fr 0.8fr;
        }

        /* CARD HEIGHT FIXED: Scaled down base card minimum parameters */
        .white-display-card {
            background: #ffffff;
            padding: 25px 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            text-align: center;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            border-radius: 2px;
            position: relative;
            min-height: 380px;
        }

        .card-icon {
            font-size: 26px;
            color: var(--primary-blue);
            margin-bottom: 5px;
        }

        .white-display-card h3 {
            font-family: 'Poppins', sans-serif;
            font-size: 20px;
            font-weight: 500;
            color: #222222;
            margin-bottom: 2px;
        }

        .card-title-divider {
            width: 60%;
            height: 1px;
            background: #e5e5e5;
            margin: 8px 0 15px 0;
            position: relative;
        }
        .card-title-divider::after {
            content: '';
            position: absolute;
            width: 35px;
            height: 1px;
            background: var(--primary-blue);
            top: 0;
            left: 50%;
            transform: translateX(-50%);
        }

        .card-center-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 100%;
            margin-bottom: 15px;
        }

        /* Birthday Box Styles */
        .birthday-date-header {
            color: #b05d5d;
            font-size: 15px;
            font-weight: 500;
            margin-top: -5px;
            margin-bottom: 15px;
        }

        .birthday-student-wrapper {
            position: relative;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .birthday-student-portrait {
            width: 115px;
            height: 135px;
            object-fit: cover;
            border: 2px solid #ff4d4d;
            margin-bottom: 12px;
            z-index: 2;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .balloon-graphic-left, .balloon-graphic-right {
            position: absolute;
            width: 85px;
            bottom: -15px;
            z-index: 1;
        }
        .balloon-graphic-left { left: -25px; }
        .balloon-graphic-right { right: -25px; }

        .birthday-student-name {
            font-size: 13.5px;
            font-weight: 600;
            color: #222222;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .birthday-student-class {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
        }

        .birthday-fade-wrapper {
            opacity: 1;
            transition: opacity 0.4s ease-in-out;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .birthday-fade-wrapper.fade-out {
            opacity: 0;
        }

        /* Gallery/Slider Box Style Rules */
        .gallery-event-title {
            color: #b05d5d;
            font-size: 15px;
            font-weight: 500;
            min-height: 22px;
        }

        .gallery-event-meta {
            font-size: 13px;
            color: #333333;
            font-weight: 600;
            margin-bottom: 20px;
            min-height: 20px;
        }

        .gallery-slider-viewport {
            position: relative;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 45px;
        }

        .gallery-images-row {
            display: block;
            width: 100%;
            overflow: hidden;
            position: relative;
        }

        .gallery-fade-wrapper {
            opacity: 1;
            transition: opacity 0.4s ease-in-out;
            width: 100%;
        }

        .gallery-fade-wrapper.fade-out {
            opacity: 0;
        }

        .gallery-photo-item {
            width: 100%;
            height: 240px;
            object-fit: cover;
            border: 1px solid #eeeeee;
            box-shadow: 0 4px 10px rgba(0,0,0,0.06);
            margin: 0 auto;
        }

        .card-slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: #444444;
            color: #ffffff;
            border: none;
            width: 36px;
            height: 44px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: background 0.2s;
            z-index: 10;
        }
        .card-slider-arrow:hover { background: var(--primary-blue); }
        .card-slider-arrow.left-arrow { left: -5px; }
        .card-slider-arrow.right-arrow { right: -5px; }

        .btn-card-action {
            display: inline-block;
            background-color: var(--primary-blue);
            color: #ffffff;
            padding: 8px 24px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 400;
            transition: background 0.3s ease;
            border: none;
            cursor: pointer;
            white-space: nowrap;
        }
        .btn-card-action:hover { background-color: var(--dark-blue); }

        /* SCALED IMAGE: Re-proportioned smaller layout specs */
        .achievement-display-img { 
            width: 100%; 
            max-width: 280px; 
            height: 180px; 
            object-fit: cover; 
            border: 1px solid #eeeeee; 
            margin: 0 auto 10px auto; 
        }

        .inner-slider-btn { 
            position: absolute; 
            top: 40%; 
            transform: translateY(-50%); 
            background: #444444; 
            color: #ffffff; 
            border: none; 
            width: 32px; 
            height: 40px; 
            cursor: pointer; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            font-size: 14px; 
            transition: background 0.2s; 
            z-index: 10; 
        }
        .inner-slider-btn:hover { background: var(--primary-blue); }
        .inner-slider-btn.left-nav { left: -30px; }
        .inner-slider-btn.right-nav { right: -30px; }

        /* --- FOOTER GRADIENT MODULES --- */
        .footer-utility-gradient-panel {
            background: linear-gradient(to bottom, #1196dd 0%, #a2d240 100%);
            padding: 50px 0 20px 0;
            text-align: center;
        }

        .quick-utility-menu-row {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 60px;
            flex-wrap: wrap;
            margin-bottom: 50px;
        }

        .utility-menu-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #ffffff;
            transition: transform 0.2s ease;
        }

        .utility-menu-item:hover {
            transform: translateY(-3px);
        }

        .utility-menu-item i {
            font-size: 38px;
            color: #ffffff;
            margin-bottom: 12px;
        }
        
        .utility-menu-item span {
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0.5px;
        }

        .footer-credits-text-box {
            color: #ffffff;
            font-size: 13px;
            font-weight: 400;
            line-height: 1.8;
            letter-spacing: 0.3px;
        }

        .btn-more {
            display: inline-block;
            background-color: var(--primary-blue);
            color: #fff;
            padding: 8px 24px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: background 0.3s ease;
            text-transform: uppercase;
            border: none;
            cursor: pointer;
        }
        .btn-more:hover { background-color: var(--dark-blue); }

        section { padding: 60px 0; text-align: center; }

        .hero-header {
            background: linear-gradient(to bottom, #1196dd 0%, #f6d365 100%);
            padding: 40px 0;
            color: white;
            text-align: center;
        }

        .header-top-layout {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .portrait-box { width: 200px; text-align: center; }
        .portrait-box p {
            font-size: 12px;
            font-weight: 300;
            line-height: 1.4;
            color: #fff;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }

        .center-branding {
            flex: 1;
            max-width: 500px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .school-logo { width: 500px; margin-bottom: 10px; }

        .hero-nav { width: 100%; display: flex; flex-direction: column; gap: 8px; }
        .hero-nav a {
            color: white;
            text-decoration: none;
            padding: 12px 16px;
            font-size: 13.5px;
            font-weight: 600;
            text-transform: uppercase;
            border-radius: 4px;
            border: 1px solid rgba(255,255,255,0.3);
            box-shadow: 0 3px 6px rgba(0,0,0,0.1);
            animation: flashButtonColor 3s infinite ease-in-out;
        }
        
        .hero-nav a:nth-child(2) { animation-delay: 0.5s; }
        .hero-nav a:nth-child(3) { animation-delay: 1.0s; }
        .hero-nav a:nth-child(4) { animation-delay: 1.5s; }
        .hero-nav a:nth-child(5) { animation-delay: 2.0s; }
        .hero-nav a:nth-child(6) { animation-delay: 2.5s; }

        .hero-nav a:hover { 
            animation-play-state: paused; 
            background-color: var(--dark-blue) !important;
            color: var(--accent-yellow);
        }

        @keyframes flashButtonColor {
            0%, 100% { background-color: var(--primary-blue); }
            50% { background-color: #d92323; }
        }

        

        .main-banner-container {
            background: #fff;
            padding: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border-radius: 4px;
            margin-top: 30px;
        }

        /* --- BANNER EVENT SLIDER --- */
        .event-slider-wrapper {
            position: relative;
            width: 100%;
            height: 460px;
            overflow: hidden;
            background-color: #000;
            border: 4px solid #ffffff;
        }

        .event-slides-container { width: 100%; height: 100%; position: relative; }
        .event-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
            z-index: 1;
        }

        .event-slide.active { opacity: 1; visibility: visible; z-index: 2; }
        .event-slide img { width: 100%; height: 100%; object-fit: cover; }

        .event-title-overlay {
            position: absolute;
            top: 5%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: black;
            font-family: 'Cinzel', serif;
            font-size: 30px;
            font-weight: 700;
            text-align: center;
            letter-spacing: 2px;
            z-index: 5;
            background: rgba(255, 255, 255, 0.15);
            padding: 10px 45px;
            border-radius: 50px;
            box-shadow: 0 0 40px 25px rgba(255, 255, 255, 0.35);
            pointer-events: none;
            text-shadow: 
                0 0 4px #fff,                /* 1st Layer: Bright white core close to text */
                0 0 10px #f1c40f,            /* 2nd Layer: Intense yellow inner glow */
                0 0 20px #f1c40f,            /* 3rd Layer: Mid-range yellow spread */
                0 0 40px #ffdb58,            /* 4th Layer: Large soft outer yellow aura */
                0 0 80px #ffdb58;            /* 5th Layer: Deep background lighting fade */
        }

        .event-wave-border { position: absolute; bottom: -5px; left: 0; width: 100%; height: auto; z-index: 4; pointer-events: none; }

        .event-slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.4);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.3);
            width: 40px;
            height: 50px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all 0.2s ease;
            z-index: 5;
        }
        .event-slider-arrow:hover { background: var(--primary-blue); }
        .event-slider-arrow.left-control { left: 15px; }
        .event-slider-arrow.right-control { right: 15px; }

        .event-slider-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
        .event-dot { width: 11px; height: 11px; background-color: rgba(255, 255, 255, 0.4); border-radius: 50%; cursor: pointer; transition: all 0.2s ease; border: 1px solid rgba(0,0,0,0.3); }
        .event-dot.active { background-color: #008cd6; transform: scale(1.2); box-shadow: 0 0 8px #008cd6; }

        .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 20px; }
        .info-card { background: #fff; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
        .info-card h3 { font-size: 18px; color: var(--dark-blue); margin: 15px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
        .info-card h3 i { color: var(--primary-blue); font-size: 24px; }
        .info-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
        
        .announcement-box { border: 1px dashed #ff4d4d; padding: 15px; background-color: #fff5f5; width: 100%; margin-bottom: 20px; }
        .announcement-box span { color: #ff4d4d; font-weight: bold; display: block; margin-bottom: 5px; }

        .principal-showcase-card { margin-top: 50px; padding-top: 100px; justify-content: flex-end; position: relative; }
        .principal-floating-avatar { width: 130px; height: 145px; object-fit: cover; border: 1px solid #dddddd; position: absolute; top: -65px; left: 50%; transform: translateX(-50%); background: #ffffff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 10; }
        
        .principal-title-meta h4 { font-size: 20px; color: #222222; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
        .principal-title-meta span { color: #b05d5d; font-size: 14px; font-weight: 400; display: block; margin-bottom: 15px; }
        .principal-quote-body { font-size: 13.5px; color: #555555; line-height: 1.6; max-width: 90%; }
        .principal-quote-body strong { color: #333333; display: block; margin-bottom: 10px; font-weight: 600; }

        .toppers-card-display-row { display: flex; width: 100%; justify-content: center; gap: 30px; }
        .topper-item-column { flex: 1; display: flex; flex-direction: column; align-items: center; }
        .topper-class-header { color: #b05d5d; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
        .topper-portrait-box { width: 105px; height: 130px; object-fit: cover; border: 1px solid #eeeeee; margin-bottom: 12px; }
        .topper-profile-name { font-size: 13px; font-weight: 500; color: #222222; text-transform: uppercase; line-height: 1.3; }
        .topper-score-mark { font-size: 12.5px; color: #555555; margin-bottom: 15px; }

        .inline-slider-frame { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }

        .footer-decor-frame-box { background-color: #a2d240; padding: 0; text-align: center; overflow: hidden; }
        .footer-building-img { width: 100vw; max-width: 100vw; height: auto; margin: 0; display: block; object-fit: cover; }

        .scroll-top-btn { position: fixed; bottom: 25px; right: 25px; background-color: var(--primary-blue); color: #ffffff; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); z-index: 999999; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease; }
        .scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
        .scroll-top-btn:hover { background-color: var(--dark-blue); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }

        @media (max-width: 992px) {
            html { scroll-snap-type: none; }
            .info-grid { grid-template-columns: repeat(2, 1fr); }
            .dual-card-grid { grid-template-columns: 1fr !important; gap: 50px; }
            .principal-showcase-card { margin-top: 60px; }
            .gallery-images-row { grid-template-columns: 1fr; }
            .inner-slider-btn.left-nav, .card-slider-arrow.left-arrow { left: 10px; }
            .inner-slider-btn.right-nav, .card-slider-arrow.right-arrow { right: 10px; }
            .quick-utility-menu-row { gap: 40px; }
            .nav-menu { flex-wrap: wrap; justify-content: center; padding: 10px; }
            .nav-menu li { flex: none; }
            .nav-menu li a { padding: 8px 12px; font-size: 13px; }
            .scroll-top-btn { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 16px; }
            .dropdown-panel { position: static; opacity: 1; visibility: visible; display: none; width: 100%; }
            .nav-menu > li:hover .dropdown-panel { display: block; }
            .event-slider-wrapper { height: 320px; }
            .event-title-overlay { font-size: 32px; padding: 6px 25px; }
        }

        @media (max-width: 768px) {
            .header-top-layout { flex-direction: column; }
            .info-grid { grid-template-columns: 1fr; }
            .toppers-card-display-row { flex-direction: column; gap: 30px; }
            .quick-utility-menu-row { gap: 30px; }
            .event-slider-wrapper { height: 240px; }
            .event-title-overlay { font-size: 24px; padding: 4px 18px; }
        }



/* --- Stripes Animation Modal Styling --- */
        .onload-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: 99999;
            transition: opacity 0.4s ease;
        }

        .onload-modal-content-wrapper {
            position: relative;
            overflow: hidden;
            display: inline-block;
            max-width: 90%;
            max-height: 90%;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            border-radius: 8px;
        }

        .onload-modal-content {
            display: block;
            width: 100%;
            height: auto;
            max-height: 80vh;
            object-fit: contain;
        }

        /* Container for the animated stripe curtains */
        .modal-stripes-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: repeat(5, 1fr); /* 5 vertical stripes */
            pointer-events: none;
        }

        .modal-stripe {
            background-color: #008cd6; /* Matches your theme wave border color */
            height: 100%;
            transform: scaleY(1);
            transform-origin: top;
            animation: stripeReveal 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
        }

        /* Staggering the stripes for a dynamic curtain effect */
        .modal-stripe:nth-child(1) { animation-delay: 0.1s; }
        .modal-stripe:nth-child(2) { animation-delay: 0.2s; }
        .modal-stripe:nth-child(3) { animation-delay: 0.3s; }
        .modal-stripe:nth-child(4) { animation-delay: 0.4s; }
        .modal-stripe:nth-child(5) { animation-delay: 0.5s; }

        @keyframes stripeReveal {
            to {
                transform: scaleY(0);
            }
        }

        /* Smooth fade-out for modal closing */
        .onload-modal-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

/* Header Text Headers Layout */
.section-title {
    color: #008cd6; /* Matching the deep sky blue shade from the image */
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 25px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-align: left;
}

/* Flexbox aligns icon container cleanly alongside wrapping paragraphs */
.list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
}

/* Icon customizations matching the loop-wing geometry layout */
.custom-icon {
    color: #7b8893; /* Muted gray hue styling */
    font-size: 1.2rem;
    margin-right: 12px;
    line-height: 1.4rem;
    user-select: none;
}

/* Main Body copy layout properties */
.item-text {
    margin: 0;
    font-size: 0.98rem;
    text-align: justify;
}

/* Styles strong emphasize headers */
.item-text strong {
    color: #444444;
    font-weight: 600;
}

 .about-section {
            display: flex;
            gap: 40px;
            align-items: flex-start;
            margin-top: 20px;
        }

        .about-text-wrapper {
            flex: 2; /* Takes up 2/3 of the width */
        }

        .about-sidebar {
            flex: 1; /* Takes up 1/3 of the width */
            position: sticky;
            top: 20px; /* Keeps the sidebar visible when scrolling */
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.05);
            text-align: center;
        }

        .about-sidebar img {
            width: 100%;
            max-width: 300px;
            height: auto;
            border-radius: 6px;
            margin-bottom: 15px;
        }

        .sidebar-caption {
            font-size: 1.1rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }

        .sidebar-subtext {
            font-size: 0.9rem;
            color: #666;
            line-height: 1.4;
        }

        .toppers-container {
            width: 90%;
            max-width: 1200px;
            margin: 30px auto;
            font-family: Arial, sans-serif;
            line-height: 1.8;
        }

        .session-banner {
            background-color: #e5ad24; /* Yellow banner theme matching your reference image */
            color: #ffffff;
            padding: 10px 20px;
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 24px;
            border-radius: 4px;
            cursor: pointer; /* Makes it look clickable */
            display: flex;
            justify-content: space-between;
            align-items: center;
            user-select: none;
        }

        /* Indicator arrow using FontAwesome */
        .session-banner::after {
            content: '\f107'; 
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            transition: transform 0.2s ease;
        }

        .session-banner.collapsed::after {
            transform: rotate(-90deg);
        }

        /* Seamless hidden wrapper for accordion */
        .toppers-content-wrapper {
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            max-height: 2000px; /* High threshold for smooth layout reveal */
        }

        .toppers-content-wrapper.hidden {
            max-height: 0 !important;
        }

        .toppers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 30px;
            justify-items: center;
            margin-bottom: 48px;
        }

        .topper-card {
            text-align: center;
            width: 100%;
            max-width: 220px;
            margin-bottom: 24px;
        }

        .topper-img-wrapper {
            width: 160px;
            height: 190px;
            margin: 0 auto 15px auto;
            overflow: hidden;
            border: 1px solid #ddd;
            box-shadow: 0px 4px 8px rgba(0,0,0,0.05);
        }

        .topper-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .topper-name {
            font-size: 1rem;
            font-weight: bold;
            color: #333333;
            text-transform: uppercase;
            margin: 5px 0;
            line-height: 1.4;
        }

        .topper-percentage {
            font-size: 1.1rem;
            font-weight: bold;
            color: #222222;
            margin: 5px 0;
        }

        

