/* ==========================================================================
   CONEDU WEBSITE PLATFORM — MOBILE-FIRST MASTER STYLESHEET
   PN Global Solutions · Product Brand ConEdu
   Strategy: All base styles = mobile. Scale UP with min-width breakpoints.
   ========================================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --primary:       #0d5c3a;
  --primary-hover: #09472c;
  --secondary:     #d97706;
  --secondary-hover:#b45309;
  --accent:        #0284c7;
  --dark:          #0f172a;
  --dark-surface:  #1e293b;
  --card-bg:       #ffffff;
  --light-bg:      #f8fafc;
  --text-main:     #1e293b;
  --text-muted:    #64748b;
  --border:        #e2e8f0;

  --sidebar-w: 240px;
  --sidebar-mini: 60px;

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0/.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0/.1),0 2px 4px -2px rgb(0 0 0/.1);
  --shadow-lg: 0 10px 25px -3px rgb(0 0 0/.15),0 4px 6px -4px rgb(0 0 0/.1);

  --r-sm: 6px;  --r-md: 12px;  --r-lg: 18px;  --r-full: 9999px;
  --ease: all .25s cubic-bezier(.4,0,.2,1);

  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: #090d16; color: var(--text-main); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.school-site { width: 100%; min-height: 100vh; overflow-x: hidden; box-sizing: border-box; }
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Utility ── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ──────────────────────────────────────────────
   SIMULATOR BAR
   ────────────────────────────────────────────── */
#simulator-bar {
  height: 48px;
  background: #090d16;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 8px;
}
.sim-badge {
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  color:#fff; font-size:10px; font-weight:700; padding:3px 8px;
  border-radius:4px; white-space:nowrap; flex-shrink:0;
}
.sim-url-bar {
  flex: 1; display:flex; align-items:center;
  background:#1e293b; border:1px solid #334155;
  border-radius:20px; padding:2px 10px; min-width:0; overflow:hidden;
}
.sim-protocol { color:#64748b; font-size:11px; font-family:monospace; flex-shrink:0; }
.sim-select {
  background:transparent; border:none; color:#38bdf8;
  font-weight:600; font-size:12px; outline:none; width:100%;
  min-width:0; text-overflow:ellipsis;
}
.sim-select option { background:#1e293b; color:#fff; }
.sim-viewports { display:flex; gap:4px; flex-shrink:0; }
.viewport-btn {
  background:#1e293b; border:1px solid #334155; color:#94a3b8;
  padding:4px 7px; border-radius:5px; font-size:11px; transition:var(--ease);
}
.viewport-btn:hover,.viewport-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }
#viewport-frame-wrapper {
  display: flex;
  justify-content: center;
  background: #ffffff;
  min-height: 100vh;
  width: 100%;
}
#app-root {
  width: 100%;
  background: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* ──────────────────────────────────────────────
   SHARED COMPONENTS
   ────────────────────────────────────────────── */

