
/* ===== ROOT & THEMES ===== */
:root {
    --gold: #d4af37;
    /* Ultra-High-End Gold Gradient */
    --polished-gold: linear-gradient(135deg, #8a642a 0%, #d4af37 25%, #fcf6ba 50%, #d4af37 75%, #8a642a 100%);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --card-w: 280px;
    --card-h: 420px;
    --accent: var(--gold);
    --glow: rgba(212, 175, 55, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    display: block;
}

/* Toppers */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    text-align: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: var(--font-body);
}

.gallery-stage {
    padding-top: 180px;
}

h1, h2, h3, p {
    margin: 0;
}

/* ===== DYNAMIC BACKGROUND SECTIONS ===== */
.gallery-section {
    padding: 1px 0;
    position: relative;
    transition: 1s ease-in-out;
}

/* Background Color Themes */
.section-cultural { background: radial-gradient(circle at top right, #2c1a05, #0f0902); --accent: #ffd700; --glow: rgba(255, 215, 0, 0.4); }
.section-annual   { background: radial-gradient(circle at top right, #2a050c, #100205); --accent: #ff004d; --glow: rgba(255, 0, 77, 0.4); padding-top: 1px;}
.section-scouts   { background: radial-gradient(circle at top right, #052a1a, #02110a); --accent: #00ffa2; --glow: rgba(0, 255, 162, 0.4); padding-top: 1px;}
.section-sports   { background: radial-gradient(circle at top right, #051a35, #021022); --accent: #00a2ff; --glow: rgba(0, 162, 255, 0.4); padding-top: 1px;}
.section-voters   { background: radial-gradient(circle at top right, #222, #090909);    --accent: #ffffff; --glow: rgba(255, 255, 255, 0.2); padding-top: 1px;}
.section-youth    { background: radial-gradient(circle at top right, #1a052a, #08020e); --accent: #b300ff; --glow: rgba(179, 0, 255, 0.4); padding-top: 1px; }

/* ===== MAJESTIC HEADINGS ===== */
.premium-title {
    text-align: center;
    margin: 0;
    padding-bottom: 55px;
    padding-top: 10px;
    position: relative;
}

.premium-title::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
    width: min(900px, 92vw);
    height: 130px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%);
    filter: blur(18px);
    opacity: 0.75;
    pointer-events: none;
}

.premium-title h1 {
    font-family: var(--font-heading);
    font-size:3.5rem;
    font-weight: 900;
    letter-spacing: clamp(6px, 1.2vw, 18px);
    margin: 0;
    background: var(--polished-gold);
    background-size: 220% 220%;
    animation: goldFlow 8s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.55);
    filter: drop-shadow(0 18px 26px rgba(0,0,0,0.65));
    text-shadow: 0 0 28px var(--glow);
    text-transform: uppercase;
    position: relative;
    line-height: 1.05;
}

/* Glowing underline for the heading */
.premium-title::after {
    content: "";
    display: block;
    width: clamp(140px, 14vw, 240px);
    height: 4px;
    background: var(--polished-gold);
    margin: 18px auto 0;
    border-radius: 999px;
    box-shadow: 0 0 18px var(--glow);
    opacity: 0.95;
}

@keyframes goldFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== THE GRAND WRAPPER ===== */
.gallery-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 45px;
    max-width: 1550px;
    margin: 0 auto;
    padding: 40px 50px 55px;
    border-radius: 80px;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 80px 150px rgba(0,0,0,1);
}

/* Moving Light Aura */
.gallery-wrapper::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, var(--glow), transparent 70%);
    opacity: 0.2;
    pointer-events: none;
}

/* ===== CARDS WITH SHIMMER ===== */
.gallery-card {
    width: var(--card-w);
    height: var(--card-h);
    padding: 12px;
    flex: 0 0 auto;
    background: var(--polished-gold);
    border-radius: 26px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 30px 70px rgba(0,0,0,0.65), 0 0 55px var(--glow);
}

.gallery-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, 0.75),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    pointer-events: none;
    z-index: 2;
}

.gallery-card img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid rgba(0, 0, 0, 0.9);
    transition: 1s ease;
}

/* Gold Shimmer Effect */
.gallery-card::after {
    content: "";
    position: absolute;
    top: -100%; left: -100%;
    width: 50%; height: 300%;
    background: rgba(255,255,255, 0.1);
    transform: rotate(45deg);
    transition: 0s;
    z-index: 3;
}

.gallery-card:hover::after {
    top: 100%; left: 100%;
    transition: 1s;
}

/* SLIDE UP DETAILS */
.card-details {
    position: absolute;
    bottom: -100%;
    left: 15px; right: 15px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px 20px;
    text-align: center;
    border-top: 4px solid var(--accent);
    border-radius: 0 0 10px 10px;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-details h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent);
    margin: 0;
}

.card-details p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #bbb;
    margin-top: 12px;
    font-weight: 300;
}

/* HOVER ANIMATIONS */
.gallery-card:hover {
    transform: translateY(-25px) scale(1.05);
    box-shadow: 0 60px 100px rgba(0,0,0,1), 0 0 60px var(--glow);
}

.gallery-card.is-active {
    transform: translateY(-25px) scale(1.05);
    box-shadow: 0 60px 100px rgba(0,0,0,1), 0 0 60px var(--glow);
}

.gallery-card:hover .card-details,
.gallery-card.is-active .card-details { bottom: 15px; }

.gallery-card:hover img,
.gallery-card.is-active img { filter: none; transform: scale(1.15); }

.gallery-card.is-active::after {
    top: 100%; left: 100%;
    transition: 1s;
}

/* ===== THE GRAND EXPLORE BUTTON ===== */
.btn-round {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    flex: 0 0 auto;
    transform: translateY(-110px);
    transition: 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px var(--accent);
}

.btn-round span {
    font-family: var(--font-body);
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 600;
    text-align: center;
}

.btn-round:hover {
    background: var(--accent);
    transform: translateY(-110px) scale(1.2) rotate(360deg);
}

.btn-round:hover span { color: #000; }

/* ===== EXPLORE OVERLAY ===== */
.explore-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 18px 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 10001;
    font-size: 44px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.overlay-title {
    position: absolute;
    top: 24px;
    left: 18px;
    right: 70px;
    z-index: 10000;
    text-align: center;
    font-family: var(--font-heading);
    letter-spacing: clamp(4px, 0.8vw, 10px);
    font-size: clamp(1.5rem, 1.2vw + 1.2rem, 2.4rem);
    background: var(--polished-gold);
    background-size: 220% 220%;
    animation: goldFlow 8s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.7));
    pointer-events: none;
}

.overlay-gallery {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-top: 0;
    padding-bottom: 0;
    max-height: calc(100vh - 100px);
    overflow: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge Legacy */
}

.overlay-gallery::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.overlay-card {
    position: relative;
    padding: 12px;
    border-radius: 26px;
    background: var(--polished-gold);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.65), 0 0 55px var(--glow);
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.overlay-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, 0.75),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    pointer-events: none;
    z-index: 2;
}

