/* --- MAIN WRAPPER (Replaces Body & Root) --- */
#celestial-preloader {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: fixed; /* Covers the whole screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #1a0b2e 0%, #02040a 100%);
    color: white;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    z-index: 999999;
}

/* Ensure all child elements use border-box */
#celestial-preloader div, 
#celestial-preloader h1, 
#celestial-preloader h2, 
#celestial-preloader p, 
#celestial-preloader img {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Flash News For the Hero Section */
.flash-news {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(193, 10, 10, 0.8);
    overflow: hidden;
    white-space: nowrap;
    z-index: 2;
  }
  
  .news-track {
    display: flex;
    width: max-content;
    animation: scrollNews 30s linear infinite; /* slower */
  }
  
  .news-track a {
    color: #e2eee8 !important;
    margin: 0 50px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
  }

  .news-content {
    display: flex;
  }
  
  .news-content a {
    color: #ffffff;
    margin: 0 60px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
  }
  
  .news-content a:visited {
    color: #ffffff;
  }
  
  .news-content a:hover {
    color: #ffd700;
  }
  
  @keyframes scrollNews {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  /* pause on hover */
  .flash-news:hover .news-track {
    animation-play-state: paused;
  } 

/* --- BACKGROUND ELEMENTS --- */
#celestial-preloader .nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(192, 38, 211, 0.1) 0%, transparent 40%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

#celestial-preloader .grid-lines {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: rotateX(70deg) translateY(-20%);
    top: -50%;
    left: -50%;
    z-index: 2;
    mask-image: radial-gradient(circle, black, transparent 80%);
    pointer-events: none;
}

#celestial-preloader .shard {
    position: absolute;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    pointer-events: none;
    animation: floatShard 20s infinite linear;
}

/* --- PORTAL & LOGO --- */
#celestial-preloader .portal-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: cinematicZoom 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#celestial-preloader .logo-circle-levspace {
    width: 320px; 
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(212, 175, 55, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto 80px; 
    box-shadow: 0 0 80px rgba(0,0,0,0.8), 0 0 30px rgba(212, 175, 55, 0.2);
}

#celestial-preloader .school-logo {
    width: 92%; 
    height: 92%;
    object-fit: contain;
    z-index: 5;
    mix-blend-mode: lighten; 
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6)) contrast(1.1) brightness(1.2);
}

#celestial-preloader .horizon-ring {
    position: absolute;
    width: 360px;
    height: 360px;
    border: 2px solid transparent;
    border-top: 4px solid #ffcc33;
    border-bottom: 4px solid #6366f1;
    border-radius: 50%;
    animation: rotateHorizon 8s linear infinite;
}

/* --- TYPOGRAPHY --- */
#celestial-preloader .school-name-head {
    font-family: Georgia, 'Times New Roman', Times, serif;
    /* Adjusted size to fit "KNSS Vidyamandir" on one line comfortably */
    font-size: 3rem; 
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(to bottom, #ffcc33 40%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 20px 60px rgba(0,0,0,0.9);
    opacity: 0;
    animation: fadeUp 1s ease-out forwards 1s;
    white-space: nowrap; /* Forces single line */
}

/* Specifically styles the "Vidyamandir" part to match your sub-heading gold */
#celestial-preloader .school-name-head .gold-text {
    background: linear-gradient(to bottom, #ffcc33 40%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

#celestial-preloader .school-name-sub {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffcc33;
    text-transform: uppercase;
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

#celestial-preloader .school-name-info {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    letter-spacing: 8px; /* Increased tracking for a more premium look */
    margin-top: 10px;
    display: flex;
    justify-content: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Responsive adjustment to prevent cutoff on smaller screens */
@media (max-width: 900px) {
    #celestial-preloader .school-name-head {
        font-size: 3rem;
        letter-spacing: -1px;
    }
}