/* Buttons — mobile-first: full-width by default, auto on larger screens */
.btn {
  display: inline-flex; align-items:center; justify-content:center;
  gap: 6px; padding: 12px 20px; border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px;
  line-height: 1.2; border: 2px solid transparent;
  transition: var(--ease); cursor: pointer; text-align: center;
  min-height: 48px; /* Touch-friendly */
  white-space: normal; word-break: break-word;
}
.btn-primary   { background:var(--primary);   color:#fff; border-color:var(--primary); }
.btn-primary:hover { background:var(--primary-hover); border-color:var(--primary-hover); transform:translateY(-1px); }
.btn-secondary { background:var(--secondary); color:#fff; border-color:var(--secondary); }
.btn-secondary:hover { background:var(--secondary-hover); border-color:var(--secondary-hover); }
.btn-outline   { background:transparent; color:var(--primary); border-color:var(--primary); }
.btn-outline:hover { background:var(--primary); color:#fff; }
.btn-outline-white { background:transparent; color:#fff; border-color:#fff; }
.btn-outline-white:hover { background:#fff; color:var(--dark); }
.btn-sm { padding:8px 14px; font-size:13px; min-height:34px; border-radius:var(--r-sm); white-space:nowrap; }
.btn-xs { padding:4px 10px !important; font-size:11px !important; min-height:28px !important; border-radius:6px !important; white-space:nowrap !important; word-break:normal !important; line-height:1.2 !important; display:inline-flex !important; align-items:center !important; justify-content:center !important; }
.btn-lg { padding:14px 28px; font-size:16px; min-height:52px; }

.badge {
  display:inline-block; padding:4px 12px; border-radius:var(--r-full);
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px;
  white-space:nowrap;
}
.badge-primary   { background:#dcfce7; color:var(--primary); }
.badge-secondary { background:#fef3c7; color:var(--secondary); }
.badge-info      { background:#e0f2fe; color:var(--accent); }

/* Logo */
.conedu-logo { height:38px; width:auto; object-fit:contain; }
.conedu-logo.lg { height:52px; }
.conedu-logo.sm { height:30px; }

/* Section Wrapper — mobile padding first */
.section { padding: 44px 16px; border-bottom:1px solid #f1f5f9; }
.section-header { text-align:center; max-width:720px; margin:0 auto 28px; }
.section-header h2 {
  font-family:'Outfit',sans-serif;
  font-size: clamp(22px, 6vw, 34px);
  font-weight:800; color:var(--dark); line-height:1.2;
  margin-bottom:8px; word-break:break-word;
}
.section-header p { font-size:clamp(14px,4vw,16px); color:var(--text-muted); line-height:1.6; word-break:break-word; }

/* Grid — mobile: 1 col. Tablet+: 2 col. Desktop+: 3 col */
.grid { display:grid; gap:16px; }
.grid-auto { grid-template-columns:1fr; }

/* Cards */
.card {
  background:var(--card-bg); padding:22px; border-radius:var(--r-lg);
  border:1px solid var(--border); box-shadow:var(--shadow-sm);
  transition:var(--ease); display:flex; flex-direction:column; gap:10px;
}
.card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:var(--primary); }
.card h3 { font-family:'Outfit',sans-serif; font-size:18px; font-weight:700; color:var(--dark); word-break:break-word; }
.card p  { font-size:14px; color:var(--text-muted); line-height:1.6; word-break:break-word; flex:1; }
.card-icon { font-size:32px; }

/* ──────────────────────────────────────────────
   LANDING PAGE — PUBLIC MARKETING SITE
   ────────────────────────────────────────────── */
.landing-page {
  background:#fff;
  overflow-x:hidden; overflow-y:auto;
  /* Ensure all sections are visible and scrollable */
  min-height:100%;
}
/* Global text safety for translated content */
.landing-page h1,.landing-page h2,.landing-page h3,.landing-page h4,
.landing-page p,.landing-page li,.landing-page td,.landing-page span,
.landing-page label,.landing-page button,.landing-page a {
  word-break:break-word; overflow-wrap:break-word;
}

/* Announcement Bar */
.announcement-bar {
  background:linear-gradient(90deg,#09472c,#0d5c3a 60%,#b45309);
  color:#fff; padding:10px 16px; text-align:center;
  font-size:13px; font-weight:500; line-height:1.5;
  display:flex; align-items:center; justify-content:center;
  gap:10px; flex-wrap:wrap;
}
.announcement-bar a { color:#fef08a; font-weight:700; text-decoration:underline; }

/* ── Landing Nav (mobile-first 3-row structure) ── */
.landing-nav {
  display:flex; flex-direction:column;
  background:rgba(255,255,255,.98);
  backdrop-filter:blur(10px); position:sticky; top:0; z-index:100;
  border-bottom:1px solid var(--border);
}
/* Row 1: Logo + Hamburger — always on one line */
.nav-top-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px;
}
.nav-brand { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.nav-hamburger {
  display:flex; flex-direction:column; justify-content:center;
  gap:5px; background:transparent; border:1.5px solid var(--border);
  padding:8px 10px; border-radius:var(--r-sm); flex-shrink:0;
  cursor:pointer; min-width:42px; min-height:42px;
}
.ham-line {
  display:block; width:20px; height:2px;
  background:var(--dark); border-radius:2px;
  transition:var(--ease);
}
/* Row 2: Quick actions bar — always visible */
.nav-actions-bar {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  padding:8px 16px; border-top:1px solid var(--border);
  background:#f8fafc;
}
/* Row 3: Nav links — toggle by hamburger */
.nav-links-wrap {
  display:none; flex-direction:column;
  gap:2px; padding:8px 12px 12px;
  border-top:1px solid var(--border);
}
.nav-links-wrap.open { display:flex; }
.nav-links-wrap a {
  padding:10px 12px; border-radius:var(--r-sm);
  color:var(--text-main); font-size:15px; font-weight:600;
  transition:var(--ease); border-left:3px solid transparent;
  white-space:nowrap;
}
.nav-links-wrap a:hover { background:#f0fdf4; color:var(--primary); border-left-color:var(--primary); }
.lang-select {
  background:#fff; border:1px solid var(--border);
  border-radius:var(--r-sm); padding:7px 10px;
  font-size:13px; font-weight:600; outline:none; min-height:38px;
}

/* ── HERO SECTION — mobile-first single column ── */
.hero-section {
  padding:36px 16px 48px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(13,92,58,.08) 0%,transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(217,119,6,.07) 0%,transparent 55%);
  display:flex; flex-direction:column; gap:32px;
}
.hero-content { display:flex; flex-direction:column; gap:16px; }
.hero-content h1 {
  font-family:'Outfit',sans-serif;
  font-size:clamp(24px,7vw,46px);
  font-weight:900; line-height:1.15;
  color:var(--dark); word-break:break-word;
}
.hero-content p {
  font-size:clamp(15px,4vw,18px);
  color:var(--text-muted); line-height:1.65;
  word-break:break-word;
}
/* Hero CTA — stack vertically on mobile */
.hero-ctas {
  display:flex; flex-direction:column;
  gap:10px; width:100%;
}
.hero-ctas .btn { width:100%; justify-content:center; }
.hero-media img {
  border-radius:var(--r-lg); box-shadow:var(--shadow-lg);
  border:4px solid #fff; width:100%;
}

/* ── Product Overview Cards ── */
.overview-grid { display:grid; grid-template-columns:1fr; gap:14px; }

/* ── Features Grid ── */
.features-grid { display:grid; grid-template-columns:1fr; gap:14px; }

/* ── How It Works Steps ── */
.steps-grid { display:grid; grid-template-columns:1fr; gap:14px; }
.step-card { text-align:center; padding:28px 22px; }
.step-num {
  font-family:'Outfit',sans-serif; font-size:44px; font-weight:900;
  color:var(--secondary); line-height:1; margin-bottom:10px;
}

/* ── Pricing Cards ── */
.pricing-grid { display:grid; grid-template-columns:1fr; gap:16px; }
.pricing-card {
  background:#fff; border-radius:var(--r-lg); border:2px solid var(--border);
  padding:28px 22px; position:relative;
  display:flex; flex-direction:column; gap:12px; transition:var(--ease);
}
.pricing-card.popular { border-color:var(--primary); box-shadow:var(--shadow-lg); }
.popular-badge {
  position:absolute; top:-14px; left:50%; transform:translateX(-50%);
  background:var(--secondary); color:#fff; padding:4px 16px;
  border-radius:var(--r-full); font-size:11px; font-weight:700; white-space:nowrap;
}
.price-tag { font-family:'Outfit',sans-serif; font-size:34px; font-weight:900; color:var(--dark); }
.price-tag small { font-size:14px; color:var(--text-muted); font-weight:400; }
.pricing-features { list-style:none; display:flex; flex-direction:column; gap:8px; }
.pricing-features li { display:flex; align-items:flex-start; gap:8px; font-size:14px; color:var(--text-muted); word-break:break-word; }
.pricing-features li::before { content:'✓'; color:var(--primary); font-weight:800; flex-shrink:0; }
.pricing-card .btn { margin-top:auto; }

/* ── Mission 1000 Assam ── */
.mission-section { padding:44px 16px; background:linear-gradient(135deg,#09472c,#0d5c3a); color:#fff; }
.mission-inner { display:flex; flex-direction:column; gap:28px; }
.mission-text h2 { font-family:'Outfit',sans-serif; font-size:clamp(22px,6vw,34px); font-weight:900; word-break:break-word; margin:10px 0; }
.mission-text p { font-size:clamp(14px,4vw,16px); line-height:1.65; color:#cbd5e1; word-break:break-word; }
.mission-stats { display:flex; gap:20px; flex-wrap:wrap; margin-top:14px; }
.stat-item h3 { font-family:'Outfit',sans-serif; font-size:28px; font-weight:900; color:var(--secondary); }
.stat-item p  { font-size:12px; color:#94a3b8; }
.mission-image img { border-radius:var(--r-lg); border:3px solid rgba(255,255,255,.2); width:100%; }

/* ── Testimonials ── */
.testimonials-grid { display:grid; grid-template-columns:1fr; gap:14px; }
.testimonial-card { padding:24px; display:flex; flex-direction:column; min-height:200px; }
.testimonial-quote { font-style:italic; line-height:1.65; font-size:15px; color:var(--dark); margin-bottom:14px; word-break:break-word; flex:1; }
.testimonial-author { font-family:'Outfit',sans-serif; color:var(--primary); font-size:15px; font-weight:700; }
.testimonial-role   { font-size:12px; color:var(--text-muted); }

/* ── FAQ ── */
.faq-list { display:flex; flex-direction:column; gap:10px; max-width:800px; margin:0 auto; }
.faq-item { border:1.5px solid var(--border); border-radius:var(--r-md); overflow:hidden; background:#fff; }
.faq-item:hover { border-color:var(--primary); }
.faq-q {
  width:100%; text-align:left; padding:16px 18px;
  background:#fff; border:none; font-family:'Outfit',sans-serif;
  font-size:15px; font-weight:700; color:var(--dark);
  display:flex; justify-content:space-between; align-items:center;
  gap:10px; line-height:1.4; cursor:pointer; outline:none;
}
.faq-icon { font-size:20px; font-weight:800; color:var(--primary); flex-shrink:0; transition:transform .25s; }
.faq-a { padding:0 18px 16px; font-size:14px; color:var(--text-muted); line-height:1.65; word-break:break-word; border-top:1px solid #f1f5f9; background:#fafafa; }
.faq-a.hidden { display:none !important; }

/* ── Contact & Address ── */
.contact-grid { display:grid; grid-template-columns:1fr; gap:20px; }
.address-card {
  border-radius:20px; padding:24px;
  background:#fff;
  border:2px solid transparent;
  background-image:linear-gradient(#fff,#f8fafc),linear-gradient(135deg,var(--primary),var(--secondary),var(--accent));
  background-origin:border-box; background-clip:padding-box,border-box;
  box-shadow:var(--shadow-lg); display:flex; flex-direction:column; gap:16px;
}
.address-logo-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding-bottom:14px; border-bottom:1px solid var(--border); }
.address-company h3 { font-family:'Outfit',sans-serif; font-size:18px; font-weight:800; color:var(--dark); }
.address-company p { font-size:12px; color:var(--text-muted); font-weight:600; }
.address-row { display:flex; gap:12px; align-items:flex-start; background:#f1f5f9; padding:12px; border-radius:10px; border:1px solid var(--border); }
.address-icon { width:40px; height:40px; background:#fff; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; box-shadow:var(--shadow-sm); }
.address-text h4 { font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); margin-bottom:2px; }
.address-text p { font-size:14px; font-weight:700; color:var(--dark); line-height:1.4; word-break:break-word; }
.address-actions { display:flex; flex-direction:column; gap:10px; }
.address-actions .btn { width:100%; }
.booking-form-card { padding:24px; }
.booking-form-card h3 { font-family:'Outfit',sans-serif; font-size:20px; font-weight:800; color:var(--dark); margin-bottom:6px; }

/* ── Form Elements ── */
.form-group { margin-bottom:14px; }
.form-label { display:block; font-weight:600; font-size:13px; color:var(--dark); margin-bottom:5px; }
.form-control {
  width:100%; padding:10px 12px; border:1.5px solid var(--border);
  border-radius:var(--r-sm); font-size:14px; font-family:inherit;
  outline:none; transition:var(--ease); min-height:42px;
}
.form-control:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(13,92,58,.1); }

/* ── School Website Builder Highlights ── */
.highlights-list { list-style:none; display:flex; flex-direction:column; gap:12px; margin-bottom:24px; }
.highlights-list li { display:flex; align-items:flex-start; gap:10px; font-size:16px; font-weight:600; color:var(--dark); line-height:1.4; word-break:break-word; }
.highlights-list li::before { content:'✓'; color:var(--primary); font-weight:900; font-size:18px; flex-shrink:0; }

/* ── CTA Banner ── */
.cta-banner { padding:48px 16px; background:linear-gradient(90deg,#09472c,#0d5c3a); text-align:center; }
.cta-banner h2 { font-family:'Outfit',sans-serif; font-size:clamp(22px,6vw,34px); font-weight:900; color:#fff; margin-bottom:10px; word-break:break-word; }
.cta-banner p { font-size:clamp(14px,4vw,17px); color:#cbd5e1; margin-bottom:24px; line-height:1.6; word-break:break-word; }
.cta-banner-btns { display:flex; flex-direction:column; gap:12px; align-items:stretch; }
.cta-banner-btns .btn { width:100%; }

/* ── Footer ── */
.landing-footer { background:var(--dark); color:#94a3b8; padding:40px 16px 20px; }
.footer-grid { display:grid; grid-template-columns:1fr; gap:24px; margin-bottom:24px; }
.footer-brand p { font-size:14px; line-height:1.6; margin-top:10px; }
.footer-col h4 { font-family:'Outfit',sans-serif; color:#fff; margin-bottom:10px; font-size:15px; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:6px; }
.footer-col a { font-size:14px; color:#94a3b8; transition:var(--ease); }
.footer-col a:hover { color:#fff; }
.footer-bottom { border-top:1px solid #1e293b; padding-top:16px; text-align:center; font-size:12px; }

/* ──────────────────────────────────────────────
   SCHOOL WEBSITE TEMPLATES — MOBILE-FIRST
   ────────────────────────────────────────────── */
.school-site {
  display:flex; flex-direction:column; min-height:100vh;
  background:#fff;
  overflow-x:hidden; overflow-y:auto;
}

/* School Header — mobile-first 3-tier layout */
.school-header {
  padding:0; background:#fff; border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:90;
  display:flex; flex-direction:column;
  width:100%; box-sizing:border-box;
}
/* Row 1: Brand + Hamburger — always one line */
.school-header-top {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px; gap:10px; width:100%; box-sizing:border-box;
}
.school-brand { display:flex; align-items:center; gap:10px; flex:1 1 auto; min-width:0; overflow:hidden; }
.school-logo {
  height: 38px;
  width: 38px;        /* fixed square — prevents wide logos taking over */
  max-height: 38px;
  max-width: 38px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  background: transparent;
}
.school-name { font-family:'Outfit',sans-serif; font-size:14px; font-weight:800; line-height:1.2; word-break:break-word; min-width:0; overflow:hidden; }
.school-addr { font-size:10px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:180px; }
.school-hamburger {
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px;
  background:transparent; border:1.5px solid var(--border);
  padding:7px 9px; border-radius:var(--r-sm); flex-shrink:0;
  cursor:pointer; min-width:38px; min-height:38px; width:38px; height:38px;
  transition:var(--ease); margin-left:6px;
}
.school-ham-line { display:block; width:18px; height:2px; background:var(--dark); border-radius:2px; transition:var(--ease); }
/* Row 2: Quick actions (lang + login) — always visible & prominent */
.school-header-actions {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:8px 16px; border-top:1px solid var(--border); background:#f8fafc;
  box-sizing:border-box; width:100%;
}
.school-lang-select {
  background:#fff; border:1px solid var(--border); border-radius:var(--r-sm);
  padding:4px 8px; font-size:12px; outline:none; min-height:34px; height:34px;
  flex-shrink:0; font-weight:600; cursor:pointer;
}
.school-header-actions .btn {
  font-size:12.5px !important; font-weight:700 !important; padding:6px 14px !important;
  border-radius:6px !important; min-height:34px !important; height:34px !important;
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  gap:5px !important; flex-shrink:0 !important; white-space:nowrap !important;
  text-decoration:none !important;
}
/* Row 3: Nav links — toggled by hamburger */
.school-nav-wrap {
  display:none; width:100%; flex-direction:column; gap:2px;
  padding:8px 12px 14px; border-top:1px solid var(--border);
  box-sizing:border-box;
}
.school-nav-wrap.open { display:flex; }
.school-nav-wrap a {
  padding:10px 14px; font-size:14px; font-weight:600;
  color:var(--text-main); border-radius:var(--r-sm);
  border-left:3px solid transparent; transition:var(--ease);
  text-decoration:none;
}
.school-nav-wrap a:hover { background:#f0fdf4; color:var(--primary); border-left-color:var(--primary); }

/* SCHOOL TEMPLATE HERO — mobile-first, centered overlay */
.school-hero {
  min-height: 60vh; /* comfortable on mobile */
  display:flex; align-items:center; justify-content:center;
  text-align:center; padding:60px 16px 40px;
  background-size:cover; background-position:center;
  background-color:#1e293b; /* fallback color */
  position:relative;
  overflow:hidden;
}
.school-hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.75) 100%);
  z-index:1;
}
.school-hero-content {
  position:relative; z-index:2;
  display:flex; flex-direction:column; align-items:center;
  gap:16px; max-width:700px; width:100%; padding:0 4px;
}
.school-hero-content .badge { margin-bottom:4px; }
.school-hero-content h1 {
  font-family:'Outfit',sans-serif; color:#fff;
  font-size:clamp(20px,6vw,46px); font-weight:900;
  line-height:1.15; word-break:break-word;
  text-shadow:0 2px 8px rgba(0,0,0,.4);
}
.school-hero-content p {
  color:#e2e8f0; font-size:clamp(13px,3.5vw,18px);
  line-height:1.65; word-break:break-word;
  max-width:560px;
}
/* School Hero CTAs — stacked on mobile, row on tablet+ */
.school-hero-ctas {
  display:flex; flex-direction:column;
  gap:10px; width:100%; max-width:360px;
  margin-top:4px;
}
.school-hero-ctas .btn { width:100%; justify-content:center; }

/* School Principal Section */
.principal-section { padding:36px 16px; }
.principal-grid { display:flex; flex-direction:column; gap:20px; }
.principal-image {
  border-radius:var(--r-lg); overflow:hidden;
  max-width:100%; /* mobile: full width */
}
.principal-image img {
  width:100%; max-height:280px; object-fit:cover;
  border-radius:var(--r-lg); box-shadow:var(--shadow-md);
}
.principal-content { display:flex; flex-direction:column; gap:10px; }
.principal-name { font-family:'Outfit',sans-serif; font-size:clamp(18px,5vw,26px); font-weight:800; color:var(--dark); word-break:break-word; }
.principal-title { font-size:13px; color:var(--text-muted); }
.principal-quote {
  font-size:clamp(14px,3.5vw,16px); line-height:1.75;
  color:var(--text-main); font-style:italic; word-break:break-word;
  border-left:3px solid var(--primary); padding-left:14px;
}

/* School template general text translation safety */
.school-site h1,.school-site h2,.school-site h3,.school-site h4,
.school-site p,.school-site li,.school-site td,.school-site span {
  word-break:break-word; overflow-wrap:break-word;
}
.school-site img { max-width:100%; height:auto; }

/* School Notices */
.notices-list { display:flex; flex-direction:column; gap:10px; max-width:800px; margin:0 auto; }
.notice-item {
  display:flex; align-items:flex-start; justify-content:space-between;
  flex-direction:column; /* stack on mobile */
  gap:10px; padding:14px 16px;
  background:#fff; border:1.5px solid var(--border);
  border-radius:var(--r-md);
}
.notice-item .btn { align-self:flex-start; }
.notice-text h4 { font-size:14px; font-weight:700; color:var(--dark); word-break:break-word; line-height:1.5; }

/* School Footer */
.school-footer {
  background:var(--dark); color:#94a3b8;
  padding:24px 16px; text-align:center;
  margin-top:auto; word-break:break-word; line-height:1.7;
}

/* ──────────────────────────────────────────────
   ADMIN PANEL — MOBILE-FIRST
   ────────────────────────────────────────────── */
.admin-page { display:flex; flex-direction:column; min-height:calc(100vh - 48px); background:#f1f5f9; }

/* Mobile admin top bar */
.admin-topbar {
  display:none; /* shown by vp-mobile class override */
  align-items:center; justify-content:space-between;
  padding:12px 16px; background:var(--dark); color:#fff;
  border-bottom:1px solid #1e293b;
  gap:10px; flex-shrink:0;
}
.admin-topbar-brand { display:flex; align-items:center; gap:8px; font-family:'Outfit',sans-serif; font-size:14px; font-weight:800; }
.admin-layout { display:flex; flex:1; min-height:0; }

/* SIDEBAR */
.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--dark); color:#fff;
  display: flex; flex-direction:column;
  flex-shrink: 0;
  position: sticky; top: 0; height: 100vh;
  transition: width .25s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  z-index: 50;
}
.admin-sidebar.mini { width: var(--sidebar-mini); }

.sidebar-brand {
  padding:14px 12px; border-bottom:1px solid #1e293b;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  overflow:hidden; white-space:nowrap;
}
.sidebar-toggle {
  background:#1e293b; border:1px solid #334155; color:#94a3b8;
  width:30px; height:30px; border-radius:6px;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; transition:var(--ease); flex-shrink:0;
}
.sidebar-toggle:hover { background:var(--primary); color:#fff; }
.sidebar-brand-text { display:flex; align-items:center; gap:8px; min-width:0; }
.admin-sidebar.mini .sidebar-brand-label { display:none; }

.sidebar-nav { list-style:none; padding:8px 6px; flex:1; overflow-y:auto; }
.sidebar-nav li { margin-bottom:3px; }
.sidebar-nav button {
  width:100%; text-align:left; background:transparent; border:none;
  color:#94a3b8; padding:10px 10px; border-radius:var(--r-sm);
  font-size:14px; font-weight:500; display:flex; align-items:center;
  gap:10px; transition:var(--ease); white-space:nowrap; overflow:hidden;
}
.sidebar-nav button:hover,.sidebar-nav button.active { background:var(--primary); color:#fff; }
.menu-icon { font-size:17px; min-width:22px; text-align:center; flex-shrink:0; }
.admin-sidebar.mini .menu-label { display:none; }

/* Admin main content */
.admin-content { flex:1; padding:20px 16px; overflow-y:auto; min-width:0; }
.admin-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.admin-title h1 { font-family:'Outfit',sans-serif; font-size:clamp(18px,5vw,24px); font-weight:800; color:var(--dark); }
.admin-title p { font-size:13px; color:var(--text-muted); margin-top:2px; }
.admin-card { background:#fff; border-radius:var(--r-md); border:1px solid var(--border); padding:20px; box-shadow:var(--shadow-sm); margin-bottom:18px; }
.admin-card h3 { font-family:'Outfit',sans-serif; font-size:17px; font-weight:700; color:var(--dark); margin-bottom:10px; }

/* Stat cards */
.stat-grid { display:grid; grid-template-columns:1fr; gap:14px; margin-bottom:18px; }
.stat-card { background:#fff; border-radius:var(--r-md); border:1px solid var(--border); padding:18px; box-shadow:var(--shadow-sm); }
.stat-card-label { font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); margin-bottom:6px; }
.stat-card-value { font-family:'Outfit',sans-serif; font-size:32px; font-weight:900; color:var(--dark); line-height:1; margin-bottom:6px; }

/* Data table */
.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.data-table { width:100%; border-collapse:collapse; font-size:13px; min-width:520px; }
.data-table th { background:#f8fafc; padding:10px 12px; font-weight:700; border-bottom:2px solid var(--border); white-space:nowrap; text-align:left; }
.data-table td { padding:10px 12px; border-bottom:1px solid var(--border); vertical-align:middle; }

/* Modals */
.modal-overlay { position:fixed; inset:0; background:rgb(15 23 42/.85); backdrop-filter:blur(4px); z-index:2000; display:flex; align-items:center; justify-content:center; padding:16px; }
.modal-overlay.hidden { display:none !important; }
/* Support both class names */
.modal-box,.modal-card { background:#fff; border-radius:var(--r-lg); width:100%; max-width:520px; padding:20px; box-shadow:var(--shadow-lg); max-height:90vh; overflow-y:auto; }

/* Toasts */
.toast-container { position:fixed; bottom:20px; right:16px; z-index:3000; display:flex; flex-direction:column; gap:8px; max-width:calc(100vw - 32px); }
.toast { background:var(--dark); color:#fff; padding:12px 16px; border-radius:var(--r-md); font-size:14px; font-weight:500; display:flex; align-items:center; gap:8px; border-left:4px solid var(--primary); box-shadow:var(--shadow-lg); animation:toast-in .3s ease; word-break:break-word; }
@keyframes toast-in { from{transform:translateX(110%);opacity:0} to{transform:translateX(0);opacity:1} }

/* ──────────────────────────────────────────────
   TABLET LAYOUT — real devices AND simulator (.vp-tablet, .vp-desktop)
   ────────────────────────────────────────────── */
@media (min-width: 600px) { .section { padding:52px 28px; } }
#app-root.vp-tablet .section,
#app-root.vp-desktop .section { padding:52px 28px; }

/* Hero */
@media (min-width: 600px) {
  .hero-section { padding:48px 28px 60px; flex-direction:row; align-items:center; gap:40px; }
  .hero-content { flex:1; }
  .hero-ctas { flex-direction:row; width:auto; }
  .hero-ctas .btn { width:auto; }
  .hero-media { flex:0 0 42%; max-width:42%; }
}
#app-root.vp-tablet .hero-section,
#app-root.vp-desktop .hero-section { padding:48px 28px 60px; flex-direction:row; align-items:center; gap:40px; }
#app-root.vp-tablet .hero-content,
#app-root.vp-desktop .hero-content { flex:1; }
#app-root.vp-tablet .hero-ctas,
#app-root.vp-desktop .hero-ctas { flex-direction:row; width:auto; }
#app-root.vp-tablet .hero-ctas .btn,
#app-root.vp-desktop .hero-ctas .btn { width:auto; }
#app-root.vp-tablet .hero-media,
#app-root.vp-desktop .hero-media { flex:0 0 42%; max-width:42%; }

/* CTA Banner */
@media (min-width: 600px) {
  .cta-banner { padding:56px 28px; }
  .cta-banner-btns { flex-direction:row; justify-content:center; align-items:center; }
  .cta-banner-btns .btn { width:auto; }
}
#app-root.vp-tablet .cta-banner,
#app-root.vp-desktop .cta-banner { padding:56px 28px; }
#app-root.vp-tablet .cta-banner-btns,
#app-root.vp-desktop .cta-banner-btns { flex-direction:row; justify-content:center; align-items:center; }
#app-root.vp-tablet .cta-banner-btns .btn,
#app-root.vp-desktop .cta-banner-btns .btn { width:auto; }

/* Contact & Address */
@media (min-width: 600px) {
  .address-actions { flex-direction:row; flex-wrap:wrap; }
  .address-actions .btn { width:auto; flex:1; min-width:140px; }
  .contact-grid { grid-template-columns:1fr 1fr; }
}
#app-root.vp-tablet .address-actions,
#app-root.vp-desktop .address-actions { flex-direction:row; flex-wrap:wrap; }
#app-root.vp-tablet .address-actions .btn,
#app-root.vp-desktop .address-actions .btn { width:auto; flex:1; min-width:140px; }
#app-root.vp-tablet .contact-grid,
#app-root.vp-desktop .contact-grid { grid-template-columns:1fr 1fr; }

/* Footer */
@media (min-width: 600px) {
  .landing-footer { padding:44px 28px 22px; }
  .footer-grid { grid-template-columns:2fr 1fr 1fr 1fr; gap:24px; }
}
#app-root.vp-tablet .landing-footer,
#app-root.vp-desktop .landing-footer { padding:44px 28px 22px; }
#app-root.vp-tablet .footer-grid,
#app-root.vp-desktop .footer-grid { grid-template-columns:2fr 1fr 1fr 1fr; gap:24px; }

/* Grids */
@media (min-width: 600px) {
  .overview-grid { grid-template-columns:repeat(2,1fr); }
  .testimonials-grid { grid-template-columns:repeat(2,1fr); }
  .stat-grid { grid-template-columns:repeat(3,1fr); }
  .pricing-grid { grid-template-columns:repeat(3,1fr); max-width:none; margin:0; }
}
#app-root.vp-tablet .overview-grid,
#app-root.vp-desktop .overview-grid { grid-template-columns:repeat(2,1fr); }
#app-root.vp-tablet .testimonials-grid,
#app-root.vp-desktop .testimonials-grid { grid-template-columns:repeat(2,1fr); }
#app-root.vp-tablet .stat-grid,
#app-root.vp-desktop .stat-grid { grid-template-columns:repeat(3,1fr); }
#app-root.vp-tablet .pricing-grid,
#app-root.vp-desktop .pricing-grid { grid-template-columns:repeat(3,1fr); max-width:none; margin:0; }

/* ── Landing Nav: collapse to single row on tablet ── */
#app-root.vp-tablet .landing-nav,
#app-root.vp-desktop .landing-nav {
  flex-direction:row !important;
  align-items:center !important;
  padding:0 20px !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
}
#app-root.vp-tablet .nav-top-row,
#app-root.vp-desktop .nav-top-row {
  padding:10px 0 !important;
  flex:0 0 auto !important;
  min-width:0 !important;
}
#app-root.vp-tablet .nav-hamburger,
#app-root.vp-desktop .nav-hamburger { display:none !important; }
#app-root.vp-tablet .nav-links-wrap,
#app-root.vp-desktop .nav-links-wrap {
  display:flex !important;
  flex-direction:row !important;
  flex:1 1 0 !important;
  min-width:0 !important;
  gap:0px !important;
  padding:0 !important;
  border:none !important;
  background:transparent !important;
  overflow:hidden !important;
  align-items:center !important;
}
#app-root.vp-tablet .nav-links-wrap a,
#app-root.vp-desktop .nav-links-wrap a {
  padding:6px 8px !important;
  border-left:none !important;
  font-size:12.5px !important;
  white-space:nowrap !important;
  letter-spacing:-0.01em !important;
  font-weight:600 !important;
}
#app-root.vp-tablet .nav-actions-bar,
#app-root.vp-desktop .nav-actions-bar {
  background:transparent !important;
  border:none !important;
  padding:0 !important;
  flex-wrap:nowrap !important;
  flex-shrink:0 !important;
  gap:6px !important;
  display:flex !important;
  align-items:center !important;
}
/* Also real device tablet */
@media (min-width: 600px) {
  .landing-nav { flex-direction:row; align-items:center; padding:0 20px; gap:8px; flex-wrap:nowrap; }
  .nav-top-row { padding:10px 0; flex:0 0 auto; }
  .nav-hamburger { display:none !important; }
  .nav-links-wrap { display:flex !important; flex-direction:row; flex:1 1 0; min-width:0; gap:0; padding:0; border:none; background:transparent; overflow:hidden; align-items:center; }
  .nav-links-wrap a { padding:6px 8px; border-left:none; font-size:12.5px; white-space:nowrap; letter-spacing:-0.01em; }
  .nav-actions-bar { background:transparent; border:none; padding:0; flex-wrap:nowrap; flex-shrink:0; gap:6px; display:flex; align-items:center; }
}

/* ── Landing hero: side-by-side on tablet ── */
#app-root.vp-tablet .features-grid { grid-template-columns:repeat(2,1fr); }
#app-root.vp-tablet .steps-grid    { grid-template-columns:repeat(3,1fr); }
#app-root.vp-tablet .mission-inner { flex-direction:row; align-items:center; gap:32px; }
#app-root.vp-tablet .mission-text  { flex:1; }
#app-root.vp-tablet .mission-image { flex:0 0 42%; }


/* School site tablet */
@media (min-width: 600px) {
  .school-hero { min-height:75vh; padding:80px 28px 60px; }
  .school-hero-ctas { flex-direction:row; max-width:100%; }
  .school-hero-ctas .btn { width:auto; flex:1; }
  .principal-grid { flex-direction:row; align-items:flex-start; gap:28px; }
  .principal-image { flex:0 0 35%; max-width:35%; }
  .principal-image img { max-height:320px; }
  .notice-item { flex-direction:row; align-items:center; }
  .admin-content { padding:24px 20px; }
}
#app-root.vp-tablet .school-hero,
#app-root.vp-desktop .school-hero { min-height:75vh; padding:80px 28px 60px; }
#app-root.vp-tablet .school-hero-ctas,
#app-root.vp-desktop .school-hero-ctas { flex-direction:row; max-width:100%; }
#app-root.vp-tablet .school-hero-ctas .btn,
#app-root.vp-desktop .school-hero-ctas .btn { width:auto; flex:1; }
#app-root.vp-tablet .principal-grid,
#modal-tmpl-preview-frame.vp-tablet .principal-grid,
.vp-tablet .principal-grid {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  width: 100% !important;
  gap: 0 !important;
  align-items: stretch !important;
}
#app-root.vp-desktop .principal-grid,
#modal-tmpl-preview-frame.vp-desktop .principal-grid,
.vp-desktop .principal-grid {
  display: grid !important;
  grid-template-columns: 320px 1fr !important;
  width: 100% !important;
  gap: 0 !important;
  align-items: stretch !important;
}
#app-root.vp-tablet .principal-image-wrap,
#modal-tmpl-preview-frame.vp-tablet .principal-image-wrap,
.vp-tablet .principal-image-wrap {
  width: 100% !important;
  min-height: 240px !important;
  position: relative !important;
  overflow: hidden !important;
  background: #0f172a !important;
}
#app-root.vp-desktop .principal-image-wrap,
#modal-tmpl-preview-frame.vp-desktop .principal-image-wrap,
.vp-desktop .principal-image-wrap {
  width: 100% !important;
  min-height: 280px !important;
  position: relative !important;
  overflow: hidden !important;
  background: #0f172a !important;
}
#app-root.vp-tablet .principal-photo,
#modal-tmpl-preview-frame.vp-tablet .principal-photo,
.vp-tablet .principal-photo {
  width: 100% !important;
  height: 100% !important;
  min-height: 240px !important;
  max-height: 480px !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}
#app-root.vp-desktop .principal-photo,
#modal-tmpl-preview-frame.vp-desktop .principal-photo,
.vp-desktop .principal-photo {
  width: 100% !important;
  height: 100% !important;
  min-height: 280px !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}
#app-root.vp-tablet .principal-content-wrap,
#modal-tmpl-preview-frame.vp-tablet .principal-content-wrap,
.vp-tablet .principal-content-wrap {
  padding: 22px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 8px !important;
}
#app-root.vp-desktop .principal-content-wrap,
#modal-tmpl-preview-frame.vp-desktop .principal-content-wrap,
.vp-desktop .principal-content-wrap {
  padding: 30px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#app-root.vp-tablet .notice-item,
#app-root.vp-desktop .notice-item { flex-direction:row; align-items:center; }
#app-root.vp-tablet .admin-content,
#app-root.vp-desktop .admin-content { padding:24px 20px; }

/* School header: 2-tier spacious institutional layout on tablet & desktop */
#app-root.vp-tablet .school-header,
#app-root.vp-desktop .school-header,
#modal-tmpl-preview-frame.vp-tablet .school-header,
#modal-tmpl-preview-frame.vp-desktop .school-header {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  grid-template-rows: auto auto !important;
  grid-template-areas:
    "brand actions"
    "nav nav" !important;
  padding: 10px 20px 6px !important;
  gap: 6px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#app-root.vp-tablet .school-header-top,
#app-root.vp-desktop .school-header-top,
#modal-tmpl-preview-frame.vp-tablet .school-header-top,
#modal-tmpl-preview-frame.vp-desktop .school-header-top {
  grid-area: brand !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  min-width: 0 !important;
}
#app-root.vp-tablet .school-brand,
#app-root.vp-desktop .school-brand,
#modal-tmpl-preview-frame.vp-tablet .school-brand,
#modal-tmpl-preview-frame.vp-desktop .school-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
#app-root.vp-tablet .school-name,
#app-root.vp-desktop .school-name,
#modal-tmpl-preview-frame.vp-tablet .school-name,
#modal-tmpl-preview-frame.vp-desktop .school-name {
  white-space: normal !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: clamp(14px, 2.2vw, 19px) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
#app-root.vp-tablet .school-addr,
#app-root.vp-desktop .school-addr,
#modal-tmpl-preview-frame.vp-tablet .school-addr,
#modal-tmpl-preview-frame.vp-desktop .school-addr {
  white-space: normal !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
}
#app-root.vp-tablet .school-hamburger,
#app-root.vp-desktop .school-hamburger,
#modal-tmpl-preview-frame.vp-tablet .school-hamburger,
#modal-tmpl-preview-frame.vp-desktop .school-hamburger { display: none !important; }
#app-root.vp-tablet .school-header-actions,
#app-root.vp-desktop .school-header-actions,
#modal-tmpl-preview-frame.vp-tablet .school-header-actions,
#modal-tmpl-preview-frame.vp-desktop .school-header-actions {
  grid-area: actions !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  flex-shrink: 0 !important;
}
#app-root.vp-tablet .school-nav-wrap,
#app-root.vp-desktop .school-nav-wrap,
#modal-tmpl-preview-frame.vp-tablet .school-nav-wrap,
#modal-tmpl-preview-frame.vp-desktop .school-nav-wrap {
  grid-area: nav !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  padding: 8px 0 2px 0 !important;
  margin-top: 4px !important;
  border: none !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  gap: 6px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
#app-root.vp-tablet .school-nav-wrap a,
#app-root.vp-desktop .school-nav-wrap a,
#modal-tmpl-preview-frame.vp-tablet .school-nav-wrap a,
#modal-tmpl-preview-frame.vp-desktop .school-nav-wrap a {
  padding: 6px 14px !important;
  border-left: none !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
/* Real desktop screen query (min-width: 900px) — strictly for non-mobile views */
@media (min-width: 900px) {
  #app-root:not(.vp-mobile) .school-header,
  #modal-tmpl-preview-frame:not(.vp-mobile) .school-header,
  body:not(.vp-mobile) #app-root:not(.vp-mobile) .school-header,
  body:not(.vp-mobile) .school-site:not(.vp-mobile) .school-header {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "brand actions"
      "nav nav" !important;
    padding: 10px 32px 6px !important;
    gap: 6px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #app-root:not(.vp-mobile) .school-header-top,
  #modal-tmpl-preview-frame:not(.vp-mobile) .school-header-top,
  body:not(.vp-mobile) .school-header-top {
    grid-area: brand !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }
  #app-root:not(.vp-mobile) .school-hamburger,
  #modal-tmpl-preview-frame:not(.vp-mobile) .school-hamburger,
  body:not(.vp-mobile) .school-hamburger { display: none !important; }
  #app-root:not(.vp-mobile) .school-header-actions,
  #modal-tmpl-preview-frame:not(.vp-mobile) .school-header-actions,
  body:not(.vp-mobile) .school-header-actions {
    grid-area: actions !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }
  #app-root:not(.vp-mobile) .school-nav-wrap,
  #modal-tmpl-preview-frame:not(.vp-mobile) .school-nav-wrap,
  body:not(.vp-mobile) .school-nav-wrap {
    grid-area: nav !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    padding: 8px 0 2px 0 !important;
    margin-top: 4px !important;
    border: none !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  #app-root:not(.vp-mobile) .school-nav-wrap a,
  #modal-tmpl-preview-frame:not(.vp-mobile) .school-nav-wrap a,
  body:not(.vp-mobile) .school-nav-wrap a {
    padding: 6px 14px !important;
    border-left: none !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }
}


/* ──────────────────────────────────────────────
   DESKTOP LAYOUT — real devices AND simulator (.vp-desktop)
   ────────────────────────────────────────────── */
@media (min-width: 900px) {
  .section { padding:64px 5%; }
  .hero-section { padding:60px 5% 80px; gap:56px; }
  .hero-ctas .btn { min-width:160px; }
  .cta-banner { padding:72px 5%; }
  .address-actions .btn { flex:unset; min-width:auto; }
  .landing-footer { padding:52px 5% 24px; }
  .overview-grid { grid-template-columns:repeat(3,1fr); }
  .features-grid { grid-template-columns:repeat(2,1fr); }
  .steps-grid { grid-template-columns:repeat(3,1fr); }
  .testimonials-grid { grid-template-columns:repeat(3,1fr); }
  .pricing-grid { grid-template-columns:repeat(3,1fr); max-width:none; margin:0; }
  .mission-inner { flex-direction:row; align-items:center; gap:40px; }
  .mission-text { flex:1; }
  .mission-image { flex:0 0 40%; }
  /* Nav */
  .landing-nav { flex-direction:row; align-items:center; padding:0 5%; gap:8px; flex-wrap:nowrap; }
  .nav-top-row { padding:12px 0; flex:0 0 auto; }
  .nav-hamburger { display:none !important; }
  .nav-actions-bar { background:transparent; border:none; padding:0; order:3; margin-left:auto; flex-wrap:nowrap; flex-shrink:0; gap:8px; display:flex; align-items:center; }
  .nav-links-wrap { display:flex !important; flex-direction:row; gap:0; padding:0; border:none; flex:1 1 0; min-width:0; overflow:hidden; align-items:center; }
  .nav-links-wrap a { padding:6px 10px; border-left:none; white-space:nowrap; font-size:13px; }
  .nav-links-wrap a:hover { background:#f1f5f9; }
  /* School */
  .school-hamburger { display:none !important; }
  .school-nav-wrap { display:flex !important; flex-direction:row; gap:4px; width:auto; padding:0; border:none; order:unset; }
  .school-nav-wrap a { padding:6px 10px; }
  .school-hero { min-height:90vh; }
  .school-hero-ctas .btn { flex:unset; min-width:180px; }
  /* Logo larger on desktop */
  .school-logo { height:44px; width:44px; max-height:44px; max-width:44px; }
  /* Admin */
  .admin-page { flex-direction:row; }
  .admin-topbar { display:none; }
  .admin-layout { flex-direction:row; }
  .admin-content { padding:28px; }
  .contact-grid { grid-template-columns:1fr 1fr; }
}
/* Simulator desktop class equivalents */
#app-root.vp-desktop .section { padding:64px 5%; }
#app-root.vp-desktop .hero-section { padding:60px 5% 80px; gap:56px; }
#app-root.vp-desktop .hero-ctas .btn { min-width:160px; }
#app-root.vp-desktop .cta-banner { padding:72px 5%; }
#app-root.vp-desktop .address-actions .btn { flex:unset; min-width:auto; }
#app-root.vp-desktop .landing-footer { padding:52px 5% 24px; }
#app-root.vp-desktop .overview-grid { grid-template-columns:repeat(3,1fr); }
#app-root.vp-desktop .features-grid { grid-template-columns:repeat(2,1fr); }
#app-root.vp-desktop .steps-grid { grid-template-columns:repeat(3,1fr); }
#app-root.vp-desktop .testimonials-grid { grid-template-columns:repeat(3,1fr); }
#app-root.vp-desktop .pricing-grid { grid-template-columns:repeat(3,1fr); max-width:none; margin:0; }
#app-root.vp-desktop .mission-inner { flex-direction:row; align-items:center; gap:40px; }
#app-root.vp-desktop .mission-text { flex:1; }
#app-root.vp-desktop .mission-image { flex:0 0 40%; }
/* Desktop nav */
#app-root.vp-desktop .landing-nav { flex-direction:row; align-items:center; padding:0 5%; gap:8px; flex-wrap:nowrap; }
#app-root.vp-desktop .nav-top-row { padding:12px 0; flex:0 0 auto; }
#app-root.vp-desktop .nav-hamburger { display:none !important; }
#app-root.vp-desktop .nav-actions-bar { background:transparent; border:none; padding:0; order:3; margin-left:auto; flex-wrap:nowrap; flex-shrink:0; gap:8px; display:flex; align-items:center; }
#app-root.vp-desktop .nav-links-wrap { display:flex !important; flex-direction:row; gap:0; padding:0; border:none; flex:1 1 0; min-width:0; overflow:hidden; align-items:center; }
#app-root.vp-desktop .nav-links-wrap a { padding:6px 10px; border-left:none; white-space:nowrap; font-size:13px; }
/* Desktop school */
#app-root.vp-desktop .school-hamburger { display:none !important; }
#app-root.vp-desktop .school-nav-wrap { display:flex !important; flex-direction:row; gap:4px; width:auto; padding:0; border:none; }
#app-root.vp-desktop .school-hero { min-height:90vh; }
#app-root.vp-desktop .school-hero-ctas .btn { flex:unset; min-width:180px; }
/* Desktop admin */
#app-root.vp-desktop .admin-page { flex-direction:row; }
#app-root.vp-desktop .admin-topbar { display:none !important; }
#app-root.vp-desktop .admin-layout { flex-direction:row; }
#app-root.vp-desktop .admin-content { padding:28px; }
#app-root.vp-desktop .contact-grid { grid-template-columns:1fr 1fr; }
#app-root.vp-desktop .admin-sidebar { position:relative !important; transform:none !important; width:var(--sidebar-w) !important; }
#app-root.vp-desktop .admin-sidebar.mini { width:var(--sidebar-mini) !important; }

/* ── Comparison Section Responsive Rules ── */
.comparison-desktop-wrap { display: block; }
.comparison-mobile-deck { display: none; }

@media (max-width: 899px) {
  .comparison-desktop-wrap { display: none !important; }
  .comparison-mobile-deck { display: flex !important; }
}

#app-root.vp-mobile .comparison-desktop-wrap,
#app-root.vp-tablet .comparison-desktop-wrap { display: none !important; }

#app-root.vp-mobile .comparison-mobile-deck,
#app-root.vp-tablet .comparison-mobile-deck { display: flex !important; }

#app-root.vp-desktop .comparison-desktop-wrap { display: block !important; }
#app-root.vp-desktop .comparison-mobile-deck { display: none !important; }

/* ──────────────────────────────────────────────
   NATIVE MOBILE & SIMULATOR RESPONSIVE STYLES
   Applies to real mobile devices (max-width: 768px) and vp-mobile simulator
   ────────────────────────────────────────────── */
@media (max-width: 768px), screen and (max-device-width: 768px) {
  /* Layout & Padding */
  .section { padding: 32px 16px !important; }

  /* Hero Section */
  .hero-section, .school-hero {
    flex-direction: column !important;
    padding: 36px 16px 40px !important;
    gap: 24px !important;
    min-height: auto !important;
    text-align: center !important;
  }
  .hero-media, .school-hero-media { flex: unset !important; max-width: 100% !important; }
  .hero-ctas, .school-hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
  }
  .hero-ctas .btn, .school-hero-ctas .btn {
    width: 100% !important;
    min-width: unset !important;
    justify-content: center !important;
  }

  /* Navigation Bar */
  .landing-nav, .school-header {
    flex-direction: column !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .nav-top-row, .school-header-top {
    width: 100% !important;
    padding: 10px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .nav-hamburger, .school-hamburger { display: flex !important; flex-direction: column !important; }
  .nav-actions-bar, .school-header-actions {
    width: 100% !important;
    padding: 8px 16px !important;
    border-top: 1px solid var(--border);
    background: #f8fafc;
    display: flex !important;
    justify-content: space-between !important;
  }
  .nav-links-wrap, .school-nav-wrap {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 8px 12px 12px !important;
    border: none !important;
  }
  .nav-links-wrap.open, .school-nav-wrap.open { display: flex !important; }

  /* Grid Layouts — 1 Column on Mobile */
  .overview-grid,
  .features-grid,
  .steps-grid,
  .testimonials-grid,
  .pricing-grid,
  .footer-grid,
  .contact-grid,
  .stat-grid,
  .gallery-grid,
  .faculty-grid,
  .facilities-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Notice Items */
  .notice-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 14px !important;
    width: 100% !important;
  }
  .notice-item .btn,
  .notice-item a.btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Fee Table Scroll Box */
  .fee-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
  }
  .fee-table {
    min-width: 480px;
    font-size: 13px !important;
  }

  /* Principal Message */
  .principal-grid { flex-direction: column !important; gap: 20px !important; }
  .principal-image { flex: unset !important; max-width: 100% !important; }
  .principal-image img { max-height: 220px !important; object-fit: cover; width: 100%; }

  /* Footer */
  .landing-footer, .school-footer { padding: 32px 16px 20px !important; text-align: center !important; }

  /* Admin Panel Mobile */
  .admin-page { flex-direction: column !important; }
  .admin-topbar { display: flex !important; }
  .admin-layout { flex-direction: column !important; }
  .admin-content { padding: 14px !important; }
  .admin-sidebar {
    position: absolute !important;
    top: 0; left: 0; bottom: 0;
    width: 260px !important;
    transform: translateX(-100%);
    z-index: 500;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  .admin-sidebar.mobile-open { transform: translateX(0) !important; }

  /* Section Manager & Builder Controls */
  .admin-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .admin-card {
    padding: 16px !important;
    border-radius: 12px !important;
  }
  .section-row-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  #new-section-type {
    width: 100% !important;
    min-width: unset !important;
  }
}

/* Also preserve simulator vp-mobile selector compatibility */
#app-root.vp-mobile .section { padding:32px 16px !important; }
#app-root.vp-mobile .hero-section { flex-direction:column !important; padding:36px 16px 48px !important; gap:24px !important; }
#app-root.vp-mobile .hero-media { flex:unset !important; max-width:100% !important; }
#app-root.vp-mobile .hero-ctas { flex-direction:column !important; width:100% !important; }
#app-root.vp-mobile .hero-ctas .btn { width:100% !important; min-width:unset !important; }
#app-root.vp-mobile .landing-nav { flex-direction:column !important; padding:0 !important; gap:0 !important; }
#app-root.vp-mobile .nav-top-row { width:100%; padding:10px 16px; }
#app-root.vp-mobile .nav-hamburger { display:flex !important; }
#app-root.vp-mobile .nav-actions-bar { width:100%; padding:8px 16px; border-top:1px solid var(--border); background:#f8fafc; }
#app-root.vp-mobile .nav-links-wrap { display:none !important; flex-direction:column !important; width:100% !important; padding:8px 12px 12px !important; border:none; }
#app-root.vp-mobile .nav-links-wrap.open { display:flex !important; }
#app-root.vp-mobile .overview-grid,
#app-root.vp-mobile .features-grid,
#app-root.vp-mobile .steps-grid,
#app-root.vp-mobile .testimonials-grid,
#app-root.vp-mobile .pricing-grid,
#app-root.vp-mobile .footer-grid,
#app-root.vp-mobile .contact-grid,
#app-root.vp-mobile .stat-grid,
#app-root.vp-mobile .gallery-grid,
#app-root.vp-mobile .faculty-grid,
#app-root.vp-mobile .facilities-grid { grid-template-columns:1fr !important; gap:16px !important; }
#app-root.vp-mobile .cta-banner { padding:40px 16px !important; }
#app-root.vp-mobile .cta-banner-btns { flex-direction:column !important; align-items:stretch !important; }
#app-root.vp-mobile .cta-banner-btns .btn { width:100% !important; }
#app-root.vp-mobile .address-actions { flex-direction:column !important; }
#app-root.vp-mobile .address-actions .btn { width:100% !important; flex:unset !important; }
#app-root.vp-mobile .mission-inner { flex-direction:column !important; }
#app-root.vp-mobile .mission-image { flex:unset !important; max-width:100% !important; }
#app-root.vp-mobile .landing-footer { padding:36px 16px 20px !important; }
#app-root.vp-mobile .admin-page { flex-direction:column !important; }
#app-root.vp-mobile .admin-topbar { display:flex !important; }
#app-root.vp-mobile .admin-layout { flex-direction:column !important; }
#app-root.vp-mobile .admin-content { padding:14px !important; }
#app-root.vp-mobile .admin-sidebar { position:absolute !important; top:0; left:0; bottom:0; width:260px !important; transform:translateX(-100%); z-index:500; transition:transform .3s cubic-bezier(.4,0,.2,1); }
#app-root.vp-mobile .admin-sidebar.mobile-open { transform:translateX(0) !important; }
#app-root.vp-mobile .school-header,
#modal-tmpl-preview-frame.vp-mobile .school-header {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-template-areas: none !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
#app-root.vp-mobile .school-header-top,
#modal-tmpl-preview-frame.vp-mobile .school-header-top {
  grid-area: unset !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#app-root.vp-mobile .school-brand,
#modal-tmpl-preview-frame.vp-mobile .school-brand {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
#app-root.vp-mobile .school-name,
#modal-tmpl-preview-frame.vp-mobile .school-name {
  font-size: 13.5px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-weight: 800 !important;
}
#app-root.vp-mobile .school-addr,
#modal-tmpl-preview-frame.vp-mobile .school-addr {
  font-size: 10px !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.2 !important;
}
#app-root.vp-mobile .school-hamburger,
#modal-tmpl-preview-frame.vp-mobile .school-hamburger {
  display: flex !important;
  flex-direction: column !important;
  flex-shrink: 0 !important;
  margin-left: 6px !important;
}
#app-root.vp-mobile .school-header-actions,
#modal-tmpl-preview-frame.vp-mobile .school-header-actions {
  grid-area: unset !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 6px !important;
  border-top: 1px solid var(--border) !important;
  background: #f8fafc !important;
  flex-wrap: nowrap !important;
}
#app-root.vp-mobile .school-theme-toggle-btn,
#modal-tmpl-preview-frame.vp-mobile .school-theme-toggle-btn {
  flex-shrink: 0 !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
  height: 32px !important;
  min-height: 32px !important;
  white-space: nowrap !important;
}
#app-root.vp-mobile .school-lang-select,
#modal-tmpl-preview-frame.vp-mobile .school-lang-select {
  flex-shrink: 0 !important;
  padding: 2px 6px !important;
  font-size: 11.5px !important;
  height: 32px !important;
  min-height: 32px !important;
  min-width: 52px !important;
}
#app-root.vp-mobile .school-header-actions .btn,
#modal-tmpl-preview-frame.vp-mobile .school-header-actions .btn {
  flex-shrink: 0 !important;
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  height: 32px !important;
  min-height: 32px !important;
  white-space: nowrap !important;
}
#app-root.vp-mobile .school-nav-wrap,
#modal-tmpl-preview-frame.vp-mobile .school-nav-wrap {
  grid-area: unset !important;
  display: none !important;
  width: 100% !important;
  flex-direction: column !important;
  padding: 8px 12px 14px !important;
  box-sizing: border-box !important;
}
#app-root.vp-mobile .school-nav-wrap.open,
#modal-tmpl-preview-frame.vp-mobile .school-nav-wrap.open {
  display: flex !important;
}
#app-root.vp-mobile .school-hero { min-height:auto !important; padding:40px 16px 36px !important; }
#app-root.vp-mobile .school-hero-ctas { flex-direction:column !important; width:100% !important; max-width:none !important; }
#app-root.vp-mobile .school-hero-ctas .btn { width:100% !important; flex:unset !important; }
#app-root.vp-mobile .principal-grid { flex-direction:column !important; }
#app-root.vp-mobile .principal-image { flex:unset !important; max-width:100% !important; }
#app-root.vp-mobile .principal-image img { max-height:220px !important; object-fit:cover; }
#app-root.vp-mobile .notice-item { flex-direction:column !important; align-items:flex-start !important; }

/* ── Template Preview Modal & Mobile Viewport Compatibility ──
   Ensures #modal-tmpl-preview-frame.vp-mobile, .vp-mobile, and real mobile screens
   render with identical typography, layout, button sizing, and touch responsiveness.
   ───────────────────────────────────────────────────────────────────────── */
#modal-tmpl-preview-frame.vp-mobile .section,
.vp-mobile .section { padding: 32px 14px !important; }

#modal-tmpl-preview-frame.vp-mobile .school-site,
.vp-mobile .school-site { overflow-x: hidden !important; }

/* Top Announcement Ribbon on Mobile / Preview */
#modal-tmpl-preview-frame.vp-mobile .school-announcement-bar,
.vp-mobile .school-announcement-bar {
  font-size: 11.5px !important;
  padding: 6px 10px !important;
}
#modal-tmpl-preview-frame.vp-mobile .announcement-inner,
.vp-mobile .announcement-inner {
  gap: 6px !important;
  padding: 0 !important;
}
#modal-tmpl-preview-frame.vp-mobile .announcement-badge,
.vp-mobile .announcement-badge {
  font-size: 9.5px !important;
  padding: 2px 7px !important;
}
#modal-tmpl-preview-frame.vp-mobile .announcement-text,
.vp-mobile .announcement-text {
  font-size: 11.5px !important;
}
#modal-tmpl-preview-frame.vp-mobile .announcement-link,
.vp-mobile .announcement-link {
  font-size: 11.5px !important;
}

/* Dark templates header */
#modal-tmpl-preview-frame.vp-mobile .template-essential .school-header-actions,
#modal-tmpl-preview-frame.vp-mobile .template-cyber_academy .school-header-actions,
#modal-tmpl-preview-frame.vp-mobile .template-elite .school-header-actions,
#modal-tmpl-preview-frame.vp-mobile .school-site.theme-dark .school-header-actions,
.vp-mobile .template-essential .school-header-actions,
.vp-mobile .template-cyber_academy .school-header-actions,
.vp-mobile .template-elite .school-header-actions,
.vp-mobile .school-site.theme-dark .school-header-actions { background:#1e293b !important; border-top-color:#334155 !important; }

/* Touch Hero Carousel — Preview & Mobile Engine */
#modal-tmpl-preview-frame.vp-mobile .hero-carousel-wrap,
.vp-mobile .hero-carousel-wrap {
  min-height: 420px !important;
}
#modal-tmpl-preview-frame.vp-mobile .hero-content-container,
.vp-mobile .hero-content-container {
  padding: 24px 16px 42px !important;
}
#modal-tmpl-preview-frame.vp-mobile .hero-badge-pill,
.vp-mobile .hero-badge-pill {
  font-size: 11px !important;
  padding: 4px 12px !important;
  margin-bottom: 10px !important;
}
#modal-tmpl-preview-frame.vp-mobile .hero-main-title,
#modal-tmpl-preview-frame.vp-mobile .school-hero-section h1,
.vp-mobile .hero-main-title,
.vp-mobile .school-hero-section h1 {
  font-size: clamp(20px, 6vw, 30px) !important;
  line-height: 1.22 !important;
  margin-bottom: 8px !important;
}
#modal-tmpl-preview-frame.vp-mobile .hero-main-subtitle,
#modal-tmpl-preview-frame.vp-mobile .school-hero-section p,
.vp-mobile .hero-main-subtitle,
.vp-mobile .school-hero-section p {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  margin-bottom: 16px !important;
  max-width: 100% !important;
}
#modal-tmpl-preview-frame.vp-mobile .hero-ctas-row,
.vp-mobile .hero-ctas-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
}
#modal-tmpl-preview-frame.vp-mobile .hero-cta-btn,
.vp-mobile .hero-cta-btn {
  flex: 1 1 130px !important;
  min-width: 120px !important;
  max-width: 100% !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 9px 14px !important;
  font-size: 13.5px !important;
  border-radius: 8px !important;
  text-align: center !important;
  justify-content: center !important;
  display: inline-flex !important;
  align-items: center !important;
}
#modal-tmpl-preview-frame.vp-mobile .hero-controls-hud,
.vp-mobile .hero-controls-hud {
  bottom: 12px !important;
  padding: 4px 12px !important;
  gap: 8px !important;
}
#modal-tmpl-preview-frame.vp-mobile .hero-arrow-btn,
.vp-mobile .hero-arrow-btn {
  display: none !important;
}

/* Quick Actions on Mobile / Preview */
#modal-tmpl-preview-frame.vp-mobile .quick-actions-section,
.vp-mobile .quick-actions-section {
  padding: 12px 12px 24px !important;
}
#modal-tmpl-preview-frame.vp-mobile .quick-actions-container,
.vp-mobile .quick-actions-container {
  margin: -24px auto 0 !important;
}
#modal-tmpl-preview-frame.vp-mobile .quick-actions-grid,
.vp-mobile .quick-actions-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}
#modal-tmpl-preview-frame.vp-mobile .quick-action-card,
.vp-mobile .quick-action-card {
  padding: 10px 8px !important;
  min-height: 52px !important;
  gap: 8px !important;
  border-radius: 10px !important;
}
#modal-tmpl-preview-frame.vp-mobile .qa-icon-wrap,
.vp-mobile .qa-icon-wrap {
  width: 34px !important;
  height: 34px !important;
  font-size: 17px !important;
  border-radius: 8px !important;
}
#modal-tmpl-preview-frame.vp-mobile .qa-title,
.vp-mobile .qa-title {
  font-size: 12.5px !important;
  font-weight: 700 !important;
}
#modal-tmpl-preview-frame.vp-mobile .qa-subtitle,
.vp-mobile .qa-subtitle {
  font-size: 10px !important;
}

/* Principal */
#modal-tmpl-preview-frame.vp-mobile .principal-grid,
#app-root.vp-mobile .principal-grid {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 0 !important;
}
#modal-tmpl-preview-frame.vp-mobile .principal-image-wrap,
#app-root.vp-mobile .principal-image-wrap {
  width: 100% !important;
  min-width: 100% !important;
  height: 250px !important;
  min-height: 250px !important;
  position: relative !important;
}
#modal-tmpl-preview-frame.vp-mobile .principal-photo,
#app-root.vp-mobile .principal-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
}
#modal-tmpl-preview-frame.vp-mobile .principal-content-wrap,
#app-root.vp-mobile .principal-content-wrap {
  padding: 22px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Contact Grid */
#modal-tmpl-preview-frame.vp-mobile .contact-grid { grid-template-columns:1fr !important; gap:14px !important; }
#modal-tmpl-preview-frame.vp-mobile .address-card { padding:16px !important; }
#modal-tmpl-preview-frame.vp-mobile .address-actions { flex-direction:column !important; gap:8px !important; }
#modal-tmpl-preview-frame.vp-mobile .address-actions .btn { width:100% !important; flex:unset !important; }

/* Notices */
#modal-tmpl-preview-frame.vp-mobile .notice-item { flex-direction:column !important; align-items:flex-start !important; }
#modal-tmpl-preview-frame.vp-mobile .notice-item .btn { width:100% !important; justify-content:center !important; }

/* Grids */
#modal-tmpl-preview-frame.vp-mobile .why-choose-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
#modal-tmpl-preview-frame.vp-mobile .achievers-grid,
#modal-tmpl-preview-frame.vp-mobile #top-achievers > div[style] { grid-template-columns: 1fr !important; gap: 14px !important; }
#modal-tmpl-preview-frame.vp-mobile .open-resources-grid,
#modal-tmpl-preview-frame.vp-mobile .oer-grid,
#modal-tmpl-preview-frame.vp-mobile .open-resources-section .grid { grid-template-columns: 1fr !important; gap: 14px !important; }
#modal-tmpl-preview-frame.vp-mobile .programs-grid,
#modal-tmpl-preview-frame.vp-mobile .academic-programs-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
#modal-tmpl-preview-frame.vp-mobile .gallery-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
#modal-tmpl-preview-frame.vp-mobile .faculty-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
#modal-tmpl-preview-frame.vp-mobile .facilities-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
#modal-tmpl-preview-frame.vp-mobile .testimonials-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
#modal-tmpl-preview-frame.vp-mobile .events-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
#modal-tmpl-preview-frame.vp-mobile .downloads-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
#modal-tmpl-preview-frame.vp-mobile .contact-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
#modal-tmpl-preview-frame.vp-mobile .school-footer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
#modal-tmpl-preview-frame.vp-mobile .admission-journey-steps { grid-template-columns: 1fr !important; gap: 12px !important; }
#modal-tmpl-preview-frame.vp-mobile .admission-steps-row { flex-direction: column !important; gap: 10px !important; }
#modal-tmpl-preview-frame.vp-mobile .admission-step { width: 100% !important; }
#modal-tmpl-preview-frame.vp-mobile .admission-cta-btns { flex-direction: column !important; width: 100% !important; }
#modal-tmpl-preview-frame.vp-mobile .admission-cta-btns .btn { width: 100% !important; justify-content: center !important; }
#modal-tmpl-preview-frame.vp-mobile .campus-stats-hud { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
#modal-tmpl-preview-frame.vp-mobile .quick-actions-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }

/* Cards */
#modal-tmpl-preview-frame.vp-mobile .why-card { width: 100% !important; box-sizing: border-box !important; padding: 18px 14px !important; }
#modal-tmpl-preview-frame.vp-mobile .why-title { font-size: 15px !important; word-break: normal !important; white-space: normal !important; }
#modal-tmpl-preview-frame.vp-mobile .why-desc { font-size: 12.5px !important; line-height: 1.45 !important; }
#modal-tmpl-preview-frame.vp-mobile .achiever-card { width: 100% !important; box-sizing: border-box !important; padding: 16px 14px !important; }
#modal-tmpl-preview-frame.vp-mobile .achiever-name { font-size: 14px !important; word-break: normal !important; }
#modal-tmpl-preview-frame.vp-mobile .oer-card,
#modal-tmpl-preview-frame.vp-mobile .open-resources-section .admin-card { width: 100% !important; box-sizing: border-box !important; padding: 16px !important; }
#modal-tmpl-preview-frame.vp-mobile .faculty-card { padding: 12px 8px !important; }
#modal-tmpl-preview-frame.vp-mobile .faculty-avatar { width: 64px !important; height: 64px !important; }
#modal-tmpl-preview-frame.vp-mobile .faculty-name { font-size: 13px !important; }
#modal-tmpl-preview-frame.vp-mobile .gallery-img-wrap { height: 150px !important; }
#modal-tmpl-preview-frame.vp-mobile .facility-card { padding: 14px !important; }
#modal-tmpl-preview-frame.vp-mobile .testimonial-card { padding: 14px !important; }
#modal-tmpl-preview-frame.vp-mobile .badge { white-space: normal !important; word-break: break-word !important; line-height: 1.25 !important; }

/* Fee Table */
#modal-tmpl-preview-frame.vp-mobile .fee-table-wrap { overflow-x: auto !important; }
#modal-tmpl-preview-frame.vp-mobile .fee-table { min-width: 380px !important; font-size: 12px !important; }
#modal-tmpl-preview-frame.vp-mobile .fee-table th, #modal-tmpl-preview-frame.vp-mobile .fee-table td { padding: 8px 10px !important; }

/* Section headers */
#modal-tmpl-preview-frame.vp-mobile .section-header h2 { font-size: clamp(18px, 6vw, 24px) !important; }
#modal-tmpl-preview-frame.vp-mobile .section-header { margin-bottom: 16px !important; }

/* Footer */
#modal-tmpl-preview-frame.vp-mobile .school-footer { padding: 20px 16px !important; font-size: 13px !important; }

/* Tablet mode for preview & live view (600px - 899px / .vp-tablet) */
#modal-tmpl-preview-frame.vp-tablet .hero-carousel-wrap,
.vp-tablet .hero-carousel-wrap {
  min-height: 460px !important;
}
#modal-tmpl-preview-frame.vp-tablet .hero-content-container,
.vp-tablet .hero-content-container {
  padding: 36px 24px 50px !important;
}
#modal-tmpl-preview-frame.vp-tablet .hero-main-title,
#modal-tmpl-preview-frame.vp-tablet .school-hero-section h1,
.vp-tablet .hero-main-title,
.vp-tablet .school-hero-section h1 {
  font-size: clamp(24px, 4vw, 36px) !important;
  line-height: 1.2 !important;
  margin-bottom: 10px !important;
}
#modal-tmpl-preview-frame.vp-tablet .hero-main-subtitle,
#modal-tmpl-preview-frame.vp-tablet .school-hero-section p,
.vp-tablet .hero-main-subtitle,
.vp-tablet .school-hero-section p {
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  margin-bottom: 20px !important;
  max-width: 580px !important;
}
#modal-tmpl-preview-frame.vp-tablet .hero-ctas-row,
.vp-tablet .hero-ctas-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}
#modal-tmpl-preview-frame.vp-tablet .hero-cta-btn,
.vp-tablet .hero-cta-btn {
  flex: 0 1 auto !important;
  min-width: 140px !important;
  max-width: 240px !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
}

#modal-tmpl-preview-frame.vp-tablet .quick-actions-section,
.vp-tablet .quick-actions-section {
  padding: 16px 16px 28px !important;
}
#modal-tmpl-preview-frame.vp-tablet .quick-actions-container,
.vp-tablet .quick-actions-container {
  margin: -28px auto 0 !important;
}
#modal-tmpl-preview-frame.vp-tablet .quick-actions-grid,
.vp-tablet .quick-actions-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
}
#modal-tmpl-preview-frame.vp-tablet .quick-action-card,
.vp-tablet .quick-action-card {
  padding: 12px 10px !important;
  min-height: 56px !important;
}

#modal-tmpl-preview-frame.vp-tablet .why-choose-grid,
.vp-tablet .why-choose-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

#modal-tmpl-preview-frame.vp-tablet .achievers-grid,
.vp-tablet .achievers-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

#modal-tmpl-preview-frame.vp-tablet .open-resources-grid,
#modal-tmpl-preview-frame.vp-tablet .oer-grid,
.vp-tablet .open-resources-grid,
.vp-tablet .oer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

#modal-tmpl-preview-frame.vp-tablet .programs-grid,
#modal-tmpl-preview-frame.vp-tablet .academic-programs-grid,
.vp-tablet .programs-grid,
.vp-tablet .academic-programs-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

#modal-tmpl-preview-frame.vp-tablet .gallery-grid,
.vp-tablet .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }

#modal-tmpl-preview-frame.vp-tablet .faculty-grid,
.vp-tablet .faculty-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

#modal-tmpl-preview-frame.vp-tablet .facilities-grid,
.vp-tablet .facilities-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

#modal-tmpl-preview-frame.vp-tablet .testimonials-grid,
.vp-tablet .testimonials-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

#modal-tmpl-preview-frame.vp-tablet .events-grid,
.vp-tablet .events-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

#modal-tmpl-preview-frame.vp-tablet .downloads-grid,
.vp-tablet .downloads-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }

#modal-tmpl-preview-frame.vp-tablet .admission-journey-steps,
.vp-tablet .admission-journey-steps { grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; }

#modal-tmpl-preview-frame.vp-tablet .contact-grid,
.vp-tablet .contact-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

#modal-tmpl-preview-frame.vp-tablet .school-footer-grid,
.vp-tablet .school-footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }

/* Desktop mode for preview */
#modal-tmpl-preview-frame.vp-desktop .school-hamburger { display: none !important; }
#modal-tmpl-preview-frame.vp-desktop .contact-grid { grid-template-columns: 1fr 1fr !important; }
#modal-tmpl-preview-frame.vp-desktop .principal-grid { flex-direction: row !important; align-items: flex-start !important; gap: 28px !important; }
#modal-tmpl-preview-frame.vp-desktop .principal-image { flex: 0 0 35% !important; max-width: 35% !important; }
#modal-tmpl-preview-frame.vp-desktop .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }
#modal-tmpl-preview-frame.vp-desktop .faculty-grid { grid-template-columns: repeat(3, 1fr) !important; }
#modal-tmpl-preview-frame.vp-desktop .facilities-grid { grid-template-columns: repeat(3, 1fr) !important; }
#modal-tmpl-preview-frame.vp-desktop .testimonials-grid { grid-template-columns: repeat(3, 1fr) !important; }
#modal-tmpl-preview-frame.vp-desktop .why-choose-grid { grid-template-columns: repeat(4, 1fr) !important; }
#modal-tmpl-preview-frame.vp-desktop .achievers-grid { grid-template-columns: repeat(4, 1fr) !important; }
#modal-tmpl-preview-frame.vp-desktop .open-resources-grid { grid-template-columns: repeat(3, 1fr) !important; }
#modal-tmpl-preview-frame.vp-desktop .school-hero-ctas { flex-direction: row !important; width: auto !important; max-width: 100% !important; }
#modal-tmpl-preview-frame.vp-desktop .school-hero-ctas .btn { width: auto !important; min-width: 160px !important; }

/* Template colour overrides */
.template-modern .school-header { background:rgba(255,255,255,.97); backdrop-filter:blur(12px); }
.template-essential .school-header { background:var(--dark); }
.template-essential .school-header-top { background:var(--dark); }
.template-essential .school-header-actions { background:#1e293b; border-top-color:#334155; }
.template-essential .school-nav-wrap { background:var(--dark); border-top-color:#334155; }
.template-essential .school-nav-wrap a { color:#e2e8f0; }
.template-essential .school-nav-wrap a:hover { background:#1e293b; color:#fff; }
.template-essential .school-name,.template-essential .school-addr { color:#fff; }
.template-essential .school-hamburger { border-color:#334155; }
.template-essential .school-ham-line { background:#fff; }
.template-elite .school-header { border-bottom:3px solid var(--secondary); }

/* ── Template 4: Apex Cyber (Futuristic Tech & AI) ── */
.template-cyber_academy {
  background-color: #0b132b !important;
  color: #f8fafc;
}
.template-cyber_academy .school-header {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(16px);
  border-bottom: 2px solid #10b981;
}
.template-cyber_academy .school-header-top { background: #0f172a; }
.template-cyber_academy .school-name { color: #38bdf8 !important; text-shadow: 0 0 10px rgba(56, 189, 248, 0.3); }
.template-cyber_academy .school-addr { color: #94a3b8 !important; }
.template-cyber_academy .school-nav-wrap a { color: #cbd5e1; }
.template-cyber_academy .school-nav-wrap a:hover { background: #1e293b; color: #10b981; }
.template-cyber_academy .hero-section {
  background: radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 60%),
              #090d16 !important;
  color: #fff;
}
.template-cyber_academy .section { background: #0f172a !important; color: #f8fafc; }
.template-cyber_academy .admin-card,
.template-cyber_academy .notice-item,
.template-cyber_academy .gallery-card,
.template-cyber_academy .faculty-card,
.template-cyber_academy .fee-table,
.template-cyber_academy .facility-card,
.template-cyber_academy .testimonial-card,
.template-cyber_academy .address-card {
  background: #1e293b !important;
  color: #f8fafc !important;
  border: 1.5px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15) !important;
  border-radius: 12px;
}
.template-cyber_academy h1,
.template-cyber_academy h2,
.template-cyber_academy h3,
.template-cyber_academy h4 { color: #f8fafc !important; }
.template-cyber_academy p { color: #cbd5e1 !important; }
.template-cyber_academy .btn-primary {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.template-cyber_academy .btn-outline {
  border: 1.5px solid #10b981 !important;
  color: #10b981 !important;
  background: transparent !important;
}
.template-cyber_academy .btn-outline:hover {
  background: #10b981 !important;
  color: #fff !important;
}

/* ── Template 5: Nordic Edu (Scandinavian Minimalist) ── */
.template-nordic_edu {
  background-color: #faf9f6 !important;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}
.template-nordic_edu .school-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.template-nordic_edu .school-nav-wrap a {
  border-radius: 9999px !important;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.template-nordic_edu .hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
  border-bottom: 1px solid #e2e8f0;
}
.template-nordic_edu .section { background: #faf9f6 !important; }
.template-nordic_edu .admin-card,
.template-nordic_edu .notice-item,
.template-nordic_edu .gallery-card,
.template-nordic_edu .faculty-card,
.template-nordic_edu .fee-table,
.template-nordic_edu .facility-card,
.template-nordic_edu .testimonial-card,
.template-nordic_edu .address-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04) !important;
}
.template-nordic_edu .btn {
  border-radius: 9999px !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
}
.template-nordic_edu .badge {
  border-radius: 9999px !important;
  padding: 5px 14px !important;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   Admin Panel — Enhanced Components
═══════════════════════════════════════════════════ */

/* Mission 1000 Progress Bar */
.mission-progress-bar {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.mission-progress-bar.large { height: 14px; }
.mission-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.mission-progress-fill.animated {
  animation: progressGrow 1.2s ease forwards;
}
@keyframes progressGrow {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

/* Activity Timeline */
.activity-timeline { padding: 4px 0; }
.activity-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-content { flex: 1; min-width: 0; }
.activity-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 3px;
}
.activity-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Landing CMS Sub-Tabs */
.cms-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--border);
  background: #f8fafc;
}
.cms-tab-btn {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.cms-tab-btn:hover { color: var(--primary); }
.cms-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #fff;
  font-weight: 600;
}

/* Website Builder — Section Row */
.section-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.section-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.section-row.editing { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,92,58,.08); }
.section-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}
.section-editor {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  animation: fadeInDown 0.18s ease;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Media Library — Card Grid */
.media-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

/* Language — Card Highlight */
.card-highlight {
  border: 2px solid var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(13,92,58,.07) !important;
}

/* Table wrap for horizontal scroll */
.table-wrap { overflow-x: auto; }

/* Responsive: stack admin stats on narrow screens */
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr !important; }
  .cms-tabs  { flex-direction: column; }
  .cms-tab-btn { border-bottom: 1px solid var(--border); margin-bottom: 0; }
  .cms-tab-btn.active { border-bottom-color: var(--border); border-left: 3px solid var(--primary); }
  .section-row-header { flex-direction: column; align-items: flex-start; }
}

/* =============================================================================
   NEW SECTION TYPES STYLES (Event Gallery, Faculty, Fee Structure, Facilities, Testimonials)
   ============================================================================= */

/* Event & Photo Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.gallery-card {
  background: var(--surface, #ffffff);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #e2e8f0;
}
.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.06);
}
.gallery-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(13, 92, 58, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gallery-info {
  padding: 16px;
}
.gallery-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}
.gallery-date {
  font-size: 13px;
  color: var(--text-muted);
}

/* Faculty Directory */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.faculty-card {
  background: var(--surface, #ffffff);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.faculty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.09);
}
.faculty-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--primary-light, #e6f4ed);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.faculty-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.faculty-designation {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.faculty-qual {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.faculty-subject-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Fee Structure Table */
.fee-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.fee-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--surface, #ffffff);
  font-size: 14px;
}
.fee-table th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border);
}
.fee-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.fee-table tr:last-child td {
  border-bottom: none;
}
.fee-table tr:hover {
  background: #f8fafc;
}
.grade-group-cell {
  font-weight: 600;
  color: var(--primary);
}

/* Campus Facilities Grid */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.facility-card {
  background: var(--surface, #ffffff);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: transform 0.2s ease;
}
.facility-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}
.facility-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.facility-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.facility-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.testimonial-card {
  background: var(--surface, #ffffff);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-quote {
  font-style: italic;
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-author-info {
  font-size: 13px;
}
.testimonial-author-name {
  font-weight: 700;
  color: var(--text);
}
.testimonial-author-role {
  color: var(--text-muted);
  font-size: 12px;
}
.star-rating {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 10px;
}




/* ==========================================================================
   5 COMPLETELY UNIQUE & DISTINCT WEBSITE TEMPLATES
   ========================================================================== */

/* ── 1. Modern Glass & Vibrant Emerald (template-modern) ── */
.template-modern {
  background-color: #f8fafc !important;
  font-family: 'Outfit', sans-serif !important;
}
.template-modern .school-header {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(13, 92, 58, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.template-modern .school-name { color: #0d5c3a !important; font-weight: 800; }
.template-modern .hero-section,
.template-modern .school-hero {
  background: linear-gradient(135deg, #0d5c3a 0%, #15803d 60%, #047857 100%) !important;
  color: #ffffff !important;
  padding: 60px 24px !important;
}
.template-modern .school-hero-overlay {
  background: linear-gradient(to bottom, rgba(13,92,58,.55) 0%, rgba(13,92,58,.80) 100%) !important;
}
.template-modern .hero-section h1,
.template-modern .hero-section p,
.template-modern .school-hero h1,
.template-modern .school-hero h2,
.template-modern .school-hero p,
.template-modern .school-hero-content h1,
.template-modern .school-hero-content p { color: #ffffff !important; text-shadow: 0 1px 6px rgba(0,0,0,.35) !important; }
.template-modern .section { background: #f8fafc !important; }
.template-modern .admin-card,
.template-modern .notice-item,
.template-modern .gallery-card,
.template-modern .faculty-card,
.template-modern .fee-table,
.template-modern .facility-card,
.template-modern .testimonial-card,
.template-modern .address-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.template-modern .admin-card:hover,
.template-modern .facility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 92, 58, 0.1) !important;
}

/* ── 2. Apex Cyber: Futuristic Tech & AI (template-cyber_academy) ── */
.template-cyber_academy {
  background-color: #090d16 !important;
  color: #f8fafc !important;
  font-family: 'Outfit', monospace, sans-serif !important;
}
.template-cyber_academy .school-header {
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(20px);
  border-bottom: 2px solid #10b981;
}
.template-cyber_academy .school-header-top { background: #0f172a; }
.template-cyber_academy .school-name {
  color: #38bdf8 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  font-weight: 800;
}
.template-cyber_academy .school-addr { color: #94a3b8 !important; }
.template-cyber_academy .school-hamburger {
  border: 1.5px solid #10b981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
}
.template-cyber_academy .school-ham-line {
  background: #38bdf8 !important;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}
.template-cyber_academy .school-header-actions {
  background: #090d16 !important;
  border-top: 1px solid #1e293b !important;
}
.template-cyber_academy .school-lang-select {
  background: #1e293b !important;
  color: #38bdf8 !important;
  border: 1px solid #10b981 !important;
}
.template-cyber_academy .school-header-actions .btn {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3) !important;
}
.template-cyber_academy .school-nav-wrap { background: #0f172a; border-top: 1px solid #1e293b; }
.template-cyber_academy .school-nav-wrap a { color: #cbd5e1; }
.template-cyber_academy .school-nav-wrap a:hover { background: #1e293b; color: #10b981; }
.template-cyber_academy .hero-section,
.template-cyber_academy .school-hero {
  background: radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 60%),
              #070a12 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}
.template-cyber_academy .school-hero-overlay {
  background: linear-gradient(to bottom, rgba(7,10,18,.65) 0%, rgba(7,10,18,.85) 100%) !important;
}
.template-cyber_academy .school-hero h1,
.template-cyber_academy .school-hero h2,
.template-cyber_academy .school-hero-content h1 {
  color: #38bdf8 !important;
  text-shadow: 0 0 20px rgba(56,189,248,.5) !important;
}
.template-cyber_academy .school-hero p,
.template-cyber_academy .school-hero-content p { color: #e2e8f0 !important; }
.template-cyber_academy .section { background: #0f172a !important; color: #f8fafc !important; }
.template-cyber_academy .admin-card,
.template-cyber_academy .notice-item,
.template-cyber_academy .gallery-card,
.template-cyber_academy .faculty-card,
.template-cyber_academy .fee-table,
.template-cyber_academy .facility-card,
.template-cyber_academy .testimonial-card,
.template-cyber_academy .address-card,
.template-cyber_academy .card {
  background: #1e293b !important;
  color: #f8fafc !important;
  border: 1.5px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.15) !important;
  border-radius: 12px !important;
}
/* Text inside cards */
.template-cyber_academy .card h3,
.template-cyber_academy .card h4,
.template-cyber_academy .card p,
.template-cyber_academy .card strong,
.template-cyber_academy .card label { color: #f8fafc !important; }
.template-cyber_academy .card .form-label { color: #cbd5e1 !important; }
/* Form inputs — dark themed */
.template-cyber_academy .form-control {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1.5px solid rgba(16, 185, 129, 0.3) !important;
  border-radius: 8px !important;
}
.template-cyber_academy .form-control::placeholder { color: #64748b !important; }
.template-cyber_academy .form-control:focus {
  border-color: #10b981 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}
.template-cyber_academy h1,
.template-cyber_academy h2,
.template-cyber_academy h3,
.template-cyber_academy h4 { color: #f8fafc !important; }
.template-cyber_academy p { color: #cbd5e1 !important; }
.template-cyber_academy .btn-primary {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* ── 3. Elite Prestige: Royal Navy & Gold (template-elite) ── */
.template-elite {
  background-color: #fdfbf7 !important;
  color: #1e293b !important;
  font-family: Georgia, 'Times New Roman', serif !important;
}
.template-elite .school-header {
  background: #0a192f !important;
  border-bottom: 4px solid #d97706;
  box-shadow: 0 6px 24px rgba(10, 25, 47, 0.15);
}
.template-elite .school-header-top { background: #0a192f; }
.template-elite .school-name {
  color: #fbbf24 !important;
  font-family: Georgia, serif;
  font-size: 22px !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.template-elite .school-addr { color: #cbd5e1 !important; }
.template-elite .school-hamburger {
  border: 1.5px solid #d97706 !important;
  background: rgba(217, 119, 6, 0.12) !important;
}
.template-elite .school-ham-line {
  background: #fbbf24 !important;
}
.template-elite .school-header-actions {
  background: #0f2b48 !important;
  border-top: 1px solid #1e40af !important;
}
.template-elite .school-lang-select {
  background: #0a192f !important;
  color: #fbbf24 !important;
  border: 1px solid #d97706 !important;
}
.template-elite .school-header-actions .btn {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.3) !important;
}
.template-elite .school-nav-wrap { background: #0f2b48; border-top: 1px solid #1e40af; }
.template-elite .school-nav-wrap a { color: #fef3c7; font-weight: 600; font-family: 'Outfit', sans-serif; }
.template-elite .school-nav-wrap a:hover { background: #1e3a8a; color: #fbbf24; }
/* Elite hero — targets both the landing hero-section AND school-hero */
.template-elite .hero-section,
.template-elite .school-hero {
  background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 70%, #1e1b4b 100%) !important;
  color: #ffffff !important;
  border-bottom: 4px solid #b45309;
}
/* Darken the overlay so text is always readable on any background image */
.template-elite .school-hero-overlay {
  background: linear-gradient(to bottom, rgba(10,25,47,.7) 0%, rgba(10,25,47,.88) 100%) !important;
}
/* Hero headings — cream/gold. Must be more specific than .template-elite h1 below */
.template-elite .hero-section h1,
.template-elite .school-hero-section h1,
.template-elite .school-hero-section .hero-main-title,
.template-elite .hero-main-title,
.template-elite .school-hero .school-hero-content h1 {
  color: #fef3c7 !important;
  font-family: Georgia, 'Playfair Display', serif !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.7) !important;
}
.template-elite .hero-section p,
.template-elite .school-hero-section p,
.template-elite .school-hero-section .hero-main-subtitle,
.template-elite .hero-main-subtitle,
.template-elite .school-hero .school-hero-content p {
  color: #e2e8f0 !important;
  text-shadow: 0 1px 6px rgba(0,0,0,.6) !important;
}
.template-elite .section { background: #fdfbf7 !important; }
/* Body headings — dark navy (sections outside hero only) */
.template-elite h1, .template-elite h2, .template-elite h3 {
  font-family: Georgia, 'Playfair Display', serif !important;
  color: #0a192f !important;
}
/* Override: headings INSIDE the hero must stay cream, not dark navy */
.template-elite .school-hero h1,
.template-elite .school-hero h2,
.template-elite .school-hero h3,
.template-elite .school-hero-section h1,
.template-elite .school-hero-section h2,
.template-elite .school-hero-section h3,
.template-elite .school-hero-section .hero-main-title,
.template-elite .school-hero p {
  color: #fef3c7 !important;
  font-family: Georgia, 'Playfair Display', serif !important;
}
.template-elite .school-hero p,
.template-elite .school-hero-section p,
.template-elite .school-hero-section .hero-main-subtitle { color: #e2e8f0 !important; }
.template-elite .admin-card,
.template-elite .notice-item,
.template-elite .gallery-card,
.template-elite .faculty-card,
.template-elite .fee-table,
.template-elite .facility-card,
.template-elite .testimonial-card,
.template-elite .address-card,
.template-elite .card {
  background: #ffffff !important;
  border: 1px solid #fde68a !important;
  border-left: 5px solid #d97706 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.08) !important;
}
.template-elite .card h3,
.template-elite .card strong { color: #0a192f !important; }
.template-elite .form-control {
  border: 1.5px solid #fde68a !important;
  border-radius: 8px !important;
}
.template-elite .form-control:focus {
  border-color: #d97706 !important;
  box-shadow: 0 0 0 3px rgba(217,119,6,.15) !important;
}
.template-elite .btn-primary {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

/* ── 4. Nordic Edu: Scandinavian Eco Minimalist (template-nordic_edu) ── */
.template-nordic_edu {
  background-color: #faf9f6 !important;
  color: #1e293b !important;
  font-family: 'Outfit', system-ui, sans-serif !important;
}
.template-nordic_edu .school-header {
  background: #ffffff !important;
  border-bottom: 1.5px solid #dcfce7;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.04);
}
.template-nordic_edu .school-name { color: #15803d !important; font-weight: 700; }
.template-nordic_edu .school-hamburger {
  border: 1.5px solid #86efac !important;
  background: #f0fdf4 !important;
}
.template-nordic_edu .school-ham-line {
  background: #15803d !important;
}
.template-nordic_edu .school-header-actions {
  background: #f0fdf4 !important;
  border-top: 1px solid #dcfce7 !important;
}
.template-nordic_edu .school-lang-select {
  background: #ffffff !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
}
.template-nordic_edu .school-header-actions .btn {
  background: #15803d !important;
  border-radius: 9999px !important;
  border: none !important;
  color: #ffffff !important;
}
.template-nordic_edu .school-nav-wrap a {
  border-radius: 9999px !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px !important;
  color: #166534;
}
.template-nordic_edu .hero-section,
.template-nordic_edu .school-hero {
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%) !important;
  color: #0f172a !important;
  border-bottom: 1.5px solid #bbf7d0;
}
.template-nordic_edu .school-hero-overlay {
  background: linear-gradient(to bottom, rgba(255,255,255,.15) 0%, rgba(20,83,45,.4) 100%) !important;
}
.template-nordic_edu .hero-section h1,
.template-nordic_edu .school-hero h1,
.template-nordic_edu .school-hero-content h1 { color: #14532d !important; text-shadow: 0 1px 4px rgba(0,0,0,.15) !important; }
.template-nordic_edu .hero-section p,
.template-nordic_edu .school-hero p,
.template-nordic_edu .school-hero-content p { color: #1e293b !important; text-shadow: 0 1px 2px rgba(255,255,255,.5) !important; }
.template-nordic_edu .section { background: #faf9f6 !important; }
.template-nordic_edu .admin-card,
.template-nordic_edu .notice-item,
.template-nordic_edu .gallery-card,
.template-nordic_edu .faculty-card,
.template-nordic_edu .fee-table,
.template-nordic_edu .facility-card,
.template-nordic_edu .testimonial-card,
.template-nordic_edu .address-card,
.template-nordic_edu .card {
  background: #ffffff !important;
  border: 1.5px solid #dcfce7 !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.06) !important;
}
.template-nordic_edu .form-control {
  border: 1.5px solid #bbf7d0 !important;
  border-radius: 9999px !important;
}
.template-nordic_edu .form-control:focus {
  border-color: #15803d !important;
  box-shadow: 0 0 0 3px rgba(21,128,61,.12) !important;
}
.template-nordic_edu .btn {
  border-radius: 9999px !important;
  padding: 10px 24px !important;
  font-weight: 700 !important;
}
.template-nordic_edu .btn-primary {
  background: #15803d !important;
  border: none !important;
  color: #ffffff !important;
}
.template-nordic_edu .badge {
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-weight: 700;
}

/* ── 5. Essential Speed: Corporate Slate & Crimson (template-essential) ── */
.template-essential {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.template-essential .school-header {
  background: #0f172a !important;
  border-bottom: 3px solid #e11d48;
}
.template-essential .school-header-top { background: #0f172a; }
.template-essential .school-hamburger {
  border: 1.5px solid #334155 !important;
  background: #1e293b !important;
}
.template-essential .school-ham-line {
  background: #ffffff !important;
}
.template-essential .school-header-actions {
  background: #1e293b !important;
  border-top: 1px solid #334155 !important;
}
.template-essential .school-lang-select {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
}
.template-essential .school-header-actions .btn {
  background: #e11d48 !important;
  border: none !important;
  color: #ffffff !important;
}
.template-essential .school-nav-wrap { background: #0f172a; border-top-color: #334155; }
.template-essential .school-nav-wrap a { color: #f8fafc; font-weight: 700; }
.template-essential .school-nav-wrap a:hover { background: #e11d48; color: #ffffff; }
.template-essential .school-name { color: #ffffff !important; font-size: 20px !important; font-weight: 800; }
.template-essential .school-addr { color: #94a3b8 !important; }
.template-essential .hero-section,
.template-essential .school-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #881337 100%) !important;
  color: #ffffff !important;
  border-bottom: 4px solid #be123c;
}
.template-essential .school-hero-overlay {
  background: linear-gradient(to bottom, rgba(15,23,42,.6) 0%, rgba(136,19,55,.75) 100%) !important;
}
.template-essential .hero-section h1,
.template-essential .school-hero h1,
.template-essential .school-hero-content h1 { color: #ffffff !important; font-weight: 900 !important; text-shadow: 0 2px 6px rgba(0,0,0,.4) !important; }
.template-essential .hero-section p,
.template-essential .school-hero p,
.template-essential .school-hero-content p { color: #cbd5e1 !important; }
.template-essential .section { background: #f1f5f9 !important; }
.template-essential .admin-card,
.template-essential .notice-item,
.template-essential .gallery-card,
.template-essential .faculty-card,
.template-essential .fee-table,
.template-essential .facility-card,
.template-essential .testimonial-card,
.template-essential .address-card,
.template-essential .card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-top: 4px solid #e11d48 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}
.template-essential .form-control:focus {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225,29,72,.12) !important;
}
.template-essential .btn-primary {
  background: #e11d48 !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE — SCHOOL TEMPLATES (ALL 5)
   Covers: real phones (max-width:768px) + real tablets (max-width:1023px)
   Strategy: smallest screens first, then scale up.
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset template hero padding overrides on mobile ───────────── */
@media (max-width: 768px) {

  /* All template hero section overrides must yield to mobile rules */
  .template-modern .hero-section,
  .template-modern .school-hero,
  .template-elite .hero-section,
  .template-elite .school-hero,
  .template-cyber_academy .hero-section,
  .template-cyber_academy .school-hero,
  .template-nordic_edu .hero-section,
  .template-nordic_edu .school-hero,
  .template-essential .hero-section,
  .template-essential .school-hero {
    padding: 36px 16px 40px !important;
    min-height: 55vh !important;
    text-align: center !important;
  }

  /* Hero text sizing on small screens */
  .school-site .school-hero-content h1,
  .school-site .hero-section h1 {
    font-size: clamp(20px, 7vw, 32px) !important;
    line-height: 1.2 !important;
  }
  .school-site .school-hero-content p,
  .school-site .hero-section p {
    font-size: clamp(13px, 4vw, 16px) !important;
  }

  /* Hero CTA buttons — full width stacked */
  .school-hero-ctas,
  .hero-section .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .school-hero-ctas .btn,
  .hero-section .hero-ctas .btn {
    width: 100% !important;
    min-width: unset !important;
    justify-content: center !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
  }

  /* ── Card Grids — single column on mobile ── */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2-col on phones ≥360px */
    gap: 12px !important;
  }
  .facilities-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* ── Gallery Card — constrain image height on mobile ── */
  .gallery-img-wrap { height: 160px !important; }
  .gallery-info { padding: 12px !important; }
  .gallery-title { font-size: 14px !important; }

  /* ── Faculty Card — compact on mobile ── */
  .faculty-card { padding: 14px 10px !important; }
  .faculty-avatar { width: 70px !important; height: 70px !important; }
  .faculty-name { font-size: 14px !important; }
  .faculty-designation { font-size: 12px !important; }

  /* ── Facility Card ── */
  .facility-card { padding: 16px !important; }
  .facility-title { font-size: 15px !important; }

  /* ── Testimonial Card ── */
  .testimonial-card { padding: 16px !important; }
  .testimonial-quote { font-size: 13px !important; }

  /* ── Fee Table — horizontal scroll ── */
  .fee-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px !important;
  }
  .fee-table { min-width: 420px !important; font-size: 12px !important; }
  .fee-table th, .fee-table td { padding: 10px 12px !important; }

  /* ── Section padding ── */
  .school-site .section { padding: 32px 14px !important; }
  .section-header { margin-bottom: 20px !important; }
  .section-header h2 {
    font-size: clamp(18px, 6vw, 26px) !important;
    line-height: 1.25 !important;
  }
  .section-header p { font-size: 13px !important; }

  /* ── School Header — mobile stack ── */
  .school-header {
    flex-direction: column !important;
    padding: 0 !important;
  }
  .school-header-top {
    padding: 10px 16px !important;
    width: 100% !important;
  }
  .school-hamburger { display: flex !important; }
  .school-header-actions {
    width: 100% !important;
    padding: 6px 16px !important;
  }
  .school-nav-wrap {
    display: none !important;
    width: 100% !important;
    flex-direction: column !important;
    padding: 8px 14px 14px !important;
  }
  .school-nav-wrap.open { display: flex !important; }

  /* ── Principal Section ── */
  .principal-grid { flex-direction: column !important; gap: 18px !important; }
  .principal-image { flex: unset !important; max-width: 100% !important; }
  .principal-image img {
    max-height: 200px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: top !important;
  }
  .principal-name { font-size: clamp(16px, 5vw, 22px) !important; }
  .principal-quote { font-size: 14px !important; padding-left: 12px !important; }

  /* ── Top Achievers Section (new) ── */
  #top-achievers > div[style] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 12px !important;
  }
  #top-achievers .section-header h2 { font-size: clamp(18px, 6vw, 26px) !important; }

  /* ── Contact Section ── */
  .address-card { padding: 16px !important; }
  .address-actions { flex-direction: column !important; gap: 8px !important; }
  .address-actions .btn { width: 100% !important; flex: unset !important; }

  /* ── School Footer ── */
  .school-footer {
    padding: 24px 16px 16px !important;
    font-size: 13px !important;
    text-align: center !important;
  }

  /* ── Template-specific mobile overrides ── */

  /* Elite: reduce gold accent font size */
  .template-elite .school-name {
    font-size: 14px !important;
    letter-spacing: 0 !important;
  }
  .template-elite h2 { font-size: clamp(18px, 5.5vw, 26px) !important; }

  /* Cyber: glow text-shadow too heavy on small screens */
  .template-cyber_academy .school-name {
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.3) !important;
    font-size: 13px !important;
  }

  /* Nordic: pill buttons full-width on mobile */
  .template-nordic_edu .school-hero-ctas .btn {
    border-radius: 9999px !important;
    width: 100% !important;
  }
  .template-nordic_edu .school-nav-wrap a {
    padding: 10px 14px !important;
    border-radius: 8px !important;
  }

  /* Essential: reduce school name size */
  .template-essential .school-name { font-size: 14px !important; }
}

/* ── Small phones (≤400px) — extra compact ── */
@media (max-width: 400px) {
  .faculty-grid { grid-template-columns: 1fr !important; }
  #top-achievers > div[style] { grid-template-columns: 1fr !important; gap: 28px 0 !important; }
  .school-site .section { padding: 28px 12px !important; }
  .school-hero-content h1,
  .hero-section h1 { font-size: clamp(18px, 7.5vw, 26px) !important; }
  .school-footer { font-size: 12px !important; }
}

/* ── Tablet (769px–1023px) — 2-col grids ── */
@media (min-width: 769px) and (max-width: 1023px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  #top-achievers > div[style] { grid-template-columns: repeat(3, 1fr) !important; }
  .school-site .section { padding: 48px 28px !important; }
  .school-hero { min-height: 65vh !important; padding: 60px 28px 50px !important; }
  .school-hero-ctas { flex-direction: row !important; max-width: 100% !important; }
  .school-hero-ctas .btn { width: auto !important; flex: 1 !important; }
  .principal-grid { flex-direction: row !important; align-items: flex-start !important; gap: 28px !important; }
  .principal-image { flex: 0 0 38% !important; max-width: 38% !important; }
}

/* ── Desktop (≥1024px) — 3+ col grids ── */
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .faculty-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .facilities-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr) !important; }
  #top-achievers > div[style] { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; }
  .school-site .section { padding: 60px 5% !important; }
  .school-hero { min-height: 85vh !important; }
  .school-hero-content h1 { font-size: clamp(28px, 4vw, 52px) !important; }
}

/* ── vp-mobile simulator class equivalents (matches media query above) ── */
#app-root.vp-mobile .gallery-grid,
#app-root.vp-mobile .facilities-grid,
#app-root.vp-mobile .testimonials-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
#app-root.vp-mobile .faculty-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
#app-root.vp-mobile #top-achievers > div[style] { grid-template-columns: repeat(2, 1fr) !important; gap: 28px 12px !important; }
#app-root.vp-mobile .school-site .section { padding: 32px 14px !important; }
#app-root.vp-mobile .gallery-img-wrap { height: 150px !important; }
#app-root.vp-mobile .faculty-card { padding: 14px 10px !important; }
#app-root.vp-mobile .fee-table-wrap { overflow-x: auto !important; }
#app-root.vp-mobile .fee-table { min-width: 420px !important; font-size: 12px !important; }
#app-root.vp-mobile .address-actions { flex-direction: column !important; }
#app-root.vp-mobile .address-actions .btn { width: 100% !important; }
#app-root.vp-mobile .template-modern .hero-section,
#app-root.vp-mobile .template-elite .hero-section,
#app-root.vp-mobile .template-cyber_academy .hero-section,
#app-root.vp-mobile .template-nordic_edu .hero-section,
#app-root.vp-mobile .template-essential .hero-section {
  padding: 36px 16px 40px !important;
  min-height: 55vh !important;
  text-align: center !important;
}
#app-root.vp-mobile .school-hero-ctas { flex-direction: column !important; width: 100% !important; }
#app-root.vp-mobile .school-hero-ctas .btn { width: 100% !important; }

/* vp-tablet simulator */
#app-root.vp-tablet .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
#app-root.vp-tablet .faculty-grid { grid-template-columns: repeat(2, 1fr) !important; }
#app-root.vp-tablet .facilities-grid { grid-template-columns: repeat(2, 1fr) !important; }
#app-root.vp-tablet .testimonials-grid { grid-template-columns: repeat(2, 1fr) !important; }
#app-root.vp-tablet #top-achievers > div[style] { grid-template-columns: repeat(3, 1fr) !important; }

/* vp-desktop simulator */
#app-root.vp-desktop .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }
#app-root.vp-desktop .faculty-grid { grid-template-columns: repeat(3, 1fr) !important; }
#app-root.vp-desktop .facilities-grid { grid-template-columns: repeat(3, 1fr) !important; }
#app-root.vp-desktop .testimonials-grid { grid-template-columns: repeat(3, 1fr) !important; }
#app-root.vp-desktop #top-achievers > div[style] { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; }

/* ── Prevent horizontal scroll site-wide on mobile ── */
.school-site, .school-site * { box-sizing: border-box; }
@media (max-width: 768px) {
  .school-site { overflow-x: hidden !important; }
  .school-site > * { max-width: 100vw !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEMPLATE 6: QUANTUM CAMPUS — FUTURISTIC UNIVERSITY & AI INSTITUTE (MOBILE-FIRST)
   Key: template-quantum_campus
   ═══════════════════════════════════════════════════════════════════════════ */

.template-quantum_campus {
  --qc-bg-dark: #070b19;
  --qc-surface: rgba(13, 20, 41, 0.88);
  --qc-surface-hover: rgba(22, 33, 66, 0.95);
  --qc-cyan: #00f2fe;
  --qc-cyan-glow: rgba(0, 242, 254, 0.35);
  --qc-neon-blue: #4facfe;
  --qc-violet: #8b5cf6;
  --qc-violet-glow: rgba(139, 92, 246, 0.3);
  --qc-emerald: #10b981;
  --qc-border: rgba(0, 242, 254, 0.22);
  --qc-text: #f8fafc;
  --qc-text-muted: #94a3b8;
  
  background-color: var(--qc-bg-dark) !important;
  color: var(--qc-text) !important;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px !important;
  position: relative;
}

/* Quantum Header */
.template-quantum_campus .school-header {
  background: rgba(7, 11, 25, 0.94) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid transparent !important;
  border-image: linear-gradient(90deg, #00f2fe, #8b5cf6, #00f2fe) 1 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.15) !important;
}
.template-quantum_campus .school-header-top {
  background: transparent !important;
}
.template-quantum_campus .school-name {
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 30%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}
.template-quantum_campus .school-addr {
  color: #94a3b8 !important;
  font-size: 11.5px;
}
.template-quantum_campus .school-nav-wrap {
  background: rgba(10, 16, 35, 0.98) !important;
  border-top: 1px solid rgba(0, 242, 254, 0.15);
}
.template-quantum_campus .school-nav-wrap a {
  color: #cbd5e1 !important;
  font-weight: 600;
  transition: all 0.25s ease;
  position: relative;
}
.template-quantum_campus .school-nav-wrap a:hover {
  background: rgba(0, 242, 254, 0.1) !important;
  color: #00f2fe !important;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}
.template-quantum_campus .school-hamburger {
  border-color: rgba(0, 242, 254, 0.4) !important;
  background: rgba(0, 242, 254, 0.05);
}
.template-quantum_campus .school-ham-line {
  background: #00f2fe !important;
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.8);
}
.template-quantum_campus .school-lang-select {
  background: rgba(13, 20, 41, 0.9) !important;
  color: #00f2fe !important;
  border: 1px solid rgba(0, 242, 254, 0.4) !important;
}

/* Quantum Hero */
.template-quantum_campus .school-hero {
  position: relative;
  background: radial-gradient(circle at 75% 30%, rgba(0, 242, 254, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 25% 70%, rgba(139, 92, 246, 0.22) 0%, transparent 55%),
              #050814 !important;
  border-bottom: 1px solid rgba(0, 242, 254, 0.25);
  overflow: hidden;
}
.template-quantum_campus .school-hero-overlay {
  background: linear-gradient(180deg, rgba(5, 8, 20, 0.65) 0%, rgba(7, 11, 25, 0.92) 100%) !important;
}
.template-quantum_campus .school-hero-content h1 {
  color: #ffffff !important;
  text-shadow: 0 0 25px rgba(0, 242, 254, 0.5), 0 4px 15px rgba(0,0,0,0.8) !important;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.template-quantum_campus .school-hero-content p {
  color: #cbd5e1 !important;
  font-size: clamp(14px, 2vw, 17px);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* General Sections & Cards in Quantum Campus */
.template-quantum_campus .section {
  background: transparent !important;
  color: var(--qc-text) !important;
}
.template-quantum_campus .section-header h2 {
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
  position: relative;
  display: inline-block;
}
.template-quantum_campus .section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00f2fe, #8b5cf6);
  margin: 8px auto 0;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.7);
}
.template-quantum_campus .section-header p {
  color: #94a3b8 !important;
}

.template-quantum_campus .admin-card,
.template-quantum_campus .card,
.template-quantum_campus .notice-item,
.template-quantum_campus .gallery-card,
.template-quantum_campus .faculty-card,
.template-quantum_campus .fee-table,
.template-quantum_campus .facility-card,
.template-quantum_campus .testimonial-card,
.template-quantum_campus .address-card {
  background: var(--qc-surface) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid var(--qc-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: var(--qc-text) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.template-quantum_campus .admin-card:hover,
.template-quantum_campus .card:hover,
.template-quantum_campus .gallery-card:hover,
.template-quantum_campus .faculty-card:hover,
.template-quantum_campus .facility-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.5) !important;
  box-shadow: 0 14px 40px rgba(0, 242, 254, 0.18), 0 0 20px rgba(0, 242, 254, 0.25) !important;
}

.template-quantum_campus .card h3,
.template-quantum_campus .card h4,
.template-quantum_campus .card strong,
.template-quantum_campus .faculty-name,
.template-quantum_campus .facility-title {
  color: #ffffff !important;
}

.template-quantum_campus .card p,
.template-quantum_campus .faculty-designation,
.template-quantum_campus .facility-desc {
  color: #94a3b8 !important;
}

/* Futuristic Inputs */
.template-quantum_campus .form-control {
  background: rgba(7, 11, 25, 0.85) !important;
  color: #f8fafc !important;
  border: 1.5px solid rgba(0, 242, 254, 0.25) !important;
  border-radius: 10px !important;
}
.template-quantum_campus .form-control:focus {
  border-color: #00f2fe !important;
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.25), 0 0 12px rgba(0, 242, 254, 0.3) !important;
  outline: none !important;
}

/* Futuristic Buttons */
.template-quantum_campus .btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8b5cf6 100%) !important;
  border: none !important;
  color: #050814 !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.4), 0 0 10px rgba(79, 172, 254, 0.3) !important;
  transition: all 0.25s ease !important;
}
.template-quantum_campus .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.6), 0 0 20px rgba(139, 92, 246, 0.5) !important;
  filter: brightness(1.1);
}

.template-quantum_campus .btn-secondary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}

.template-quantum_campus .btn-outline {
  border: 1.5px solid rgba(0, 242, 254, 0.5) !important;
  color: #00f2fe !important;
  background: rgba(0, 242, 254, 0.05) !important;
}
.template-quantum_campus .btn-outline:hover {
  background: #00f2fe !important;
  color: #050814 !important;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.6) !important;
}

/* Badges */
.template-quantum_campus .badge-primary {
  background: rgba(0, 242, 254, 0.15) !important;
  color: #00f2fe !important;
  border: 1px solid rgba(0, 242, 254, 0.4) !important;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.25);
}
.template-quantum_campus .badge-secondary {
  background: rgba(139, 92, 246, 0.18) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   1. RIGHT-TO-LEFT (RTL) SCROLLING LIVE NEWS TICKER BAR (MOBILE-FIRST)
   ═══════════════════════════════════════════════════════════════════════════ */

.quantum-news-ticker-bar {
  background: linear-gradient(90deg, #050814 0%, #0d1633 50%, #050814 100%);
  border-top: 1px solid rgba(0, 242, 254, 0.2);
  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 38px;
  position: relative;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.ticker-label-badge {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #050814;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 3px 0 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  max-width: 140px;
}

.ticker-label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 540px) {
  .quantum-news-ticker-bar {
    height: 36px;
  }
  .ticker-label-badge {
    padding: 0 8px;
    max-width: 95px;
    font-size: 10px;
    gap: 4px;
  }
  .ticker-label-text {
    font-size: 10px;
  }
  .ticker-news-item {
    margin: 0 12px;
    font-size: 12px;
    gap: 6px;
  }
}

@media (min-width: 768px) {
  .quantum-news-ticker-bar {
    height: 44px;
  }
  .ticker-label-badge {
    padding: 0 16px;
    font-size: 12px;
    max-width: 220px;
    gap: 8px;
  }
  .ticker-label-text {
    font-size: 12px;
  }
  .ticker-news-item {
    margin: 0 24px;
    font-size: 13.5px;
  }
}

.ticker-pulse-icon {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #dc2626;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: ticker-pulse 1.4s infinite;
  flex-shrink: 0;
}

@keyframes ticker-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.ticker-marquee-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 2%, black 98%, transparent 100%);
}

.ticker-marquee-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: rtl-marquee 30s linear infinite;
  will-change: transform;
}

/* Pause on hover & touch */
.ticker-marquee-track:hover .ticker-marquee-inner,
.ticker-marquee-track:active .ticker-marquee-inner {
  animation-play-state: paused !important;
}

@keyframes rtl-marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-news-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 20px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.ticker-news-item:hover {
  color: #00f2fe;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.ticker-item-badge {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.35);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.ticker-separator {
  color: rgba(0, 242, 254, 0.4);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. SCROLLING NOTICE BOARD (VERTICAL CONTINUOUS & INTERACTIVE STREAM)
   ═══════════════════════════════════════════════════════════════════════════ */

.scrolling-notice-board-section {
  position: relative;
  padding: 40px 16px;
}

.notice-board-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .notice-board-wrapper {
    grid-template-columns: 340px 1fr;
  }
}

.notice-board-spotlight {
  background: linear-gradient(135deg, var(--primary, #0d5c3a), #062f1d);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.notice-board-spotlight h3,
.notice-board-spotlight .spotlight-title {
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin: 0 0 10px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

.notice-board-spotlight p,
.notice-board-spotlight .spotlight-desc {
  color: #e2e8f0 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  margin: 0 0 18px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.notice-board-spotlight .spotlight-badge {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(4px);
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  display: inline-block !important;
  margin-bottom: 12px !important;
}

.notice-board-spotlight .spotlight-footer {
  font-size: 11.5px !important;
  color: #cbd5e1 !important;
  margin-top: 10px !important;
  text-align: center !important;
}

.notice-board-spotlight .btn-primary {
  background: #ffffff !important;
  color: var(--primary, #0d5c3a) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  font-weight: 800 !important;
  transition: all 0.2s ease !important;
}

.notice-board-spotlight .btn-primary:hover {
  background: #f8fafc !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
}

.notice-board-spotlight::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.notice-stream-container {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 480px;
  position: relative;
}

.notice-stream-header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.notice-stream-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  position: relative;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary, #0d5c3a) #f1f5f9;
}

.notice-stream-viewport::-webkit-scrollbar {
  width: 6px;
}
.notice-stream-viewport::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.notice-stream-viewport::-webkit-scrollbar-thumb {
  background: var(--primary, #0d5c3a);
  border-radius: 6px;
}

/* Auto-scroll container track */
.notice-stream-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notice-stream-card {
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-left: 4px solid var(--primary, #0d5c3a);
  border-radius: 10px;
  padding: 14px 16px;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.notice-stream-card:hover {
  background: #f8fafc;
  border-color: var(--primary, #0d5c3a);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.notice-stream-card.is-priority {
  border-left-color: #f59e0b;
  background: #fffdf5;
}

.notice-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.notice-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
}

.notice-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #64748b;
}

.notice-card-body {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 6px 0 10px;
}

.notice-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. ACADEMIC PROGRAMS & DEGREE OFFERINGS (COLLEGE / UNIVERSITY)
   ═══════════════════════════════════════════════════════════════════════════ */

.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(3, 1fr); }
}

.program-card {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.program-card:hover {
  border-color: var(--primary, #0d5c3a);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.program-level-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary, #0d5c3a);
  background: rgba(13, 92, 58, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(13, 92, 58, 0.2);
  display: inline-block;
  margin-bottom: 10px;
}

.program-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 4px 0 12px;
  line-height: 1.35;
}

.program-details-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 18px;
  font-size: 13px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.program-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.pdetail-icon {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 1px;
}

.pdetail-label {
  flex-shrink: 0;
  font-weight: 700;
  color: #1e293b;
  min-width: 78px;
}

.pdetail-val {
  flex: 1;
  color: #475569;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. CAMPUS STATS & METRICS HUD
   ═══════════════════════════════════════════════════════════════════════════ */

.campus-stats-hud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .campus-stats-hud { grid-template-columns: repeat(4, 1fr); }
}

.stat-card-hud {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.stat-icon {
  font-size: 26px;
  margin-bottom: 6px;
}

.stat-number {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--primary, #0d5c3a);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. SIMULATOR PREVIEW OVERRIDES FOR QUANTUM CAMPUS
   ═══════════════════════════════════════════════════════════════════════════ */

#modal-tmpl-preview-frame.vp-mobile .template-quantum_campus .school-hero-ctas,
#app-root.vp-mobile .template-quantum_campus .school-hero-ctas {
  flex-direction: column !important;
  width: 100% !important;
}

#modal-tmpl-preview-frame.vp-mobile .template-quantum_campus .school-hero-ctas .btn,
#app-root.vp-mobile .template-quantum_campus .school-hero-ctas .btn {
  width: 100% !important;
}

#modal-tmpl-preview-frame.vp-mobile .notice-board-wrapper,
#app-root.vp-mobile .notice-board-wrapper {
  grid-template-columns: 1fr !important;
}

#modal-tmpl-preview-frame.vp-mobile .programs-grid,
#app-root.vp-mobile .programs-grid {
  grid-template-columns: 1fr !important;
}

#modal-tmpl-preview-frame.vp-mobile .campus-stats-hud,
#app-root.vp-mobile .campus-stats-hud {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. ABOUT US & INSTITUTION OVERVIEW (MOBILE-FIRST RESPONSIVE)
   ═══════════════════════════════════════════════════════════════════════════ */

.about-us-section {
  position: relative;
  overflow: hidden;
}

.about-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 900px) {
  .about-section-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }
}

.about-text-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-meta-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.about-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(13, 92, 58, 0.08);
  color: var(--primary, #0d5c3a);
  border: 1px solid rgba(13, 92, 58, 0.2);
}

.about-desc-paragraph {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}

.about-desc-paragraph p {
  margin: 0 0 12px 0;
}
.about-desc-paragraph p:last-child {
  margin-bottom: 0;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 600px) {
  .about-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-pillar-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}

.about-pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.pillar-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 10px;
  background: #f8fafc;
}

.pillar-content h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #0f172a;
}

.pillar-content p {
  font-size: 12.5px;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
}

/* Visual Montage */
.about-images-montage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.about-primary-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border: 3px solid #ffffff;
}

.about-primary-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

@media (min-width: 600px) {
  .about-primary-img {
    height: 320px;
  }
}

.about-img-overlay-badge,
.about-secimg-overlay-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.about-secondary-card {
  position: relative;
  width: 65%;
  margin-top: -60px;
  margin-left: auto;
  margin-right: -10px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
  border: 3px solid #ffffff;
  z-index: 2;
}

.about-secondary-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. OPEN SOURCE EDUCATIONAL RESOURCES (OER HUB) - MOBILE-FIRST
   ═══════════════════════════════════════════════════════════════════════════ */

.open-resources-section {
  position: relative;
  background: #f8fafc;
}

.open-resources-search-wrap {
  width: 100%;
  padding: 0 12px;
}

.open-resources-banner-wrap {
  max-width: 1120px;
  margin: 0 auto 24px;
  border-radius: 16px;
  overflow: hidden;
  max-height: 220px;
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.open-resources-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.open-resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .open-resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .open-resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.open-resource-card {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  position: relative;
}

.open-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: var(--primary, #0d5c3a);
}

.resource-card-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.resource-logo-box {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.resource-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.resource-logo-fallback {
  font-size: 24px;
}

.resource-badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4px;
}

.resource-category-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary, #0d5c3a);
  background: rgba(13, 92, 58, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

.resource-access-tag {
  font-size: 10px;
  font-weight: 700;
  color: #d97706;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 6px;
}

.resource-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.resource-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 16px;
  flex-grow: 1;
}

.resource-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.resource-launch-btn {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  padding: 8px 14px;
  min-height: 40px;
}

.resource-free-indicator {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. TEMPLATE-SPECIFIC THEMING ADAPTATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Quantum Campus Theme */
.template-quantum_campus .about-us-section,
.template-quantum_campus .open-resources-section,
.template-quantum_campus .scrolling-notice-board-section {
  background: var(--qc-bg-dark) !important;
}

.template-quantum_campus .about-desc-paragraph {
  color: #cbd5e1 !important;
}

.template-quantum_campus .about-meta-chip {
  background: rgba(0, 242, 254, 0.1) !important;
  color: #00f2fe !important;
  border-color: rgba(0, 242, 254, 0.3) !important;
}

.template-quantum_campus .about-pillar-card,
.template-quantum_campus .open-resource-card,
.template-quantum_campus .program-card {
  background: var(--qc-surface) !important;
  border: 1px solid var(--qc-border) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
}

.template-quantum_campus .about-pillar-card:hover,
.template-quantum_campus .open-resource-card:hover,
.template-quantum_campus .program-card:hover {
  border-color: #00f2fe !important;
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.25) !important;
}

.template-quantum_campus .pillar-icon,
.template-quantum_campus .resource-logo-box {
  background: rgba(22, 33, 66, 0.9) !important;
  border-color: rgba(0, 242, 254, 0.25) !important;
}

.template-quantum_campus .pillar-content h4,
.template-quantum_campus .resource-card-name,
.template-quantum_campus .program-title {
  color: #ffffff !important;
}

.template-quantum_campus .pillar-content p,
.template-quantum_campus .resource-card-desc,
.template-quantum_campus .program-details-list,
.template-quantum_campus .pdetail-val {
  color: #94a3b8 !important;
}

.template-quantum_campus .pdetail-label {
  color: #e2e8f0 !important;
}

.template-quantum_campus .resource-category-tag,
.template-quantum_campus .program-level-tag {
  background: rgba(0, 242, 254, 0.15) !important;
  color: #00f2fe !important;
  border-color: rgba(0, 242, 254, 0.35) !important;
}

.template-quantum_campus .resource-access-tag {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #c084fc !important;
}

.template-quantum_campus .about-primary-card,
.template-quantum_campus .about-secondary-card {
  border-color: rgba(0, 242, 254, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6), 0 0 15px rgba(0, 242, 254, 0.2) !important;
}

.template-quantum_campus .notice-board-spotlight {
  background: linear-gradient(145deg, rgba(13, 20, 41, 0.95), rgba(7, 11, 25, 0.95)) !important;
  border-color: rgba(0, 242, 254, 0.35) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.12) !important;
}

.template-quantum_campus .notice-stream-container {
  background: rgba(10, 16, 35, 0.92) !important;
  border-color: rgba(0, 242, 254, 0.25) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
}

.template-quantum_campus .notice-stream-header {
  background: rgba(13, 20, 41, 0.98) !important;
  border-bottom-color: rgba(0, 242, 254, 0.2) !important;
}

.template-quantum_campus .notice-stream-card {
  background: rgba(18, 28, 56, 0.85) !important;
  border-color: rgba(0, 242, 254, 0.18) !important;
  border-left-color: #00f2fe !important;
}

.template-quantum_campus .notice-stream-card:hover {
  background: rgba(24, 38, 76, 0.95) !important;
  border-color: rgba(0, 242, 254, 0.5) !important;
  border-left-color: #4facfe !important;
}

.template-quantum_campus .notice-card-title {
  color: #ffffff !important;
}

.template-quantum_campus .notice-card-body {
  color: #cbd5e1 !important;
}

.template-quantum_campus .notice-card-meta {
  color: #94a3b8 !important;
}

.template-quantum_campus .stat-card-hud {
  background: rgba(13, 20, 41, 0.9) !important;
  border-color: rgba(0, 242, 254, 0.25) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
}

.template-quantum_campus .stat-number {
  background: linear-gradient(135deg, #00f2fe, #8b5cf6) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.4) !important;
}

.template-quantum_campus .stat-label {
  color: #94a3b8 !important;
}

/* Cyber Academy Theme */
.template-cyber_academy .about-us-section,
.template-cyber_academy .open-resources-section,
.template-cyber_academy .scrolling-notice-board-section {
  background: #0f172a !important;
}

.template-cyber_academy .about-desc-paragraph,
.template-cyber_academy .pillar-content p,
.template-cyber_academy .resource-card-desc,
.template-cyber_academy .program-details-list,
.template-cyber_academy .pdetail-val,
.template-cyber_academy .notice-card-body,
.template-cyber_academy .stat-label {
  color: #94a3b8 !important;
}

.template-cyber_academy .about-pillar-card,
.template-cyber_academy .open-resource-card,
.template-cyber_academy .program-card,
.template-cyber_academy .notice-stream-card,
.template-cyber_academy .stat-card-hud {
  background: #1e293b !important;
  border-color: #334155 !important;
}

.template-cyber_academy .notice-stream-container {
  background: #0f172a !important;
  border-color: #334155 !important;
}

.template-cyber_academy .notice-stream-header {
  background: #1e293b !important;
  border-bottom-color: #334155 !important;
}

.template-cyber_academy .notice-stream-card {
  border-left-color: #10b981 !important;
}

.template-cyber_academy .pillar-content h4,
.template-cyber_academy .resource-card-name,
.template-cyber_academy .program-title,
.template-cyber_academy .notice-card-title {
  color: #ffffff !important;
}

.template-cyber_academy .pdetail-label {
  color: #e2e8f0 !important;
}

.template-cyber_academy .program-level-tag {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.template-cyber_academy .stat-number {
  color: #10b981 !important;
  -webkit-text-fill-color: #10b981 !important;
}

.template-cyber_academy .about-primary-card,
.template-cyber_academy .about-secondary-card {
  border-color: #10b981 !important;
}

/* Nordic Edu Theme */
.template-nordic_edu .about-pillar-card,
.template-nordic_edu .open-resource-card,
.template-nordic_edu .program-card,
.template-nordic_edu .stat-card-hud,
.template-nordic_edu .notice-stream-card,
.template-nordic_edu .notice-stream-container {
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
}

.template-nordic_edu .notice-board-spotlight {
  border-radius: 20px !important;
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 25px rgba(21, 128, 61, 0.2) !important;
  color: #ffffff !important;
}

.template-nordic_edu .notice-board-spotlight .spotlight-title {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.template-nordic_edu .notice-board-spotlight .spotlight-desc {
  color: #f0fdf4 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.template-nordic_edu .notice-board-spotlight .spotlight-badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.template-nordic_edu .notice-board-spotlight .spotlight-footer {
  color: #dcfce7 !important;
}

.template-nordic_edu .notice-board-spotlight .btn-primary {
  background: #ffffff !important;
  color: #15803d !important;
  border: none !important;
  font-weight: 800 !important;
}

.template-nordic_edu .notice-board-spotlight .btn-primary:hover {
  background: #f0fdf4 !important;
  color: #166534 !important;
}

.template-nordic_edu .program-title,
.template-nordic_edu .resource-card-name,
.template-nordic_edu .notice-card-title,
.template-nordic_edu .pillar-content h4 {
  color: #0f172a !important;
}

.template-nordic_edu .program-level-tag {
  border-radius: 30px !important;
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
}

.template-nordic_edu .resource-launch-btn,
.template-nordic_edu .program-apply-btn {
  border-radius: 30px !important;
}

.template-nordic_edu .pdetail-label {
  color: #0f172a !important;
}

.template-nordic_edu .pdetail-val {
  color: #475569 !important;
}

/* Elite Theme */
.template-elite .about-meta-chip,
.template-elite .resource-category-tag,
.template-elite .program-level-tag {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}

.template-elite .about-pillar-card:hover,
.template-elite .open-resource-card:hover,
.template-elite .program-card:hover,
.template-elite .stat-card-hud:hover {
  border-color: #f59e0b !important;
}

.template-elite .program-title,
.template-elite .resource-card-name,
.template-elite .notice-card-title {
  color: #0f172a !important;
}

.template-elite .notice-board-spotlight {
  border-radius: 18px !important;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25) !important;
  color: #ffffff !important;
}

.template-elite .notice-board-spotlight .btn-primary {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  color: #ffffff !important;
  border: none !important;
}

/* Essential Theme */
.template-essential .about-pillar-card,
.template-essential .open-resource-card,
.template-essential .program-card,
.template-essential .stat-card-hud,
.template-essential .notice-stream-card {
  box-shadow: none !important;
  border: 1px solid #cbd5e1 !important;
}

.template-essential .notice-board-spotlight {
  border-radius: 8px !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border: 1.5px solid #334155 !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

.template-essential .notice-board-spotlight .btn-primary {
  background: #e11d48 !important;
  color: #ffffff !important;
  border: none !important;
}

.template-essential .program-title,
.template-essential .resource-card-name,
.template-essential .notice-card-title {
  color: #0f172a !important;
}

/* Simulator Overrides */
#modal-tmpl-preview-frame.vp-mobile .about-section-grid,
#app-root.vp-mobile .about-section-grid {
  grid-template-columns: 1fr !important;
}

#modal-tmpl-preview-frame.vp-mobile .about-pillars-grid,
#app-root.vp-mobile .about-pillars-grid {
  grid-template-columns: 1fr !important;
}

#modal-tmpl-preview-frame.vp-mobile .open-resources-grid,
#app-root.vp-mobile .open-resources-grid {
  grid-template-columns: 1fr !important;
}

#modal-tmpl-preview-frame.vp-mobile .about-secondary-card,
#app-root.vp-mobile .about-secondary-card {
  width: 80% !important;
  margin-right: 0 !important;
}

#modal-tmpl-preview-frame.vp-mobile .ticker-label-badge,
#app-root.vp-mobile .ticker-label-badge {
  padding: 0 8px !important;
  max-width: 90px !important;
  font-size: 10px !important;
}

#modal-tmpl-preview-frame.vp-mobile .ticker-label-text,
#app-root.vp-mobile .ticker-label-text {
  font-size: 10px !important;
}

#modal-tmpl-preview-frame.vp-mobile .ticker-news-item,
#app-root.vp-mobile .ticker-news-item {
  margin: 0 10px !important;
  font-size: 12px !important;
}

/* ==========================================================================
   GLOBAL TEMPLATE THEME ENGINE: LIGHT & DARK MODE WITH TOGGLE
   ========================================================================== */

.school-theme-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 99px !important;
  border: 1.5px solid var(--border, #cbd5e1) !important;
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
}

.school-theme-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-color: var(--primary, #0d5c3a) !important;
}

.school-theme-toggle-btn .theme-icon {
  font-size: 13px !important;
  line-height: 1 !important;
  display: inline-block !important;
}

.school-theme-toggle-btn .theme-text {
  white-space: nowrap !important;
  display: inline-block !important;
  line-height: 1 !important;
}

/* ─── DARK THEME OVERRIDES (.theme-dark applied on .school-site) ───────── */
/* ─── GLOBAL DARK THEME OVERRIDES (.theme-dark applied on .school-site) ───────── */
.school-site.theme-dark {
  background-color: #0b1120 !important;
  color: #f1f5f9 !important;
}

.school-site.theme-dark .school-header {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
}

.school-site.theme-dark .school-header-top {
  background: transparent !important;
}

.school-site.theme-dark .school-header .school-name {
  color: #ffffff !important;
  text-shadow: none !important;
}

.school-site.theme-dark .school-header .school-addr {
  color: #94a3b8 !important;
}

.school-site.theme-dark .school-header-actions {
  background: #0b1120 !important;
  border-top: 1px solid #1e293b !important;
}

@media (min-width: 900px) {
  .school-site.theme-dark .school-header-actions,
  #app-root.vp-desktop .school-site.theme-dark .school-header-actions,
  #modal-tmpl-preview-frame.vp-desktop .school-site.theme-dark .school-header-actions {
    background: transparent !important;
    border: none !important;
  }
}

.school-site.theme-dark .school-lang-select {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

.school-site.theme-dark .school-theme-toggle-btn {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

.school-site.theme-dark .school-theme-toggle-btn:hover {
  background: #334155 !important;
  border-color: #64748b !important;
}

.school-site.theme-dark .school-nav-wrap {
  background: #0f172a !important;
  border-top: 1px solid #1e293b !important;
}

.school-site.theme-dark .school-nav-wrap a {
  color: #cbd5e1 !important;
}

.school-site.theme-dark .school-nav-wrap a:hover {
  color: #38bdf8 !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.school-site.theme-dark .school-ham-line {
  background-color: #f8fafc !important;
}

.school-site.theme-dark .school-hamburger {
  border-color: #334155 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.school-site.theme-dark .section {
  background: #0b1120 !important;
}

.school-site.theme-dark .section[style*="background:#f8fafc"],
.school-site.theme-dark .section[style*="background: #f8fafc"],
.school-site.theme-dark .section[style*="background:#ffffff"],
.school-site.theme-dark .section[style*="background: #ffffff"],
.school-site.theme-dark .section[style*="background:#faf9f6"],
.school-site.theme-dark .section[style*="background: #faf9f6"],
.school-site.theme-dark .section[style*="background:#fdfbf7"],
.school-site.theme-dark .section[style*="background: #fdfbf7"],
.school-site.theme-dark .about-us-section,
.school-site.theme-dark .open-resources-section,
.school-site.theme-dark .scrolling-notice-board-section {
  background: #0f172a !important;
}

.school-site.theme-dark .section-header h2 {
  color: #ffffff !important;
}

.school-site.theme-dark .section-header p {
  color: #94a3b8 !important;
}

.school-site.theme-dark .card,
.school-site.theme-dark .admin-card,
.school-site.theme-dark .notice-item,
.school-site.theme-dark .gallery-card,
.school-site.theme-dark .faculty-card,
.school-site.theme-dark .facility-card,
.school-site.theme-dark .testimonial-card,
.school-site.theme-dark .about-pillar-card,
.school-site.theme-dark .open-resource-card,
.school-site.theme-dark .program-card,
.school-site.theme-dark .notice-stream-card,
.school-site.theme-dark .stat-card-hud,
.school-site.theme-dark .address-card,
.school-site.theme-dark .principal-grid {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.school-site.theme-dark .card h3,
.school-site.theme-dark .card h4,
.school-site.theme-dark .card strong,
.school-site.theme-dark .faculty-name,
.school-site.theme-dark .facility-title,
.school-site.theme-dark .program-title,
.school-site.theme-dark .resource-card-name,
.school-site.theme-dark .pillar-content h4,
.school-site.theme-dark .notice-card-title,
.school-site.theme-dark .stat-number,
.school-site.theme-dark .principal-name {
  color: #ffffff !important;
}

.school-site.theme-dark .card p,
.school-site.theme-dark .faculty-designation,
.school-site.theme-dark .facility-desc,
.school-site.theme-dark .pillar-content p,
.school-site.theme-dark .resource-card-desc,
.school-site.theme-dark .notice-card-body,
.school-site.theme-dark .about-desc-paragraph,
.school-site.theme-dark .about-desc-paragraph p,
.school-site.theme-dark .principal-quote,
.school-site.theme-dark .principal-title,
.school-site.theme-dark .stat-label,
.school-site.theme-dark .pdetail-val {
  color: #cbd5e1 !important;
}

.school-site.theme-dark .pdetail-label {
  color: #94a3b8 !important;
}

.school-site.theme-dark .about-meta-chip {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

.school-site.theme-dark .resource-category-tag,
.school-site.theme-dark .program-level-tag {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.school-site.theme-dark .resource-access-tag {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.school-site.theme-dark .resource-search-input,
.school-site.theme-dark .resource-cat-select,
.school-site.theme-dark .form-control {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}

.school-site.theme-dark .resource-search-input::placeholder,
.school-site.theme-dark .form-control::placeholder {
  color: #64748b !important;
}

.school-site.theme-dark .fee-table {
  background: #1e293b !important;
  border-color: #334155 !important;
}

.school-site.theme-dark .fee-table thead tr {
  background: #0f172a !important;
  color: #ffffff !important;
}

.school-site.theme-dark .fee-table tbody tr {
  background: #1e293b !important;
  border-bottom-color: #334155 !important;
  color: #e2e8f0 !important;
}

.school-site.theme-dark .fee-table tbody tr:nth-child(even) {
  background: #0f172a !important;
}

.school-site.theme-dark .notice-stream-container {
  background: #1e293b !important;
  border-color: #334155 !important;
}

.school-site.theme-dark .notice-stream-header {
  background: #0f172a !important;
  border-bottom-color: #334155 !important;
  color: #ffffff !important;
}

.school-site.theme-dark .school-footer {
  background: #020617 !important;
  border-top: 1px solid #1e293b !important;
  color: #94a3b8 !important;
}

.school-site.theme-dark .school-footer a {
  color: #cbd5e1 !important;
}

/* ─── GLOBAL LIGHT THEME OVERRIDES (.theme-light applied on .school-site) ──────── */
.school-site.theme-light {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

.school-site.theme-light .school-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.school-site.theme-light .school-header-top {
  background: transparent !important;
}

.school-site.theme-light .school-header .school-name {
  color: #0f172a !important;
}

.school-site.theme-light .school-header .school-addr {
  color: #64748b !important;
}

.school-site.theme-light .school-header-actions {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

@media (min-width: 900px) {
  .school-site.theme-light .school-header-actions,
  #app-root.vp-desktop .school-site.theme-light .school-header-actions,
  #modal-tmpl-preview-frame.vp-desktop .school-site.theme-light .school-header-actions {
    background: transparent !important;
    border: none !important;
  }
}

.school-site.theme-light .school-lang-select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.school-site.theme-light .school-theme-toggle-btn {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.school-site.theme-light .school-theme-toggle-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.school-site.theme-light .school-nav-wrap {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}

.school-site.theme-light .school-nav-wrap a {
  color: #334155 !important;
}

.school-site.theme-light .school-nav-wrap a:hover {
  color: var(--primary, #0d5c3a) !important;
  background: #f1f5f9 !important;
}

.school-site.theme-light .school-ham-line {
  background-color: #0f172a !important;
}

.school-site.theme-light .school-hamburger {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}

.school-site.theme-light .section-header h2 {
  color: #0f172a !important;
}

.school-site.theme-light .section-header p {
  color: #64748b !important;
}

/* ─── PER-TEMPLATE THEME REFINEMENTS ───────────────────────────────────── */

/* Quantum Campus — Dark */
.template-quantum_campus.theme-dark .school-header {
  border-bottom: 2px solid #00f2fe !important;
}
.template-quantum_campus.theme-dark .school-name {
  background: linear-gradient(135deg, #ffffff 30%, #00f2fe 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.4) !important;
}
.template-quantum_campus.theme-dark .school-nav-wrap a:hover {
  color: #00f2fe !important;
  background: rgba(0, 242, 254, 0.1) !important;
}

/* Quantum Campus — Light */
.template-quantum_campus.theme-light {
  --qc-bg-dark: #f8fafc !important;
  --qc-surface: #ffffff !important;
  --qc-surface-hover: #f1f5f9 !important;
  --qc-border: #cbd5e1 !important;
  --qc-text: #0f172a !important;
  --qc-text-muted: #64748b !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  background-image: none !important;
}
.template-quantum_campus.theme-light .school-header {
  background: #ffffff !important;
  border-bottom: 2px solid #00f2fe !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}
.template-quantum_campus.theme-light .school-name {
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
  text-shadow: none !important;
}
.template-quantum_campus.theme-light .school-nav-wrap a {
  color: #334155 !important;
}
.template-quantum_campus.theme-light .school-nav-wrap a:hover {
  color: #0284c7 !important;
  background: #f0f9ff !important;
}

/* Apex Cyber — Dark */
.template-cyber_academy.theme-dark .school-header {
  border-bottom: 2px solid #10b981 !important;
}
.template-cyber_academy.theme-dark .school-name {
  color: #38bdf8 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
}
.template-cyber_academy.theme-dark .school-nav-wrap a:hover {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1) !important;
}

/* Apex Cyber — Light */
.template-cyber_academy.theme-light {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}
.template-cyber_academy.theme-light .school-header {
  background: #ffffff !important;
  border-bottom: 2px solid #10b981 !important;
}
.template-cyber_academy.theme-light .school-name {
  color: #0f172a !important;
  text-shadow: none !important;
}
.template-cyber_academy.theme-light .school-nav-wrap a {
  color: #334155 !important;
}
.template-cyber_academy.theme-light .school-nav-wrap a:hover {
  color: #059669 !important;
  background: #ecfdf5 !important;
}

/* Elite Prestige — Dark */
.template-elite.theme-dark .school-header {
  background: #0a192f !important;
  border-bottom: 3px solid #d97706 !important;
}
.template-elite.theme-dark .school-name {
  color: #fbbf24 !important;
  font-family: Georgia, serif !important;
}
.template-elite.theme-dark .school-nav-wrap a:hover {
  color: #fbbf24 !important;
  background: #1e3a8a !important;
}

/* Elite Prestige — Light */
.template-elite.theme-light {
  background-color: #fdfbf7 !important;
  color: #1e293b !important;
}
.template-elite.theme-light .school-header {
  background: #ffffff !important;
  border-bottom: 3px solid #d97706 !important;
}
.template-elite.theme-light .school-name {
  color: #92400e !important;
  font-family: Georgia, serif !important;
}
.template-elite.theme-light .school-nav-wrap a {
  color: #334155 !important;
}
.template-elite.theme-light .school-nav-wrap a:hover {
  color: #b45309 !important;
  background: #fef3c7 !important;
}

/* Nordic Edu — Light */
.template-nordic_edu.theme-light .school-header {
  background: #ffffff !important;
  border-bottom: 2px solid #86efac !important;
}
.template-nordic_edu.theme-light .school-name {
  color: #15803d !important;
}
.template-nordic_edu.theme-light .school-nav-wrap a:hover {
  color: #15803d !important;
  background: #f0fdf4 !important;
}

/* Essential Speed — Light */
.template-essential.theme-light .school-header {
  background: #ffffff !important;
  border-bottom: 3px solid #e11d48 !important;
}
.template-essential.theme-light .school-name {
  color: #0f172a !important;
}
.template-essential.theme-light .school-nav-wrap a:hover {
  color: #e11d48 !important;
  background: #fff1f2 !important;
}

/* Modern Glass — Light */
.template-modern.theme-light .school-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.template-modern.theme-light .school-name {
  color: #0f172a !important;
}
.template-modern.theme-light .school-nav-wrap a:hover {
  color: #0d5c3a !important;
  background: #f0fdf4 !important;
}

/* ==========================================================================
   CONEDU TEMPLATES 1 & 2: MODERN ACADEMIC & PREMIUM CAMPUS STYLESHEET
   Mobile-first, touch-friendly, zero-horizontal-overflow, WCAG compliant
   ========================================================================== */

/* ─── 1. TOP ANNOUNCEMENT RIBBON ────────────────────────────────────────── */
.school-announcement-bar {
  background: linear-gradient(90deg, #09472c, #0d5c3a 65%, #b45309);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 10;
}
.school-announcement-bar .announcement-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.announcement-badge {
  background: rgba(254, 240, 138, 0.25);
  color: #fef08a;
  border: 1px solid rgba(254, 240, 138, 0.4);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  white-space: nowrap;
}
.announcement-text {
  color: #ffffff;
  word-break: break-word;
}
.announcement-link {
  color: #fef08a;
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.announcement-link:hover {
  opacity: 0.85;
}

/* ─── 2. SCHOOL HEADER (3-ROW MOBILE FIRST) ────────────────────────────── */
.school-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  width: 100%;
}
.school-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 10px;
  max-width: 1240px;
  margin: 0 auto;
}
.school-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.school-logo {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}
.school-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(15px, 2.8vw, 20px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  word-break: normal;
  overflow: visible;
}
.school-addr {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
  word-break: normal;
  overflow: visible;
}
.school-hamburger {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.school-hamburger:hover {
  background: #f1f5f9;
  border-color: var(--primary, #0d5c3a);
}
.school-ham-line {
  width: 20px;
  height: 2px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.school-hamburger.open .school-ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.school-hamburger.open .school-ham-line:nth-child(2) {
  opacity: 0;
}
.school-hamburger.open .school-ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.school-header-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 6px 14px !important;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  flex-wrap: nowrap !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.school-lang-select {
  padding: 4px 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 99px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  cursor: pointer;
  outline: none;
  min-height: 34px !important;
  height: 34px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.header-login-btn {
  font-size: 12px !important;
  padding: 6px 12px !important;
  min-height: 34px !important;
  height: 34px !important;
  border-radius: 99px !important;
  white-space: nowrap !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.school-nav-wrap {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid var(--border, #e2e8f0);
  padding: 10px 14px 16px;
  gap: 4px;
}
.school-nav-wrap.open {
  display: flex !important;
}
.school-nav-wrap a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.school-nav-wrap a:hover {
  background: #f1f5f9;
  color: var(--primary, #0d5c3a);
}

@media (min-width: 900px) {
  #app-root:not(.vp-mobile):not(.vp-tablet) .school-header,
  #modal-tmpl-preview-frame.vp-desktop .school-header,
  body:not(.vp-mobile):not(.vp-tablet) #modal-tmpl-preview-frame:not(.vp-mobile):not(.vp-tablet) .school-header {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  #app-root:not(.vp-mobile):not(.vp-tablet) .school-header-top,
  #modal-tmpl-preview-frame.vp-desktop .school-header-top,
  body:not(.vp-mobile):not(.vp-tablet) #modal-tmpl-preview-frame:not(.vp-mobile):not(.vp-tablet) .school-header-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 24px !important;
    width: 100% !important;
    gap: 16px !important;
    position: relative !important;
    background: transparent !important;
  }
  #app-root:not(.vp-mobile):not(.vp-tablet) .school-hamburger,
  #modal-tmpl-preview-frame.vp-desktop .school-hamburger,
  body:not(.vp-mobile):not(.vp-tablet) #modal-tmpl-preview-frame:not(.vp-mobile):not(.vp-tablet) .school-hamburger {
    display: none !important;
  }
  #app-root:not(.vp-mobile):not(.vp-tablet) .school-header-actions,
  #modal-tmpl-preview-frame.vp-desktop .school-header-actions,
  body:not(.vp-mobile):not(.vp-tablet) #modal-tmpl-preview-frame:not(.vp-mobile):not(.vp-tablet) .school-header-actions {
    position: static !important;
    background: transparent !important;
    border-top: none !important;
    padding: 0 !important;
    width: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
    gap: 8px !important;
  }
  #app-root:not(.vp-mobile):not(.vp-tablet) .school-nav-wrap,
  #modal-tmpl-preview-frame.vp-desktop .school-nav-wrap,
  body:not(.vp-mobile):not(.vp-tablet) #modal-tmpl-preview-frame:not(.vp-mobile):not(.vp-tablet) .school-nav-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 20px !important;
    gap: 6px !important;
    max-width: 1240px;
    margin: 0 auto;
    overflow-x: auto;
  }
  #app-root:not(.vp-mobile):not(.vp-tablet) .school-nav-wrap a,
  #modal-tmpl-preview-frame.vp-desktop .school-nav-wrap a,
  body:not(.vp-mobile):not(.vp-tablet) #modal-tmpl-preview-frame:not(.vp-mobile):not(.vp-tablet) .school-nav-wrap a {
    padding: 12px 14px;
    font-size: 13.5px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
  }
  .school-nav-wrap a:hover {
    background: transparent;
    border-bottom-color: var(--primary, #0d5c3a);
  }
}

/* ─── 3. TOUCH HERO CAROUSEL / SLIDER ENGINE ──────────────────────────── */
.school-hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
}
.hero-carousel-wrap {
  position: relative;
  width: 100%;
  min-height: 480px;
  touch-action: pan-y;
  user-select: none;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-carousel-wrap {
    min-height: 540px;
  }
}
@media (min-width: 1024px) {
  .hero-carousel-wrap {
    min-height: 580px;
  }
}
.hero-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.02);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-picture,
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.85) 85%, rgba(15, 23, 42, 0.95) 100%);
  z-index: 2;
}

.hero-academic-mode .hero-gradient-overlay {
  background: linear-gradient(135deg, rgba(9, 71, 44, 0.88) 0%, rgba(15, 23, 42, 0.85) 60%, rgba(180, 83, 9, 0.4) 100%);
}

.hero-cinematic-mode .hero-gradient-overlay {
  background: linear-gradient(180deg, rgba(10, 16, 35, 0.3) 0%, rgba(10, 16, 35, 0.82) 65%, #0b1120 100%);
}

.hero-content-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 18px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content-card {
  max-width: 720px;
  color: #ffffff;
}

.hero-badge-pill {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
  display: inline-block;
  text-transform: uppercase;
}

.hero-main-title,
.school-hero-section h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 6.5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff !important;
  margin-bottom: 14px;
  word-break: break-word;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7) !important;
}

.hero-main-subtitle,
.school-hero-section p {
  font-size: clamp(14px, 3.8vw, 18px);
  line-height: 1.6;
  color: #e2e8f0 !important;
  margin-bottom: 24px;
  max-width: 640px;
  word-break: break-word;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6) !important;
}

.hero-ctas-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-cta-btn {
  flex: 0 1 auto;
  min-width: 140px;
  max-width: 280px;
}
@media (max-width: 768px) {
  .hero-carousel-wrap {
    min-height: 420px;
  }
  .hero-content-container {
    padding: 24px 16px 42px !important;
  }
  .hero-badge-pill {
    font-size: 11px !important;
    padding: 4px 12px !important;
    margin-bottom: 10px !important;
  }
  .hero-main-title,
  .school-hero-section h1 {
    font-size: clamp(20px, 6vw, 30px) !important;
    line-height: 1.22 !important;
    margin-bottom: 8px !important;
  }
  .hero-main-subtitle,
  .school-hero-section p {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 16px !important;
    max-width: 100% !important;
  }
  .hero-ctas-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }
  .hero-cta-btn {
    flex: 1 1 130px !important;
    min-width: 120px !important;
    max-width: 100% !important;
    min-height: 40px !important;
    height: auto !important;
    padding: 9px 14px !important;
    font-size: 13.5px !important;
    border-radius: 8px !important;
    text-align: center !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  .hero-controls-hud {
    bottom: 12px !important;
    padding: 4px 12px !important;
    gap: 8px !important;
  }
  .hero-arrow-btn {
    display: none !important;
  }
}

/* Arrows */
.hero-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}
.hero-arrow-btn:hover {
  background: var(--primary, #0d5c3a);
  border-color: var(--primary, #0d5c3a);
  transform: translateY(-50%) scale(1.1);
}
.hero-arrow-prev { left: 14px; }
.hero-arrow-next { right: 14px; }

@media (max-width: 640px) {
  .hero-arrow-btn {
    display: none; /* Rely on touch swipe gestures on mobile */
  }
}

/* Dots and Counter HUD */
.hero-controls-hud {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.hero-dot.active {
  width: 22px;
  background: var(--secondary, #d97706);
}
.hero-slide-counter {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  font-family: monospace;
}

/* Progress bar */
.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 6;
}
.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--secondary, #d97706);
  transition: width 0.1s linear;
}

/* ─── 4. QUICK ACTIONS COMPONENT ────────────────────────────────────────── */
.quick-actions-section {
  padding: 16px 14px 28px !important;
  background: #ffffff;
}
.quick-actions-container {
  max-width: 1200px;
  margin: -32px auto 0;
  position: relative;
  z-index: 8;
}
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 600px) {
  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}
@media (min-width: 1024px) {
  .quick-actions-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}
.quick-action-card {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 60px;
  position: relative;
  overflow: hidden;
}
.quick-action-card:hover {
  transform: translateY(-3px);
  border-color: var(--qa-accent, var(--primary));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.quick-action-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--qa-accent, var(--primary));
}
.qa-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(13, 92, 58, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.qa-text-wrap {
  flex: 1;
  min-width: 0;
}
.qa-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qa-subtitle {
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qa-arrow {
  font-size: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}

/* ─── 5. PRINCIPAL'S DESK SECTION ───────────────────────────────────────── */
.principal-section {
  position: relative;
  padding: 48px 16px;
  width: 100%;
  box-sizing: border-box;
}
.principal-card-box {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.principal-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  align-items: stretch;
}
@media (min-width: 680px) {
  .principal-grid {
    grid-template-columns: 280px 1fr;
  }
}
@media (min-width: 900px) {
  .principal-grid {
    grid-template-columns: 320px 1fr;
  }
}
.principal-image-wrap {
  position: relative;
  background: #0f172a;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.principal-photo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.principal-photo-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.principal-content-wrap {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  box-sizing: border-box;
}
@media (min-width: 900px) {
  .principal-content-wrap {
    padding: 36px 36px;
    gap: 14px;
  }
}
.principal-header-tag {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 2px;
}
.principal-fullname {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}
.principal-credentials {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #0d5c3a);
  margin-top: -6px;
}
.principal-quote-text {
  font-size: clamp(14px, 1.6vw, 15.5px);
  line-height: 1.7;
  color: #334155;
  font-style: italic;
  margin: 6px 0;
  border-left: 3px solid var(--primary, #0d5c3a);
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0 8px 8px 0;
}
.principal-signature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #e2e8f0);
}

/* Dark mode theme overrides */
.school-site.theme-dark .principal-card-box {
  background: #0f172e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
.school-site.theme-dark .principal-fullname {
  color: #f8fafc !important;
}
.school-site.theme-dark .principal-credentials {
  color: var(--accent, #38bdf8) !important;
}
.school-site.theme-dark .principal-quote-text {
  color: #cbd5e1 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-left-color: var(--primary, #0d5c3a) !important;
}
.school-site.theme-dark .principal-signature-row {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}
.school-site.theme-dark .principal-signature-row div {
  color: #e2e8f0 !important;
}

/* ─── 6. WHY CHOOSE US (4-CARD GRID) ────────────────────────────────────── */
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .why-choose-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.why-card {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary, #0d5c3a);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.why-icon-box {
  font-size: 32px;
  margin-bottom: 12px;
}
.why-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.why-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* ─── 7. TOP ACHIEVERS & SCHOLARS ───────────────────────────────────────── */
.achievers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .achievers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
@media (min-width: 1024px) {
  .achievers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.achiever-card {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all 0.25s ease;
}
.achiever-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.15);
}
.achiever-rank-ribbon {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.achiever-medal-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
}
.achiever-avatar-box {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2.5px solid #f59e0b;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.achiever-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.achiever-initials {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary, #0d5c3a);
}
.achiever-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}
.achiever-score {
  font-size: 15px;
  font-weight: 900;
  color: #d97706;
}
.achiever-stream {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}
.achiever-year {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary, #0d5c3a);
  background: rgba(13, 92, 58, 0.08);
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-block;
  margin-top: 6px;
}

/* ─── 8. UPCOMING EVENTS & CALENDAR ─────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.event-card {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}
.event-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary, #0d5c3a);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.event-date-col {
  width: 60px;
  height: 64px;
  background: var(--primary, #0d5c3a);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-day {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.event-month {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.event-info-col {
  flex: 1;
  min-width: 0;
}
.event-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.event-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 6px;
}
.event-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

/* ─── 9. FACILITIES & INFRASTRUCTURE ────────────────────────────────────── */
.facilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .facilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.facility-card {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}
.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--primary, #0d5c3a);
}
.facility-img-box {
  height: 180px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}
.facility-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.facility-card:hover .facility-img {
  transform: scale(1.05);
}
.facility-body {
  padding: 16px 18px;
}
.facility-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.facility-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* ─── 10. 3-STEP ADMISSION CTA JOURNEY ─────────────────────────────────── */
.admission-cta-section {
  position: relative;
}
.admission-cta-box {
  background: linear-gradient(135deg, #09472c, #0d5c3a 70%, #062f1d);
  border-radius: 20px;
  padding: 36px 20px;
  color: #ffffff;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  text-align: center;
}
@media (min-width: 768px) {
  .admission-cta-box {
    padding: 48px 36px;
  }
}
.admission-journey-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0;
  text-align: left;
}
@media (min-width: 768px) {
  .admission-journey-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.journey-step-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 20px 16px;
  backdrop-filter: blur(8px);
}
.step-num {
  font-size: 24px;
  font-weight: 900;
  color: #fef08a;
  margin-bottom: 6px;
}
.step-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.step-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.45;
}
.admission-action-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── 11. INTERACTIVE CONTACT & WHATSAPP INQUIRY ───────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
  }
}
.contact-info-card,
.inquiry-form-card {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}
.inquiry-form-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border, #cbd5e1);
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  min-height: 44px;
  transition: border-color 0.2s;
}
.form-control:focus {
  border-color: var(--primary, #0d5c3a);
  background: #ffffff;
}
textarea.form-control {
  min-height: 88px;
  resize: vertical;
}

/* ─── 12. DOWNLOADS CENTER ─────────────────────────────────────────────── */
.downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .downloads-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.download-card {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}
.download-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #0d5c3a);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.download-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.download-info {
  flex: 1;
  min-width: 0;
}
.download-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.download-meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* ─── 13. SCHOOL FOOTER ────────────────────────────────────────────────── */
.school-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 16px 24px;
  border-top: 1px solid #1e293b;
}
.school-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto 36px;
}
@media (min-width: 768px) {
  .school-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
  }
}
.footer-brand-col h4,
.footer-links-col h4 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}
.footer-brand-col p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 14px;
}
.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links-col a {
  font-size: 13px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links-col a:hover {
  color: #38bdf8;
}
.footer-bottom-bar {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}
.footer-bottom-bar a {
  color: #94a3b8;
}
.footer-bottom-bar a:hover {
  color: #ffffff;
}

/* ─── 14. TEMPLATE 1: MODERN ACADEMIC THEME (.template-modern_academic) ── */
.template-modern_academic,
.template-modern {
  --tmpl-bg-page: #f8fafc;
  --tmpl-card-bg: #ffffff;
  --tmpl-border: #e2e8f0;
}
.template-modern_academic.theme-light {
  background-color: #f8fafc !important;
}
.template-modern_academic .quick-action-card,
.template-modern_academic .why-card,
.template-modern_academic .program-card,
.template-modern_academic .facility-card,
.template-modern_academic .achiever-card,
.template-modern_academic .event-card,
.template-modern_academic .principal-card-box {
  border-radius: 14px;
  border-color: #e2e8f0;
}
.template-modern_academic .hero-main-title {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

/* ─── 15. TEMPLATE 2: PREMIUM CAMPUS THEME (.template-premium_campus) ─── */
.template-premium_campus,
.template-quantum_campus {
  --qc-bg-dark: #070b19;
  --qc-surface: #0e172e;
  --qc-surface-hover: #162446;
  --qc-border: rgba(0, 242, 254, 0.22);
}
.template-premium_campus.theme-light {
  background-color: #f8fafc !important;
}
.template-premium_campus.theme-light .quick-action-card,
.template-premium_campus.theme-light .why-card,
.template-premium_campus.theme-light .program-card,
.template-premium_campus.theme-light .facility-card,
.template-premium_campus.theme-light .achiever-card,
.template-premium_campus.theme-light .event-card,
.template-premium_campus.theme-light .principal-card-box {
  background: #ffffff;
  border: 1.5px solid #e0f2fe;
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.06);
}
.template-premium_campus.theme-dark {
  background-color: #070b19 !important;
}
.template-premium_campus.theme-dark .quick-action-card,
.template-premium_campus.theme-dark .why-card,
.template-premium_campus.theme-dark .facility-card,
.template-premium_campus.theme-dark .achiever-card,
.template-premium_campus.theme-dark .event-card,
.template-premium_campus.theme-dark .principal-card-box,
.template-premium_campus.theme-dark .contact-info-card,
.template-premium_campus.theme-dark .inquiry-form-card,
.template-premium_campus.theme-dark .download-card {
  background: #0e172e !important;
  border-color: rgba(0, 242, 254, 0.2) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}
.template-premium_campus.theme-dark .quick-action-card:hover,
.template-premium_campus.theme-dark .why-card:hover,
.template-premium_campus.theme-dark .facility-card:hover,
.template-premium_campus.theme-dark .achiever-card:hover,
.template-premium_campus.theme-dark .event-card:hover {
  border-color: #00f2fe !important;
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.2) !important;
}
.template-premium_campus.theme-dark .qa-title,
.template-premium_campus.theme-dark .why-title,
.template-premium_campus.theme-dark .facility-title,
.template-premium_campus.theme-dark .achiever-name,
.template-premium_campus.theme-dark .event-title,
.template-premium_campus.theme-dark .principal-name,
.template-premium_campus.theme-dark .inquiry-form-card h3,
.template-premium_campus.theme-dark .download-name {
  color: #ffffff !important;
}
.template-premium_campus.theme-dark .qa-subtitle,
.template-premium_campus.theme-dark .why-desc,
.template-premium_campus.theme-dark .facility-desc,
.template-premium_campus.theme-dark .event-desc,
.template-premium_campus.theme-dark .principal-quote-text,
.template-premium_campus.theme-dark .download-meta {
  color: #94a3b8 !important;
}

/* ─── 16. MOBILE-FIRST RESPONSIVENESS & BREAKPOINTS (360px - 1440px) ───── */

/* Universal Mobile Viewport Simulator & Media Rules */
.vp-mobile .why-choose-grid,
.school-site.vp-mobile .why-choose-grid,
#app-root.vp-mobile .why-choose-grid {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.vp-mobile .achievers-grid,
.school-site.vp-mobile .achievers-grid,
#app-root.vp-mobile .achievers-grid {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.vp-mobile .open-resources-grid,
.vp-mobile .oer-grid,
.vp-mobile .open-resources-section .grid,
.school-site.vp-mobile .open-resources-grid,
.school-site.vp-mobile .oer-grid,
#app-root.vp-mobile .open-resources-grid {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.vp-mobile .programs-grid,
.vp-mobile .academic-programs-grid,
.school-site.vp-mobile .programs-grid,
#app-root.vp-mobile .programs-grid {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.vp-mobile .facilities-grid,
.school-site.vp-mobile .facilities-grid,
#app-root.vp-mobile .facilities-grid {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.vp-mobile .testimonials-grid,
.school-site.vp-mobile .testimonials-grid,
#app-root.vp-mobile .testimonials-grid {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.vp-mobile .events-grid,
.school-site.vp-mobile .events-grid,
#app-root.vp-mobile .events-grid {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.vp-mobile .downloads-grid,
.school-site.vp-mobile .downloads-grid,
#app-root.vp-mobile .downloads-grid {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.vp-mobile .contact-grid,
.school-site.vp-mobile .contact-grid,
#app-root.vp-mobile .contact-grid {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

.vp-mobile .school-footer-grid,
.school-site.vp-mobile .school-footer-grid,
#app-root.vp-mobile .school-footer-grid {
  grid-template-columns: 1fr !important;
  gap: 20px !important;
}

.vp-mobile .admission-journey-steps,
.school-site.vp-mobile .admission-journey-steps,
#app-root.vp-mobile .admission-journey-steps {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.vp-mobile .admission-steps-row,
.school-site.vp-mobile .admission-steps-row,
#app-root.vp-mobile .admission-steps-row {
  flex-direction: column !important;
  gap: 10px !important;
}

.vp-mobile .admission-step,
.school-site.vp-mobile .admission-step {
  width: 100% !important;
}

.vp-mobile .admission-cta-btns,
.school-site.vp-mobile .admission-cta-btns {
  flex-direction: column !important;
  width: 100% !important;
}

.vp-mobile .admission-cta-btns .btn,
.school-site.vp-mobile .admission-cta-btns .btn {
  width: 100% !important;
  justify-content: center !important;
}

.vp-mobile .campus-stats-hud,
.school-site.vp-mobile .campus-stats-hud {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.vp-mobile .quick-actions-grid,
.school-site.vp-mobile .quick-actions-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.vp-mobile .why-card,
.vp-mobile .achiever-card,
.vp-mobile .oer-card,
.vp-mobile .facility-card,
.vp-mobile .testimonial-card,
.vp-mobile .download-card {
  width: 100% !important;
  box-sizing: border-box !important;
}

.vp-mobile .why-title,
.vp-mobile .achiever-name,
.vp-mobile .facility-title,
.vp-mobile .event-title {
  word-break: normal !important;
  white-space: normal !important;
}

.vp-mobile .badge {
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.25 !important;
}

/* Small phones (360px - 389px) */
@media (max-width: 389px) {
  .school-announcement-bar { font-size: 11px; padding: 5px 8px; }
  .school-header-top { padding: 8px 10px; }
  .school-name { font-size: 13.5px; }
  .hero-content-container { padding: 20px 12px 36px !important; }
  .hero-main-title { font-size: 22px !important; }
  .hero-main-subtitle { font-size: 13px !important; }
  .quick-actions-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .why-choose-grid { grid-template-columns: 1fr; }
  .achievers-grid { grid-template-columns: 1fr; }
  .campus-stats-hud { grid-template-columns: 1fr; }
}

/* Standard Mobile (390px - 599px) */
@media (min-width: 390px) and (max-width: 599px) {
  .hero-content-container { padding: 24px 16px 40px !important; }
  .quick-actions-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .why-choose-grid { grid-template-columns: 1fr; }
  .achievers-grid { grid-template-columns: 1fr; }
}

/* Tablets (600px - 899px) */
@media (min-width: 600px) and (max-width: 899px) {
  .section { padding: 52px 20px; }
  .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
  .achievers-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktops & Large Displays (900px+) */
@media (min-width: 900px) {
  .section { padding: 64px 24px; }
}

/* Strict No Horizontal Overflow Guarantee */
.school-site,
.school-header,
.school-hero-section,
.hero-carousel-wrap,
.section,
.school-footer {
  max-width: 100vw;
  box-sizing: border-box;
}



