/* ============================================================
   PREMIUM UPGRADE — โรงเรียนเทศบาล 2 ชำนาญอนุเคราะห์
   Design System · International School Level
   ============================================================ */

/* ── 1. CSS Custom Properties (Design Tokens) ─────────────── */
:root {
  /* Primary Palette */
  --p:          #003380;
  --p-dark:     #001f52;
  --p-deeper:   #00153a;
  --p-light:    #0052cc;
  --p-50:       #e6eeff;
  --p-100:      #b3caff;

  /* Gold Accent */
  --gold:       #c8960c;
  --gold-light: #f5c842;
  --gold-pale:  #fdf3db;
  --gold-dark:  #9b7209;

  /* Surfaces & Backgrounds */
  --bg:         #f7f9fc;
  --bg-alt:     #eef2f9;
  --surface:    #ffffff;
  --surface-2:  #f0f4fc;

  /* Text */
  --text:       #0f172a;
  --text-2:     #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Border */
  --border:     #e2e8f0;
  --border-2:   #cbd5e1;

  /* Semantic */
  --success:    #059669;
  --warning:    #d97706;
  --error:      #dc2626;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.13), 0 4px 16px rgba(0,0,0,.07);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.16), 0 8px 24px rgba(0,0,0,.08);
  --shadow-gold: 0 4px 24px rgba(200,150,12,.35);
  --shadow-navy: 0 4px 24px rgba(0,51,128,.28);
  --shadow-inset: inset 0 2px 8px rgba(0,0,0,.08);

  /* Border Radius */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;
  --r-full: 9999px;

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --t:          0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:     0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:     0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography Scale */
  --font-xs:   0.75rem;
  --font-sm:   0.875rem;
  --font-base: 1rem;
  --font-lg:   1.125rem;
  --font-xl:   1.25rem;
  --font-2xl:  1.5rem;
  --font-3xl:  1.875rem;
  --font-4xl:  2.25rem;
  --font-5xl:  3rem;
}

/* ── 2. Global Typography ─────────────────────────────────── */
body {
  font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── 3. TOP HEADER — Premium Redesign ────────────────────── */
.top-header {
  background: linear-gradient(135deg, var(--p-deeper) 0%, var(--p-dark) 60%, var(--p) 100%) !important;
  padding: 12px 0 !important;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(200,150,12,.35);
}

/* Subtle animated background texture */
.top-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(0,82,204,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 100% 50%, rgba(200,150,12,.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Gold accent line at bottom of header */
.top-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 100%);
}

/* Logo — Premium Shield Treatment */
.school-logo {
  /* Shield aspect ratio ≈ 540:500 — give width more room */
  width: auto !important;
  max-width: 110px !important;
  max-height: 96px !important;
  height: auto !important;
  object-fit: contain;

  /* PNG with black bg: screen blending removes black on dark header */
  mix-blend-mode: screen;

  /* Subtle gold glow */
  filter: drop-shadow(0 2px 14px rgba(200,150,12,.5));
  transition: transform var(--t), filter var(--t) !important;
  animation: logoFloat 5s ease-in-out infinite !important;
}

/* SVG version (transparent bg): normal blend */
.school-logo.logo-svg-mode {
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 16px rgba(200,150,12,.55)) !important;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 2px 14px rgba(200,150,12,.5));
  }
  50% {
    transform: translateY(-4px) scale(1.04);
    filter: drop-shadow(0 8px 24px rgba(200,150,12,.7));
  }
}

/* When PNG loads successfully — keep screen mode */
#school-logo-img:not(.logo-svg-mode) {
  mix-blend-mode: screen;
}

.logo-container {
  gap: 18px !important;
  align-items: center;
}

/* School name — premium gradient shimmer */
.school-name {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg,
    #ffffff 0%, #e8f4ff 20%, var(--gold-light) 40%,
    #ffffff 60%, #e8f4ff 80%, var(--gold-light) 100%
  ) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shimmer 5s linear infinite !important;
}

.school-slogan {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  color: rgba(200,210,255,.8) !important;
  background: none !important;
  -webkit-text-fill-color: rgba(200,210,255,.8) !important;
  animation: none !important;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Contact info in header */
.contact-info { gap: 20px !important; }
.contact-item {
  color: rgba(255,255,255,.82) !important;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color var(--t-fast);
}
.contact-item i { color: var(--gold-light); }
.contact-item:hover { color: #ffffff !important; }

/* ── 4. NAVIGATION — Premium Gold Accent ─────────────────── */
.navbar {
  background: linear-gradient(180deg, #004099 0%, var(--p) 100%) !important;
  padding: 0 !important;
  box-shadow: 0 2px 16px rgba(0,31,82,.3);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background var(--t), box-shadow var(--t) !important;
}

.navbar.scrolled {
  background: rgba(0,31,82,.97) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0,0,0,.25) !important;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 18px 16px !important;
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--t-fast), background var(--t-fast) !important;
}

/* Gold underline on hover */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,.08) !important;
  transform: none !important;
}

.navbar-nav .nav-link.active {
  color: var(--gold-light) !important;
}