/* --- ANIMATIONS --- */
#celestial-preloader .letter {
    display: inline-block;
    opacity: 0;
    transform: scale(0);
    filter: blur(10px);
    animation: letterZoom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes letterZoom {
    0% { opacity: 0; transform: scale(0) translateY(15px); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes cinematicZoom {
    0% { transform: scale(5); opacity: 0; filter: blur(40px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

@keyframes rotateHorizon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatShard {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(80px, 80px) rotate(360deg); }
}

#celestial-preloader .cursor-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    transform: translate(-50%, -50%);
}


#celestial-preloader .skip-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

#celestial-preloader .skip-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffcc33; /* Gold border on hover */
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#celestial-preloader .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: 0.5s;
}

#celestial-preloader .skip-btn:hover .btn-glow {
    left: 100%;
}
/* mobile pc view */
/* ============================= */
/* 📱 MOBILE VIEW (up to 600px) */
/* ============================= */
@media (max-width: 600px) {

    #celestial-preloader .logo-circle-levspace {
        width: 180px;
        height: 180px;
        margin-bottom: 40px;
    }

    #celestial-preloader .horizon-ring {
        width: 200px;
        height: 200px;
    }

    #celestial-preloader .school-name-head {
        font-size: 1.5rem;
        letter-spacing: -0.5px;
        white-space: normal; /* allow wrap if needed */
        text-align: center;
    }

    #celestial-preloader .school-name-sub {
        font-size: 0.9rem;
        gap: 6px;
        flex-wrap: wrap;
    }

    #celestial-preloader .school-name-info {
        font-size: 0.6rem;
        letter-spacing: 3px;
        text-align: center;
        padding: 0 10px;
    }

    #celestial-preloader .skip-btn {
        bottom: 20px;
        right: 20px;
        padding: 8px 14px;
        font-size: 0.6rem;
    }

    #celestial-preloader .cursor-glow {
        width: 300px;
        height: 300px;
    }
}


/* ============================= */
/* 📲 TABLET VIEW (601px–1024px) */
/* ============================= */
@media (min-width: 601px) and (max-width: 1024px) {

    #celestial-preloader .logo-circle-levspace {
        width: 250px;
        height: 250px;
        margin-bottom: 60px;
    }

    #celestial-preloader .horizon-ring {
        width: 280px;
        height: 280px;
    }

    #celestial-preloader .school-name-head {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    #celestial-preloader .school-name-sub {
        font-size: 1.2rem;
    }

    #celestial-preloader .school-name-info {
        font-size: 0.75rem;
        letter-spacing: 5px;
    }

    #celestial-preloader .skip-btn {
        bottom: 30px;
        right: 30px;
        font-size: 0.7rem;
    }

    #celestial-preloader .cursor-glow {
        width: 500px;
        height: 500px;
    }
}


/* ============================= */
/* 💻 LARGE SCREENS (PC > 1024px) */
/* ============================= */
@media (min-width: 1025px) {

    #celestial-preloader .logo-circle-levspace {
        width: 320px;
        height: 320px;
    }

    #celestial-preloader .horizon-ring {
        width: 360px;
        height: 360px;
    }

    #celestial-preloader .school-name-head {
        font-size: 3rem;
    }

}
/* --- CORE RESET --- */
        
        
        
        
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Poppins', sans-serif; min-height: 200vh; background-color: #fcfcfc; }
/* ===========intro */



        /* --- 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);
        }

        .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: 88px;
            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; }

        /* ========================================================= */
    

        /* ==========================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 --- */
        .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;
            }
        }



        /* ================================================vdo */
        /* Hero Container */

        /* --- HERO SECTION CONTAINER --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000; /* Fallback color */
    margin-top: 12rem;
}

/* --- THE VIDEO FIX --- */
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; 
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover; /* This forces it to fill without stretching */
    z-index: 1;
}

/* --- OVERLAY --- */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Darkens video so text is readable */
    z-index: 2;
}

/* --- CONTENT ON TOP --- */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 4rem); /* Responsive font size */
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* --- MAIN BUTTON --- */
.btn-main {
    padding: 16px 40px;
    background: #c05d2e;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: 0.4s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-main:hover {
    background: transparent;
    border-color: #fff;
    transform: translateY(-3px);
}

/* --- VIDEO CONTROLS (Glass UI) --- */
.video-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 12px;
    z-index: 4;
}

.control-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px); /* Modern blur effect */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* =============================================== */

/* Heritage Section Container */
/* Heritage Section Container */
.heritage-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #4a0404 0%, #2b0202 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.heritage-container {
  display: flex;
  align-items: center; 
  gap: 50px;
  max-width: 1150px;
  width: 100%;
  z-index: 1;
}

