        /* --- 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);
        }

        .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: 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; }

    /* Mobile */
    @media (max-width: 1000px) {
        .mmet-phyo-sidebar { display: none; }
        .mmet-links-grid { grid-template-columns: repeat(2, 1fr); }
    }




/*/* Section Background - Vibrant School Theme */
.stack-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    padding: 100px 20px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    margin-top: 8rem;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header Styling - Single Line Force */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.sub-label {
    display: block;
    color: #fbbf24; /* Golden Academic Yellow */
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.main-heading {
    font-size: clamp(1.8rem, 4vw, 3.2rem); /* Scales down to fit on one line */
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap; /* Forces text into a single line */
    overflow: hidden;
    text-overflow: ellipsis; /* Prevents breaking on tiny screens */
    margin: 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Clear Point-wise Design (No Boxes/Circles) */
.equal-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.grid-card {
    display: flex;
    align-items: center;
    padding: 22px 30px;
    /* Soft glowing separator instead of a box */
    border-bottom: 1px solid rgba(251, 191, 36, 0.2); 
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px; /* For subtle hover shape */
}

/* Hover Interaction */
.grid-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: scale(1.02);
    border-bottom: 1px solid #fbbf24;
}

/* Academic Icons */
.card-logo {
    width: 45px;
    height: 45px;
    margin-right: 40px;
    color: #fbbf24; /* Golden accents feel like an 'A+' or award */
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.grid-card:hover .card-logo {
    transform: rotate(-10deg) scale(1.1);
}

.card-logo svg {
    width: 100%;
    height: 100%;
}

/* Point Text */
.grid-card p {
    font-size: 1.35rem;
    font-weight: 400;
    margin: 0;
    color: #e0e7ff;
    letter-spacing: 0.5px;
}

.grid-card:hover p {
    color: #ffffff;
}

/* Background Decoration (Floating Orbs for 'School' energy) */
.stack-section::after {
    content: "";
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: rgba(251, 191, 36, 0.1);
    filter: blur(80px);
    border-radius: 50%;
}

/* Responsive Fix for Heading */
@media (max-width: 768px) {
    .main-heading {
        white-space: normal; /* Allows wrap only on mobile to prevent cut-off */
        line-height: 1.2;
    }
    
    .grid-card {
        padding: 15px 10px;
    }
    
    .card-logo {
        margin-right: 20px;
        width: 30px;
    }

    .grid-card p {
        font-size: 1.1rem;
    }
}
/* ====================================== */



/* --- NEW PATTERN: OFFSET FOREST & GOLD --- */
/* --- CLEAN FOREST & GOLD DESIGN (No Ghost Box) --- */
/* admission.css — cleaned & page-specific */

/* -------------------------
   Wrapper & base
.mmet-portal-wrapper {
  width: 100%;
  min-height: 100vh;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: #f8fafc;
  overflow-x: hidden;
}

/* -------------------------
   Header with animated gradient
   ------------------------- */
.mmet-portal-header {
  position: relative;
  padding: 100px 20px;
  padding-top: calc(100px + 80px);
  padding-bottom: 80px; /* enough space for subtitle */
  text-align: center;

  background: linear-gradient(-45deg,#480241, #66095a, #480241, #c81ab7);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;

  /*  removed clip-path */
  box-sizing: border-box;
}

/* slightly smaller header on narrower screens */
@media (max-width: 1200px) {
  .mmet-portal-header {
    padding-top: calc(90px + 70px);
  }
}
@media (max-width: 768px) {
  .mmet-portal-header {
    padding-top: calc(70px + 60px);
  }
}

/* gradient animation */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* blinking cursor */
@keyframes blink {
  50% { opacity: 0; }
}

/* -------------------------
   Typing / Hero text
   ------------------------- */
.mmet-portal-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -1px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-shadow: 0 10px 20px rgba(106, 98, 98, 0.2);
   color: #ffffff; /* ADD THIS */

  min-height: 1.2em; /* keeps height stable while typing */
  margin-top: 2rem;
}

/* small blinking pipe after the title */
.mmet-portal-title::after {
  content: "|";
  animation: blink 0.8s infinite;
  color: #fbbf24;
}

.mmet-portal-subtitle {
  font-size: 1.4rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: rgba(255,255,255,0.8);
  margin-top: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* -------------------------
   Grid & glass panes
   ------------------------- */
.mmet-portal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px;
  margin-top: -50px; /* overlap effect with header */
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* pane (card) */
.mmet-portal-pane {
  background: rgba(10,21,39,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  flex: 1 1 450px;
  padding: 50px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
  overflow: hidden;
  box-sizing: border-box;
}

.mmet-portal-pane:hover {
  transform: translateY(-15px);
  background: rgba(30,41,59,0.9);
  border-color: #fbbf24;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* pane heading & label */
.mmet-pane-heading {
  color: #fbbf24;
  font-size: 1.2rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
  margin-bottom: 30px;
  border-left: 5px solid #fbbf24;
  padding-left: 15px;
}

.mmet-sub-label {
  color: #38bdf8;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-top: 30px;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* subtle decorative icon in pane footer (faint until hover) */
.pane-footer-icon {
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-size: 2rem;
  opacity: 0.08;
  transition: 0.3s;
}
.mmet-portal-pane:hover .pane-footer-icon {
  opacity: 1;
  right: 20px;
  color: #fbbf24;
}

/* -------------------------
   Documents list
   ------------------------- */
.mmet-doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mmet-doc-list li {
  position: relative;               /* required so ::before positions correctly */
  padding: 15px 0 15px 40px;
  color: #cbd5e1;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: 0.3s;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.mmet-doc-list li:hover {
  color: #ffffff;
  padding-left: 50px;
}

.mmet-doc-list li::before {
  content: "✦";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #fbbf24;
  text-shadow: 0 0 10px #fbbf24;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* -------------------------
   Small-screen adjustments
   ------------------------- */
@media (max-width: 600px) {
  .mmet-portal-grid { padding: 15px; }
  .mmet-portal-pane { padding: 30px; }
}

/* Responsive behaviour for narrow devices:
   keep the portal layout readable on tablets / phones */
@media (max-width: 900px) {
  .mmet-portal-grid { gap: 20px; }
  .mmet-pane-heading { font-size: 1.4rem; }
}
/* FIX ADMISSION HEADING SIZE */
.mmet-portal-pane h2.mmet-pane-heading{
  font-size: 40px !important;
  line-height: 1.3 !important;
}

.mmet-action-footer {
  display: flex;
  justify-content: center;
  padding: 60px 20px 80px; /* Space above and below the button */
  width: 100%;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* The Button Styling */
.mmet-apply-now-btn {
  background: #fbbf24; /* Matches your gold accents */
  color: #131314;      /* Dark blue text for contrast */
  padding: 20px 50px;
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 50px;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 15px;
  border: 2px solid transparent;
  margin-bottom: 4rem;
}

/* Animation on Hover */
.mmet-apply-now-btn:hover {
  transform: translateY(-8px) scale(1.03);
  background: #ffffff;
  color: #1e40af;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: #fbbf24;
}

.mmet-apply-now-btn i {
  transition: transform 0.3s ease;
}

.mmet-apply-now-btn:hover i {
  transform: translateX(8px);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .mmet-apply-now-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 18px 30px;
  }
}






/* ======= 1. SECTION BASE (Deep Midnight Navy) ======= */
.why-section {
  padding: 80px 0;
  /* PROFESSIONAL DEEP NAVY: Gradient for 3D depth */
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 70%, #020617 100%) !important;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ======= 2. CINEMATIC HEADER (Silver & Sky Shine) ======= */
.why-title {
  font-size: 35px !important;  /* 🔥 force apply */
  font-weight: 900;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-family: Georgia, 'Times New Roman', Times, serif;

  background: linear-gradient(90deg,#fbbf24);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallicShine 4s linear infinite;
  letter-spacing: -1px;
}
@keyframes metallicShine { to { background-position: 200% center; } }

.why-subtitle {
  font-size: 19px;
  color: #fbfdff; /* Soft Slate-Blue */
  max-width: 850px;
  margin: 0 auto 60px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-style: italic;
  line-height: 1.6;
}

/* ======= 3. POINT-WISE LAYOUT (No Boxes) ======= */
.why-container {
  width: 100%;
  max-width: 100%;        /* remove 1200px restriction */
  margin: 0;
  
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */

  gap: 50px 60px;        /* better spacing */

  padding: 0 8%;         /* side spacing (premium look) */
  box-sizing: border-box;
}

/* ======= 4. SHINING STAR POINTS ======= */
.why-box {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 10px 0;
  transition: all 0.4s ease;
  background: transparent !important; /* Forces removal of any box bg */
  border: none !important; /* Forces removal of borders */
}
.why-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%; /* perfect circle */

  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.4);

  font-size: 26px; /* controls emoji/icon size */
  line-height: 1;

  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);

  flex-shrink: 0; /* prevents shrinking */
}
/* Icon Glow Effect */
.why-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;

  padding: 10px 0;
  width: 100%;
}
.why-box:hover .why-icon {
  background: #f5f8fa;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
}

/* Text Content Styling */
.why-box h3 {
  font-size: 22px;
  line-height: 1.3;
   color: #0ea5e9;
}

.why-box p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px; /* keeps text neat */
}

.why-box p {
  font-size: 16px;
  color: #cbd5e1; /* Soft Silver-Grey */
  line-height: 1.6;
  margin: 0;
  position: relative;
  padding-left: 20px;
}

/* THE STAR BULLET: Point-wise Styling */
.why-box p::before {
  content: "✦"; /* Posh Shining Star */
  position: absolute;
  left: 0;
  color: #0ea5e9;
  font-size: 14px;
  top: 2px;
  text-shadow: 0 0 10px #0ea5e9;
}

/* ======= 5. INTERACTIVE HOVER ======= */
.why-box:hover h3 {
  color: #0ea5e9; /* Sky Blue Highlight */
  transform: translateX(5px);
  transition: 0.3s ease;
}
@media (max-width: 1000px) {
  .why-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 6%;
  }
}

@media (max-width: 600px) {
  .why-container {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}
/* ======= 6. RESPONSIVE ======= */
@media (max-width: 900px) {
  .why-container { grid-template-columns: 1fr; row-gap: 40px; }
  .why-title { font-size: 38px; }
}
/* -------------------------space */
/* REMOVE GAP ABOVE WHY SECTION */
.why-section {
  margin-top: 0 !important;
  padding-top: 30px !important;   /* reduced from 80px */
  padding-bottom: 60px;
}

/* remove space from title */
.why-title {
  margin-top: 0 !important;
}

/* remove extra gap from subtitle */
.why-subtitle {
  margin-top: 10px;
  margin-bottom: 40px; /* reduced */
}

/* FIX HEADER BOTTOM SPACE */
.mmet-portal-header {
  padding-bottom: 40px; /* reduce bottom gap */
}

/* REMOVE OVERLAP ISSUE */
.mmet-portal-grid {
  margin-top: 20px !important; /* was negative before */
}
/* ===== FIX SPACING BETWEEN SECTIONS ===== */

/* Remove unwanted big gaps */
.mmet-portal-wrapper {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Fix header bottom spacing */
.mmet-portal-header {
  padding-bottom: 80px; /* reduced from large visual gap */
}

/* REMOVE overlap issue */
.mmet-portal-grid {
  margin-top: 30px; /* was -50px (causing spacing issue) */
  padding-top: 0;
}

/* Reduce WHY section top gap */
.why-section {
  padding-top: 60px;
  padding-bottom: 60px;
  margin-top: 0;
}

/* Reduce space below WHY section */
.why-container {
  margin-bottom: 0;
}

/* Tighten gap before cards */
.mmet-portal-grid {
  margin-bottom: 20px;
}

/* Reduce button spacing */
.mmet-action-footer {
  padding: 40px 20px 50px; /* reduced from 60px 80px */
}

/* Remove extra space from headings */
h1, h2, h3, p {
  margin-top: 0;
}
/* space for primary */
/* remove unwanted gaps */
.why-section {
  margin-bottom: 0 !important;
  padding-bottom: 40px;
}

.mmet-portal-wrapper {
  margin-bottom: 0;
}
.mmet-portal-grid {
  margin-top: 0 !important;
  padding-top: 20px; /* small clean spacing */
}
/* 🔥 FULL WIDTH HD NAVY BACKGROUND */
.mmet-portal-grid {
  width: 100%;
  max-width: 100%;   /* remove restriction */
  margin: 0;         /* remove center spacing */

  background: linear-gradient(
    135deg,
    #020617 0%,
    #0f172a 40%,
    #1e293b 70%,
    #020617 100%
  );

  padding: 60px 6%;  /* responsive side spacing */
  
  border-radius: 0;  /* full width look (no cut edges) */
  box-shadow: inset 0 0 120px rgba(0,0,0,0.6);

  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
/* prim space */
/* 🔥 REMOVE ALL SPACE ABOVE CARDS (FINAL FIX) */

/* remove space below WHY section */
.why-section {
  margin-bottom: 0 !important;
  padding-bottom: 20px !important;
}

/* remove extra space from header bottom */
.mmet-portal-header {
  padding-bottom: 20px !important;
}

/* 🔥 MAKE CARDS TOUCH TOP CLEANLY */
.mmet-portal-grid {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* foter== */
* {
            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;
    }
}

/* =====================================================
   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;
    }
}

/* =====================================================
   Admission Page Section Responsive Overrides (Mobile-First)
   Targets: portal hero, why section, admission panes, CTA
   ===================================================== */
.mmet-portal-wrapper,
.why-section,
.mmet-portal-grid,
.mmet-action-footer,
.stack-section {
    overflow-x: hidden;
}

@media (max-width: 767px) {
    .mmet-portal-wrapper {
        min-height: auto !important;
    }

    .mmet-portal-header {
        padding: 90px 12px 26px !important;
    }

    .mmet-typing-container {
        width: 100%;
        max-width: 100%;
    }

    .mmet-portal-title {
        font-size: clamp(1.5rem, 7vw, 2.1rem) !important;
        line-height: 1.2 !important;
        margin-top: 0.8rem !important;
        min-height: 1.3em !important;
    }

    .mmet-portal-subtitle {
        font-size: 0.82rem !important;
        letter-spacing: 0.8px !important;
        line-height: 1.45 !important;
        margin-top: 8px !important;
        text-transform: none !important;
    }

    .why-section {
        padding: 40px 12px 26px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .why-title {
        font-size: clamp(1.45rem, 6.4vw, 1.9rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 14px !important;
        letter-spacing: 0.5px !important;
    }

    .why-subtitle {
        font-size: 0.92rem !important;
        margin: 0 auto 16px !important;
    }

    .why-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .why-box {
        gap: 12px !important;
        padding: 8px 0 !important;
    }

    .why-icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        font-size: 20px !important;
    }

    .why-box h3 {
        font-size: 1.02rem !important;
        margin-bottom: 6px !important;
        line-height: 1.35 !important;
    }

    .why-box p {
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
        max-width: 100% !important;
        padding-left: 14px !important;
    }

    .why-box p::before {
        font-size: 11px !important;
        top: 3px !important;
    }

    .mmet-portal-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 24px 12px 20px !important;
    }

    .mmet-portal-pane {
        flex: none !important;
        min-width: 0 !important;
        padding: 18px 14px 26px !important;
        border-radius: 14px !important;
    }

    .mmet-portal-pane h2.mmet-pane-heading,
    .mmet-pane-heading {
        font-size: 1.05rem !important;
        line-height: 1.35 !important;
        margin-bottom: 14px !important;
        padding-left: 10px !important;
        border-left-width: 3px !important;
    }

    .mmet-sub-label {
        font-size: 0.76rem !important;
        letter-spacing: 0.7px !important;
        margin-top: 16px !important;
    }

    .mmet-doc-list li {
        font-size: 0.9rem !important;
        line-height: 1.45 !important;
        padding: 10px 0 10px 24px !important;
    }

    .mmet-doc-list li:hover {
        padding-left: 24px !important;
    }

    .mmet-doc-list li::before {
        left: 4px !important;
    }

    .pane-footer-icon {
        font-size: 1.35rem !important;
        right: 12px !important;
        bottom: 10px !important;
    }

    .mmet-action-footer {
        padding: 18px 12px 30px !important;
    }

    .mmet-apply-now-btn {
        width: 100% !important;
        margin-bottom: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 14px !important;
        font-size: 0.95rem !important;
        padding: 14px 16px !important;
        gap: 8px !important;
    }

    .stack-section {
        margin-top: 0 !important;
        padding: 54px 12px !important;
    }

    .stack-section .section-header {
        margin-bottom: 24px !important;
    }

    .stack-section .sub-label {
        font-size: 0.72rem !important;
        letter-spacing: 1.2px !important;
    }

    .stack-section .main-heading {
        font-size: clamp(1.35rem, 6vw, 1.8rem) !important;
        white-space: normal !important;
    }

    .equal-grid {
        gap: 8px !important;
    }

    .grid-card {
        padding: 12px 10px !important;
        border-radius: 10px !important;
    }

    .card-logo {
        width: 24px !important;
        height: 24px !important;
        margin-right: 10px !important;
    }

    .grid-card p {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .mmet-portal-header {
        padding: 118px 18px 38px !important;
    }

    .mmet-portal-title {
        font-size: clamp(2rem, 5vw, 2.8rem) !important;
    }

    .mmet-portal-subtitle {
        font-size: 1rem !important;
        letter-spacing: 1.1px !important;
    }

    .why-section {
        padding: 58px 18px 40px !important;
    }

    .why-title {
        font-size: clamp(2rem, 4.3vw, 2.6rem) !important;
    }

    .why-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 !important;
    }

    .why-box p {
        max-width: 100% !important;
    }

    .mmet-portal-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 36px 18px 28px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .mmet-portal-pane {
        padding: 30px 24px 36px !important;
        border-radius: 18px !important;
    }

    .mmet-portal-pane h2.mmet-pane-heading,
    .mmet-pane-heading {
        font-size: 1.4rem !important;
        line-height: 1.35 !important;
    }

    .mmet-doc-list li {
        font-size: 1rem !important;
    }

    .mmet-action-footer {
        padding: 28px 18px 42px !important;
    }

    .mmet-apply-now-btn {
        font-size: 1.05rem !important;
        padding: 16px 24px !important;
        margin-bottom: 0 !important;
    }

    .stack-section {
        margin-top: 0 !important;
        padding: 70px 18px !important;
    }

    .stack-section .main-heading {
        white-space: normal !important;
    }
}