.overlay-card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -120%;
    width: 55%;
    height: 320%;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(45deg);
    transition: 0s;
    z-index: 3;
}

.overlay-card:hover::after {
    top: 120%;
    left: 120%;
    transition: 1s;
}

.overlay-card.is-active::after {
    top: 120%;
    left: 120%;
    transition: 1s;
}

.overlay-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid rgba(0, 0, 0, 0.9);
    transition: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.overlay-details {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 15px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.88);
    padding: 22px 16px 18px;
    text-align: center;
    border-top: 4px solid var(--accent);
    border-radius: 0 0 10px 10px;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.overlay-details h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent);
    margin: 0;
}

.overlay-details p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #bbb;
    margin-top: 10px;
    font-weight: 300;
}

.overlay-details p:empty { display: none; margin-top: 0; }

.overlay-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 55px 110px rgba(0,0,0,0.95), 0 0 70px var(--glow);
}

.overlay-card.is-active {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 55px 110px rgba(0,0,0,0.95), 0 0 70px var(--glow);
}

.overlay-card.is-active .overlay-details {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.overlay-card:hover .overlay-details {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.overlay-card:hover .overlay-img {
    filter: none;
    transform: scale(1.12);
}

.overlay-card.is-active .overlay-img {
    filter: none;
    transform: scale(1.12);
}

@media (max-width: 900px) {
    .overlay-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .overlay-gallery { grid-template-columns: 1fr; }
}

@media(max-width:1300px){
    .premium-title { padding-bottom: 36px; }
    .gallery-wrapper { flex-wrap: wrap; align-items: center; border-radius: 0; padding: 28px 16px 36px; }
    .premium-title h1 { font-size: 3rem; letter-spacing: 10px; }
}
/*  */
/* --- CORE RESET --- */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Poppins', sans-serif; min-height: 200vh; background-color: #fcfcfc; }

        /* --- FIXED HEADER --- */
        .site-header {
            position: fixed;
            top: 0; left: 0; width: 100%;
            padding: 25px 0 15px 0;
            background: #ffffff;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            box-shadow: 0 2px 15px rgba(0,0,0,0.05);
        }

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .site-header { padding: 18px 0 12px; }
    .header-inner { padding: 0 14px; }
    .branding-wrapper {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        margin-bottom: 12px;
    }
    .school-logo-main { height: 64px; }
    .shine-text {
        font-size: clamp(20px, 4vw, 28px);
        letter-spacing: 1px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }
    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }
    .nav > a,
    .nav-item > a {
        font-size: 12px;
        padding: 10px 12px;
    }
    .mega-dropdown {
        width: min(92vw, 720px);
        grid-template-columns: 1fr;
    }
    .mega-left,
    .mmet-phyo-sidebar {
        display: none;
    }
    .mega-right,
    .mmet-nav-content {
        padding: 24px;
    }
    .mega-right ul { grid-template-columns: 1fr; }
    .mmet-mega-card { height: min(92vh, 900px); }
    .mmet-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .site-header { padding: 14px 0 10px; }
    .nav { display: none; }
    .mmet-open-btn {
        top: 18px;
        right: 16px;
        padding: 10px 18px;
        font-size: 12px;
    }
    .mmet-mega-wrapper { padding: 12px; }
    .mmet-mega-card { border-radius: 18px; }
    .mmet-nav-content { padding: 18px; }
    .mmet-links-grid,
    .footer-content,
    .footer-grid,
    .popup-grid,
    .support-grid,
    .innovative-grid,
    .overlay-gallery,
    .classroom-row {
        grid-template-columns: 1fr !important;
    }
    [class*="wrapper"],
    [class*="container"],
    [class*="content"],
    [class*="inner"],
    [class*="layout"] {
        max-width: 100% !important;
        min-width: 0 !important;
        flex-direction: column !important;
    }
    [class*="grid"],
    [class*="row"],
    [class*="cards"],
    [class*="columns"] {
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: 1fr !important;
    }
    [class*="img"],
    [class*="image"],
    [class*="photo"],
    [class*="media"],
    [class*="card"],
    [class*="box"] {
        max-width: 100% !important;
    }
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

        .header-inner {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* --- BRANDING --- */
        .branding-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin-bottom: 18px;
            transition: all 0.5s ease;
        }

        .school-logo-main {
            height: 85px;
            width: auto;
            filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.1));
            transition: all 0.5s ease;
        }

       .shine-text {
            font-family: 'Playfair Display', serif;
            font-size: 30px; 
            font-weight: bold;
            letter-spacing: 4px;
            text-decoration: none; 
            display: inline-block;
            background: linear-gradient(to right, #c05d2e 0%, #c05d2e 40%, #ffffff 50%, #c05d2e 60%, #c05d2e 100%);
            background-size: 200% auto;
            color: transparent; 
            -webkit-background-clip: text; 
            background-clip: text;
            animation: shine 4s linear infinite; 
            transition: all 0.5s ease;
        }
        @keyframes shine { to { background-position: 200% center; } }

        /* --- NAVIGATION --- */
        .nav { display: flex; list-style: none; align-items: center; gap: 8px; }
        .nav > a, .nav-item > a {
            text-decoration: none; color: #1a2a47;
            font-weight: 700; 
            font-size: 15px; 
            padding: 12px 18px; text-transform: uppercase;
            position: relative; transition: 0.3s;
        }
        .nav a:hover, .nav a.active { color: #f39c12; }

        /* --- HORIZONTAL MEGA DROPDOWN --- */
        .nav-item { position: static; } 
        .mega-dropdown {
            position: absolute;
            top: 100%; left: 50%;
            transform: translateX(-50%) translateY(30px);
            width: 1000px; 
            background: #ffffff;
            display: grid;
            grid-template-columns: 1fr 3fr; /* Balanced side panel */
            border-radius: 20px;
            box-shadow: 0 40px 80px rgba(0,0,0,0.18);
            overflow: hidden;
            opacity: 0; visibility: hidden;
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            z-index: 100;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .mega-parent:hover .mega-dropdown {
            opacity: 1; visibility: visible;
            transform: translateX(-50%) translateY(15px);
        }

        /* Side-Panel (Horizontal Title) */
        .mega-left { 
            background: #1a2a47; 
            padding: 40px 30px; 
            display: flex; 
            flex-direction: column;
            justify-content: flex-start; /* Title at the top */
            align-items: flex-start;
            color: white; 
        }
        
        .mega-left h2 { 
            font-size: 24px; 
            color: #f39c12; 
            letter-spacing: 2px;
            text-transform: uppercase;
            font-weight: 700;
            margin-bottom: 15px;
            position: relative;
        }

        .mega-left h2::after {
            content: '';
            display: block;
            width: 40px;
            height: 3px;
            background: #ffffff;
            margin-top: 8px;
        }

        .mega-left p {
            font-size: 14px;
            opacity: 0.7;
            line-height: 1.6;
            font-weight: 300;
        }

        /* Link Section */
        .mega-right { padding: 50px; background: white; }
        .mega-right h3 { 
            font-size: 14px; 
            color: #888; 
            text-transform: uppercase; 
            letter-spacing: 1px;
            margin-bottom: 25px; 
            border-bottom: 1px solid #eee; 
            padding-bottom: 10px; 
        }
        .mega-right ul { 
            display: grid; 
            grid-template-columns: 1fr 1fr; 
            gap: 20px; 
            list-style: none; 
        }

        .mega-right li a { 
            color: #1a2a47 !important; 
            font-size: 18px; 
            font-weight: 600; 
            display: flex; 
            align-items: center; 
            gap: 15px; 
            transition: 0.3s; 
            text-decoration: none;
        }
        .mega-right li a i { color: #f39c12; font-size: 16px; opacity: 0.8; } 
        .mega-right li a:hover { color: #c05d2e !important; transform: translateX(8px); }

        /* --- SCROLLED STATE --- */
        .site-header.scrolled { background: #8B0000; padding: 10px 0; }
        .site-header.scrolled .school-logo-main { height: 50px; }
        .site-header.scrolled .shine-text {
            font-size: 36px;
            background: linear-gradient(to right, #ffd700 0%, #ffd700 40%, #ffd700 60%, #ffd700 100%);
            -webkit-background-clip: text;
        }
        .site-header.scrolled .nav > a, .site-header.scrolled .nav-item > a { color: #ffffff; }

        .icons { margin-left: 20px; font-size: 22px; cursor: pointer; color: #1a2a47; }
        .site-header.scrolled .icons { color: white; }
    





/* ================================================ menu*/
    /* Trigger Button */
    .mmet-open-btn {
        position: fixed;
       
        right: 30px;
        padding: 15px 35px;
        background: linear-gradient(135deg, #003366 0%, #001a33 100%);
        color: #ffffff;
        border: none;
        border-radius: 50px;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-weight: 700;
        letter-spacing: 1px;
        cursor: pointer;
        z-index: 1500;
        
        display: flex;
        align-items: center;
        gap: 10px;
        transition: 0.3s;
    }
    .mmet-open-btn:hover { transform: scale(1.05); background: #004080; }

    /* Overlay */
    .mmet-mega-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 26, 51, 0.9);
        backdrop-filter: blur(10px);
        display: none; /* Controlled by JS */
        z-index: 2000;
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Main Card */
    .mmet-mega-card {
        width: 100%;
        max-width: 1300px;
        height: 85vh;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 30px;
        display: flex;
        overflow: hidden;
        position: relative;
        box-shadow: 0 25px 50px rgba(0,0,0,0.5);
        font-family: 'Plus Jakarta Sans', sans-serif;
    }

    /* Navigation Area */
    .mmet-nav-content {
        flex: 1;
        padding: 50px;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .mmet-menu-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
        border-bottom: 2px solid #eee;
        padding-bottom: 20px;
    }

    .mmet-logo-text { font-size: 35px; font-weight: 800; color: #003366; margin: 0; }
    .mmet-gold-span { color: #FFD700; }

    .mmet-close-icon { font-size: 35px; cursor: pointer; color: #888; transition: 0.3s; }
    .mmet-close-icon:hover { color: #ff0000; transform: rotate(90deg); }

    /* Grid */
    .mmet-links-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .mmet-col-head {
        color: #003366;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .mmet-col-head i { color: #FFD700; font-size: 18px; }

    .mmet-link-col a {
        display: block;
        text-decoration: none;
        color: #444444;
        font-size: 16px;
        margin-bottom: 12px;
        transition: 0.3s;
        font-weight: 500;
    }
    .mmet-link-col a:hover { color: #003366; padding-left: 10px; font-weight: 700; }

    .mmet-admission-link { color: #003366 !important; font-weight: 800 !important; }
    .mmet-home-link { border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px; }

    /* Sidebar (Phyo) */
    .mmet-phyo-sidebar {
        width: 400px;
        background: linear-gradient(135deg, #003366 0%, #001a33 100%);
        padding: 40px;
        color: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .mmet-phyo-photo-container {
        width: 100%;
        height: 250px;
        border-radius: 20px;
        overflow: hidden;
        border: 4px solid rgba(255,255,255,0.1);
        position: relative;
    }
    .mmet-campus-img { width: 100%; height: 100%; object-fit: cover; border: none; }

    .mmet-photo-caption {
        position: absolute;
        bottom: 10px;
        left: 10px;
        background: #FFD700;
        color: #003366;
        padding: 5px 15px;
        border-radius: 10px;
        font-weight: 800;
        font-size: 12px;
    }

    .mmet-phyo-info { margin-top: 30px; }
    .mmet-contact-title { font-size: 18px; color: #FFD700; margin-bottom: 15px; margin-top: 0; }
    
    .mmet-info-item { display: flex; gap: 15px; margin-bottom: 20px; font-size: 14px; line-height: 1.5; opacity: 0.9; }
    .mmet-info-item i { color: #FFD700; font-size: 20px; }

    .mmet-admission-glow-box {
        background: rgba(255, 215, 0, 0.1);
        border: 1px solid #FFD700;
        padding: 20px;
        border-radius: 15px;
        text-align: center;
    }
    .mmet-glow-link { color: #FFD700; text-decoration: none; font-weight: 800; text-transform: uppercase; }

    /* Mobile */
    @media (max-width: 1000px) {
        .mmet-phyo-sidebar { display: none; }
        .mmet-links-grid { grid-template-columns: repeat(2, 1fr); }
    }
/* ======= */
/* ==========================footer== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            background-color: #f4f7f6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .main-content {
            flex: 1;
            padding: 100px 20px;
            text-align: center;
            color: #333;
        }

        /* --- MODERN FLOWING FOOTER --- */
       /* --- MODERN FLOWING FOOTER --- */
        .footer {
            position: relative;
            background: linear-gradient(135deg, #001524 0%, #003554 100%);
            padding-top: 20px;
            color: #e0e1dd;
            margin-top: 7rem;
        }

        /* Layered Water Waves */
        .waves {
            position: absolute;
            top: -60px;
            width: 100%;
            height: 100px;
            margin-bottom: -7px; /* Fix for safari gap */
            min-height: 100px;
            max-height: 150px;
        }

        .parallax > use {
            animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
        }
        .parallax > use:nth-child(1) {
            fill: rgba(0, 53, 84, 0.7);
            animation-delay: -2s;
            animation-duration: 7s;
        }
        .parallax > use:nth-child(2) {
            fill: rgba(0, 100, 148, 0.5);
            animation-delay: -3s;
            animation-duration: 10s;
        }
        .parallax > use:nth-child(3) {
            fill: rgba(0, 161, 224, 0.3);
            animation-delay: -4s;
            animation-duration: 13s;
        }
        .parallax > use:nth-child(4) {
            fill: #001524; /* Match footer top color */
            animation-delay: -5s;
            animation-duration: 20s;
        }

        @keyframes move-forever {
            0% { transform: translate3d(-90px, 0, 0); }
            100% { transform: translate3d(85px, 0, 0); }
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
            gap: 40px;
            padding: 80px 20px 40px;
            position: relative;
            z-index: 10;
        }

        .footer-col h3 {
            color: #00a1e0;
            font-size: 1.1rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 8px;
        }

        .footer-col h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 2px;
            background: #00a1e0;
        }

        .school-brand .title {
            font-size: 1.5rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 15px;
            letter-spacing: -0.5px;
        }

        .school-brand p {
            font-size: 0.9rem;
            line-height: 1.7;
            color: #a3b18a;
        }

        /* Modern Links */
        .footer-col ul {
            list-style: none;
        }

        .footer-col ul li {
            margin-bottom: 12px;
        }

        .footer-col ul li a {
            color: #e0e1dd;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
        }

        .footer-col ul li a:hover {
            color: #00a1e0;
            transform: translateX(8px);
        }

        /* Contact Details Card Style */
        .contact-card {
            background: rgba(255, 255, 255, 0.03);
            padding: 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .contact-item {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.85rem;
        }

        .contact-item b {
            color: #00a1e0;
            width: 20px;
            text-align: center;
        }

        /* Glow Social Icons */
        .socials {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .socials a {
            width: 40px;
            height: 40px;
            background: rgba(0, 161, 224, 0.1);
            border: 1px solid rgba(0, 161, 224, 0.3);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            text-decoration: none;
            font-size: 12px;
            transition: 0.4s;
        }

        .socials a:hover {
            background: #00a1e0;
            box-shadow: 0 0 15px rgba(0, 161, 224, 0.5);
            transform: translateY(-5px);
        }

        .bottom-bar {
            text-align: center;
            padding: 25px;
            background: #000b14;
            font-size: 0.8rem;
            letter-spacing: 1px;
            color: #588157;
        }
.footer-col h3 a {
    color: inherit;
    text-decoration: none;
}
        /* Mobile Responsive */
        @media (max-width: 900px) {
            .footer-content {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 600px) {
            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .footer-col h3::after {
                left: 50%;
                transform: translateX(-50%);
            }
            .footer-col ul li a {
                justify-content: center;
            }
            .socials {
                justify-content: center;
            }
        }

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .site-header { padding: 18px 0 12px; }
    .header-inner { padding: 0 14px; }
    .branding-wrapper {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        margin-bottom: 12px;
    }
    .school-logo-main { height: 64px; }
    .shine-text {
        font-size: clamp(20px, 4vw, 28px);
        letter-spacing: 1px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }
    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }
    .nav > a,
    .nav-item > a {
        font-size: 12px;
        padding: 10px 12px;
    }
    .mega-dropdown {
        width: min(92vw, 720px);
        grid-template-columns: 1fr;
    }
    .mega-left,
    .mmet-phyo-sidebar {
        display: none;
    }
    .mega-right,
    .mmet-nav-content {
        padding: 24px;
    }
    .mega-right ul { grid-template-columns: 1fr; }
    .mmet-mega-card { height: min(92vh, 900px); }
    .mmet-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .site-header { padding: 14px 0 10px; }
    .nav { display: none; }
    .mmet-open-btn {
        top: 18px;
        right: 16px;
        padding: 10px 18px;
        font-size: 12px;
    }
    .mmet-mega-wrapper { padding: 12px; }
    .mmet-mega-card { border-radius: 18px; }
    .mmet-nav-content { padding: 18px; }
    .mmet-links-grid,
    .footer-content,
    .footer-grid,
    .popup-grid,
    .support-grid,
    .innovative-grid,
    .overlay-gallery,
    .classroom-row {
        grid-template-columns: 1fr !important;
    }
    [class*="wrapper"],
    [class*="container"],
    [class*="content"],
    [class*="inner"],
    [class*="layout"] {
        max-width: 100% !important;
        min-width: 0 !important;
        flex-direction: column !important;
    }
    [class*="grid"],
    [class*="row"],
    [class*="cards"],
    [class*="columns"] {
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: 1fr !important;
    }
    [class*="img"],
    [class*="image"],
    [class*="photo"],
    [class*="media"],
    [class*="card"],
    [class*="box"] {
        max-width: 100% !important;
    }
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

/* Mobile Header Order Fix */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 0 6px !important;
    }

    .site-header.scrolled {
        padding: 6px 0 !important;
    }

    .header-inner {
        width: 100%;
        padding: 0 10px !important;
        align-items: center;
    }

    .branding-wrapper {
        width: 100%;
        margin-bottom: 6px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px !important;
        text-align: center;
    }

    .school-logo-main {
        height: 44px !important;
        width: auto;
    }

    .shine-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        max-width: 96vw;
        margin: 0 auto;
        font-size: clamp(14px, 3.9vw, 18px) !important;
        line-height: 1.2 !important;
        letter-spacing: 0.4px !important;
        white-space: normal !important;
    }

    .site-header.scrolled .school-logo-main {
        height: 40px !important;
    }

    .site-header.scrolled .shine-text {
        font-size: clamp(13px, 3.7vw, 17px) !important;
    }

    .nav {
        display: block !important;
        width: 100%;
        height: 0;
        margin: 0;
    }

    .nav > a,
    .nav > .nav-item {
        display: none !important;
    }

    .mmet-open-btn {
        position: absolute !important;
        top: 8px !important;
        right: 10px !important;
        left: auto !important;
        width: 36px;
        height: 36px;
        min-height: 36px;
        padding: 0 !important;
        border-radius: 50%;
        font-size: 11px !important;
        letter-spacing: 0;
        z-index: 1100;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .mmet-open-btn i {
        margin: 0;
    }
}


/* =====================================================
   Footer Responsive Overrides (Mobile-First)
   - 1 column on mobile
   - 2 columns on tablet
   - 4 columns on desktop
   ===================================================== */
.footer {
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.footer .waves {
    display: block;
    width: 100%;
    height: auto;
}

.footer-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: clamp(18px, 4vw, 40px) clamp(12px, 4vw, 28px);
    display: grid;
    grid-template-columns: 1fr !important;
    gap: clamp(14px, 3vw, 28px);
}

.footer-col,
.school-brand,
.contact-card {
    min-width: 0;
}

.footer-col ul {
    margin: 0;
    padding: 0;
}

.footer-col ul li a,
.contact-item,
.school-brand p {
    word-break: break-word;
}

.footer-col ul li a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.contact-card {
    width: 100%;
    max-width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.socials {
    flex-wrap: wrap;
}

.bottom-bar {
    padding: 14px 10px;
    font-size: clamp(0.72rem, 2.8vw, 0.85rem);
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 767px) {
    .footer-content {
        text-align: center;
    }

    .footer-col h3::after {
        left: 50% !important;
        transform: translateX(-50%);
    }

    .footer-col ul li a,
    .socials {
        justify-content: center;
    }

    .contact-card {
        margin-inline: auto;
        text-align: left;
        max-width: 460px;
    }

    .contact-item {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        text-align: left;
    }

    .footer-col h3::after {
        left: 0 !important;
        transform: none;
    }

    .footer-col ul li a,
    .socials {
        justify-content: flex-start;
    }
}

@media (min-width: 1100px) {
    .footer-content {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* =====================================================
   Gallery Page Section Responsive Overrides (Mobile-First)
   Targets: gallery strips + explore overlay
   ===================================================== */
.gallery-stage,
.gallery-section,
.gallery-wrapper,
.explore-overlay,
.overlay-gallery {
    overflow-x: hidden;
}

@media (max-width: 767px) {
    .gallery-stage {
        padding-top: 98px !important;
    }

    .gallery-section {
        padding: 8px 0 18px !important;
    }

    .premium-title {
        padding: 6px 12px 20px !important;
    }

    .premium-title::before {
        width: 96vw !important;
        height: 90px !important;
        opacity: 0.65 !important;
        filter: blur(14px) !important;
    }

    .premium-title h1 {
        font-size: clamp(1.35rem, 7vw, 1.95rem) !important;
        letter-spacing: 1.4px !important;
        line-height: 1.2 !important;
        -webkit-text-stroke: 0.4px rgba(0, 0, 0, 0.5) !important;
    }

    .premium-title::after {
        margin-top: 10px !important;
        width: 120px !important;
        height: 3px !important;
    }

    .gallery-wrapper {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        max-width: 430px !important;
        margin: 0 auto !important;
        padding: 12px !important;
        border-radius: 16px !important;
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5) !important;
    }

    .gallery-card {
        width: 100% !important;
        height: clamp(235px, 65vw, 320px) !important;
        padding: 8px !important;
        border-radius: 16px !important;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), 0 0 24px var(--glow) !important;
    }

    .gallery-card::before {
        inset: 8px !important;
        border-radius: 11px !important;
    }

    .gallery-card img {
        border-radius: 10px !important;
        border-width: 1px !important;
    }

    .gallery-card:hover,
    .gallery-card.is-active {
        transform: none !important;
    }

    .gallery-card:hover img,
    .gallery-card.is-active img {
        transform: scale(1.03) !important;
    }

    .card-details {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        padding: 12px 10px !important;
        border-top-width: 3px !important;
        border-radius: 0 0 8px 8px !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .card-details h3 {
        font-size: 1.02rem !important;
        line-height: 1.3 !important;
    }

    .card-details p {
        font-size: 0.82rem !important;
        margin-top: 6px !important;
    }

    .btn-round {
        width: 108px !important;
        height: 108px !important;
        margin: 6px auto 0 !important;
        transform: none !important;
        border-width: 2px !important;
    }

    .btn-round span {
        font-size: 10px !important;
        letter-spacing: 1.8px !important;
        line-height: 1.35 !important;
    }

    .btn-round:hover {
        transform: scale(1.05) !important;
    }

    .explore-overlay {
        align-items: flex-start !important;
        padding: 72px 10px 12px !important;
    }

    .overlay-title {
        top: 14px !important;
        left: 12px !important;
        right: 54px !important;
        font-size: clamp(1rem, 5vw, 1.35rem) !important;
        letter-spacing: 1.2px !important;
        text-align: left !important;
    }

    .close-btn {
        top: 10px !important;
        right: 12px !important;
        font-size: 32px !important;
    }

    .overlay-gallery {
        width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        max-height: calc(100vh - 88px) !important;
        padding: 0 2px 10px !important;
    }

    .overlay-card {
        padding: 8px !important;
        border-radius: 14px !important;
    }

    .overlay-card::before {
        inset: 8px !important;
        border-radius: 10px !important;
    }

    .overlay-card:hover,
    .overlay-card.is-active {
        transform: none !important;
    }

    .overlay-img {
        height: 200px !important;
        border-radius: 10px !important;
        border-width: 1px !important;
    }

    .overlay-card:hover .overlay-img,
    .overlay-card.is-active .overlay-img {
        transform: scale(1.03) !important;
    }

    .overlay-details {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        padding: 12px 10px !important;
        border-top-width: 3px !important;
        border-radius: 0 0 8px 8px !important;
    }

    .overlay-details h3 {
        font-size: 1rem !important;
    }

    .overlay-details p {
        font-size: 0.8rem !important;
        margin-top: 6px !important;
    }
}

@media (max-width: 420px) {
    .gallery-stage {
        padding-top: 92px !important;
    }

    .gallery-card {
        height: 225px !important;
    }

    .overlay-img {
        height: 180px !important;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .gallery-stage {
        padding-top: 130px !important;
    }

    .premium-title {
        padding-bottom: 30px !important;
    }

    .premium-title h1 {
        font-size: clamp(2rem, 4.5vw, 2.7rem) !important;
        letter-spacing: 5px !important;
    }

    .gallery-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 16px !important;
        border-radius: 24px !important;
        padding: 18px !important;
        max-width: 980px !important;
    }

    .gallery-card {
        width: min(41vw, 300px) !important;
        height: 360px !important;
    }

    .gallery-card:hover,
    .gallery-card.is-active {
        transform: translateY(-10px) scale(1.02) !important;
    }

    .btn-round {
        width: 126px !important;
        height: 126px !important;
        transform: none !important;
    }

    .btn-round:hover {
        transform: scale(1.1) rotate(360deg) !important;
    }

    .explore-overlay {
        padding: 84px 16px 14px !important;
    }

    .overlay-title {
        top: 16px !important;
        font-size: clamp(1.3rem, 3.2vw, 1.8rem) !important;
        letter-spacing: 3px !important;
    }

    .overlay-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        max-height: calc(100vh - 96px) !important;
    }

    .overlay-img {
        height: 220px !important;
    }
}

/* =====================================================
   Mobile Menu Responsive Overrides (All Pages)
   Targets: hamburger mega menu panels and links
   ===================================================== */
@media (max-width: 767px) {
    .mmet-mega-wrapper {
        padding: 8px !important;
        align-items: flex-start !important;
    }

    .mmet-mega-card {
        width: 100% !important;
        height: calc(100dvh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 14px !important;
        margin: 0 !important;
    }

    .mmet-nav-content {
        padding: 14px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .mmet-menu-top-row {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        background: #ffffff !important;
        padding-bottom: 10px;
        margin-bottom: 12px !important;
    }

    .mmet-logo-text {
        font-size: 24px !important;
    }

    .mmet-close-icon {
        font-size: 28px !important;
        line-height: 1;
    }

    .mmet-links-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .mmet-link-col {
        min-width: 0;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .mmet-link-col:last-child {
        border-bottom: none;
    }

    .mmet-col-head {
        font-size: 12px !important;
        margin-bottom: 10px !important;
        letter-spacing: 1px !important;
    }

    .mmet-link-col a {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .mmet-link-col a:hover {
        padding-left: 0 !important;
    }

    .mmet-phyo-sidebar {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .mmet-mega-wrapper {
        padding: 14px !important;
    }

    .mmet-mega-card {
        width: 100% !important;
        height: calc(100dvh - 28px) !important;
        max-height: calc(100dvh - 28px) !important;
    }

    .mmet-nav-content {
        padding: 20px !important;
    }

    .mmet-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    .mmet-phyo-sidebar {
        display: none !important;
    }
}