/* --- PHOTO DESIGN (Thin Gold & White Border) --- */
.heritage-image-wrapper {
  flex: 0 0 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heritage-photo-box {
  position: relative;
  padding: 3px; 
  background: #d4af37; /* Thin Gold Outer Line */
  border-radius: 6px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.heritage-photo-box img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 4px;
  border: 4px solid #fff; /* Inner White Line */
  display: block;
}

/* --- NAME & YEAR --- */
.heritage-name {
  margin-top: 20px;
  text-align: center;
}

.heritage-name h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 1px;
  white-space: nowrap; 
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.heritage-name span {
  display: block;
  margin-top: 5px;
  color: #d4af37;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 3px;
}

/* --- CONTENT BOX WITH GOLD BORDER --- */
.heritage-content {
  flex: 1;
  padding: 40px 50px;
  background: #ffffff;
  border-radius: 0 50px 0 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  
  /* NEW GOLD BORDER DESIGN */
  border: 3px solid #d4af37; /* Solid Gold Border */
  position: relative;
  overflow: hidden;
}

/* Inner Accent Line for extra depth */
.heritage-content::after {
  content: '';
  position: absolute;
  inset: 8px; /* Offset the inner line */
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0 42px 0 42px;
  pointer-events: none;
}

.heritage-badge {
  display: inline-block;
  background: #1a252f;
  color: #d4af37;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 20px;
  border: 1px solid #d4af37;
  border-radius: 4px;
}

.heritage-content p {
  line-height: 1.9;
  color: #222;
  font-size: 1.08rem;
  margin: 0;
  font-family: Georgia, serif;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .heritage-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .heritage-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
  }
}
/* =========================================================== */


/* ======================================== */
/* --- QUICK FACTS SECTION --- */
.quick-facts {
    padding: 80px 0;
    background-color: #050505; /* Deep Black */
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* --- THE HEADING WITH MOVING BORDER --- */
.facts-title-wrapper {
    position: relative;
    display: table;
    margin: 0 auto 50px;
    padding: 3px; /* Space for the animated border thickness */
    background: #111;
    border-radius: 8px;
    overflow: hidden; /* Clips the rotating animation */
    z-index: 1;
}

/* The actual text container inside the animated border */
.facts-title {
    background: #050505;
    color: #fff;
    padding: 12px 40px;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    border-radius: 6px;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* THE MOVING BORDER ANIMATION (Moving to the Title) */
.facts-title-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        #d4af37, 
        #fde047, 
        transparent 30%
    );
    animation: headingBorderTrace 4s linear infinite;
    z-index: -1;
}

/* --- SINGLE LINE DASHBOARD (NO BOXES) --- */
.facts-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 20px;
}

.fact-item {
    text-align: center;
    flex: 1;
    position: relative;
}

/* Subtle separators between facts */
.fact-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.fact-item i {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 15px;
    display: block;
}

.fact-item h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 5px 0;
    letter-spacing: -1px;
}