/* Dropdown menu — premium card */
.dropdown-menu {
  border: none !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 8px !important;
  background: #ffffff !important;
  min-width: 220px;
  animation: dropdownIn 0.2s var(--ease-out) both !important;
  margin-top: 0 !important;
  border-top: 3px solid var(--gold) !important;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  border-radius: var(--r-sm) !important;
  padding: 10px 16px !important;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2) !important;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-item i {
  color: var(--p-light);
  font-size: 0.82rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-item:hover {
  background: var(--p-50) !important;
  color: var(--p) !important;
  transform: translateX(4px) !important;
}

.dropdown-item:hover i { color: var(--gold); }

/* Divider in dropdowns */
.dropdown-divider {
  border-color: var(--border) !important;
  margin: 4px 8px !important;
}

/* Login button */
.navbar .btn-outline-light {
  border-color: rgba(255,255,255,.4) !important;
  color: rgba(255,255,255,.88) !important;
  border-radius: var(--r-full) !important;
  padding: 7px 20px !important;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--t-fast) !important;
}
.navbar .btn-outline-light:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--p-dark) !important;
  box-shadow: var(--shadow-gold) !important;
}

/* ── 5. BACK-TO-TOP — Gold Premium ────────────────────────── */
.back-to-top {
  width: 48px !important;
  height: 48px !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: var(--shadow-gold) !important;
  transition: all var(--t) !important;
  display: none;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1) !important;
  box-shadow: 0 8px 32px rgba(200,150,12,.5) !important;
}

/* ── 6. SECTION HEADERS — Premium Style ───────────────────── */
.section-header-premium {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  border: 1px solid rgba(200,150,12,.25);
  padding: 6px 18px;
  border-radius: var(--r-full);
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title-premium {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title-premium strong,
.section-title-premium .accent {
  color: var(--p);
}

.section-subtitle-premium {
  font-size: var(--font-base);
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.8;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

.section-divider-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── 7. BUTTONS — Premium Style ───────────────────────────── */
.btn-premium-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--p-light) 0%, var(--p) 60%, var(--p-dark) 100%);
  color: #fff;
  padding: 13px 32px;
  border-radius: var(--r-full);
  font-size: var(--font-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-navy);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}

.btn-premium-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn-premium-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,51,128,.4);
  color: #fff;
  text-decoration: none;
}

.btn-premium-primary:hover::before { opacity: 1; }

.btn-premium-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%);
  color: var(--p-dark);
  padding: 13px 32px;
  border-radius: var(--r-full);
  font-size: var(--font-sm);
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all var(--t);
}

.btn-premium-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(200,150,12,.5);
  color: var(--p-dark);
  text-decoration: none;
}

.btn-outline-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--p);
  padding: 12px 30px;
  border-radius: var(--r-full);
  font-size: var(--font-sm);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--p);
  cursor: pointer;
  transition: all var(--t);
}

.btn-outline-premium:hover {
  background: var(--p);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-navy);
  text-decoration: none;
}

/* ── 8. CARDS — Premium Elevation ─────────────────────────── */
.card-premium {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
  overflow: hidden;
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-premium-featured {
  background: linear-gradient(135deg, var(--p-dark) 0%, var(--p) 100%);
  color: #fff;
  border: none;
}

/* ── 9. FOOTER — Premium Dark Redesign ───────────────────── */
.footer {
  background: linear-gradient(160deg, var(--p-deeper) 0%, #0a1f4a 50%, var(--p-dark) 100%) !important;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 0% 100%, rgba(0,82,204,.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(200,150,12,.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Gold top border */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p-light) 0%, var(--gold) 40%, var(--gold-light) 50%, var(--gold) 60%, var(--p-light) 100%);
}

.footer h4 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.04em;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 20px !important;
}

.footer h4::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--gold);
  margin-right: 10px;
  border-radius: 2px;
  vertical-align: middle;
}

.footer p, .footer-links li {
  color: rgba(255,255,255,.7) !important;
  font-size: 0.88rem;
  line-height: 1.9;
}

.footer a {
  color: rgba(255,255,255,.7) !important;
  text-decoration: none;
  transition: color var(--t-fast), padding-left var(--t-fast) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer a:hover {
  color: var(--gold-light) !important;
  padding-left: 4px;
}

.footer a i { color: var(--gold); font-size: 0.78rem; }

/* Social icons */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: rgba(255,255,255,.8) !important;
  font-size: 1rem;
  margin-right: 8px !important;
  transition: all var(--t) !important;
}

.social-links a:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--p-dark) !important;
  transform: translateY(-4px) scale(1.1) !important;
  padding-left: 0 !important;
  box-shadow: var(--shadow-gold);
}

/* Map responsive */
.map-responsive {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-md);
}

/* Copyright bar */
.footer hr {
  border-color: rgba(255,255,255,.08) !important;
}

/* ── 10. UTILITY CLASSES ──────────────────────────────────── */
.text-gold        { color: var(--gold) !important; }
.text-gold-light  { color: var(--gold-light) !important; }
.text-navy        { color: var(--p) !important; }
.bg-premium       { background: var(--bg) !important; }
.bg-navy          { background: var(--p) !important; }
.bg-gold          { background: var(--gold) !important; }

