/* ============================================================
   PM SHREE SCHOOL – Extra / Page-Specific Styles
   ============================================================ */

/* ── Navbar scrolled state ── */
#header.scrolled .navbar {
  background: rgba(10, 31, 75, 1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

/* ── Navbar toggle animation ── */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Timeline mobile ── */
@media (max-width: 640px) {
  .timeline-left-empty,
  .timeline-right-empty { display: none !important; }
}

/* ── Details / FAQ accordion ── */
details summary::-webkit-details-marker { display: none; }
details[open] > summary { color: var(--saffron); border-bottom: 1px solid var(--gray-100); padding-bottom: 16px; }
details[open] > summary span { transform: rotate(90deg); display: inline-block; transition: transform 0.25s; }
details > summary span { transition: transform 0.25s; display: inline-block; }

/* ── Print styles ── */
@media print {
  #header, #backToTop, #mobileMenu, .notice-ticker, .footer { display: none !important; }
  .section, .section-sm { padding: 20px 0; }
  body { font-size: 13px; }
}

/* ── Smooth image load ── */
img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img.loaded { opacity: 1; }

/* ── Focus accessibility ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Utility ── */
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.color-navy    { color: var(--navy); }
.color-saffron { color: var(--saffron); }
.color-gold    { color: var(--gold); }
.color-muted   { color: var(--text-light); }

/* ── Loading spinner ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── WhatsApp float button ── */
.whatsapp-btn {
  position: fixed;
  bottom: 84px; right: 28px;
  width: 46px; height: 46px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 998;
  text-decoration: none;
  transition: var(--transition);
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

/* ── Page transition ── */
.page-transition {
  animation: pageFadeIn 0.5s ease;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Highlight box ── */
.highlight-box {
  border-left: 4px solid var(--saffron);
  background: var(--saffron-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.highlight-box p { color: var(--text); font-size: 0.9rem; margin: 0; }

/* ── Skip link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -50px; left: 12px;
  background: var(--saffron);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ── Cookie-width utility table ── */
.responsive-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.responsive-table table {
  min-width: 480px;
  border-collapse: collapse;
  width: 100%;
}
.responsive-table th,
.responsive-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.88rem;
}
.responsive-table th {
  background: var(--off-white);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.responsive-table tr:hover td { background: var(--off-white); }
