/* ===== CSS VARIABLES ===== */
:root {
  --maroon: #8b1a1a;
  --maroon-dark: #6b1010;
  --maroon-light: #a52020;
  --gold: #c9982a;
  --gold-light: #d4a843;
  --purple-dark: #4a0060;
  --purple: #6b1f8a;
  --cream: #faf7f2;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: rgba(0,0,0,0.10);
  --hero-bg-start: #2d0a4a;
  --hero-bg-end: #5a0a7a;
  --brown-ticker: #5c3010;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: #fff; overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; }

/* ===== TOP CONTACT BAR ===== */
.top-contact-bar {
  background: var(--white);
  border-bottom: 1px solid #e8e0d0;
  padding: 8px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}
.top-contact-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: auto;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  font-size: 13px;
}
.top-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.top-nav-links a {
  color: #333;
  font-size: 13px;
  padding: 4px 14px;
  border-left: 1px solid #ddd;
  transition: color 0.2s;
}
.top-nav-links a:first-child { border-left: none; }
.top-nav-links a:hover { color: var(--maroon); }
.donations-btn {
  background: var(--maroon) !important;
  color: #fff !important;
  border-radius: 20px !important;
  padding: 5px 16px !important;
  font-weight: 600;
  border-left: none !important;
  margin: 0 8px;
}
.donations-btn:hover { background: var(--maroon-light) !important; }

/* ===== MAIN HEADER ===== */
.main-header {
  background: var(--white);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 2px solid #e8dcc8;
}
.header-logo-area {
  display: flex;
  align-items: center;
  gap: 18px;
}
.school-emblem {
  flex-shrink: 0;
}
.emblem-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b7030 0%, #c9a840 40%, #8b7030 100%);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(139,112,48,0.3);
  position: relative;
  overflow: hidden;
}
.emblem-circle::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}
.emblem-inner {
  color: var(--white);
  font-size: 30px;
  text-shadow: 0 0 10px rgba(201,168,64,0.6);
}
/* contact + nav block placed next to the school name */
.header-contact-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.header-contact-line {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-contact-line .contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  font-size: 13px;
}
.header-nav-line {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-start;
  row-gap: 8px;
}
.header-nav-line a {
  color: #333;
  font-size: 13px;
  padding: 4px 14px;
  border-left: 1px solid #ddd;
  transition: color 0.2s;
}
.header-nav-line a:first-child { border-left: none; }
.header-nav-line a:hover { color: var(--maroon); }
.header-nav-line .donations-btn {
  background: var(--maroon) !important;
  color: #fff !important;
  border-radius: 20px !important;
  padding: 5px 16px !important;
  font-weight: 600;
  border-left: none !important;
  margin: 0 8px;
}
.header-nav-line .donations-btn:hover { background: var(--maroon-light) !important; }

.header-title {
  line-height: 1.2;
}
.header-title-top {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.header-title-main {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--maroon);
  letter-spacing: 1px;
  line-height: 1.1;
}
.header-title-sub {
  font-size: 12px;
  color: #777;
  font-style: italic;
  margin-top: 3px;
  letter-spacing: 0.3px;
}

