/* ================= ACADEMICS: CLEANED & MERGED ================= */

/* ---------- helpers / small animations (kept near top) ---------- */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes modalPop {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes shimmer {
  100% { left: 200%; }
}

/* =========================
   ACADEMICS SECTION (core)
   ========================= */
/* ============================================================
   PREMIUM ACADEMICS - HD UPDATE
   ============================================================ */

/* SECTION 1: PHILOSOPHY (Heading Pushed Down) */
.philosophy-section {
    /* Pushing the heading further down as requested */
    padding: 140px 5% 40px !important; 
    background: linear-gradient(135deg, #103054, #2a004f);
    text-align: center;
    color: #fff;
}

.shining-gold-title {
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: 2px; /* Fixed letter spacing for premium look */
    margin-bottom: 45px !important;
    text-align: center;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fcf6ba, #bf953f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 5s linear infinite;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

@keyframes goldShimmer { 
    to { background-position: 200% center; } 
}

/* SECTION 2: EXCELLENCE (Image Left, Content Right) */
.excellence-section {
    padding: 80px 5% 120px;
    background: linear-gradient(135deg, #0d001a, #2a004f, #0d001a);
    color: #fff;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.excellence-row {
    display: flex;
    flex-direction: row; /* Image Left */
    align-items: center;
    justify-content: center;
    gap: 80px; /* Increased alignment spacing */
    max-width: 1300px;
    margin: 60px auto 0;
}

/* --- FIXED HD IMAGE & ZOOM EFFECT --- */
.excellence-image-side {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.premium-hd-frame {
    /* Fixed precise HD dimensions */
    width: 580px; 
    height: 390px; 
    position: relative;
    border-radius: 15px;
    /* Removed background effect - kept clean gold border */
    border: 3.5px solid rgba(229, 192, 123, 0.5); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow: hidden; /* Essential for zoom effect */
    background: #000;
}

.hd-image-zoom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Smooth cinematic zoom transition */
    transition: transform 1.2s cubic-bezier(0.15, 0.85, 0.35, 1);
}

/* The Zoom-In Action */
.premium-hd-frame:hover .hd-image-zoom {
    transform: scale(1.12);
}

/* --- PREMIUM TEXT & SHINING STAR LIST --- */
.excellence-content-side {
    flex: 1.2;
}

.premium-text, .premium-intro-text {
    font-size: 21px;
    line-height: 1.9; /* Fixed line alignment */
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

.shining-star-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shining-star-list li {
    font-size: 19px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    padding-left: 50px;
    position: relative;
    color: #fff;
}

/* SHINING GOLD STAR BULLET */
.shining-star-list li::before {
    content: "★";
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 26px;
    color: #ffd700;
    /* HD Star Glow */
    text-shadow: 0 0 12px #ffd700, 0 0 25px rgba(255, 215, 0, 0.4);
    animation: starTwinkle 3s infinite ease-in-out;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); filter: brightness(1.3); }
}

.shining-star-list li strong {
    color: #e5c07b;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ============================================================
   MOBILE VIEW FIXES
   ============================================================ */
@media (max-width: 1100px) {
    .excellence-row {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    .premium-hd-frame {
        width: 100%;
        max-width: 500px;
        height: 350px;
    }
    .shining-star-list {
        display: inline-block;
        text-align: left;
    }
}
/* ==================================aca====/ */




/* ============================================================
   MMET ACADEMICS - EXACT PHOTO MATCH (V3)
   ============================================================ */

.mmet-v3-philosophy-section {
    /* Pushes 'Academic Philosophy' deep down to clear the nav bar */
    padding: 220px 5% 100px !important; 
    background: linear-gradient(135deg, #103054 0%, #2a004f 100%);
    text-align: center;
    color: #ffffff;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.mmet-v3-shining-gold-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 70px !important;
    
    /* Premium Gold Shimmer Effect */
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fcf6ba, #bf953f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: mmetGoldShimmer 5s linear infinite;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

@keyframes mmetGoldShimmer { 
    to { background-position: 200% center; } 
}

/* ALIGNMENT FIX: Centers the content area while keeping the list justified */
.mmet-v3-philosophy-body {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers the intro text and the list container */
}

.mmet-v3-premium-intro-text {
    font-size: 22px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 55px;
    max-width: 900px;
}

/* THE STAR LIST - Center-aligned container with left-aligned items */
.mmet-v3-shining-star-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block; /* Essential: keeps stars tucked next to the text */
    text-align: left; /* Keeps text readable from the left */
    
}

.mmet-v3-shining-star-list li {
    font-size: 20px;
    line-height: 2.2; /* Spaced perfectly for HD readability */
    margin-bottom: 30px;
    padding-left: 65px; /* Fixed space for the star */
    position: relative;
    letter-spacing: 0.6px;
}

/* THE GOLD STAR - Precisely aligned with the first line of text */
.mmet-v3-shining-star-list li::before {
    content: "★";
    position: absolute;
    left: 0;
    /* Centers the star vertically against the line-height */
    top: 50%;
    transform: translateY(-50%); 
    
    font-size: 30px;
    color: #ffd700;
    /* The subtle HD glow from your screenshot */
    text-shadow: 0 0 15px #ffd700, 0 0 30px rgba(255, 215, 0, 0.5);
    animation: mmetStarTwinkle 3s infinite ease-in-out;
}

@keyframes mmetStarTwinkle {
    0%, 100% { opacity: 0.8; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.mmet-v3-shining-star-list li strong {
    color: #e5c07b; /* Posh skin-cream gold */
    font-weight: 700;
    letter-spacing: 1px;
}

/* RESPONSIVE: Ensures look remains clean on smaller screens */
@media (max-width: 1024px) {
    .mmet-v3-philosophy-section { padding-top: 150px !important; }
    .mmet-v3-shining-star-list li { font-size: 18px; padding-left: 50px; }
    .mmet-v3-shining-gold-title { font-size: 42px; }
}
/* ================= LIST ================= */

.feature-list{
    list-style:none;
    padding:0;
    margin:0;
}

.feature-list li{
    font-size:16px;
    color:#444;
    padding:10px 0 10px 30px;
    position:relative;
    border-bottom:1px dashed #e5e5e5;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Custom Bullet */

.feature-list li::before{
    content:"✓";
    position:absolute;
    left:0;
    top:8px;
    font-size:16px;
    color:#2d6cdf;
    font-weight:bold;
}

.feature-list li:last-child{
    border-bottom:none;
}

/* ================= MOBILE VIEW ================= */

@media (max-width:768px){

.academic-container{
    flex-direction:column;
    padding:60px 6%;
    gap:25px;
}

/* cards */

.side{
    min-width:100%;
    padding:30px 25px;
}

/* title */

.academic-container .side .title{
    font-size:28px;
}

/* underline */

.underline{
    width:40px;
    margin-bottom:20px;
}

/* list */

.feature-list li{
    font-size:15px;
}

}
@media (max-width:768px){

.academic-container{
    flex-direction:column;
}

/* FIX TITLE FOR MOBILE */

.academic-container .side .title{
    font-size:26px !important;
    white-space:normal;
    overflow:visible;
    text-align:center;
}

}
/* ================= SECTION ================= */
/* ===== SECTION ===== */
/* ===== 1. SECTION BACKGROUND ===== */
/* ===== CONTAINER ===== */
.academic-container {
    display: flex;
    flex-direction: column;
    padding: 20px 5% 40px;
    background: 
        radial-gradient(circle at top right, rgba(138, 43, 226, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.1), transparent 40%),
        linear-gradient(135deg, #050a10, #0d0d2b, #050a10) !important;
    gap: 70px;
}

/* ===== COLUMN (FIXED RESPONSIVE) ===== */
.mmet-compact-column {
    width: 100%;
    max-width: 1400px;   /* 🔥 instead of 1550px */
    margin: auto;        /* 🔥 center content */
}

.mmet-column-inner {
    padding: 10px;
}

/* ===== HEADER ===== */
.mmet-compact-header {
    text-align: center;
    margin-bottom: 15px;
}

.mmet-slim-gold-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    background: linear-gradient(90deg, #d8b98c, #ffd700, #d8b98c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldSweep 4s linear infinite;
}

.mmet-slim-subtitle {
    color: #b19cd9;
    font-size: 20px !important; /* forces it */
    font-weight: 600;
    margin-bottom: 10px;
}
/* Default for desktop/PC */
.mmet-slim-subtitle {
    color: #b19cd9;
    font-size: 30px !important; /* desktop size */
    font-weight: 600;
    margin-bottom: 10px;
}

/* Tablet view (width ≤ 1024px) */
@media (max-width: 1024px) {
    .mmet-slim-subtitle {
        font-size: 18px !important; /* slightly smaller on tablet */
    }
}

/* Mobile view (width ≤ 768px) */
@media (max-width: 768px) {
    .mmet-slim-subtitle {
        font-size: 16px !important; /* smaller on mobile */
    }
}
/* ===== FLEX LAYOUT ===== */
.mmet-flex-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.mmet-flex-row.reverse {
    flex-direction: row-reverse;
}

/* ===== TEXT ===== */
.mmet-text-area {
    flex: 1 1 55%;
}

/* ===== IMAGE ===== */
.mmet-image-area {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
}

/* IMAGE BOX */
.assessment-image-box {
    position: relative;
    width: 100%;
    height: 370px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.25);
}

/* IMAGE FIT */
.assessment-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 🔥 best for all devices */
    display: block;
}

/* ===== LIST ===== */
.mmet-slim-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border-left: 3px solid #ffd700;
    transition: 0.3s;
}

.mmet-slim-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(6px);
}

.mmet-slim-count {
    font-size: 20px;
    font-weight: 900;
    color: #ffd700;
}

.mmet-slim-content h3 {
    font-size: 18px;
    margin: 0 0 4px 0;
}

.mmet-slim-content p {
    color: #cfd8dc;
    font-size: 14px;
    margin: 0;
}

/* ===== COLORS ===== */
.mmet-slim-item:nth-child(1) h3 { color: #4ae239; }
.mmet-slim-item:nth-child(2) h3 { color: #4ecdc4; }
.mmet-slim-item:nth-child(3) h3 { color: #a29bfe; }
.mmet-slim-item:nth-child(4) h3 { color: #ffe66d; }
.mmet-slim-item:nth-child(5) h3 { color: #ff9f43; }
.mmet-slim-item:nth-child(6) h3 { color: #00d2d3; }
.mmet-slim-item:nth-child(7) h3 { color: #f368e0; }
.mmet-slim-item:nth-child(8) h3 { color: #54a0ff; }

/* ===== BELOW IMAGE ===== */
.mmet-bottom-list {
    margin-top: 20px;
}

/* ===== ANIMATION ===== */
@keyframes goldSweep {
    to { background-position: 200% center; }
}

/* ===================================== */
/* 📱 MOBILE (<=768px) */
/* ===================================== */
@media (max-width: 768px) {

    .mmet-flex-row,
    .mmet-flex-row.reverse {
        flex-direction: column;
        gap: 25px;
    }

    .assessment-image-box {
        height: 250px;
    }

    .mmet-slim-gold-title {
        font-size: 20px;
    }

    .mmet-slim-content h3 {
        font-size: 16px;
    }

    .mmet-slim-content p {
        font-size: 13px;
    }

    .mmet-slim-item {
        padding: 10px;
    }
}

/* ===================================== */
/* 📲 TABLET (769px–1024px) */
/* ===================================== */
@media (min-width: 769px) and (max-width: 1024px) {

    .mmet-flex-row {
        gap: 25px;
    }

    .assessment-image-box {
        height: 300px;
    }

    .mmet-slim-content h3 {
        font-size: 17px;
    }

}

/* ===================================== */
/* 💻 LARGE SCREENS (1200px+) */
/* ===================================== */
@media (min-width: 1200px) {

    .assessment-image-box {
        height: 420px;  /* 🔥 bigger screens bigger image */
    }

}
/* ===========================
   PRE-PRIMARY: PROFESSIONAL STYLE
   =========================== */
/* --- UPDATED SECTION BACKGROUND --- */

/* ============================= */
/* 💻 PC VIEW (DEFAULT) */
/* ============================= */

.early-years-section {
  padding: 100px 5%;
  /* NEW COLOR: Midnight Navy to Deep Amethyst - High Definition */
  background: 
    radial-gradient(circle at 10% 10%, rgba(78, 205, 196, 0.1), transparent 45%),
    linear-gradient(135deg, #05225d 0%, #0d0b1e 50%, #050510 100%) !important;
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

/* Texture overlay */
.early-years-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  opacity: 0.05;
  pointer-events: none;
}

.early-years-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* TITLE: Shining Liquid Gold */
.early-years-content .tag {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(40px, 5vw, 72px);
  /* Liquid Gold Gradient */
  background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin-bottom: 5px !important;
  font-weight: 800 !important;
  display: block;
}

/* SUB-HEADING: Pearl Aqua (Attractive Contrast) */
.early-years-content .sub-heading {
  font-size: 1.25rem !important;
  color: #4ecdc4 !important; 
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 25px !important;
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  text-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}

/* DESCRIPTION: Soft Ivory Silver */
.early-years-content .description {
  font-size: 1.15rem !important;
  line-height: 1.85;
  color: #e0e0e0 !important;
  margin-bottom: 35px;
  font-weight: 400;
  font-family: Georgia, 'Times New Roman', serif;
}

/* HIGHLIGHTS: Champagne Gold Glassmorphism */
.highlights li {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(10px);
  padding: 15px 20px !important;
  border-radius: 15px !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  /* Champagne Gold Color */
  color: #fcf6ba !important;
  border: 1px solid rgba(191, 149, 63, 0.3) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important;
  margin-bottom: 12px;
  transition: all 0.4s ease;
  font-family: Georgia, 'Times New Roman', serif;
}

.highlights li:hover {
  background: rgba(78, 205, 196, 0.1) !important;
  transform: translateX(12px);
  border-color: #4ecdc4 !important; /* Glows Aqua on Hover */
  color: #ffffff !important;
}

/* GALLERY SETTINGS (PRESERVED ALIGNMENT) */
.early-years-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.img-box {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(191, 149, 63, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-main { grid-column: span 2; aspect-ratio: 16 / 9; }
.bento-sub { aspect-ratio: 1 / 1; }

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
  filter: brightness(0.8) contrast(1.1);
}

.img-box:hover {
  transform: translateY(-8px);
  border-color: #4ecdc4; /* Aqua Frame glow */
  box-shadow: 0 30px 60px rgba(78, 205, 196, 0.2);
}

.img-box:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* ============================= */
/* 📱 TABLET & MOBILE VIEW (SAME ALIGNMENT) */
/* ============================= */

@media (max-width: 1024px) {
  .early-years-container { grid-template-columns: 1fr; text-align: center; }
  .early-years-gallery { grid-template-columns: 1fr 1fr; }
  .bento-main { grid-column: span 2; }
}

@media (max-width: 600px) {
  .early-years-gallery { grid-template-columns: 1fr; }
  .bento-main, .bento-sub { grid-column: span 1; aspect-ratio: 4 / 3; }
  .early-years-content .tag { font-size: 32px; }
}
/* ===========================
   PRIMARY PROGRAMME: FULLY REFINED
   =========================== */

/* --- LAYOUT & BACKGROUND --- */
/* --- UPDATED DARK BACKGROUND --- */
/* ===== 1. SECTION BACKGROUND (NAVY & AMETHYST FUSION) ===== */
.primary-programme {
  padding: 100px 5%;
  /* HD MIX: Deep Midnight Navy to Dark Royal Purple */
  background: 
    radial-gradient(circle at top left, rgba(78, 205, 196, 0.15), transparent 40%),
    radial-gradient(circle at bottom right, rgba(138, 43, 226, 0.15), transparent 40%),
    linear-gradient(135deg, #073287, #0d0b1e, #040468) !important;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  font-family: Georgia, 'Times New Roman', serif;
}

/* Carbon Fiber Texture Overlay */
.primary-programme::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  opacity: 0.05;
  pointer-events: none;
}

/* ===== 2. TYPOGRAPHY (CHAMPAGNE & AQUA) ===== */
.section-tag {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(40px, 5vw, 72px) !important;
  /* LIQUID GOLD GRADIENT */
  background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  display: block !important;
}

.primary-content .sub-heading {
  font-size: 1.3rem !important;
  /* PEARL AQUA - Vibrant and Professional */
  color: #4ecdc4 !important; 
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 25px !important;
  line-height: 1.4;
  display: block;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.primary-desc {
  font-size: 1.15rem !important;
  line-height: 1.9;
  /* SOFT IVORY SILVER */
  color: #e0e0e0 !important; 
  margin-bottom: 30px;
  font-weight: 400;
}

/* ===== 3. FEATURES LIST (GLASSMORPHISM) ===== */
.primary-features li {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(10px);
  padding: 15px 20px !important;
  border-radius: 15px !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  /* GOLD GLOW BORDER */
  border: 1px solid rgba(191, 149, 63, 0.3) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important;
  /* CHAMPAGNE TEXT */
  color: #fcf6ba !important;
  display: flex !important;
  align-items: center;
  gap: 15px;
  transition: all 0.4s ease;
}

.primary-features li:hover {
  background: rgba(78, 205, 196, 0.1) !important;
  transform: translateX(12px);
  border-color: #4ecdc4 !important;
  color: #ffffff !important;
}

/* ===== 4. IMAGE GRID (SYMMETRIC HD) ===== */
.primary-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr; 
  gap: 20px;
  height: 500px; 
  padding-top: 0 !important; 
  margin-top: 0 !important;
}

.img-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  /* GOLDEN FRAME */
  border: 2px solid rgba(191, 149, 63, 0.4);
  background: #050a08;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) !important;
  transition: 0.5s ease;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  filter: brightness(0.85);
  transition: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-card:hover {
  border-color: #4ecdc4; /* Glows Aqua on hover */
  transform: scale(1.02);
}

.img-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

/* ===== 5. CONTAINER ALIGNMENT ===== */
.primary-container {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start; 
  position: relative;
  z-index: 1;
}

.primary-content {
  display: flex;
  flex-direction: column;
  padding-right: 20px;
  padding-top: 0 !important;
}
/* mobile view for pri */
/* ============================= */
/* 💻 PC VIEW (DEFAULT) */
/* ============================= */
/* Your current design already works for PC */


/* ============================= */
/* 📱 TABLET VIEW (≤ 1024px) */
/* ============================= */
@media (max-width: 1024px) {

  .primary-programme {
    padding: 80px 5%;
  }

  .primary-container {
    grid-template-columns: 1fr; /* stack layout */
    gap: 50px;
    text-align: center;
  }

  .primary-content {
    align-items: center;
    padding-right: 0;
  }

  .section-tag {
    font-size: clamp(32px, 5vw, 50px);
    text-align: center;
  }

  .primary-desc {
    max-width: 100%;
  }

  /* IMAGE GRID */
  .primary-images {
    grid-template-columns: 1fr 1fr;
    height: auto; /* remove fixed height */
    gap: 15px;
  }

  .img-card {
    height: 220px;
    width: 100%;
  }
}


/* ============================= */
/* 📱 MOBILE VIEW (≤ 600px) */
/* ============================= */
@media (max-width: 600px) {

  .primary-programme {
    padding: 60px 4%;
  }

  .primary-container {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .primary-content {
    align-items: center;
    padding-right: 0;
  }

  .section-tag {
    font-size: 30px;
    line-height: 1.2;
  }

  .primary-content .sub-heading {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .primary-desc {
    font-size: 14px;
    line-height: 1.6;
  }

  /* 🔥 STACK IMAGES (BEST MOBILE FIX) */
  .primary-images {
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
  }

  .img-card {
    height: 180px;
    width: 100%;
    border-radius: 15px;
  }

  /* FEATURES */
  .primary-features li {
    font-size: 14px;
    padding: 12px 14px;
  }
}
/* =========================
   MIDDLE SCHOOL PROGRAMME
   ========================= */
/* --- THE WRAPPER (NEW BG COLOR) --- */
.middle-school-programme {
  position: relative;
  padding: 100px 6%;
  /* Posh Midnight Navy & Charcoal - High Definition */
  background: radial-gradient(circle at top left, #1c0049 0%, #1b0055 100%) !important;
  color: #ffffff;
  overflow: hidden;
}

/* Subtle HD texture overlay */
.middle-school-programme::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  opacity: 0.05;
  pointer-events: none;
}

/* --- TYPOGRAPHY (NEW FONT COLORS) --- */
.ms-text .section-title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(38px, 4vw, 65px) !important;
  /* Shining Champagne Gold Gradient */
  background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  
  margin: 0 0 15px 0;
  line-height: 1.1;
  font-weight: 800 !important;
  filter: drop-shadow(0 2px 10px rgba(191, 149, 63, 0.3));
}

.ms-sub {
  font-size: 1.2rem !important;
  font-weight: 700;
  /* NEW COLOR: Pearl Aqua - Attractive & Modern */
  color: #4ecdc4 !important; 
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}

.ms-intro {
  /* NEW COLOR: Muted Platinum Silver */
  color: #d1d5db !important; 
  line-height: 1.85;
  margin-bottom: 25px;
  font-size: 1.1rem !important;
  font-weight: 400;
  font-family: Georgia, 'Times New Roman', serif;
}

/* --- HIGHLIGHTS (NEW FONT COLORS) --- */
.ms-highlights li {
  margin-bottom: 12px;
  /* Champagne Gold text for list */
  color: #fcf6ba !important; 
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(191, 149, 63, 0.25);
  font-weight: 600;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: all 0.3s ease;
}

.ms-highlights li:hover {
  background: rgba(78, 205, 196, 0.1);
  border-color: #4ecdc4; /* Aqua Glow */
  transform: translateX(8px);
}

/* --- PHOTO GRID (LAYOUT 100% SAME AS YOURS) --- */
.ms-container {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr; 
  gap: 60px; 
  align-items: center; 
  position: relative;
  z-index: 1;
}
/* --- EXPLORE BUTTON: SHINING AQUA & GOLD --- */
.explore-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  /* Premium Pearl Aqua Gradient */
  background: linear-gradient(135deg, #4ecdc4, #2ab7ca) !important;
  color: #000814 !important; /* Dark navy text for high contrast on Aqua */
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 50px;
  letter-spacing: 1.5px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  z-index: 1;
}

/* --- ATTRACTION HOVER --- */
.explore-btn:hover {
  background: #ffffff !important; /* Turns bright white/pearl on hover */
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(191, 149, 63, 0.4); /* Switches to Gold Glow */
  color: #000 !important;
}

/* --- INNER SHINE SWEEP ANIMATION --- */
.explore-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
  z-index: -1;
}

.explore-btn:hover::after {
  left: 100%;
}

/* --- MOBILE ADJUSTMENT --- */
@media (max-width: 600px) {
  .explore-btn {
    padding: 8px 20px;
    font-size: 11px;
    letter-spacing: 1px;
  }
}
.ms-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 240px; 
  gap: 20px;
}

.ms-card {
  position: relative;
  border-radius: 24px !important; 
  overflow: hidden;
  /* Posh Gold Edge */
  border: 2px solid rgba(191, 149, 63, 0.3); 
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.ms-top-wide {
  grid-column: span 2; 
}

.ms-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  filter: brightness(0.85);
  transition: transform 0.7s ease;
}

/* --- HOVER EFFECTS --- */
.ms-card:hover {
  transform: translateY(-10px);
  border-color: #4ecdc4; /* Glows Aqua on hover */
  box-shadow: 0 35px 70px rgba(78, 205, 196, 0.2);
}

.ms-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

/* NEW: Image Shine Animation */
.ms-card::after {
  content: '';
  position: absolute;
  top: 0; left: -150%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-25deg);
  transition: 0.7s;
}

.ms-card:hover::after {
  left: 150%;
}
/* ============================= */
/* 💻 PC VIEW (DEFAULT) */
/* ============================= */
/* Your current CSS already works perfectly */


/* ============================= */
/* 📱 TABLET VIEW (≤ 1024px) */
/* ============================= */
@media (max-width: 1024px) {

  .middle-school-programme {
    padding: 80px 5%;
  }

  .ms-container {
    grid-template-columns: 1fr; /* stack layout */
    gap: 50px;
    text-align: center;
  }

  .ms-text {
    align-items: center;
  }

  .ms-text .section-title {
    font-size: clamp(32px, 5vw, 50px);
  }

  .ms-intro {
    max-width: 100%;
  }

  /* IMAGE GRID */
  .ms-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 200px;
    gap: 16px;
  }

  .ms-top-wide {
    grid-column: span 2;
  }
}


/* ============================= */
/* 📱 MOBILE VIEW (≤ 600px) */
/* ============================= */
@media (max-width: 600px) {

  .middle-school-programme {
    padding: 60px 4%;
  }

  .ms-container {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .ms-text {
    align-items: center;
  }

  .ms-text .section-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .ms-sub {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .ms-intro {
    font-size: 14px;
    line-height: 1.6;
  }

  /* 🔥 STACK IMAGES FOR MOBILE */
  .ms-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 180px);
    gap: 14px;
  }

  .ms-top-wide {
    grid-column: span 1; /* remove wide layout */
  }

  .ms-card {
    border-radius: 18px;
  }

  /* LIST ITEMS */
  .ms-highlights li {
    font-size: 14px;
    padding: 10px 14px;
  }
}
/* =========================
   HIGH SCHOOL PROGRAMME: LIGHT THEME REFINED
   ========================= */

/* --- UPDATED DARK BACKGROUND --- */
/* ============================= */
/* 💻 PC VIEW (LAYOUT UNCHANGED) */
/* ============================= */

.high-school-programme {
  position: relative;
  padding: 100px 5%;
  /* NEW BG: Deep Midnight Navy & Charcoal */
  background: radial-gradient(circle at center, #01134f 0%, #000813 100%) !important;
  color: #ffffff;
  overflow: hidden;
}

/* Subtle HD texture overlay */
.high-school-programme::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  opacity: 0.05;
  pointer-events: none;
}

.hs-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  /* KEPT 1.1 to 0.9 RATIO */
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px; 
  align-items: center;
  position: relative;
  z-index: 1;
}

/* --- TEXT CONTENT (SHINING COLORS) --- */
.hs-text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hs-tag {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(40px, 5vw, 72px) !important;
  /* Shining Champagne Gold */
  background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin: 0 0 15px 0 !important; 
  font-weight: 800 !important;
  line-height: 1.1;
  filter: drop-shadow(0 2px 10px rgba(191, 149, 63, 0.3));
}

/* SUB-HEADING: Pearl Aqua */
.hs-sub-heading {
  font-size: 1.8rem !important;
  color: #4ecdc4 !important; 
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 22px !important;
font-family: Georgia, 'Times New Roman', Times, serif;
  text-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}

.hs-description {
  /* Muted Platinum Silver */
  color: #d1d5db !important; 
  font-size: 1.1rem !important;
  line-height: 1.85;
  margin-bottom: 35px;
  max-width: 95%;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* --- BENTO GALLERY (EXACT 2x2 GRID) --- */
.hs-bento-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  grid-template-rows: repeat(2, 220px); 
  gap: 18px; 
  width: 100%;
}

.hs-img-box {
  position: relative;
  border-radius: 24px !important;
  overflow: hidden;
  border: 2px solid rgba(191, 149, 63, 0.3); 
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  background: #111;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hs-img-box img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.8);
  transition: transform 0.8s ease;
}

/* --- EFFECTS & ANIMATIONS --- */
.hs-img-box:hover {
  transform: translateY(-8px);
  border-color: #4ecdc4; /* Aqua Glow */
  box-shadow: 0 30px 60px rgba(78, 205, 196, 0.2);
}

.hs-img-box:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

/* Glass Shine Effect */
.hs-img-box::after {
  content: '';
  position: absolute;
  top: 0; left: -150%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-25deg);
  transition: 0.7s;
}

.hs-img-box:hover::after {
  left: 150%;
}

/* ============================= */
/* 📱 TABLET & MOBILE VIEWS */
/* ============================= */

@media (max-width: 1024px) {
  .high-school-programme { padding: 80px 5%; }
  .hs-container {
    grid-template-columns: 1fr; /* Stacks for tablet */
    text-align: center;
    gap: 50px;
  }
  .hs-text-content { align-items: center; }
  .hs-description { max-width: 100%; }
}

@media (max-width: 600px) {
  .high-school-programme { padding: 60px 4%; }
  .hs-tag { font-size: 32px !important; }
  .hs-sub-heading { font-size: 14px !important; letter-spacing: 1px; }
  .hs-description { font-size: 14px !important; line-height: 1.6; }
  
  /* STACK BENTO INTO 1 COLUMN */
  .hs-bento-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 180px);
    gap: 14px;
  }
  .hs-img-box { border-radius: 18px !important; }
}
/* --- FEATURES LIST: POSH GLASSMORPHISM --- */
.hs-feature {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(10px); /* Posh Glass Effect */
  color: #fcf6ba !important; /* Champagne Gold text */
  border: 1px solid rgba(191, 149, 63, 0.25) !important; /* Gold edge */
  padding: 16px 22px !important;
  border-radius: 15px !important;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600 !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* SHINING ICON/BULLET EFFECT */
.hs-feature::before {
  content: '✦'; /* Posh Star Icon */
  color: #4ecdc4; /* Pearl Aqua Glow */
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.8);
}

/* ATTRACTION HOVER ANIMATION */
.hs-feature:hover {
  background: rgba(78, 205, 196, 0.1) !important; /* Soft Aqua tint */
  border-color: #4ecdc4 !important; /* Aqua Glow Border */
  transform: translateX(15px) scale(1.02); /* Slides out & pops */
  color: #ffffff !important;
  box-shadow: 0 15px 35px rgba(78, 205, 196, 0.2);
}

/* INNER SHINE SWEEP ON HOVER */
.hs-feature::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: 0.6s;
}

.hs-feature:hover::after {
  left: 100%;
}

/* MOBILE ADJUSTMENT FOR POINTS */
@media (max-width: 600px) {
  .hs-feature {
    font-size: 14px !important;
    padding: 12px 18px !important;
    transform: none !important; /* Prevent sideways shift on small screens */
  }
}
/* mobile view for hschool */
/* ===================================== */
/* 💻 PC VIEW (DEFAULT) */
/* ===================================== */
/* Already handled by your existing CSS */


/* ===================================== */
/* 📲 TABLET VIEW (769px – 1024px) */
/* ===================================== */
@media (min-width: 769px) and (max-width: 1024px) {

  .hs-container {
    grid-template-columns: 1fr 1fr; /* balanced */
    gap: 40px;
  }

  .hs-tag {
    font-size: clamp(32px, 4vw, 48px) !important;
  }

  .hs-description {
    font-size: 1rem !important;
  }

  .hs-bento-gallery {
    grid-template-rows: repeat(2, 180px); /* smaller grid */
  }

}


/* ===================================== */
/* 📱 MOBILE VIEW (<=768px) */
/* ===================================== */
@media (max-width: 768px) {

  /* STACK LAYOUT */
  .hs-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* TEXT CENTER (OPTIONAL NICE LOOK) */
  .hs-text-content {
    text-align: center;
    align-items: center;
  }

  .hs-tag {
    font-size: 28px !important;
  }

  .hs-sub-heading {
    font-size: 13px !important;
  }

  .hs-description {
    font-size: 14px !important;
    max-width: 100%;
  }

  /* FEATURE BOX */
  .hs-feature {
    padding: 12px 16px !important;
    font-size: 14px;
  }

  /* BENTO GRID → STACK */
  .hs-bento-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 160px);
    gap: 12px;
  }

}
/* =========================
   PREMIUM ACHIEVERS / TOPPERS
   ========================= */
.premium-achievers {
  padding: 55px 6%;
  text-align: center;
  color: #1a1a1a;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.premium-achievers .crown-title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 6px;
  color: gold;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.premium-achievers .crown-title span { color: #b38728; }

.premium-achievers .crown-subtitle {
  color: #fff6f6;
  margin-bottom: 40px;
  font-size: 35px !important;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* toppers grid/cards */
.premium-achievers .toppers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 toppers in one row */
  gap: 30px;
  margin: 40px auto 0;
  max-width: 1400px;
}

.premium-achievers .topper-card-new {
  width: 100%; /* grid controls width now */
}

.premium-achievers .topper-card-new {
  width: 280px;
  background: #ffffffca;
  border-radius: 18px;
  padding: 28px 24px 26px;
  border: 1px solid rgba(32, 32, 32, 0.04);
  box-shadow: 0 15px 40px rgba(34, 34, 34, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 300ms ease, box-shadow 300ms ease;
  margin-top: 40px;
}
.premium-achievers .topper-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(34, 34, 34, 0.12);
}

.premium-achievers .student-photo {
  width: 120px;
  height: 120px;
  margin-top: -80px;
  margin-bottom: 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245,245,245,0.9));
  box-shadow: 0 8px 28px rgba(30,30,30,0.08);
  border: 6px solid #fff;
}
.premium-achievers .student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.premium-achievers .student-name {
 font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 18px;
  margin: 8px 0 4px;
  color: #2b2b2b;
}
.premium-achievers .student-total {
  font-size: 20px;
  font-weight: 800;
  color: #b38728;
  margin-bottom: 14px;
}

.premium-achievers .view-marks-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(27,27,27,0.05);
  background: linear-gradient(180deg, #fffdf9, #fbf6ee);
  color: #7a5e3c;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 200ms ease;
  box-shadow: 0 8px 20px rgba(179,137,60,0.06);
}
.premium-achievers .view-marks-btn:hover { transform: translateY(-3px); background: #fdfaf4; }

/* marks modal */
.marks-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(8, 10, 12, 0.55);
  backdrop-filter: blur(6px);
}
.marks-modal.show { display: block; }

.marks-modal .modal-content {
  z-index: 110001;
  width: 90%;
  max-width: 450px;
  margin: 10vh auto;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.marks-modal .close-modal {
  position: absolute;
  right: 18px;
  top: 12px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #777;
  cursor: pointer;
  z-index: 110002;
}

.marks-modal .modal-header { display:flex; gap:18px; align-items:center; margin-bottom:20px; }
.marks-modal .modal-header img { width:80px; height:80px; border-radius:50%; border:3px solid #f6ecd6; object-fit:cover; }
.marks-modal #modalName { margin:0 0 6px; font-family: Georgia, 'Times New Roman', Times, serif; font-size:22px; color:#2b2b2b; }
.marks-modal #modalTotal { margin:0; color:#8a6d55; font-weight:700; font-size:16px; }

.marks-table { border-radius:10px; overflow:hidden; border:1px solid #f0e9de; }
.marks-table .marks-row { display:flex; justify-content:space-between; padding:12px 16px; background:#fff; font-size:15px; color:#333; border-bottom:1px solid #f7f4f1; }
.marks-table .marks-row:last-child { border-bottom:none; }
.marks-table .marks-row span:last-child { font-weight:700; }

.year-tabs { display:flex; justify-content:center; gap:10px; margin-bottom:30px; flex-wrap:wrap; }
.year-tabs .tab-btn {
  padding:8px 20px; border-radius:20px; border:1px solid #b38728; background:transparent; color:#fff7e7; font-weight:600; cursor:pointer; transition:0.3s;
}
.year-tabs .tab-btn.active { background:#b36728; color:white; }

/* =========================
   STATE SYLLABUS SECTION (magenta edition)
   - scoped gold-divider override to avoid conflict
   ========================= */
.state-section {
  width: 100%;
  padding: 60px 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #89125a 0%, #280319 100%);
}
.state-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0 5%;
}

.state-illustration { flex:1; position:relative; display:flex; justify-content:center; }
.magenta-aura-glow { position:absolute; width:450px; height:450px; background: radial-gradient(circle, rgba(255,0,127,0.15) 0%, transparent 70%); z-index:1; }
.floating-svg { width:100%; max-width:500px; z-index:2; animation: floatAnim 4s ease-in-out infinite; }

.state-content { flex:1.2; }
.sub-heading { color:#d4af37; text-transform:uppercase; letter-spacing:4px; font-size:14px; font-weight:700; display:block; margin-bottom:10px; }
.state-content h2 { font-family: Georgia, 'Times New Roman', Times, serif; font-size:4rem; color:#ffffff; margin-bottom:20px; letter-spacing:1px; }
.state-section .gold-divider { width:80px; height:4px; background:#d4af37; margin-bottom:30px; } /* scoped override */

.state-content p { font-family: Georgia, 'Times New Roman', Times, serif; color:#e0e0e0; font-size:18px; line-height:1.9; margin-bottom:20px; text-align:justify; }
.state-content strong { color:#d4af37; }

.stats-row { display:flex; gap:40px; margin-top:40px; }
.stat-item { border-left:3px solid #d4af37; padding-left:20px;font-family: Georgia, 'Times New Roman', Times, serif; }
.stat-item strong { display:block; font-size:30px; color:#ffffff;font-family: Georgia, 'Times New Roman', Times, serif; }
.stat-item span { color:#d4af37; font-size:25px; text-transform:uppercase; font-weight:600;font-family: Georgia, 'Times New Roman', Times, serif; }
/* mv tv and pv */
/* ===============================
   📱 MOBILE (up to 768px)
================================ */
@media (max-width: 768px) {

  .state-section {
    padding: 40px 0;
  }

  .state-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
    text-align: center;
  }

  .state-illustration {
    order: 1;
  }

  .floating-svg {
    max-width: 280px;
  }

  .magenta-aura-glow {
    width: 250px;
    height: 250px;
  }

  .state-content {
    order: 2;
  }

  .state-content h2 {
    font-size: 2.2rem;
  }

  .state-content p {
    font-size: 15px;
    text-align: justify;
  }

  .sub-heading {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .stats-row {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .stat-item {
    border-left: none;
    border-top: 3px solid #d4af37;
    padding-left: 0;
    padding-top: 10px;
    text-align: center;
  }

  .stat-item strong {
    font-size: 22px;
  }

  .stat-item span {
    font-size: 16px;
  }
}


/* ===============================
   📲 TABLET (769px - 1024px)
================================ */
@media (min-width: 769px) and (max-width: 1024px) {

  .state-container {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }

  .floating-svg {
    max-width: 350px;
  }

  .magenta-aura-glow {
    width: 320px;
    height: 320px;
  }

  .state-content h2 {
    font-size: 3rem;
  }

  .state-content p {
    font-size: 16px;
  }

  .stats-row {
    justify-content: center;
    gap: 30px;
  }

  .stat-item strong {
    font-size: 26px;
  }

  .stat-item span {
    font-size: 20px;
  }
}


/* ===============================
   💻 LARGE PC / TV (1200px+)
================================ */
@media (min-width: 1200px) {

  .state-container {
    gap: 100px;
  }

  .floating-svg {
    max-width: 600px;
  }

  .magenta-aura-glow {
    width: 550px;
    height: 550px;
  }

  .state-content h2 {
    font-size: 4.5rem;
  }

  .state-content p {
    font-size: 19px;
  }

  .stats-row {
    gap: 60px;
  }

  .stat-item strong {
    font-size: 34px;
  }

  .stat-item span {
    font-size: 22px;
  }
}
/* responsive adjustments for state */
@media (max-width: 1024px) {
  .state-container { flex-direction: column; text-align: center; }
  .state-section .gold-divider { margin: 0 auto 30px; }
  .stats-row { justify-content: center; }
}
/* -------------mb view */
/* ============================= */
/* ===== RESPONSIVE VIEWS ===== */
/* ============================= */

/* -------- TABLET VIEW -------- */
@media (max-width: 1024px) {

  .premium-achievers {
    padding: 50px 5%;
  }

  .premium-achievers .toppers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .premium-achievers .topper-card-new {
    width: 100%;
    padding: 24px 20px;
  }

  .premium-achievers .student-photo {
    width: 100px;
    height: 100px;
    margin-top: -70px;
  }

  .premium-achievers .student-name {
    font-size: 16px;
  }

  .premium-achievers .student-total {
    font-size: 18px;
  }

  .premium-achievers .view-marks-btn {
    font-size: 14px;
  }
}


/* -------- MOBILE VIEW -------- */
@media (max-width: 768px) {

  .premium-achievers {
    padding: 45px 5%;
  }

  .premium-achievers .toppers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .premium-achievers .topper-card-new {
    padding: 22px 16px;
    margin-top: 30px;
  }

  .premium-achievers .student-photo {
    width: 90px;
    height: 90px;
    margin-top: -60px;
  }

  .premium-achievers .student-name {
    font-size: 15px;
  }

  .premium-achievers .student-total {
    font-size: 16px;
  }

  .premium-achievers .view-marks-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}


/* -------- SMALL MOBILE -------- */
@media (max-width: 480px) {

  .premium-achievers .toppers-grid {
    grid-template-columns: 1fr;
  }

  .premium-achievers .crown-title {
    font-size: 24px;
  }

  .premium-achievers .crown-subtitle {
    font-size: 13px;
  }

  .premium-achievers .student-photo {
    width: 80px;
    height: 80px;
  }

  .premium-achievers .student-name {
    font-size: 14px;
  }

  .premium-achievers .student-total {
    font-size: 15px;
  }
}
/* =========================
   ACHIEVERS STATS / Toppers / Lists
   Consolidated: merged both grid/flex versions safely
   ========================= */
/* default (desktop): 5 columns grid */
/* --- ONLY BACKGROUND COLOR UPDATED --- */
.achievers-section.premium-achievers {
  padding: 80px 5%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
  color: #f8fafc;
  /* FORCING ALL SECTION CONTENT TO CENTER */
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  text-align: center;
}

.achievers-stats-row {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping while keeping items centered */
  justify-content: center; /* THE FIX: Centers cards horizontally */
  align-items: stretch;    /* Keeps all cards the same height */
  gap: 25px;
  margin: 40px auto 0 auto;
  width: 100%;
  max-width: 1300px;
}

.stat-card.elite {
  flex: 1 1 180px; /* Allows cards to grow/shrink but stay balanced */
  max-width: 220px; 
  background: rgba(255, 255, 255, 0.05); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 35px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  
  /* INTERNAL CENTERING */
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  text-align: center;
}

/* FIX FOR PHOTOS/IMAGES INSIDE CARDS */
.stat-card.elite img, 
.topper-card-new img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%; /* Posh circular look */
  margin: 0 auto 15px auto; /* Centers image horizontally */
  border: 2px solid rgba(255, 215, 0, 0.3); /* Thin gold border */
  display: block;
}

.stat-number { 
  font-size: 2.5rem; 
  font-weight: 900; 
  font-family: Georgia, 'Times New Roman', Times, serif;
  background: linear-gradient(to bottom, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin: 10px 0;
  display: inline-block;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  margin: 0;
  width: 100%;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
  .stat-card.elite {
    flex: 1 1 40%; /* 2 cards per row on tablets */
  }
}

@media (max-width: 480px) {
  .stat-card.elite {
    flex: 1 1 100%; /* 1 card per row on mobile */
    max-width: 280px;
  }
}
/* ------------------------------------------academic cards */


/* ===================== */
/* PREMIUM WRAPPER */
/* ===================== */
.programs-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 8%;
    /* Dark Gold & Midnight Purple Gradient Mix */
    background: radial-gradient(circle at top right, #091b81, #0a080f);
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Adds a "Silk" texture look */
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.05) 0%, transparent 100%);
    z-index: 0;
}

/* ===================== */
/* HD SECTION TITLE */
/* ===================== */
.section-title {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 60px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    /* Liquid Gold Text Effect */
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fcf6ba, #bf953f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* ===================== */
/* THE GRID */
/* ===================== */
.innovative-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ===================== */
/* THE SHINING HD CARD */
/* ===================== */
.modern-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    /* The "Shining" Border */
    border: 1px solid rgba(191, 149, 63, 0.3);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.modern-card:hover {
    transform: translateY(-15px);
    border-color: #fcf6ba;
    box-shadow: 0 20px 40px rgba(191, 149, 63, 0.15);
}

/* Moving Shine Effect on Hover */
.modern-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.5s;
}

.modern-card:hover::before {
    left: 100%;
}

/* IMAGE BOX */
.image-box {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.image-box img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.8) contrast(1.1);
}

.modern-card:hover .image-box img {
    transform: scale(1.1);
    filter: brightness(1);
}

/* PREMIUM TAG */
.age-tag {
    position: absolute;
    top: 15px; left: 15px;
    background: linear-gradient(135deg, #bf953f, #aa771c);
    color: #fff;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: Georgia, 'Times New Roman', Times, serif;
    letter-spacing: 1px;
    border-radius: 50px;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.2);
}

/* CONTENT BOX */
.content-box {
    padding: 25px;
    text-align: center;
    border-top: 1px solid rgba(191, 149, 63, 0.2);
}

.content-box h3 {
    color: #fcf6ba; /* Pearl Gold */
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    
}

.content-box p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */
@media(max-width:1100px){
    .innovative-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width:650px){
    .innovative-grid { grid-template-columns: 1fr; }
    .programs-wrapper { padding: 60px 5%; }
}
/* =================================10phtos= */
/* ===================================== */
/* 💻 PC VIEW (OPTIMIZED HEIGHT & TEXT)  */
/* ===================================== */

.gallery-area {
  padding: 80px 0;
  /* Deep Obsidian Background */
  background: radial-gradient(circle at center, #000b30 0%, #0d0046 100%) !important;
  font-family: 'Playfair Display', serif;
}

.gallery-section {
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 4%;
  text-align: center;
}

/* --- ENHANCED HEADER VISIBILITY --- */
.gallery-title {
  margin-bottom: 60px;
  font-size: clamp(34px, 5vw, 55px);
  /* Brighter High-Definition Gold */
  background: linear-gradient(to right, #bf953f, #fffbd7, #b38728, #fcf6ba) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* Stronger shadow to make it "Pop" from the dark BG */
  filter: drop-shadow(0 0 20px rgba(191, 149, 63, 0.4));
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.roman-numerals {
  color: #4ecdc4 !important; /* Pearl Aqua */
  text-shadow: 0 0 20px rgba(78, 205, 196, 0.6);
  margin-left: 12px;
}

/* --- THE 5-PHOTO ELITE GRID --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 20px;
}

/* --- GALLERY CARD --- */
.gallery-card {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(12px);
  border-radius: 18px;
  overflow: hidden;
  /* Shining Champagne Gold Frame */
  border: 1.5px solid rgba(191, 149, 63, 0.35) !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

/* --- INCREASED IMAGE HEIGHT (HEAD PRESERVED) --- */
.gallery-card img {
  width: 100%;
  height: 250px; /* Increased from 150px for better visibility */
  object-fit: cover;
  /* CRITICAL: Ensures heads/faces are never cut */
  object-position: top center; 
  display: block;
  filter: brightness(0.9);
  transition: transform 0.7s ease, filter 0.4s ease;
}

/* --- CONTENT BLOCK --- */
.gallery-card-content {
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(191, 149, 63, 0.2);
}

.gallery-card-content h3 {
  margin: 0 0 5px;
  font-size: 1.05rem;
  color: #fcf6ba !important; /* Champagne Gold Names */
  font-weight: 700;
  letter-spacing: 0.3px;
}

.gallery-card-content p {
  margin: 0;
  color: #4ecdc4 !important; /* Pearl Aqua Details */
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- HOVER ATTRACTION --- */
.gallery-card:hover {
  transform: translateY(-12px);
  border-color: #4ecdc4 !important; /* Glows Aqua on hover */
  box-shadow: 0 25px 50px rgba(78, 205, 196, 0.25);
  z-index: 10;
}

.gallery-card:hover img {
  filter: brightness(1.1);
  transform: scale(1.1);
}

/* Glass Shine Sweep Animation */
.gallery-card::after {
  content: '';
  position: absolute;
  top: 0; left: -150%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-25deg);
  transition: 0.8s;
}
.gallery-card:hover::after { left: 150%; }

/* ===================================== */
/* 📱 TABLET & MOBILE RESPONSIVENESS    */
/* ===================================== */

@media (max-width: 1200px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-card img { height: 160px; }
  .gallery-title { font-size: 32px !important; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card img { height: 220px; }
}