.rounded-premium  { border-radius: var(--r-lg) !important; }
.shadow-premium   { box-shadow: var(--shadow-md) !important; }
.shadow-gold      { box-shadow: var(--shadow-gold) !important; }

/* Gold accent line helper */
.gold-accent-left {
  border-left: 4px solid var(--gold);
  padding-left: 16px;
}

/* Premium number/stat text */
.stat-number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
}

/* ── 11. SEARCH OVERLAY ───────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,20,60,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(60px, 15vh, 120px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  padding: 0 24px;
}

.search-overlay-label {
  font-size: var(--font-sm);
  font-weight: 700;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.search-overlay-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 28px;
  gap: 12px;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.search-overlay-form:focus-within {
  border-color: var(--gold);
  background: rgba(255,255,255,.12);
}

.search-overlay-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.4rem;
  font-family: 'Sarabun', sans-serif;
  font-weight: 500;
  padding: 8px 0;
  caret-color: var(--gold-light);
}

.search-overlay-form input::placeholder {
  color: rgba(255,255,255,.3);
}

.search-overlay-form button {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: var(--r-full);
  color: var(--p-dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.search-overlay-form button:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-gold);
}

.search-close-btn {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
  z-index: 10000;
}
.search-close-btn:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
  transform: rotate(90deg);
}

.search-hints {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-hint-tag {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: var(--font-xs);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
}

.search-hint-tag:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--p-dark);
}

/* ── 12. SEARCH BUTTON IN NAVBAR ─────────────────────────── */
.nav-search-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: rgba(255,255,255,.85);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
  margin-right: 10px;
}

.nav-search-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--p-dark);
  transform: scale(1.1);
}

/* ── 13. BREADCRUMB — Premium Minimal ─────────────────────── */
.breadcrumb-premium {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumb-premium .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: var(--font-sm);
}

.breadcrumb-premium .breadcrumb-item a {
  color: var(--p-light);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--t-fast);
}

.breadcrumb-premium .breadcrumb-item a:hover { color: var(--gold-dark); }

.breadcrumb-premium .breadcrumb-item.active { color: var(--text-muted); font-weight: 500; }

.breadcrumb-premium .breadcrumb-item + .breadcrumb-item::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--border-2);
  font-size: 0.75rem;
}

/* ── 14. ABOUT SECTION — Premium Upgrade ─────────────────── */
.about-section {
  background: linear-gradient(160deg, #f7f9fc 0%, #eef2f9 50%, #f7f9fc 100%) !important;
  padding: 90px 0 !important;
}

/* ── 15. PAGE HERO BANNER (inner pages) ───────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--p-dark) 0%, var(--p) 60%, var(--p-light) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
}

.page-hero p { color: rgba(255,255,255,.75); }

/* ── 16. STATS SECTION ────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--p-dark) 0%, var(--p-deeper) 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(200,150,12,.06) 0%, transparent 70%);
}

.stat-card {
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: background var(--t);
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.1);
}

.stat-card:hover { background: rgba(255,255,255,.04); }

.stat-icon {
  width: 52px;
  height: 52px;
  background: rgba(200,150,12,.15);
  border: 1px solid rgba(200,150,12,.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── 17. HERO CTA BUTTONS ─────────────────────────────────── */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,.3);
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 60px;
  color: white;
  text-decoration: none;
  transition: all var(--t);
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.6);
  color: white;
  transform: translateY(-3px);
  text-decoration: none;
}

/* ── 18. ANNOUNCEMENT BANNER ──────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: var(--p-dark);
  padding: 9px 0;
  font-size: 0.83rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.announcement-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: announceSweep 4s linear infinite;
}

@keyframes announceSweep {
  0%   { left: -60%; }
  100% { left: 120%; }
}

.announcement-bar a { color: var(--p-dark); font-weight: 800; text-decoration: underline; }

/* ── 19. RESPONSIVE OVERRIDES ─────────────────────────────── */
@media (max-width: 991px) {
  .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .nav-link { padding: 14px 20px !important; }
  .dropdown-menu { margin-left: 8px !important; border-top: none !important; border-left: 3px solid var(--gold) !important; border-radius: var(--r-sm) !important; }
  .stat-card:not(:last-child)::after { display: none; }
  .stat-card { padding: 24px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
}

@media (max-width: 767px) {
  .school-name { font-size: 1.05rem !important; }
  .school-slogan { font-size: 0.78rem !important; }
  .school-logo { max-width: 68px !important; max-height: 68px !important; }
  .search-overlay-form input { font-size: 1.1rem; }
}

/* ── 20. REDUCED MOTION ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 21. SMOOTH SCROLL ────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── 22. SELECTION COLOR ──────────────────────────────────── */
::selection        { background: rgba(200,150,12,.25); color: var(--text); }
::-moz-selection   { background: rgba(200,150,12,.25); color: var(--text); }

/* ── 23. SCROLLBAR CUSTOM (Webkit) ────────────────────────── */
::-webkit-scrollbar        { width: 8px; height: 8px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--p-light); }