.fact-item p {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.static-text {
    font-size: 1.4rem !important;
    color: #d4af37 !important;
}

/* --- ANIMATIONS --- */
@keyframes headingBorderTrace {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .facts-grid {
        flex-wrap: wrap;
        gap: 40px;
    }
    .fact-item {
        flex: 1 1 45%;
    }
    .fact-item:after { display: none; }
}

@media (max-width: 600px) {
    .facts-title { font-size: 1.5rem; padding: 10px 20px; }
    .fact-item { flex: 1 1 100%; }
}


/* ================================================ 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: 100;
        
        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: 1000;
        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; }
/* menu mobile view */
    /* Mobile */
    @media (max-width: 1000px) {
        .mmet-phyo-sidebar { display: none; }
        .mmet-links-grid { grid-template-columns: repeat(2, 1fr); }
    }
    /* mobile view for remaining except preloader */
    /* ===================================================== */
/* 📱 MOBILE VIEW (0–600px) */
/* ===================================================== */
@media (max-width: 600px) {

    /* HEADER */
    .site-header {
        padding: 10px 0;
    }

    .branding-wrapper {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px;
    }

    .school-logo-main {
        height: 55px;
    }

    .shine-text {
        font-size: 18px;
        letter-spacing: 2px;
        text-align: center;
    }

    /* NAV (hide desktop nav) */
    .nav {
        display: none;
    }

    /* HERO */
    .hero {
        margin-top: 6rem;
        height: 85vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .video-controls {
        bottom: 15px;
        right: 15px;
        flex-direction: column;
    }

    .control-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* HERITAGE */
    .heritage-content {
        padding: 25px 20px;
    }

    .heritage-photo-box img {
        height: 300px;
    }

    /* QUICK FACTS */
    .facts-title {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    /* MENU BUTTON */
    .mmet-open-btn {
        right: 15px;
        padding: 10px 20px;
        font-size: 12px;
    }

    /* MEGA MENU */
    .mmet-mega-card {
        height: 95vh;
        border-radius: 15px;
    }

    .mmet-nav-content {
        padding: 25px;
    }

    .mmet-links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mmet-logo-text {
        font-size: 22px;
    }
}


/* ===================================================== */
/* 📲 TABLET VIEW (601px–1024px) */
/* ===================================================== */
@media (min-width: 601px) and (max-width: 1024px) {

    /* HEADER */
    .school-logo-main {
        height: 70px;
    }

    .shine-text {
        font-size: 24px;
    }

    .nav > a, .nav-item > a {
        font-size: 13px;
        padding: 10px 12px;
    }

    /* HERO */
    .hero {
        margin-top: 8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* MEGA DROPDOWN FIX */
    .mega-dropdown {
        width: 90%;
        grid-template-columns: 1fr;
    }

    .mega-left {
        display: none;
    }

    /* HERITAGE */
    .heritage-container {
        flex-direction: column;
    }

    /* QUICK FACTS */
    .facts-grid {
        flex-wrap: wrap;
        gap: 30px;
    }

    .fact-item {
        flex: 1 1 45%;
    }

    /* MENU */
    .mmet-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mmet-phyo-sidebar {
        display: none;
    }
}


/* ===================================================== */
/* 💻 LARGE PC (1025px+) */
/* ===================================================== */
@media (min-width: 1025px) {

    .hero {
        margin-top: 12rem;
    }

    .mega-dropdown {
        width: 1000px;
    }

}

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;
    }
}

/* =====================================================
   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;
    }
}

/* =====================================================
   Home Page Responsive Overrides (Mobile-First)
   Targets: hero, heritage, quick-facts sections
   ===================================================== */
@media (max-width: 767px) {
    .hero {
        margin-top: 7.1rem !important;
        height: calc(100svh - 7.1rem);
        min-height: 420px;
        max-height: 760px;
    }

    .hero-content {
        padding: 0 14px !important;
    }

    .hero-content h1 {
        font-size: clamp(1.45rem, 7vw, 2.1rem) !important;
        line-height: 1.22;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: clamp(0.72rem, 2.8vw, 0.92rem) !important;
        letter-spacing: 1px !important;
        margin-bottom: 18px;
    }

    .video-controls {
        left: 50%;
        right: auto;
        bottom: 14px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 8px;
        width: max-content;
        max-width: calc(100% - 24px);
    }

    .control-btn {
        padding: 8px 10px;
        font-size: 11px;
        min-height: 34px;
        gap: 6px;
        white-space: nowrap;
    }

    .heritage-section {
        padding: 46px 12px !important;
    }

    .heritage-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px !important;
        max-width: 100% !important;
        align-items: stretch;
    }

    .heritage-image-wrapper {
        width: 100% !important;
        max-width: 330px !important;
        margin: 0 auto;
    }

    .heritage-photo-box {
        width: 100%;
    }

    .heritage-photo-box img {
        width: 100%;
        height: auto !important;
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }

    .heritage-name h3 {
        white-space: normal !important;
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .heritage-name span {
        letter-spacing: 1.2px;
        font-size: 0.95rem;
    }

    .heritage-content {
        padding: 20px 16px !important;
        border-radius: 0 24px 0 24px !important;
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
    }

    .heritage-content::after {
        inset: 6px;
        border-radius: 0 18px 0 18px;
    }

    .heritage-content p {
        font-size: clamp(0.94rem, 3.4vw, 1.03rem) !important;
        line-height: 1.75;
    }

    .quick-facts {
        padding: 48px 0 52px !important;
    }

    .facts-title-wrapper {
        margin-bottom: 24px;
    }

    .facts-title {
        font-size: clamp(1.15rem, 5.2vw, 1.5rem) !important;
        letter-spacing: 1.4px !important;
        padding: 10px 16px !important;
    }

    .facts-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 0 12px !important;
        max-width: 460px;
    }

    .fact-item {
        padding: 14px 10px;
        border: 1px solid rgba(212, 175, 55, 0.25);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
    }

    .fact-item::after {
        display: none !important;
    }

    .fact-item i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .fact-item h3 {
        font-size: clamp(1.55rem, 8vw, 2rem);
        line-height: 1.2;
    }

    .fact-item p {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    .static-text {
        font-size: clamp(1rem, 4.6vw, 1.25rem) !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        margin-top: 9rem !important;
        height: min(78vh, 760px);
    }

    .video-controls {
        bottom: 20px;
        right: 20px;
    }

    .heritage-section {
        padding: 64px 18px;
    }

    .heritage-container {
        gap: 30px;
        align-items: stretch;
    }

    .heritage-image-wrapper {
        max-width: 420px;
    }

    .heritage-content {
        padding: 30px 28px;
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
    }

    .quick-facts {
        padding: 64px 0;
    }

    .facts-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .fact-item {
        flex: 1 1 calc(50% - 20px);
        max-width: 320px;
    }

    .fact-item::after {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hero {
        margin-top: 11rem;
    }
}