/* ===== UDISE BAR ===== */
.udise-bar {
  background: linear-gradient(90deg, #4a0060 0%, #6b1f8a 40%, #9b2dc0 100%);
  color: #fff;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.udise-left, .udise-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.udise-icon {
  font-size: 16px;
}

/* ===== MAIN NAV ===== */
.main-nav {
  background: #fff;
  border-bottom: 2px solid var(--gold);
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.main-nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
}
.main-nav a {
  padding: 16px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #444;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.main-nav a:hover { color: var(--maroon); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--maroon); }
.nav-admission {
  color: var(--gold) !important;
  font-weight: 800 !important;
}
.nav-admission:hover { color: var(--maroon) !important; }
.nav-leaf { font-size: 14px; }
.nav-login-wrap { margin-left: auto; }
.nav-login {
  color: #444 !important;
}
.dropdown-arrow { font-size: 10px; }

/* ===== NOTICE TICKER BAR ===== */
.notice-ticker-bar {
  background: linear-gradient(90deg, #6b2a0a 0%, #8b3a10 50%, #6b2a0a 100%);
  color: #fff;
  padding: 10px 0 10px 20px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  position: relative;
}
.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-scroll {
  display: inline-block;
  animation: ticker 30s linear infinite;
  padding-left: 100%;
  font-size: 13.5px;
  font-weight: 600;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.ticker-item {
  margin: 0 8px;
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 4px;
  transition: background .15s, opacity .15s;
}
.ticker-item:hover, .ticker-item:focus {
  background: rgba(255,255,255,0.14);
  opacity: .96;
  outline: none;
}
.ticker-speaker {
  margin-right: 4px;
}
.ticker-sep {
  margin: 0 10px;
  opacity: 0.5;
}
.open-notices-btn {
  background: #5a4a3a;
  color: #fff;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  align-self: stretch;
  padding: 0 20px;
}
.open-notices-btn:hover { background: #4a3a2a; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 60%, #3a0560 100%);
  color: #fff;
  padding: 80px 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(201,152,42,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.hero-illustration {
  font-size: 100px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,152,42,0.25);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero h2 span { color: var(--gold-light); }
.hero p {
  font-size: 16px;
  opacity: 0.88;
  max-width: 520px;
  margin: 0 0 14px;
  line-height: 1.7;
}
.hero-location {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 30px;
}
.hero-location::before { content: '📍 '; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
  border: none; cursor: pointer;
  letter-spacing: 0.3px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.2); }

/* ===== STATS ===== */
.stats-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--maroon);
  display: block;
}
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* ===== SECTIONS ===== */
.section { padding: 70px 40px; }
.section.alt { background: var(--cream); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 6vw, 38px);
  font-weight: 700;
  color: var(--maroon-dark);
  line-height: 1.2;
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.section-divider {
  width: 56px; height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ===== CARDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.card {
  background: #fff;
  border: 1.5px solid #e8dcc8;
  border-radius: 14px;
  padding: 28px 24px;
  transition: all 0.25s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.card:hover { border-color: var(--gold); box-shadow: 0 8px 28px rgba(139,26,26,0.12); transform: translateY(-3px); }
.card-icon { font-size: 36px; margin-bottom: 14px; }
.card h3 { font-size: 17px; font-weight: 700; color: var(--maroon-dark); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

/* ===== NOTICE BOARD ===== */
.notice-board {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8dcc8;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}
.notice-head {
  background: var(--maroon);
  color: #fff;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.notice-item {
  display: flex;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #f0e8d8;
  align-items: flex-start;
  transition: background 0.15s;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: #fdf9f3; }
.notice-date {
  background: var(--maroon);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  flex-shrink: 0;
  min-width: 44px;
  text-transform: uppercase;
}
.notice-text { font-size: 14px; color: var(--text); line-height: 1.5; margin-bottom: 6px; }
.notice-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: rgba(139,26,26,0.08);
  color: var(--maroon);
  padding: 2px 10px;
  border-radius: 8px;
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.gallery-item:first-child { grid-row: span 2; }
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f5ede0;
  border: 1px solid #e8dcc8;
}
.gallery-placeholder {
  width: 100%; padding-top: 75%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; position: relative;
  background: linear-gradient(135deg, #f5ede0, #ede0cc);
}
.gallery-item:first-child .gallery-placeholder { padding-top: 100%; }
.gallery-placeholder > * { position: absolute; top: 50%; transform: translateY(-50%); }
.gallery-caption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  background: rgba(255,255,255,0.9);
}

/* ===== ADMISSION BOX ===== */
.admission-box {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 50%, var(--maroon-light) 100%);
  color: #fff;
  padding: 56px 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.admission-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,152,42,0.2) 0%, transparent 50%);
}
.admission-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}
.admission-box p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 36px;
  line-height: 1.6;
  position: relative;
}
.admission-steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  position: relative;
}
.step {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 0 24px;
  position: relative;
  min-width: 120px;
}
.step::after {
  content: '→';
  position: absolute; right: -6px; top: 18px;
  color: rgba(255,255,255,0.4); font-size: 18px;
}
.step:last-child::after { display: none; }
.step-num {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.step-label { font-size: 13px; font-weight: 600; opacity: 0.9; }

/* ===== FOOTER ===== */
footer {
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 40px 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}
.footer-brand p { font-size: 13px; line-height: 1.7; opacity: 0.75; margin-top: 10px; }
.footer-codes { margin-top: 16px; }
.footer-codes span { display: block; font-size: 11px; opacity: 0.65; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.fs-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.fs-btn svg { width: 18px; height: 18px; fill: currentColor; }
.fs-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,0.25); }
.fs-fb:hover { background: #1877F2; }
.fs-wa:hover { background: #25D366; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--gold-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; opacity: 0.75; padding: 3px 0; transition: opacity 0.2s; cursor: pointer; }
.footer-col a:hover { opacity: 1; color: var(--gold-light); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 32px 0 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; opacity: 0.55;
  max-width: 1100px; margin: 0 auto;
  flex-wrap: wrap; gap: 8px;
}

/* ===== MODALS ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.6);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 18px;
  padding: 40px;
  width: 100%; max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--text-muted);
  line-height: 1;
}
.modal-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.modal-logo-circle {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  border: 2px solid var(--gold);
}
.modal h2 { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--maroon-dark); margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(139,26,26,0.1); }
.date-hint { display: block; font-size: 10.5px; color: var(--text-muted); margin-top: 5px; }
.form-group textarea { resize: vertical; }
.form-submit {
  width: 100%; padding: 13px;
  background: var(--maroon); color: #fff;
  border: none; border-radius: 8px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}
.form-submit:hover { background: var(--maroon-light); }
.portal-links { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.portal-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}
.portal-link:hover { border-color: var(--maroon); background: var(--cream); }
.portal-link-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.portal-link strong { font-size: 14px; font-weight: 700; display: block; }
.portal-link span { font-size: 12px; color: var(--text-muted); }
.portal-link .arrow { margin-left: auto; color: var(--text-muted); font-size: 18px; }

/* ===== PORTAL GRID ===== */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.portal-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.portal-card:hover { border-color: var(--maroon); box-shadow: 0 8px 32px rgba(139,26,26,0.15); transform: translateY(-4px); }
.portal-icon { width: 70px; height: 70px; border-radius: 18px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.portal-card h3 { font-size: 17px; font-weight: 700; color: var(--maroon-dark); margin-bottom: 6px; }
.portal-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.portal-card .portal-btn { display: inline-block; margin-top: 16px; background: var(--maroon); color: #fff; padding: 8px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; transition: background 0.2s; }
.portal-card:hover .portal-btn { background: var(--maroon-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-illustration { font-size: 70px; }
  .hero h2 { font-size: 38px; }
  .header-title-main { font-size: 26px; }
}
@media (max-width: 768px) {
  .main-header { padding: 12px 16px; }
  .main-nav { padding: 0 16px; }
  .main-nav a { padding: 12px 8px; font-size: 11px; }
  .header-contact-nav { align-items: flex-start; width: 100%; }
  .header-contact-line { flex-wrap: wrap; gap: 12px; }
  .header-nav-line { justify-content: flex-start; }
  .udise-bar { padding: 8px 16px; flex-direction: column; gap: 6px; font-size: 11px; }
  .hero { padding: 56px 20px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { gap: 24px; }
  .section { padding: 50px 20px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .header-title-main { font-size: 20px; }
  .emblem-circle { width: 60px; height: 60px; }

  /* Keep the phone/email chips and quick-nav links small on phones —
     only .dark-mode-toggle-inline is left alone. */
  .header-contact-line { gap: 8px; }
  .header-contact-line .contact-item {
    font-size: 11px; padding: 4px 10px 4px 4px; gap: 5px;
  }
  .header-contact-line .contact-item .ci-ic {
    width: 20px; height: 20px; font-size: 10px;
  }
  .header-nav-line { gap: 2px; }
  .header-nav-line a {
    font-size: 11px; padding: 4px 9px;
  }
  .header-nav-line .donations-btn { padding: 4px 12px !important; }
}

/* ==========================================================================
   LOGIN DROPDOWN  (SDMS / EIS / EduInventory)
   ========================================================================== */
.nav-login-wrap { margin-left: auto; position: relative; }
.nav-login { color: #fff !important; cursor: pointer; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  border-radius: 8px; margin-left: 6px; }
.nav-login::after { display: none !important; }
.nav-login:hover { filter: brightness(1.12); color: #fff !important; }
.dropdown-arrow { font-size: 10px; transition: transform .2s; }
.nav-login-wrap:hover .dropdown-arrow { transform: rotate(180deg); }

.login-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 232px;
  background: #fff;
  border: 1px solid #ece2d0;
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(74,0,96,0.20);
  padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 300;
}
.nav-login-wrap:hover .login-dropdown,
.login-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.login-dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px !important;
  border-radius: 9px;
  font-size: 14px !important; font-weight: 600 !important;
  color: #3a2a2a !important; letter-spacing: 0 !important; white-space: nowrap;
}
.login-dropdown a::after { display: none !important; }
.login-dropdown a:hover { background: var(--cream); color: var(--maroon) !important; }
.login-ic {
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: linear-gradient(135deg,#f6efe2,#efe3cf); flex-shrink: 0;
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-top {
  position: fixed; right: 26px; bottom: 26px;
  width: 50px; height: 50px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 8px 22px rgba(74,0,96,0.40);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .25s ease; z-index: 400;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(74,0,96,0.55); }

/* ==========================================================================
   VISUAL POLISH / ENHANCEMENTS
   ========================================================================== */
html { scroll-behavior: smooth; }

/* sticky header band feels more premium */
.main-header { box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
.header-title-main { background: linear-gradient(90deg, var(--maroon) 0%, var(--maroon-light) 60%, var(--gold) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* cards lift on hover */
.card { transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.card:hover { transform: translateY(-7px); box-shadow: 0 18px 40px rgba(139,26,26,0.12); border-color: var(--gold); }
.card-icon { transition: transform .28s ease; }
.card:hover .card-icon { transform: scale(1.12) rotate(-4deg); }

/* buttons */
.btn-primary { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(139,26,26,0.30); filter: brightness(1.05); }
.btn-outline { transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn-outline:hover { transform: translateY(-2px); }

/* stats */
.stat { transition: transform .25s ease; }
.stat:hover { transform: translateY(-4px); }
.stat-num { transition: color .25s ease; }

/* gallery zoom */
.gallery-item { overflow: hidden; }
.gallery-item .gallery-placeholder { transition: transform .35s ease; }
.gallery-item:hover .gallery-placeholder { transform: scale(1.08); }

/* notice rows */
.notice-item { transition: background .2s ease, transform .2s ease; }
.notice-item:hover { background: var(--cream); transform: translateX(4px); }

/* nav login active arrow + donations subtle pop */
.donations-btn { transition: transform .2s ease, background .2s ease; }
.donations-btn:hover { transform: translateY(-1px); }

/* footer links slide */
footer .footer-col a { transition: color .2s ease, padding-left .2s ease; }
footer .footer-col a:hover { color: var(--gold); padding-left: 5px; }

/* section eyebrow accent */
.section-eyebrow { position: relative; }

@media (max-width: 768px) {
  .login-dropdown { right: auto; left: 0; }
  .nav-login-wrap { margin-left: 0; }
  .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; font-size: 19px; }
}

/* ==========================================================================
   v3 UPDATES — UDISE building image · centered nav · restyled ticker · page hero
   ========================================================================== */

/* ---- Sections that should only appear inside the installed app (see js/main.js "is-app" class) ---- */
.app-only { display: none; }
html.is-app .app-only { display: block; }
.udise-bar { padding: 8px 40px; }
.udise-left strong, .udise-right strong { line-height: 1.2; }

/* --- CENTERED, STYLISH MAIN NAV --- */
.main-nav { padding: 0 40px; }
.main-nav-inner { justify-content: center; position: relative; min-height: 52px; }
.main-nav-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px;
}
.main-nav-links a {
  padding: 12px 14px; border-radius: 9px;
  transition: background .2s ease, color .2s ease;
}
.main-nav-links a:hover { background: var(--cream); color: var(--maroon); }
.main-nav-links a.active { background: rgba(139,26,26,0.06); }
/* refined underline accent */
.main-nav-links a::after {
  left: 14px; right: 14px; bottom: 5px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--maroon) 100%);
}
/* login pinned to the right while links stay centered */
.nav-login-wrap { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin-left: 0; }

/* --- RESTYLED NOTIFICATION (TICKER) BAR --- */
.notice-ticker-bar {
  display: flex; align-items: stretch;
  max-width: 1340px; margin: 16px auto; padding: 0;
  background: linear-gradient(90deg, #6b1010 0%, #8b1a1a 50%, #6b1010 100%);
  border: 1px solid rgba(201,152,42,0.40);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 28px rgba(139,26,26,0.22);
}
.ticker-label {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #4a2200; font-weight: 800; font-size: 12.5px; letter-spacing: 1px;
  padding: 0 20px; flex-shrink: 0; white-space: nowrap;
}
.ticker-bell { font-size: 15px; transform-origin: 50% 0; animation: bell 2.4s ease-in-out infinite; }
@keyframes bell {
  0%,55%,100% { transform: rotate(0); }
  60% { transform: rotate(14deg); } 66% { transform: rotate(-12deg); }
  72% { transform: rotate(8deg); } 78% { transform: rotate(-6deg); } 84% { transform: rotate(0); }
}
.notice-ticker-bar .ticker-content { padding: 12px 0; }
.ticker-scroll { color: #fff; font-size: 13.5px; }
.ticker-sep { color: var(--gold-light); opacity: 1; margin: 0 14px; }
.open-notices-btn {
  background: #3a0a0a; color: #fff; border: none; border-left: 1px solid rgba(201,152,42,0.4);
  display: flex; align-items: center; gap: 6px; padding: 0 22px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0;
  transition: background .2s ease;
}
.open-notices-btn:hover { background: #240505; }

/* --- INNER-PAGE HERO (gallery & future pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
  color: #fff; padding: 66px 40px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,152,42,0.18), transparent 45%);
  pointer-events: none;
}
.page-hero-inner { max-width: 840px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: 42px; line-height: 1.15; margin: 16px 0 12px; }
.page-hero p { color: rgba(255,255,255,0.88); font-size: 16px; line-height: 1.7; }

@media (max-width: 768px) {
  .udise-bar { padding: 8px 16px; }
  .main-nav { padding: 0 12px; }
  .nav-login-wrap { position: static; transform: none; margin-left: 0; }
  .main-nav-inner { flex-direction: column; gap: 6px; padding: 8px 0; }
  .notice-ticker-bar { margin: 12px; border-radius: 12px; }
  .ticker-label { padding: 0 12px; font-size: 11px; }
  .page-hero { padding: 48px 18px; }
  .page-hero h1 { font-size: 30px; }
}

/* ==========================================================================
   v4 — HOME SLIDER · ANIMATED KIDS SCENE · QUICK ACCESS LINKS
   ========================================================================== */

/* light button (for dark slider backgrounds) */
.btn-light {
  background: #fff; color: var(--maroon); border: none;
  padding: 13px 28px; border-radius: 30px; font-weight: 700; font-size: 15px;
  cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.25); }

/* ---------- SLIDER ---------- */
.slider { position: relative; overflow: hidden; }
.slides { position: relative; height: 380px; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .8s ease;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; visibility: visible; }
.slide.s1 { background: linear-gradient(120deg, #2d0a4a 0%, #5a0a7a 100%); }
.slide.s2 { background: linear-gradient(120deg, #6b1010 0%, #a52020 100%); }
.slide.s3 { background: linear-gradient(120deg, #0e5a4a 0%, #1f8a6b 100%); }
.slide.s4 { background: linear-gradient(120deg, #8b6a10 0%, #c9982a 100%); }
.slide::after {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 78% 25%, rgba(255,255,255,0.16), transparent 42%);
}
.slide-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 50px;
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.slide-text { max-width: 600px; color: #fff; }
.slide-tag {
  display: inline-block; background: rgba(255,255,255,0.18); border:1px solid rgba(255,255,255,0.3);
  padding: 5px 16px; border-radius: 30px; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.slide-text h2 { font-family:'Playfair Display',serif; font-size: 44px; line-height:1.1; margin-bottom: 14px; }
.slide-text p { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.slide-art .art-emoji {
  font-size: 150px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.3));
  animation: artFloat 4s ease-in-out infinite;
}
@keyframes artFloat { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-18px) rotate(3deg)} }
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.22); color: #fff; font-size: 18px; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.slide-nav:hover { background: rgba(255,255,255,0.4); }
.slide-nav.prev { left: 18px; }
.slide-nav.next { right: 18px; }
.slide-dots { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; z-index: 3; }
.slide-dots .dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,0.45); margin: 0 5px; cursor: pointer; transition: all .2s ease;
}
.slide-dots .dot.active { background: #fff; width: 28px; border-radius: 6px; }

/* ---------- ANIMATED KIDS SCENE ---------- */
.kids-section { padding-bottom: 30px; }
.kids-scene {
  position: relative; max-width: 1100px; margin: 10px auto 0; height: 320px;
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #bfe6ff 0%, #e7f6ff 55%, #d8f3dc 55%, #c4ecc9 100%);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.06);
}
.ks-sun { position:absolute; top: 22px; right: 40px; font-size: 56px; animation: ksSun 6s ease-in-out infinite; }
@keyframes ksSun { 0%,100%{transform:scale(1) rotate(0)} 50%{transform:scale(1.12) rotate(20deg)} }
.ks-cloud { position:absolute; font-size: 50px; opacity: .92; }
.ks-cloud-a { top: 30px; left: -60px; animation: ksDrift 26s linear infinite; }
.ks-cloud-b { top: 70px; left: -60px; font-size: 38px; animation: ksDrift 34s linear infinite; animation-delay: -8s; }
.ks-cloud-c { top: 14px; left: -60px; font-size: 44px; animation: ksDrift 30s linear infinite; animation-delay: -18s; }
@keyframes ksDrift { from{transform:translateX(0)} to{transform:translateX(1240px)} }
.ks-balloon { position:absolute; font-size: 40px; animation: ksFloat 5s ease-in-out infinite; }
.ks-balloon-1 { top: 60px; left: 16%; animation-delay: -1s; }
.ks-balloon-2 { top: 40px; left: 70%; font-size: 46px; animation-delay: -2.5s; }
.ks-balloon-3 { top: 88px; left: 50%; font-size: 34px; animation-delay: -0.5s; }
@keyframes ksFloat { 0%,100%{transform:translateY(0) rotate(-4deg)} 50%{transform:translateY(-22px) rotate(4deg)} }
.ks-books { position:absolute; top: 120px; left: 0; right: 0; text-align:center; }
.ks-float { display:inline-block; font-size: 34px; margin: 0 14px; animation: ksBounce 2.4s ease-in-out infinite; }
.ks-float.d0{animation-delay:0s}.ks-float.d1{animation-delay:.2s}.ks-float.d2{animation-delay:.4s}
.ks-float.d3{animation-delay:.6s}.ks-float.d4{animation-delay:.8s}.ks-float.d5{animation-delay:1s}
@keyframes ksBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
.ks-ground { position:absolute; left:0; right:0; bottom:0; height: 45%;
  background: linear-gradient(180deg, #cdeccf 0%, #a9dcae 100%); }
.ks-kids { position:absolute; left:0; right:0; bottom: 24px; text-align:center; z-index:2; }
.ks-kid { display:inline-block; font-size: 52px; margin: 0 12px; animation: ksKid 1.8s ease-in-out infinite; }
.ks-kid.b0{animation-delay:0s}.ks-kid.b1{animation-delay:.25s}.ks-kid.b2{animation-delay:.5s}
.ks-kid.b3{animation-delay:.75s}.ks-kid.b4{animation-delay:1s}
@keyframes ksKid { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
.ks-bus { position:absolute; bottom: 18px; left: -90px; font-size: 56px; z-index:3;
  animation: ksBus 12s linear infinite; }
@keyframes ksBus { 0%{transform:translateX(0)} 100%{transform:translateX(1200px)} }

/* ---------- QUICK ACCESS LINKS ---------- */
.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 1100px; margin: 8px auto 0;
}
.quick-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 16px; gap: 4px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.quick-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(139,26,26,0.12); border-color: var(--gold); }
.qc-ic {
  font-size: 30px; width: 62px; height: 62px; border-radius: 16px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #faf3e2, #f1e6cf);
}
.qc-name { font-weight: 800; color: var(--maroon); font-size: 15px; }
.qc-sub { font-size: 12px; color: var(--text-muted); }

@media (max-width: 900px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-text h2 { font-size: 32px; }
  .slide-art .art-emoji { font-size: 100px; }
}
@media (max-width: 768px) {
  .slides { height: 440px; }
  .slide-inner { flex-direction: column; justify-content: center; text-align: center; padding: 30px 24px; }
  .slide-art { display: none; }
  .kids-scene { height: 260px; }
  .ks-kid { font-size: 38px; margin: 0 7px; }
}
@media (max-width: 480px) {
  .quick-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v5 — REFINED HEADER · CHIP CONTACT · DIVIDER · NAV LINKS · CENTERED HERO
   ========================================================================== */

/* --- attractive header band --- */
.main-header {
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf6 100%);
  border-bottom: none;
  box-shadow: 0 2px 0 rgba(201,152,42,0.25), 0 6px 18px rgba(0,0,0,0.04);
  padding: 16px 44px;
  position: relative;
}
.main-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--maroon) 0%, var(--gold) 50%, var(--maroon) 100%);
}
.emblem-circle { box-shadow: 0 4px 16px rgba(139,112,48,0.4); animation: emblemGlow 4s ease-in-out infinite; }
@keyframes emblemGlow {
  0%,100% { box-shadow: 0 4px 16px rgba(139,112,48,0.40); }
  50% { box-shadow: 0 4px 26px rgba(201,168,64,0.65); }
}
.header-title-top { color: var(--gold); font-weight: 700; }
.header-title-main { font-size: 38px; letter-spacing: 0.5px; }
.header-title-sub { color: #8a7a66; }
/* small gold underline accent below the name */
.header-title-sub { position: relative; padding-top: 5px; }
.header-title-sub::before {
  content: ''; position: absolute; top: 0; left: 0; width: 54px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* --- phone / email as chips --- */
.header-contact-nav { gap: 0; }
.header-contact-line { gap: 10px; }
.header-contact-line .contact-item {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fbf6ec; border: 1px solid #ece0c8;
  padding: 6px 14px 6px 6px; border-radius: 30px;
  font-size: 13px; font-weight: 600; color: #4a3a28;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.header-contact-line .contact-item:hover {
  border-color: var(--gold); box-shadow: 0 4px 12px rgba(201,152,42,0.18); transform: translateY(-1px);
}
.ci-ic {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%);
  color: #fff;
}

/* --- divider line between contact and nav links --- */
.header-divider {
  height: 1px; width: 100%; margin: 11px 0 9px;
  background: linear-gradient(90deg, transparent 0%, #d9c9a8 18%, #c9982a 50%, #d9c9a8 82%, transparent 100%);
}

/* --- header quick nav links styled --- */
.header-nav-line { gap: 4px; }
.header-nav-line a {
  border-left: none; border-radius: 7px;
  padding: 6px 13px; font-size: 12.5px; font-weight: 600; color: #5a4636;
  transition: background .2s ease, color .2s ease;
}
.header-nav-line a:hover { background: #f4ece0; color: var(--maroon); }
.header-nav-line .donations-btn {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%) !important;
  box-shadow: 0 4px 12px rgba(139,26,26,0.28);
  padding: 6px 18px !important;
}
.header-nav-line .donations-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* --- CENTERED HERO --- */
.hero { flex-direction: column; text-align: center; justify-content: center; gap: 0; }
.hero-content { max-width: 780px; margin: 0 auto; }
.hero p { margin-left: auto; margin-right: auto; }
.hero-btns { justify-content: center; }
.hero-illustration {
  order: -1; margin: 0 auto 22px; font-size: 88px;
  animation: heroFloat 4.5s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* ==========================================================================
   v5 — ADVANCED QUICK ACCESS CARDS
   ========================================================================== */
.quick-grid { gap: 20px; }
.quick-card {
  position: relative; align-items: flex-start; text-align: left;
  padding: 22px 20px 18px; overflow: hidden;
  border: 1px solid #ece4d6; background: #fff;
}
.quick-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent, var(--gold)); transform: scaleY(0); transform-origin: top;
  transition: transform .28s ease;
}
.quick-card:hover { border-color: color-mix(in srgb, var(--accent, var(--gold)) 45%, #ece4d6); }
.quick-card:hover::before { transform: scaleY(1); }
.quick-card .qc-arrow {
  position: absolute; top: 16px; right: 16px; font-size: 15px; font-weight: 800;
  color: var(--accent, var(--maroon)); opacity: 0; transform: translate(-5px,5px);
  transition: opacity .25s ease, transform .25s ease;
}
.quick-card:hover .qc-arrow { opacity: 1; transform: translate(0,0); }
.quick-card .qc-ic {
  width: 56px; height: 56px; border-radius: 14px; font-size: 28px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--accent, var(--gold)) 14%, #fff);
  color: var(--accent, var(--maroon));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--gold)) 22%, transparent);
}
.quick-card .qc-name { color: #2a2018; font-size: 15.5px; font-weight: 800; }
.quick-card .qc-sub { color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.quick-card .qc-foot {
  margin-top: 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.3px;
  color: var(--accent, var(--maroon)); display: inline-flex; align-items: center; gap: 6px;
  opacity: 0.85;
}
.quick-card:hover .qc-foot { gap: 9px; }

@media (max-width: 768px) {
  .main-header { padding: 14px 16px; }
  .header-contact-nav { align-items: flex-start; }
  .header-divider { margin: 9px 0; }
  .hero-illustration { font-size: 64px; }
}

/* --- animated heart-in-hands donation icon --- */
.donate-icon {
  width: 18px; height: 18px; vertical-align: -4px; margin-right: 3px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* ==========================================================================
   v7 — OUTLINED DONATIONS BUTTON (matches reference) + maroon hand-heart icon
   ========================================================================== */
.header-nav-line .donations-btn {
  background: #fff !important;
  color: var(--maroon) !important;
  border: 1.5px solid var(--maroon) !important;
  box-shadow: none !important;
  padding: 5px 16px !important;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 2px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.header-nav-line .donations-btn:hover {
  background: #fdeaea !important;
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139,26,26,0.18) !important;
}
.donate-icon { width: 19px; height: 19px; vertical-align: -4px; margin-right: 2px; filter: none; }

/* --- Install App / Get App button --- */
.header-nav-line .install-app-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light, #d4a843) 100%) !important;
  color: #fff !important; border: none !important;
  padding: 6px 16px !important; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
  box-shadow: 0 4px 12px rgba(201,152,42,0.32);
  transition: filter .2s ease, transform .2s ease;
}
.header-nav-line .install-app-btn:hover { filter: brightness(1.06); transform: translateY(-1px); background: none; color: #fff; }
.header-nav-line .install-app-btn.is-hidden { display: none; }

/* ==========================================================================
   v8 — SCHOOL LOGO (image) + ANIMATIONS  (header · modals · footer)
   ========================================================================== */
.brand-logo-link { display: inline-flex; align-items: center; }
.school-logo-wrap { display: inline-flex; }
.school-logo {
  width: 84px; height: 84px; border-radius: 50%; display: block;
  animation: logoPulse 3.2s ease-in-out infinite;
  will-change: transform, filter;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1);     filter: drop-shadow(0 0 4px rgba(201,152,42,0.55)); }
  50%      { transform: scale(1.045); filter: drop-shadow(0 0 16px rgba(201,152,42,0.95)); }
}
.brand-logo-link:hover .school-logo {
  animation: logoSpinGlow 0.9s ease;
  transform: scale(1.06);
}
@keyframes logoSpinGlow {
  0%   { transform: rotate(0)    scale(1);    filter: drop-shadow(0 0 6px rgba(201,152,42,0.6)); }
  100% { transform: rotate(360deg) scale(1.06); filter: drop-shadow(0 0 18px rgba(201,152,42,1)); }
}

/* modal logos */
.modal-logo-img {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: #fff; box-shadow: 0 0 0 2px var(--gold);
  animation: logoGlow 3.4s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold), 0 0 4px rgba(201,152,42,0.35); }
  50%      { box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(201,152,42,0.85); }
}

/* footer logo */
.footer-logo {
  width: 66px; height: 66px; border-radius: 50%; display: block; margin-bottom: 14px;
  background: rgba(255,255,255,0.92);
  animation: logoGlow 3.6s ease-in-out infinite;
}

@media (max-width: 768px) {
  .school-logo { width: 64px; height: 64px; }
}

/* ==========================================================================
   v9 — ABOUT PAGE : grid fixes · leadership messages · parent voices
   ========================================================================== */
:root { --green: #2e7d32; --green-light: #54b35a; }

/* missing grid utilities */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: 1100px; margin: 0 auto; align-items: start;
}
.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  max-width: 1100px; margin: 0 auto;
}

/* leadership team cards */
.team-card { text-align: center; }
.team-avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border: 3px solid var(--gold); box-shadow: 0 6px 16px rgba(46,125,50,0.25);
}
.team-card h3 { font-size: 16px; margin-bottom: 4px; }
.team-card p { font-size: 12px; color: var(--text-muted); }

/* principal / chairman message blocks */
.message-block {
  max-width: 1040px; margin: 0 auto; display: flex; gap: 36px; align-items: stretch;
}
.message-block.reverse { flex-direction: row-reverse; }
.message-portrait {
  flex: 0 0 240px; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.portrait-circle {
  width: 96px; height: 96px; border-radius: 50%; font-size: 46px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  border: 4px solid var(--gold); box-shadow: 0 8px 20px rgba(139,26,26,0.30);
}
.portrait-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 18px; color: var(--maroon); }
.portrait-role { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.message-body {
  flex: 1; position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 34px 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.message-quote {
  font-family: 'Playfair Display', serif; font-size: 80px; line-height: 0.6;
  color: var(--gold); opacity: 0.5; display: block; height: 34px;
}
.message-body p { color: var(--text-muted); line-height: 1.85; margin-bottom: 14px; }
.message-sign {
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 17px;
  color: var(--maroon); margin-top: 6px;
}

/* parent voices / testimonials */
.voices-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.voice-card {
  position: relative; background: #fdfaf3; border: 1px solid #ece3d3;
  border-radius: 16px; padding: 26px 28px 24px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.voice-card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--gold), var(--maroon));
  transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.voice-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(139,26,26,0.10); border-color: var(--gold); }
.voice-card:hover::after { transform: scaleY(1); }
.voice-quote {
  font-family: 'Playfair Display', serif; font-size: 60px; line-height: 0.3;
  color: var(--gold); opacity: 0.45; display: block; height: 26px;
}
.voice-text {
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 16.5px;
  line-height: 1.7; color: #3a3a3a; margin: 8px 0 20px;
}
.voice-author { display: flex; align-items: center; gap: 14px; }
.voice-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #faf0dd, #f0e2c8); border: 2px solid #e9d9b8;
}
.voice-name { font-weight: 800; color: #2a2018; font-size: 15px; }
.voice-role { font-size: 12.5px; color: var(--gold); font-weight: 600; }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .voices-grid { grid-template-columns: 1fr; }
  .message-block, .message-block.reverse { flex-direction: column; gap: 20px; }
  .message-portrait { flex: 0 0 auto; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v9 — ABOUT PAGE POLISH (leaders · voices pattern · hover)
   ========================================================================== */

/* Leadership: linked Chairman / Principal cards */
.leaders-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 900px; margin: 0 auto;
}
.leader-card {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 24px; box-shadow: 0 10px 26px rgba(0,0,0,0.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.leader-card:hover {
  transform: translateY(-5px); box-shadow: 0 18px 40px rgba(139,26,26,0.14);
  border-color: var(--gold);
}
.leader-avatar {
  width: 74px; height: 74px; border-radius: 50%; font-size: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  border: 3px solid var(--gold); box-shadow: 0 6px 16px rgba(139,26,26,0.3);
}
.leader-info h3 { font-size: 18px; color: var(--maroon); margin-bottom: 2px; }
.leader-info > span { display: block; font-size: 12.5px; color: var(--text-muted); }
.leader-link { color: var(--gold) !important; font-weight: 700; margin-top: 7px !important; transition: color .2s ease; }
.leader-card:hover .leader-link { color: var(--maroon) !important; }

/* team cards: hover lift */
.team-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(46,125,50,0.14); border-color: var(--gold); }
.team-avatar { transition: transform .25s ease; }
.team-card:hover .team-avatar { transform: scale(1.08) rotate(-4deg); }

/* VOICES section — soft "+" pattern background (matches reference) */
.voices-section {
  background-color: #faf7f1;
  background-image:
    radial-gradient(circle at 50% -10%, rgba(201,152,42,0.06), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23cdbd9c' stroke-width='1.1' opacity='0.45'%3E%3Cpath d='M22 15v14M15 22h14'/%3E%3C/g%3E%3C/svg%3E");
}
.voice-card { background: rgba(255,255,255,0.86); backdrop-filter: blur(1px); }
.voice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(139,26,26,0.10);
  border-color: var(--gold);
}
.voice-avatar { transition: transform .25s ease; }
.voice-card:hover .voice-avatar { transform: scale(1.08); }

/* principal / chairman portrait: gentle glow on the ring */
.portrait-circle { transition: transform .3s ease, box-shadow .3s ease; }
.message-portrait:hover .portrait-circle { transform: scale(1.05); box-shadow: 0 10px 26px rgba(139,26,26,0.4); }

/* about page-hero: subtle bottom fade for smoother transition */
.page-hero { box-shadow: inset 0 -40px 60px -40px rgba(0,0,0,0.25); }

@media (max-width: 700px) {
  .leaders-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v10 — ABOUT PAGE "PERFECT LOOK": hero logo · star ratings · richer messages
          + site-wide scroll-reveal animation
   ========================================================================== */

/* about hero logo */
.about-hero-logo {
  width: 92px; height: 92px; border-radius: 50%; display: block; margin: 0 auto 18px;
  background: rgba(255,255,255,0.95); padding: 3px;
  box-shadow: 0 0 0 3px rgba(201,152,42,0.6), 0 8px 26px rgba(0,0,0,0.35);
  animation: logoPulse 3.2s ease-in-out infinite;
}

/* voices: 5-star rating */
.voice-stars {
  color: var(--gold); font-size: 15px; letter-spacing: 3px; margin: 2px 0 12px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

/* richer principal / chairman message cards */
.message-body {
  border-left: 4px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(201,152,42,0.05), transparent 120px),
    #fff;
}
.message-quote { font-size: 92px; }
.message-portrait {
  background: linear-gradient(180deg, #fff 0%, #fdf8ef 100%);
}
.message-portrait::after {
  content: ''; display: block; width: 42px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--maroon)); margin-top: 12px;
}

/* leader cards: gentle avatar glow */
.leader-card .leader-avatar { transition: transform .25s ease, box-shadow .25s ease; }
.leader-card:hover .leader-avatar { transform: scale(1.07); box-shadow: 0 8px 22px rgba(139,26,26,0.45); }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ==========================================================================
   v11 — STUDENT LIFE PAGE (parent-impressing): hero · activities · day timeline
          · trust grid · facilities · quote · CTA
   ========================================================================== */

/* hero buttons */
.life-hero-btns { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.btn-ghost {
  background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.6);
  padding: 13px 26px; border-radius: 30px; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.life-stats { margin-top: 0; }

/* activities */
.act-grid { gap: 20px; }
.act-card { text-align: center; position: relative; overflow: hidden; border-top: 3px solid var(--accent, var(--gold)); }
.act-card .act-ic {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent, var(--gold)) 14%, #fff);
  transition: transform .25s ease;
}
.act-card:hover .act-ic { transform: scale(1.12) rotate(-5deg); }
.act-card h3 { color: var(--accent, var(--maroon)); margin-bottom: 6px; }
.act-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* day-in-the-life timeline */
.day-timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 14px; }
.day-timeline::before {
  content: ''; position: absolute; left: 64px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(var(--gold), var(--maroon)); border-radius: 3px;
}
.day-item { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; position: relative; }
.day-time {
  width: 52px; text-align: right; flex-shrink: 0; font-weight: 800; color: var(--maroon); font-size: 14px;
}
.day-item::after {
  content: ''; position: absolute; left: 60px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--maroon);
}
.day-card {
  margin-left: 28px; flex: 1; display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05); transition: transform .25s ease, box-shadow .25s ease;
}
.day-item:hover .day-card { transform: translateX(6px); box-shadow: 0 12px 28px rgba(139,26,26,0.12); }
.day-ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #faf3e2, #f1e6cf);
}
.day-card strong { color: var(--maroon); font-size: 15px; }
.day-card p { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; }
.trust-item {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px;
  text-align: center; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.trust-item:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(139,26,26,0.12); border-color: var(--gold); }
.trust-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 70px; height: 70px; border-radius: 50%; font-size: 34px; margin-bottom: 14px;
  background: radial-gradient(circle at 30% 25%, #fff, #f6edda);
  box-shadow: 0 6px 16px rgba(201,152,42,0.25);
}
.trust-item h3 { color: var(--maroon); margin-bottom: 8px; font-size: 17px; }
.trust-item p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* facilities */
.facility-card { text-align: center; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.facility-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(139,26,26,0.10); border-color: var(--gold); }
.facility-ic {
  width: 66px; height: 66px; border-radius: 18px; margin: 0 auto 14px; font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); color: #fff;
  box-shadow: 0 8px 20px rgba(139,26,26,0.28);
}
.facility-card h3 { color: var(--maroon); margin-bottom: 6px; }
.facility-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* parent quote strip */
.life-quote-section { background: #faf7f1; }
.life-quote { max-width: 820px; margin: 0 auto; text-align: center; position: relative; padding: 10px 20px; }
.lq-mark { font-family: 'Playfair Display', serif; font-size: 90px; color: var(--gold); opacity: 0.45; line-height: 0.5; display: block; height: 40px; }
.life-quote p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 24px; line-height: 1.5; color: #2e2233; margin-bottom: 14px; }
.lq-author { color: var(--maroon); font-weight: 700; margin-bottom: 10px; }
.lq-link { color: var(--gold); font-weight: 700; transition: color .2s ease; }
.lq-link:hover { color: var(--maroon); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #2d0a4a 0%, #6b1010 60%, #8b1a1a 100%);
  position: relative; overflow: hidden; padding: 64px 40px; text-align: center;
}
.cta-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(201,152,42,0.22), transparent 45%); }
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; color: #fff; }
.cta-inner h2 { font-family: 'Playfair Display', serif; font-size: 36px; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,0.9); font-size: 16px; line-height: 1.7; margin-bottom: 26px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .day-timeline::before { left: 50px; }
  .day-item::after { left: 46px; }
  .day-time { width: 44px; font-size: 12px; }
  .cta-inner h2 { font-size: 27px; }
  .life-quote p { font-size: 19px; }
}
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   v12 — STUDENT LIFE: PHOTO GALLERY + LIGHTBOX + ANIMATED FUN ZONE (with sound)
   ========================================================================== */

/* ---------- PHOTO GALLERY ---------- */
.photo-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 16px;
  max-width: 1100px; margin: 0 auto;
}
.photo-tile {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
  border: 1px solid #e7dcc7; box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.photo-tile.big { grid-column: span 2; grid-row: span 2; }
.photo-tile.tall { grid-row: span 2; }
.photo-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(139,26,26,0.16); }
.photo-frame {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #f3ece0 0%, #efe4d0 100%);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-emoji { font-size: 46px; transition: transform .3s ease; }
.photo-tile.big .photo-emoji { font-size: 70px; }
.photo-tile:hover .photo-emoji { transform: scale(1.12); }
.photo-hint {
  font-size: 11px; font-weight: 700; color: #b08a4a; letter-spacing: .3px;
  background: rgba(255,255,255,0.7); padding: 3px 10px; border-radius: 20px;
}
.photo-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: linear-gradient(transparent, rgba(74,0,96,0.82));
  color: #fff; font-size: 13px; font-weight: 700; padding: 22px 14px 12px;
  transform: translateY(8px); opacity: 0; transition: opacity .25s ease, transform .25s ease;
}
.photo-tile:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery-note { text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: 18px; }
.gallery-note code { background: #f3ece0; padding: 1px 6px; border-radius: 5px; font-size: 12px; color: var(--maroon); }

/* ---------- LIGHTBOX ---------- */
.photo-lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(20,4,30,0.86); backdrop-filter: blur(3px);
}
.photo-lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 760px; width: 100%; text-align: center; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: #fff; color: var(--maroon); font-size: 18px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.lightbox-body {
  background: linear-gradient(135deg, #f3ece0, #efe4d0); border-radius: 18px; overflow: hidden;
  min-height: 320px; display: flex; align-items: center; justify-content: center;
}
.lightbox-body img { width: 100%; height: auto; display: block; }
.lightbox-body .lb-emoji { font-size: 120px; }
.lightbox-cap { color: #fff; font-weight: 700; font-size: 17px; margin-top: 14px; }

/* ---------- FUN ZONE ---------- */
.fun-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 1040px; margin: 0 auto; }
.fun-card {
  border-radius: 20px; overflow: hidden; cursor: pointer; border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08); transition: transform .25s ease, box-shadow .25s ease;
}
.fun-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,0.16); }
.fun-scene { position: relative; height: 200px; overflow: hidden; }
.fc-sing   .fun-scene { background: linear-gradient(160deg, #ffd6ec 0%, #c9a7ff 100%); }
.fc-garden .fun-scene { background: linear-gradient(160deg, #bdeeff 0%, #c8f5cd 100%); }
.fc-space  .fun-scene { background: linear-gradient(160deg, #1b1140 0%, #3a2a7a 100%); }
.fc-animal .fun-scene { background: linear-gradient(160deg, #cdeffd 0%, #d8f3c4 100%); }
.fun-scene > span { position: absolute; will-change: transform; }
.fun-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; background: #fff;
}
.fun-title { font-weight: 800; color: var(--maroon); font-size: 16px; }
.fun-play {
  border: none; cursor: pointer; border-radius: 30px; padding: 8px 18px; font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); color: #fff;
  box-shadow: 0 6px 16px rgba(139,26,26,0.3); transition: transform .15s ease, filter .2s ease;
}
.fun-card.playing .fun-play { background: linear-gradient(135deg, #1a7a3a, #2e9d52); }
.fun-play:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fun-note { text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: 16px; }

/* ----- scene actors & default (gentle) loops ----- */
.fz-sun { top: 14px; right: 18px; font-size: 38px; animation: fzSun 5s ease-in-out infinite; }
@keyframes fzSun { 0%,100%{transform:scale(1) rotate(0)} 50%{transform:scale(1.12) rotate(18deg)} }

/* Sing & Dance */
.fz-actor { bottom: 18px; font-size: 50px; animation: fzBounce 1.6s ease-in-out infinite; }
.fz-actor.k1 { left: 18%; } .fz-actor.k2 { left: 42%; animation-delay: .25s; } .fz-actor.k3 { left: 66%; animation-delay: .5s; }
@keyframes fzBounce { 0%,100%{transform:translateY(0) rotate(-4deg)} 50%{transform:translateY(-20px) rotate(4deg)} }
.fz-note { top: 40px; font-size: 26px; animation: fzNote 3s ease-in-out infinite; opacity:.9; }
.fz-note.a{left:24%}.fz-note.b{left:48%;animation-delay:.6s}.fz-note.c{left:70%;animation-delay:1.2s}
@keyframes fzNote { 0%{transform:translateY(0) rotate(0);opacity:0} 30%{opacity:1} 100%{transform:translateY(-60px) rotate(20deg);opacity:0} }
.fz-deco.bal { top: 30px; left: 8%; font-size: 34px; animation: fzFloat 4s ease-in-out infinite; }
@keyframes fzFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

/* Garden */
.fz-fly { font-size: 30px; }
.fz-fly.bee  { top: 50px; left: -40px; animation: fzCross 7s linear infinite; }
.fz-fly.bfly { top: 90px; left: -40px; font-size: 34px; animation: fzCross 9s linear infinite; animation-delay: -3s; }
.fz-fly.bird { top: 26px; left: -40px; animation: fzCross 8s linear infinite; animation-delay: -5s; }
@keyframes fzCross { from{transform:translateX(0) translateY(0)} 50%{transform:translateX(260px) translateY(-14px)} to{transform:translateX(520px) translateY(0)} }
.fz-flower { bottom: 8px; font-size: 38px; animation: fzSway 2.6s ease-in-out infinite; transform-origin: bottom center; }
.fz-flower.f1{left:18%}.fz-flower.f2{left:46%;animation-delay:.4s}.fz-flower.f3{left:72%;animation-delay:.8s}
@keyframes fzSway { 0%,100%{transform:rotate(-7deg)} 50%{transform:rotate(7deg)} }

/* Space */
.fz-star { font-size: 20px; animation: fzTwinkle 1.8s ease-in-out infinite; }
.fz-star.s1{top:30px;left:20%}.fz-star.s2{top:70px;left:42%;animation-delay:.4s}
.fz-star.s3{top:40px;left:70%;animation-delay:.8s}.fz-star.s4{top:96px;left:82%;animation-delay:1.2s}
@keyframes fzTwinkle { 0%,100%{opacity:.3;transform:scale(.8)} 50%{opacity:1;transform:scale(1.2)} }
.fz-planet { top: 22px; right: 28px; font-size: 40px; animation: fzFloat 5s ease-in-out infinite; }
.fz-rocket { bottom: -10px; left: 10%; font-size: 50px; animation: fzRocket 6s ease-in-out infinite; }
@keyframes fzRocket { 0%{transform:translate(0,0) rotate(0)} 50%{transform:translate(180px,-90px) rotate(18deg)} 100%{transform:translate(360px,-180px) rotate(28deg);opacity:0} }

/* Animal Parade */
.fz-cloud { font-size: 36px; top: 18px; left: -50px; opacity: .9; animation: fzCross 16s linear infinite; }
.fz-cloud.c2 { top: 50px; animation-duration: 22s; animation-delay: -8s; font-size: 28px; }
.fz-animal { bottom: 14px; font-size: 46px; left: -60px; animation: fzWalk 9s linear infinite; }
.fz-animal.a1{animation-delay:0s}.fz-animal.a2{animation-delay:-2.2s}.fz-animal.a3{animation-delay:-4.4s}.fz-animal.a4{animation-delay:-6.6s}
@keyframes fzWalk { from{transform:translateX(0)} to{transform:translateX(640px)} }

/* energised state while playing (sound on) */
.fun-card.playing .fz-actor { animation-duration: .55s; }
.fun-card.playing .fz-flower { animation-duration: .8s; }
.fun-card.playing .fz-note { animation-duration: 1.2s; }
.fun-card.playing .fz-animal { animation-duration: 4s; }
.fun-card.playing .fz-rocket { animation-duration: 2.6s; }
.fun-card.playing .fun-scene { filter: saturate(1.2) brightness(1.03); }

@media (max-width: 820px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-tile.big { grid-column: span 2; grid-row: span 1; }
  .photo-tile.tall { grid-row: span 1; }
  .fun-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v13 — FORMS · TABS · STATUS · CONTACT CARDS · LEADER CONTACTS · MAP
   ========================================================================== */

/* ---------- TABS ---------- */
.tabs { max-width: 860px; margin: 0 auto; }
.tab-nav {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  background: #f3ece0; padding: 8px; border-radius: 16px; margin-bottom: 26px;
}
.tab-btn {
  border: none; cursor: pointer; background: transparent; color: #6a5640;
  padding: 11px 22px; border-radius: 11px; font-weight: 700; font-size: 14px;
  font-family: 'Inter', sans-serif; transition: all .2s ease;
}
.tab-btn:hover { color: var(--maroon); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); color: #fff;
  box-shadow: 0 6px 16px rgba(139,26,26,0.3);
}
.tab-panel { display: none; animation: tabFade .35s ease; }
.tab-panel.active { display: block; }
@keyframes tabFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- FORM CARD ---------- */
.form-card {
  background: #fff; border: 1px solid #ece4d6; border-radius: 20px;
  padding: 32px 34px; box-shadow: 0 16px 40px rgba(0,0,0,0.06); max-width: 760px; margin: 0 auto;
}
.form-title { font-size: 20px; color: var(--maroon); margin-bottom: 6px; }
.form-help { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.form-card .form-title + .form-row, .form-card .form-title + .form-group { margin-top: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .form-group { margin-bottom: 16px; }
.form-card .form-submit { margin-top: 8px; box-shadow: 0 8px 20px rgba(139,26,26,0.25); }

/* custom file field */
.file-field { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; width: 100%; }
.file-field input[type=file] { display: none; }
.file-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #4a2a00;
  font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 8px; white-space: nowrap;
}
.file-name { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* success message */
.form-msg {
  display: none; align-items: flex-start; gap: 12px; margin-top: 18px;
  background: #eafaf0; border: 1px solid #b7e6c8; border-left: 4px solid #1a9d4f;
  border-radius: 12px; padding: 16px 18px; color: #14502c; font-size: 14px; line-height: 1.6;
}
.form-msg.show { display: flex; }
.fm-ic { font-size: 20px; }

/* ---------- STATUS RESULT ---------- */
.status-result { display: none; margin-top: 20px; }
.status-result.show { display: block; animation: tabFade .3s ease; }
.status-head {
  background: var(--cream); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; font-size: 14px; color: var(--text); margin-bottom: 18px;
}
.status-track { display: flex; justify-content: space-between; position: relative; margin: 0 6px 18px; }
.status-track::before {
  content: ''; position: absolute; top: 15px; left: 6%; right: 6%; height: 3px;
  background: #e6dcc8; border-radius: 3px; z-index: 0;
}
.st-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; text-align: center; }
.st-dot {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #e6dcc8; color: #fff; font-size: 14px; font-weight: 800; border: 3px solid #fff; box-shadow: 0 0 0 1px #e6dcc8;
}
.st-step.done .st-dot { background: #1a9d4f; box-shadow: 0 0 0 1px #1a9d4f; }
.st-step.current .st-dot { background: var(--gold); box-shadow: 0 0 0 1px var(--gold); animation: pulseDot 1.4s ease-in-out infinite; }
@keyframes pulseDot { 0%,100%{transform:scale(1)} 50%{transform:scale(1.18)} }
.st-lbl { font-size: 12px; font-weight: 700; color: var(--text-muted); max-width: 90px; }
.st-step.done .st-lbl, .st-step.current .st-lbl { color: var(--maroon); }
.status-note { font-size: 12.5px; color: var(--text-muted); background: #fff8e8; border: 1px dashed #e0c98a; border-radius: 10px; padding: 12px 14px; line-height: 1.6; }

/* ---------- DOCUMENT UPLOAD CARDS ---------- */
.doc-upload-hint { font-size: 12.5px; color: var(--text-muted); margin: -4px 0 14px; }
.doc-upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc-upload-card { position: relative; }
.doc-upload-card input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.duc-drop {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; cursor: pointer;
  border: 2px dashed #e0d6c2; border-radius: 14px; padding: 18px 14px; background: #fcfaf6;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.duc-drop:hover { border-color: var(--gold); background: #fff9ec; }
.duc-drop.dragover { border-color: var(--maroon); background: #fdf2ee; transform: scale(1.015); }
.duc-icon { font-size: 30px; margin-bottom: 2px; }
.duc-title { font-size: 13.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center; }
.duc-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; }
.duc-tag.req { background: rgba(139,26,26,0.1); color: var(--maroon); }
.duc-tag.opt { background: rgba(107,107,107,0.12); color: #6a6a6a; }
.duc-hint { font-size: 11px; color: var(--text-muted); }
.duc-status { font-size: 12px; font-weight: 700; color: var(--gold-light); margin-top: 2px; }
.doc-upload-card.has-file .duc-drop { border-color: #1a9d4f; background: #f1fbf5; border-style: solid; }
.doc-upload-card.has-file .duc-status { color: #1a9d4f; }
.doc-upload-card.error .duc-drop { border-color: #c0392b; background: #fdf2f1; border-style: solid; }
.doc-upload-card.error .duc-status { color: #c0392b; }
.duc-preview { width: 100%; margin-top: 8px; }
.duc-preview:empty { display: none; }
.duc-thumb { width: 100%; max-height: 96px; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.duc-file-chip {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e6dcc8; border-radius: 10px;
  padding: 7px 10px; font-size: 11.5px; color: var(--text); text-align: left;
}
.duc-file-chip .dfc-ic { font-size: 16px; flex-shrink: 0; }
.duc-file-chip .dfc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.duc-remove {
  border: none; background: rgba(139,26,26,0.1); color: var(--maroon); width: 20px; height: 20px; border-radius: 50%;
  cursor: pointer; font-size: 11px; flex-shrink: 0; line-height: 1;
}
.duc-remove:hover { background: rgba(139,26,26,0.2); }
@media (max-width: 640px) { .doc-upload-grid { grid-template-columns: 1fr; } }

/* ---------- ADMISSION STATUS TRACKER (real data, beautiful design) ---------- */
.atrack-card {
  background: linear-gradient(180deg, #fffdf8 0%, #fff 60%); border: 1px solid #ece4d6; border-radius: 20px;
  padding: 28px 26px; box-shadow: 0 16px 40px rgba(0,0,0,0.07); position: relative; overflow: hidden;
}
.atrack-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--maroon), var(--gold), var(--maroon));
}
.atrack-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.atrack-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); box-shadow: 0 8px 18px rgba(139,26,26,0.3);
  font-family: 'Playfair Display', serif;
}
.atrack-name { font-family: 'Playfair Display', serif; font-size: 19px; color: #2a2018; }
.atrack-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.atrack-meta b { color: var(--maroon); }
.atrack-status-badge { margin-left: auto; font-size: 12.5px; font-weight: 800; padding: 7px 16px; border-radius: 30px; letter-spacing: .3px; }
.atrack-status-badge.ok { background: rgba(26,157,79,0.12); color: #1a9d4f; }
.atrack-status-badge.pending { background: rgba(201,152,42,0.16); color: #8a6611; }
.atrack-status-badge.rejected { background: rgba(192,57,43,0.12); color: #c0392b; }

.atrack-steps { display: flex; justify-content: space-between; position: relative; margin: 10px 4px 26px; }
.atrack-steps::before { content: ''; position: absolute; top: 19px; left: 5%; right: 5%; height: 3px; background: #e6dcc8; border-radius: 3px; z-index: 0; }
.atrack-steps.is-rejected::before { background: linear-gradient(90deg, #1a9d4f 0%, #1a9d4f 35%, #c0392b 35%, #c0392b 100%); }
.atrack-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; text-align: center; }
.atrack-dot {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 3px solid #e6dcc8; font-size: 16px; color: #b8ac94; transition: all .2s ease;
}
.atrack-step.done .atrack-dot { border-color: #1a9d4f; background: #1a9d4f; color: #fff; }
.atrack-step.current .atrack-dot { border-color: var(--gold); background: var(--gold); color: #fff; animation: pulseDot 1.4s ease-in-out infinite; }
.atrack-step.rejected .atrack-dot { border-color: #c0392b; background: #c0392b; color: #fff; }
.atrack-lbl { font-size: 11px; font-weight: 700; color: #b8ac94; max-width: 84px; line-height: 1.3; }
.atrack-step.done .atrack-lbl, .atrack-step.current .atrack-lbl, .atrack-step.rejected .atrack-lbl { color: var(--maroon); }
.atrack-date { font-size: 9.5px; color: var(--text-muted); }

.atrack-docs { margin-bottom: 18px; }
.atrack-docs h4 { font-size: 12.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; font-weight: 700; }
.atrack-doc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.atrack-doc-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #f1fbf5; border: 1px solid #c9e9d4; color: #146a36;
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 20px; text-decoration: none; cursor: pointer;
}
.atrack-doc-chip:hover { background: #e3f7e9; }
.atrack-doc-empty { font-size: 12px; color: var(--text-muted); font-style: italic; }

.atrack-note-box {
  background: #f6f1e6; border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 16px; font-size: 13px;
  color: #4a3a28; margin-bottom: 16px; line-height: 1.6;
}
.atrack-not-found {
  text-align: center; padding: 30px 20px; background: #fdf2f1; border: 1px dashed #e0a89e; border-radius: 16px; color: #7a2e24;
}
.atrack-not-found .anf-ic { font-size: 36px; margin-bottom: 10px; display: block; }

.atrack-confirm-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg, #eafaf0, #f1fbf5); border: 1px solid #b7e6c8; border-left: 4px solid #1a9d4f;
  border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; font-size: 13.5px; color: #14502c; line-height: 1.5;
}
.atrack-confirm-box .ra-btn { white-space: nowrap; }

@media (max-width: 560px) {
  .atrack-steps { flex-wrap: wrap; row-gap: 18px; }
  .atrack-steps::before { display: none; }
  .atrack-step { flex: 0 0 30%; }
}

/* ---------- CONTACT: ADDRESS BOXES ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 20px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(139,26,26,0.12); border-color: var(--gold); }
.cc-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px;
  border-radius: 50%; font-size: 28px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); color: #fff;
  box-shadow: 0 8px 20px rgba(139,26,26,0.28);
}
.contact-card h3 { color: var(--maroon); margin-bottom: 6px; font-size: 16px; }
.contact-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.contact-card a { color: var(--text-muted); }
.contact-card a:hover { color: var(--maroon); }
.cc-note { display: block; font-size: 11.5px; color: var(--text-muted); opacity: .85; margin-top: 4px; line-height: 1.5; }

/* ---------- CONTACT: LEADER CONTACTS ---------- */
.leader-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; max-width: 1180px; margin: 0 auto; }
.leader-contact {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 22px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.leader-contact:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(139,26,26,0.12); border-color: var(--gold); }
.lc-avatar {
  width: 78px; height: 78px; border-radius: 50%; font-size: 38px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); border: 3px solid var(--gold);
  box-shadow: 0 8px 20px rgba(139,26,26,0.3);
}
.leader-contact h3 { color: var(--maroon); font-size: 18px; }
.lc-role { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px; }
.lc-link {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 5px 0;
  background: var(--cream); border: 1px solid var(--border); border-radius: 30px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 700; color: var(--maroon); transition: all .2s ease;
}
.lc-link:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* ---------- CONTACT: MESSAGE + MAP ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 1100px; margin: 0 auto; align-items: start; }
.contact-split .form-card { max-width: none; }
.map-wrap { background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.06); }
.map-fallback { padding: 14px 20px; background: var(--cream); font-size: 13px; color: var(--text-muted); text-align: center; }
.map-fallback a { color: var(--maroon); font-weight: 700; }
.map-meta { padding: 20px 22px 16px; }
.map-meta strong { color: var(--maroon); font-size: 15px; }
.map-meta p { font-size: 13px; color: var(--text-muted); margin: 6px 0 10px; line-height: 1.6; }
.map-open { color: var(--gold); font-weight: 700; font-size: 13px; }
.map-open:hover { color: var(--maroon); }
.map-frame { width: 100%; height: 340px; border: 0; display: block; border-top: 1px solid var(--border); }

@media (max-width: 900px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .leader-contact-grid { grid-template-columns: 1fr; max-width: 420px; }
  .contact-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .st-lbl { font-size: 10.5px; }
}

/* ==========================================================================
   v14 — CHOICE-CARD LANDINGS (careers · admission · parent portal)
   ========================================================================== */
.choice-section { }
.portal-intro { text-align: center; max-width: 780px; margin: 0 auto 38px; }
.pi-badge {
  display: inline-block; background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 8px 22px; border-radius: 30px; margin-bottom: 18px;
}
.portal-intro h1 { font-family: 'Playfair Display', serif; font-size: 46px; color: #2a2018; line-height: 1.12; margin-bottom: 10px; }
.portal-intro h1 .accent { color: var(--maroon); }
.portal-intro .pi-sub { color: var(--text-muted); font-size: 15px; letter-spacing: .6px; line-height: 1.7; }
.pi-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0 16px; color: var(--gold); font-size: 14px; }
.pi-divider::before, .pi-divider::after { content: ''; width: 70px; height: 1px; }
.pi-divider::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.pi-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }

.choice-grid { display: grid; gap: 24px; max-width: 1060px; margin: 0 auto; }
.choice-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid.cols-5 { grid-template-columns: repeat(5, 1fr); max-width: 1180px; gap: 18px; }
.choice-card {
  background: #fdfaf4; border: 1px solid #ece2d0; border-radius: 18px; padding: 40px 30px 34px;
  text-align: center; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.choice-card:hover { transform: translateY(-7px); box-shadow: 0 22px 46px rgba(139,26,26,0.14); border-color: var(--accent, var(--gold)); }
.choice-card.bar { border-top: 4px solid var(--accent, var(--gold)); }
.choice-ic {
  width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 18px; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent, var(--maroon)) 13%, #fff);
  color: var(--accent, var(--maroon));
}
.choice-card h3 { font-family: 'Playfair Display', serif; font-size: 23px; color: #2a2018; margin-bottom: 10px; }
.choice-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.choice-grid.cols-3 .choice-card p, .choice-grid.cols-2 .choice-card p { min-height: 84px; }
.choice-link { color: var(--accent, var(--maroon)); font-weight: 700; font-size: 15px; font-family: 'Playfair Display', serif; }
.choice-card:hover .choice-link { letter-spacing: .3px; }
.choice-btn {
  display: block; width: 100%; padding: 13px; border-radius: 10px; font-weight: 700; font-size: 15px; color: #fff;
  background: var(--accent, var(--maroon));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent, var(--maroon)) 32%, transparent);
  transition: filter .2s ease;
}
.choice-card.bar:hover .choice-btn { filter: brightness(1.08); }

.choice-grid.cols-5 .choice-card { padding: 26px 18px 22px; }
.choice-grid.cols-5 .choice-ic { width: 58px; height: 58px; font-size: 26px; margin-bottom: 12px; }
.choice-grid.cols-5 .choice-link { font-size: 13px; }

/* ---- Gated (open/closed) form cards, controlled by an admin toggle switch ---- */
.choice-card.gate-closed { opacity: 0.55; filter: grayscale(0.4); cursor: not-allowed; }
.choice-card.gate-closed:hover { transform: none; box-shadow: none; border-color: #ece2d0; }
.choice-card.gate-closed .choice-btn, .choice-card.gate-closed .choice-link { background: #9ca3af !important; box-shadow: none !important; color: #fff !important; }
.form-closed-toast {
  max-width: 640px; margin: 0 auto 22px; background: #fff4f4; border: 1px solid #f3c8c8;
  color: #8a1f1f; padding: 12px 18px; border-radius: 12px; font-size: 13.5px; text-align: center;
  font-weight: 600; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .25s ease, max-height .25s ease;
}
.form-closed-toast.show { opacity: 1; max-height: 80px; }

/* revealed panels */
.choice-panels { display: none; max-width: 860px; margin: 6px auto 0; }
.choice-panels.show { display: block; animation: tabFade .35s ease; }
.choice-panel { display: none; }
.choice-panel.active { display: block; }
.panel-back {
  background: none; border: none; cursor: pointer; color: var(--maroon); font-weight: 700; font-size: 14px;
  margin-bottom: 16px; display: inline-flex; align-items: center; gap: 6px;
}
.panel-back:hover { text-decoration: underline; }

/* fee result table */
.fee-result { display: none; margin-top: 20px; }
.fee-result.show { display: block; animation: tabFade .3s ease; }
.fee-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.fee-table th { background: var(--maroon); color: #fff; text-align: left; padding: 11px 14px; font-size: 12.5px; }
.fee-table td { padding: 11px 14px; border-top: 1px solid var(--border); }
.fee-table tr:nth-child(even) td { background: #faf6ef; }
.fee-table .ftot td { font-weight: 800; background: #f3ece0; }
.fee-table .paid { color: #1a9d4f; font-weight: 700; }
.fee-table .due { color: #c0202a; font-weight: 700; }
.fee-table .partial { color: #b45309; font-weight: 700; }

@media (max-width: 1000px) {
  .choice-grid.cols-5 { grid-template-columns: repeat(3, 1fr); max-width: 700px; }
}
@media (max-width: 880px) {
  .choice-grid.cols-3 { grid-template-columns: 1fr; max-width: 440px; }
  .choice-grid.cols-2 { grid-template-columns: 1fr; max-width: 440px; }
  .choice-grid.cols-5 { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
  .choice-grid .choice-card p { min-height: 0; }
  .portal-intro h1 { font-size: 34px; }
}
@media (max-width: 480px) {
  .choice-grid.cols-5 { grid-template-columns: 1fr; max-width: 320px; }
}

/* ==========================================================================
   v15 — PROFESSIONAL FORMS · ACKNOWLEDGEMENT RECEIPT · PRINT/PDF/TRACK
   ========================================================================== */

/* professional form shell */
.pro-form {
  background: #fff; border: 1px solid #ece4d6; border-radius: 20px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.07); max-width: 780px; margin: 0 auto; overflow: hidden;
}
.pf-head {
  display: flex; align-items: center; gap: 16px; padding: 22px 30px;
  background: linear-gradient(120deg, #2d0a4a 0%, #6b1010 60%, #8b1a1a 100%); color: #fff;
}
.pf-head-ic {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; font-size: 24px;
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.16);
}
.pf-head-txt h3 { font-family: 'Playfair Display', serif; font-size: 21px; margin: 0; }
.pf-head-txt p { font-size: 12.5px; color: rgba(255,255,255,0.85); margin: 2px 0 0; }
.pf-section {
  border: none; border-top: 1px solid #f0e8da; margin: 0; padding: 22px 30px 6px;
}
.pf-section:first-of-type { border-top: none; }
.pf-section legend {
  font-weight: 800; font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--maroon); padding: 0; margin-bottom: 14px;
}
.field-hint { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }
.pf-actions {
  display: flex; gap: 12px; justify-content: flex-end; align-items: center;
  padding: 18px 30px 26px; border-top: 1px solid #f0e8da; flex-wrap: wrap;
}
.pf-actions .pf-submit { width: auto; min-width: 220px; padding: 13px 28px; }
.btn-soft {
  background: #f3ece0; color: #6a5640; border: none; border-radius: 8px; cursor: pointer;
  padding: 12px 20px; font-weight: 700; font-size: 14px; font-family: 'Inter', sans-serif; transition: background .2s ease;
}
.btn-soft:hover { background: #e9ddc8; }

/* keep status/fee results spaced inside pro-form */
.pro-form .status-result, .pro-form .fee-result { padding: 0 30px 26px; }
.pro-form .form-msg { margin: 0 30px 24px; }

/* ---------- ACKNOWLEDGEMENT RECEIPT ---------- */
.receipt { display: none; }
.receipt.show { display: block; animation: tabFade .35s ease; }
.rc-card {
  background: #fff; border: 1px solid #e6dcc8; border-radius: 18px; overflow: hidden;
  box-shadow: 0 16px 44px rgba(0,0,0,0.08); max-width: 780px; margin: 0 auto;
}
.rc-top {
  display: flex; align-items: center; gap: 14px; padding: 20px 26px;
  background: linear-gradient(120deg, #1a7a3a 0%, #0e7a5a 100%); color: #fff;
}
.rc-logo { width: 48px; height: 48px; border-radius: 50%; background: #fff; padding: 2px; flex-shrink: 0; }
.rc-head-txt { flex: 1; line-height: 1.3; }
.rc-head-txt strong { font-size: 15px; display: block; }
.rc-head-txt span { font-size: 12px; color: rgba(255,255,255,0.9); }
.rc-badge { background: rgba(255,255,255,0.2); border-radius: 30px; padding: 6px 14px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rc-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 16px 26px 0; font-size: 13px; color: var(--text); }
.rc-meta b { color: var(--maroon); }
.rc-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.rc-table td { padding: 10px 26px; border-top: 1px solid #f0e8da; vertical-align: top; }
.rc-table .rc-k { color: var(--text-muted); font-weight: 600; width: 42%; }
.rc-table .rc-v { color: var(--text); font-weight: 600; }
.rc-note { font-size: 12.5px; color: var(--text-muted); background: #fff8e8; border: 1px dashed #e0c98a; border-radius: 10px; padding: 12px 14px; margin: 0 26px; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 26px 24px; }
.ra-btn {
  border: none; cursor: pointer; border-radius: 9px; padding: 11px 18px; font-weight: 700; font-size: 13.5px;
  font-family: 'Inter', sans-serif; display: inline-flex; align-items: center; gap: 6px; transition: transform .15s ease, filter .2s ease;
}
.ra-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.ra-btn.print { background: #efe9dd; color: #4a3a28; }
.ra-btn.pdf { background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); color: #fff; }
.ra-btn.track { background: linear-gradient(135deg, #1a5fa8, #2f7bcc); color: #fff; }
.ra-btn.again { background: #f3ece0; color: #6a5640; }

/* ---------- PRINT ---------- */
@media print {
  body * { visibility: hidden !important; }
  .print-target, .print-target * { visibility: visible !important; }
  .print-target { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none !important; border: none !important; }
  .receipt-actions { display: none !important; }
  .rc-top { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 560px) {
  .pf-actions { justify-content: stretch; }
  .pf-actions .pf-submit, .pf-actions .btn-soft { width: 100%; }
  .rc-table .rc-k { width: 46%; }
}

/* ==========================================================================
   v16 — WISDOM PAGE: featured quote · great minds gallery · wisdom videos
   ========================================================================== */

/* rotating featured quote */
.wisdom-featured {
  background: linear-gradient(120deg, #2d0a4a 0%, #4a0060 55%, #6b1010 100%);
  color: #fff; text-align: center; padding: 48px 30px; position: relative; overflow: hidden;
}
.wisdom-featured::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 82% 20%, rgba(201,152,42,0.2), transparent 45%); }
.wf-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.wf-mark { font-family: 'Playfair Display', serif; font-size: 70px; color: var(--gold); line-height: 0.4; display: block; height: 36px; }
.wf-quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 28px; line-height: 1.45; min-height: 80px; transition: opacity .5s ease; }
.wf-attr { color: var(--gold-light); font-weight: 700; margin-top: 12px; letter-spacing: .5px; transition: opacity .5s ease; }
.wf-quote.fading, .wf-attr.fading { opacity: 0; }

.wisdom-tabs { max-width: 1120px; }
.wisdom-note { text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: 20px; }

/* ---------- GREAT MINDS GALLERY ---------- */
.minds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1120px; margin: 0 auto; }
.mind-card {
  background: #fff; border: 1px solid #ece4d6; border-radius: 20px; padding: 30px 24px 26px;
  text-align: center; position: relative; overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.mind-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 64px;
  background: linear-gradient(120deg, var(--g1), var(--g2)); opacity: .12;
}
.mind-card:hover { transform: translateY(-7px); box-shadow: 0 22px 46px rgba(0,0,0,0.12); border-color: var(--g2); }
.mind-portrait {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--g2) 45%, transparent); border: 4px solid #fff;
}
.mind-initials { color: #fff; font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; letter-spacing: 1px; }
.mind-card h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: #2a2018; margin-bottom: 4px; }
.mind-role { display: block; font-size: 12px; color: var(--g2); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.mind-quote { font-style: italic; font-size: 14.5px; color: var(--text); line-height: 1.6; }
.mind-q-mark { color: var(--gold); font-weight: 800; font-style: normal; }

/* ---------- WISDOM VIDEOS ---------- */
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1120px; margin: 0 auto; }
.video-card {
  display: block; background: #fff; border: 1px solid #ece4d6; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06); transition: transform .25s ease, box-shadow .25s ease;
}
.video-card:hover { transform: translateY(-6px); box-shadow: 0 20px 42px rgba(139,26,26,0.16); }
.video-thumb {
  position: relative; height: 160px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--g1), var(--g2));
}
.video-thumb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 25%, rgba(255,255,255,0.18), transparent 50%); }
.vt-ic { font-size: 52px; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3)); position: relative; z-index: 1; }
.vt-play {
  position: absolute; z-index: 2; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--g1); font-size: 20px; padding-left: 4px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform .25s ease;
}
.video-card:hover .vt-play { transform: scale(1.12); }
.video-info { padding: 16px 18px 18px; }
.video-info h4 { font-size: 16px; color: var(--maroon); margin-bottom: 3px; }
.vi-sub { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.vi-link { font-size: 13px; font-weight: 700; color: var(--maroon); }
.video-card:hover .vi-link { color: var(--gold); }
.video-card .video-player { width: 100%; height: 160px; display: block; background: #000; object-fit: cover; }
.vi-uploaded { display: block; font-size: 11.5px; font-weight: 700; color: var(--green, #0e7a5a); margin-top: 2px; }

@media (max-width: 920px) {
  .minds-grid, .videos-grid { grid-template-columns: 1fr 1fr; }
  .wf-quote { font-size: 22px; }
}
@media (max-width: 580px) {
  .minds-grid, .videos-grid { grid-template-columns: 1fr; }
  .wf-quote { font-size: 19px; }
}

/* ==========================================================================
   v17 — ADMIN PANEL (standalone page)
   ========================================================================== */
.admin-body { background: #f4eee3; min-height: 100vh; }

/* login gate */
.admin-gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(135deg, #2d0a4a 0%, #4a0060 50%, #6b1010 100%); }
.admin-login-card {
  background: #fff; width: 100%; max-width: 400px; border-radius: 20px; padding: 36px 34px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.admin-logo { width: 84px; height: 84px; border-radius: 50%; background: #fff; padding: 3px;
  box-shadow: 0 0 0 3px var(--gold); margin-bottom: 14px; }
.admin-login-card h1 { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--maroon); }
.admin-login-card .al-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 22px; }
.admin-login-card .form-group { text-align: left; }
.admin-login-card .form-submit { margin-top: 6px; }
.adm-error { color: #c0202a; font-size: 13px; font-weight: 600; margin-top: 12px; min-height: 18px; }
.admin-back-link { display: inline-block; margin-top: 14px; color: var(--text-muted); font-size: 13px; }
.admin-back-link:hover { color: var(--maroon); }

/* dashboard */
.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(120deg, #2d0a4a, #6b1010); color: #fff; padding: 14px 30px; flex-wrap: wrap;
}
.admin-brand { display: flex; align-items: center; gap: 12px; }
.admin-brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 2px; }
.admin-brand strong { display: block; font-size: 15px; }
.admin-brand span { font-size: 12px; color: rgba(255,255,255,0.8); }
.admin-top-actions { display: flex; align-items: center; gap: 10px; }
.admin-link { color: #fff; font-size: 13px; font-weight: 600; background: rgba(255,255,255,0.14); padding: 8px 14px; border-radius: 8px; }
.admin-link:hover { background: rgba(255,255,255,0.24); }
.admin-logout { background: var(--gold); color: #4a2a00; border: none; border-radius: 8px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.admin-logout:hover { filter: brightness(1.06); }

.admin-tabs { display: flex; gap: 6px; background: #fff; padding: 10px 30px; border-bottom: 1px solid #e6dcc8; flex-wrap: wrap; overflow-x: auto; }
.admin-tab { border: none; background: transparent; cursor: pointer; padding: 10px 16px; border-radius: 9px; font-weight: 700; font-size: 14px; color: #6a5640; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.admin-tab:hover { background: var(--cream); }
.admin-tab.active { background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); color: #fff; }
.admin-tab .badge { background: rgba(0,0,0,0.18); color: #fff; border-radius: 20px; font-size: 11px; padding: 1px 8px; }
.admin-tab:not(.active) .badge { background: #e6dcc8; color: #6a5640; }

.admin-main { max-width: 1000px; margin: 0 auto; padding: 28px 24px 60px; }
.admin-panel { display: none; animation: tabFade .3s ease; }
.admin-panel.active { display: block; }
.ap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ap-head h2 { font-family: 'Playfair Display', serif; color: var(--maroon); font-size: 24px; }
.ap-actions { display: flex; gap: 8px; }
.ap-note { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.abtn { border: none; cursor: pointer; border-radius: 8px; padding: 9px 16px; font-weight: 700; font-size: 13px; background: var(--maroon); color: #fff; }
.abtn:hover { filter: brightness(1.07); }
.abtn.ghost { background: #efe7d8; color: #6a5640; }
.abtn.danger { background: #fdecec; color: #c0202a; }

.card-list { display: flex; flex-direction: column; gap: 14px; }
.empty { background: #fff; border: 1px dashed #d9c9a8; border-radius: 14px; padding: 30px; text-align: center; color: var(--text-muted); }
.data-card { background: #fff; border: 1px solid #e6dcc8; border-radius: 14px; padding: 16px 18px; box-shadow: 0 6px 16px rgba(0,0,0,0.05); }
.dc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.dc-tag { font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .4px; }
.tag-msg { background: #eafaf0; color: #14502c; }
.tag-app { background: #e3f0fd; color: #14406a; }
.dc-ref { font-size: 12px; font-weight: 700; color: var(--maroon); background: var(--cream); padding: 3px 10px; border-radius: 6px; }
.dc-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.dc-del { border: none; background: #fdecec; color: #c0202a; border-radius: 7px; cursor: pointer; padding: 5px 9px; font-size: 13px; }
.dc-del:hover { background: #f9d7d7; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table td { padding: 6px 10px; border-top: 1px solid #f0e8da; vertical-align: top; }
.mini-table td:first-child { color: var(--text-muted); font-weight: 600; width: 38%; }
.mini-table td:last-child { color: var(--text); font-weight: 600; }

.notice-row { display: flex; align-items: center; gap: 12px; }
.nr-tag { font-size: 18px; }
.nr-title { font-weight: 600; flex: 1; }
.notice-form { background: #fff; border: 1px solid #e6dcc8; border-radius: 14px; padding: 20px; }

.settings-card { background: #fff; border: 1px solid #e6dcc8; border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.settings-card h3 { color: var(--maroon); margin-bottom: 10px; font-size: 17px; }
.settings-card p, .settings-card li { font-size: 13.5px; color: var(--text); line-height: 1.6; }
.settings-card ul { margin: 8px 0 0 18px; }
.settings-card code { background: var(--cream); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; color: var(--maroon); }
.hash-out { margin-top: 14px; font-size: 13px; color: var(--text); }
.hash-val { display: inline-block; margin-top: 6px; word-break: break-all; background: #2a2018; color: #ffd; padding: 8px 10px; border-radius: 8px; font-size: 12px; }
.admin-foot { text-align: center; font-size: 12px; color: var(--text-muted); padding: 20px; border-top: 1px solid #e6dcc8; }

@media (max-width: 600px) { .admin-main { padding: 20px 14px 50px; } .admin-top { padding: 12px 16px; } .admin-tabs { padding: 8px 12px; } }

/* ---------- HOMEPAGE CONTENT MANAGER (admin) ---------- */
.home-subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 18px; }
.home-subtab { border: 1px solid #e6dcc8; background: #fff; cursor: pointer; padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 13px; color: #6a5640; }
.home-subtab:hover { background: var(--cream); }
.home-subtab.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.home-subpanel { display: none; }
.home-subpanel.active { display: block; }
.home-block-label { font-size: 14px; color: var(--maroon); margin: 18px 0 10px; }

.list-editor-row { background: #fffaf0; border: 1px solid #e6dcc8; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.list-editor-row .row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.list-editor-row .row-head strong { color: var(--maroon-dark); font-size: 13.5px; }

.img-upload-row { display: flex; align-items: center; gap: 16px; margin: 10px 0 16px; flex-wrap: wrap; }
.img-preview, .slide-img-preview .img-preview {
  width: 96px; height: 68px; border-radius: 8px; border: 1px dashed #cdbf9e;
  display: flex; align-items: center; justify-content: center; background: #f5f1e8;
  font-size: 24px; color: #a89a78; overflow: hidden; flex-shrink: 0;
}
.img-preview.empty { font-size: 12px; text-align: center; padding: 4px; }
.img-preview-img, video.img-preview-img { width: 96px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid #e6dcc8; display: block; }
.slide-img-preview { flex-shrink: 0; }

.save-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.save-msg { font-size: 13px; font-weight: 600; color: #0e7a5a; }

/* ---------- HOMEPAGE: custom slide images & happy-learning animation ---------- */
.slide-art .slide-img {
  width: 280px; height: 280px; object-fit: cover; border-radius: 24px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.32);
}
.happy-custom-media {
  max-width: 1000px; margin: 10px auto 0; border-radius: 22px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.happy-custom-media img, .happy-custom-media video { width: 100%; max-height: 460px; object-fit: cover; display: block; }

@media (max-width: 768px) {
  .slide-art .slide-img { width: 160px; height: 160px; }
  .img-upload-row { gap: 10px; }
}

/* =========================================================
   About Page Admin — Extra Styles
   ========================================================= */
.portrait-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.team-card .team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
[data-aboutpanel] { display: none; }
[data-aboutpanel].active { display: block; }

/* =========================================================
   Enhanced Notices — Filter Buttons & Board
   ========================================================= */
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
}
.filter-btn:hover,
.filter-btn.active-filter {
  background: var(--green, #2d7a4f);
  color: #fff;
  border-color: var(--green, #2d7a4f);
  font-weight: 600;
}
.notice-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.notice-item:last-child { border-bottom: none; }
.notice-date {
  min-width: 44px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--maroon, #8b1a1a);
  line-height: 1.3;
  background: #fdf5f5;
  border-radius: 6px;
  padding: 6px 4px;
}
.notice-text { font-size: 14px; color: var(--text); line-height: 1.5; }
.notice-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--gold-light, #fef9ec);
  color: var(--gold, #b8860b);
  border: 1px solid var(--gold, #b8860b);
  margin-top: 6px;
}

/* Admin notices attachment preview */
#nt-attach-preview { min-height: 80px; display: flex; align-items: center; justify-content: center; }

/* ===== HOME PAGE IMAGE SIDEBAR ===== */
.slider-with-sidebar { display: flex; gap: 0; overflow: hidden; }
.slider-with-sidebar .slider { flex: 1; min-width: 0; }
.img-sidebar {
  width: 88px;
  background: #1a0a2a;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.img-sidebar-thumb {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border-radius: 4px;
  transition: transform .2s ease, opacity .2s ease;
}
.img-sidebar-thumb:hover { transform: scale(1.04); opacity: .9; }
.img-sidebar-thumb.active-thumb { outline: 2px solid rgba(255,255,255,0.7); }
.img-sidebar-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.img-sidebar-thumb .sidebar-emoji {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 28px;
  background: rgba(255,255,255,0.08);
}
@media (max-width: 700px) {
  .img-sidebar { display: none; }
}

/* ===== STUDENT LIFE DYNAMIC SECTIONS ===== */
.sl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.sl-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f3ece0;
  cursor: pointer;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sl-gallery-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(139,26,26,.14); }
.sl-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-gallery-item .sl-gal-emoji {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 48px;
}
.sl-gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 18px 10px 8px;
  opacity: 0; transition: opacity .2s ease;
}
.sl-gallery-item:hover figcaption { opacity: 1; }

/* ===== DONATION PAGE ===== */
.donate-hero { background: linear-gradient(135deg, var(--purple-dark) 0%, var(--maroon-dark) 55%, var(--maroon) 100%); position: relative; }
.donate-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(201,152,42,0.28), transparent 40%),
              radial-gradient(circle at 88% 78%, rgba(107,31,138,0.35), transparent 45%);
  pointer-events: none;
}
.donate-hero-icon { width: 62px; height: 62px; margin: 0 auto 14px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.3)); animation: donateBeat 2.4s ease-in-out infinite; }
@keyframes donateBeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ---- Impact visual — animated orbit graphic (replaces stats strip / tier cards) ---- */
.donate-orbit-section { text-align: center; padding: 34px 20px 8px; position: relative; }
.donate-orbit-wrap { position: relative; width: 300px; height: 300px; margin: 10px auto 26px; }
.dorb-spark { position: absolute; font-size: 20px; opacity: .8; animation: dorbFloat 4s ease-in-out infinite; z-index: 0; }
@keyframes dorbFloat { 0%,100% { transform: translateY(0) scale(1); opacity:.6; } 50% { transform: translateY(-14px) scale(1.15); opacity:1; } }

.donate-orbit-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--gold));
  display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff;
  box-shadow: 0 10px 30px rgba(139,26,26,0.4); z-index: 2;
  animation: coreBeat 2.4s ease-in-out infinite;
}
.donate-orbit-core::before, .donate-orbit-core::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(201,152,42,0.55);
  animation: ringPulse 2.6s ease-out infinite;
}
.donate-orbit-core::after { animation-delay: 1.3s; }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes coreBeat { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.08); } }

.donate-orbit-ring { position: absolute; inset: 0; animation: orbitSpin 22s linear infinite; z-index: 1; }
.donate-orbit-item {
  position: absolute; width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  animation: orbitSpinReverse 22s linear infinite;
}
@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbitSpinReverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

.donate-orbit-title { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--maroon-dark); max-width: 620px; margin: 0 auto 10px; line-height: 1.35; }
.donate-orbit-sub { font-size: 14px; color: var(--text-muted); max-width: 480px; margin: 0 auto; line-height: 1.7; }

@media (max-width: 640px) {
  .donate-orbit-wrap { width: 230px; height: 230px; }
  .donate-orbit-item { width: 46px; height: 46px; font-size: 20px; }
  .donate-orbit-core { width: 78px; height: 78px; font-size: 32px; }
  .donate-orbit-title { font-size: 21px; }
}

/* ---- The "Giving Ticket" signature component ---- */
.donate-ticket-wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.donate-ticket {
  display: flex; background: #fff; border-radius: 22px; overflow: visible;
  box-shadow: 0 24px 60px -20px rgba(74,0,96,0.35), 0 4px 18px rgba(0,0,0,0.06);
  position: relative;
}
.dt-panel { padding: 34px 34px; }
.dt-bank {
  flex: 1.15; background: linear-gradient(160deg, #fff 0%, var(--cream) 100%);
  border-radius: 22px 0 0 22px; position: relative;
}
.dt-qr {
  flex: 0.85; background: linear-gradient(160deg, var(--purple-dark) 0%, var(--purple) 100%);
  border-radius: 0 22px 22px 0; color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.dt-divider {
  width: 0; border-left: 2px dashed rgba(0,0,0,0.15); position: relative; flex-shrink: 0;
}
.dt-divider::before, .dt-divider::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; background: var(--white); border-radius: 50%;
}
.dt-divider::before { top: -15px; }
.dt-divider::after { bottom: -15px; }

.dt-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.dt-bank h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--maroon-dark); margin-bottom: 18px; }
.dt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.dt-row:last-of-type { border-bottom: none; }
.dt-row-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); }
.dt-row-val { font-size: 14.5px; font-weight: 700; color: var(--text); font-family: 'Inter', monospace; letter-spacing: .3px; text-align: right; }
.dt-copy {
  border: none; background: rgba(139,26,26,0.08); color: var(--maroon); border-radius: 8px;
  width: 30px; height: 30px; font-size: 13px; cursor: pointer; flex-shrink: 0; transition: background .15s, transform .15s;
}
.dt-copy:hover { background: rgba(139,26,26,0.16); transform: translateY(-1px); }
.dt-copy.copied { background: var(--maroon); color: #fff; }

.dt-qr-badge { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 10px; }
.dt-qr-box { background: #fff; padding: 12px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.dt-qr-box img { width: 168px; height: 168px; display: block; border-radius: 6px; }
.dt-qr h4 { font-family: 'Playfair Display', serif; font-size: 18px; margin: 16px 0 4px; }
.dt-qr-upi { font-size: 13px; opacity: .9; font-family: monospace; background: rgba(255,255,255,0.12); padding: 6px 14px; border-radius: 20px; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.dt-qr-upi .dt-copy { background: rgba(255,255,255,0.18); color: #fff; }
.dt-qr-upi .dt-copy:hover { background: rgba(255,255,255,0.3); }
.dt-qr-note { font-size: 11.5px; opacity: .75; margin-top: 12px; max-width: 220px; line-height: 1.5; }

@media (max-width: 760px) {
  .donate-ticket { flex-direction: column; }
  .dt-bank, .dt-qr { border-radius: 22px 22px 0 0; }
  .dt-qr { border-radius: 0 0 22px 22px; padding: 30px 24px; }
  .dt-divider { width: auto; height: 0; border-left: none; border-top: 2px dashed rgba(255,255,255,0.35); margin: 0 24px; }
  .dt-divider::before, .dt-divider::after { top: 50%; transform: translateY(-50%); }
  .dt-divider::before { left: -15px; }
  .dt-divider::after { left: auto; right: -15px; }
  .dt-panel { padding: 26px 20px; }
  /* Label above value instead of squeezed side-by-side — much easier to read on a phone */
  .dt-row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 0; }
  .dt-row-val { text-align: left; font-size: 15.5px; word-break: break-word; }
  .dt-row-val[style*="display:flex"] { width: 100%; justify-content: space-between; }
}

.donate-note {
  max-width: 760px; margin: 0 auto; background: var(--cream); border-left: 4px solid var(--gold);
  border-radius: 14px; padding: 22px 26px; font-size: 13.5px; color: var(--text-muted); line-height: 1.8;
  text-align: center;
}
.donate-note strong { color: var(--maroon); }

.donate-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--maroon-dark); color: #fff; padding: 12px 24px; border-radius: 30px;
  font-size: 13px; font-weight: 600; box-shadow: 0 10px 26px rgba(0,0,0,0.3);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 999;
}
.donate-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .dt-panel { padding: 26px 22px; }
}

/* ---- Reusable ON/OFF toggle switch (used for form-availability controls) ---- */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: none; }
.toggle-row-label strong { display: block; font-size: 14px; color: var(--text, #2a2018); margin-bottom: 3px; }
.toggle-row-label span { font-size: 12.5px; color: var(--text-muted); }
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #d1d5db; border-radius: 26px; cursor: pointer; transition: background .25s ease; }
.toggle-slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform .25s ease; }
.toggle-switch input:checked + .toggle-slider { background: #1a9d4f; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }
.toggle-status { font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.toggle-status.is-open { background: #e7f7ee; color: #1a9d4f; }
.toggle-status.is-closed { background: #fdeaea; color: #c0202a; }

/* ---- "Get App" button, now in the footer instead of the header ---- */
.footer-install-btn {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light, #d4a843) 100%);
  color: #fff; border: none; border-radius: 30px;
  padding: 10px 22px; font-size: 13.5px; font-weight: 700; font-family: 'Inter', sans-serif;
  cursor: pointer; box-shadow: 0 6px 16px rgba(201,152,42,0.32);
  transition: filter .2s ease, transform .2s ease;
}
.footer-install-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.footer-install-btn.is-hidden { display: none; }

/* ---- Homepage photo slider (images only) ---- */
.home-slider { position: relative; width: 100% !important; overflow: hidden !important; background: #1a1410; line-height: 0; }
.hs-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
  transition: transform .6s cubic-bezier(.65,0,.35,1);
  will-change: transform;
}
.hs-slide {
  position: relative;
  flex: 1 0 100% !important;
  max-width: 100% !important;
  width: 100%;
  height: 420px;
}
.hs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.22); color: #fff; font-size: 20px; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.hs-arrow:hover { background: rgba(255,255,255,0.4); }
.hs-arrow.left { left: 20px; }
.hs-arrow.right { right: 20px; }

.hs-dots { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 3; display: flex; gap: 8px; justify-content: center; }
.hs-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); transition: background .2s ease, transform .2s ease; }
.hs-dot.active { background: #fff; transform: scale(1.3); }

@media (max-width: 768px) {
  .hs-slide { height: 220px; }
  .hs-arrow { width: 34px; height: 34px; font-size: 16px; }
  .hs-arrow.left { left: 10px; } .hs-arrow.right { right: 10px; }
}

/* ==========================================================================
   MOBILE VIEW POLISH — compact header, swipeable nav, tidy layout on phones
   ========================================================================== */
@media (max-width: 768px) {
  /* Header: smaller logo + title, contact chips wrap neatly */
  .school-logo-wrap { width: 58px; height: 58px; }
  .school-logo { width: 58px; height: 58px; }
  .header-title-top { font-size: 11px; }
  .header-title-main { font-size: 21px; }
  .header-title-sub { font-size: 10px; }
  .header-contact-line { justify-content: flex-start; }
  .contact-item { padding: 6px 12px; }
  .contact-item .ci-text { font-size: 11.5px; }
  .header-nav-line a { padding: 5px 10px; font-size: 11.5px; }

  /* Main nav: one swipeable row instead of wrapping into a tall block */
  .main-nav-inner { flex-wrap: nowrap; }
  .main-nav-links {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .main-nav-links::-webkit-scrollbar { display: none; }
  .main-nav-links a { white-space: nowrap; }

  /* Ticker: keep the news readable, hide nothing important */
  .ticker-label { font-size: 10px; padding: 0 10px; }
  .open-notices-btn { font-size: 10px; padding: 8px 10px; }

  /* Stats strip wraps into a neat 2-up grid */
  .stats-bar { flex-wrap: wrap; gap: 16px 26px; padding: 20px 16px; }
  .stat { min-width: 40%; }

  /* Sections & cards breathe on small screens */
  .section { padding-left: 16px; padding-right: 16px; }
  .section-title { font-size: 24px; }
  .footer-grid { gap: 26px; }
  footer { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 480px) {
  .header-title-main { font-size: 18px; }
  .header-title-sub { display: none; }
  .contact-item .ci-text { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
  .stat { min-width: 44%; }
  .stat-num { font-size: 22px; }
  .hs-slide { height: 190px; }
  .hs-dots { bottom: 10px; }
}

/* Prevent any single wide element from forcing sideways scroll / zoomed-out
   desktop-style rendering on phones */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .main-header { flex-direction: column; align-items: center; text-align: center; }
  .header-logo-area { justify-content: center; }
  .header-contact-nav { align-items: center; }
  .header-contact-line { justify-content: center; }
  .header-nav-line { justify-content: center; }
  img, video, iframe { max-width: 100%; }
}

/* Mobile nav: allow the swipeable menu row to actually shrink inside its
   flex parent (flex items refuse to shrink below their content width unless
   min-width:0) — without this the menu stretched the whole page wider than
   the phone screen, squashing the header into a partial-width column. */
@media (max-width: 768px) {
  .main-nav { overflow: hidden; }
  .main-nav-inner { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .main-nav-links { min-width: 0; flex: 1 1 auto; }
  .nav-login-wrap { flex-shrink: 0; }
  .notice-ticker-bar { overflow: hidden; max-width: 100vw; }
  .udise-bar { max-width: 100vw; }
  .udise-left strong, .udise-right strong { white-space: normal; }
}

/* FINAL mobile nav override: left-anchored, swipeable menu row. The base
   nav is centered, and a centered flex row that overflows clips BOTH ends
   and can't scroll to the start — so on phones we force start-anchored
   scrolling, with the LOGIN button pinned beside it (not overlapping). */
@media (max-width: 768px) {
  .main-nav-inner { flex-wrap: nowrap !important; width: 100%; justify-content: flex-start !important; }
  .main-nav-links {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    min-width: 0;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav-links a { flex-shrink: 0; }
  .nav-login-wrap { position: static !important; flex-shrink: 0; margin-left: 6px; }
}

/* ==========================================================================
   MOBILE HAMBURGER NAV — ☰ button + slide-out drawer (phones only)
   ========================================================================== */
.mnav-burger { display: none; }
@media (max-width: 768px) {
  /* Replace the cramped link row with ☰ + LOGIN */
  .main-nav-links { display: none !important; }
  .header-nav-line { display: none !important; }
  .main-nav-inner { justify-content: space-between !important; }
  .mnav-burger {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    font: 700 14px 'Inter', sans-serif; color: var(--maroon);
    padding: 12px 4px; letter-spacing: .5px;
  }
  .mnav-burger .bars { display: inline-flex; flex-direction: column; gap: 4px; }
  .mnav-burger .bars span { display: block; width: 22px; height: 2.6px; border-radius: 2px; background: var(--maroon); }
}
.mnav-overlay {
  position: fixed; inset: 0; background: rgba(20, 12, 8, 0.5); z-index: 4000;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mnav-overlay.open { opacity: 1; pointer-events: auto; }
.mnav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 4001;
  width: 82%; max-width: 330px; background: #fdf9f1;
  box-shadow: 4px 0 30px rgba(0,0,0,0.25);
  transform: translateX(-102%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.mnav-drawer.open { transform: translateX(0); }
.mnav-head {
  display: flex; align-items: center; gap: 10px; padding: 16px;
  border-bottom: 1px solid #eadfc8; position: sticky; top: 0; background: #fdf9f1;
}
.mnav-head img { width: 44px; height: 44px; border-radius: 50%; }
.mnav-head .t { flex: 1; font: 800 13px 'Inter', sans-serif; color: var(--maroon); line-height: 1.3; }
.mnav-head .t small { display: block; font-weight: 600; font-size: 10px; color: #9a7f4e; letter-spacing: .5px; }
.mnav-close { background: none; border: none; font-size: 20px; color: #7a6a52; cursor: pointer; padding: 6px; }
.mnav-links { padding: 8px 0; }
.mnav-links a {
  display: block; padding: 13px 20px; font: 700 14.5px 'Inter', sans-serif;
  color: #3d2e1d; text-decoration: none; border-left: 3px solid transparent;
}
.mnav-links a.active { color: var(--maroon); border-left-color: var(--gold); background: #f8f0df; }
.mnav-sec { border-top: 1px solid #eadfc8; padding: 12px 0 6px; }
.mnav-sec .mnav-sec-title { padding: 4px 20px 6px; font: 800 10.5px 'Inter', sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #a08753; }
.mnav-sec a { display: block; padding: 10px 20px; font: 600 13.5px 'Inter', sans-serif; color: #4b3a25; text-decoration: none; }
.mnav-foot { margin-top: auto; padding: 16px 20px 22px; border-top: 1px solid #eadfc8; }
.mnav-foot .mnav-getapp {
  width: 100%; border: none; border-radius: 30px; padding: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, #d4a843 100%); color: #fff;
  font: 800 13.5px 'Inter', sans-serif; cursor: pointer; box-shadow: 0 6px 16px rgba(201,152,42,0.32);
}
body.mnav-lock { overflow: hidden; }
