/* =========================================================================
   HEMA HIGHER SECONDARY SCHOOL — Design System
   Palette: Ink Navy / Warm Gold / Paper Cream / Deep Teal / Muted Maroon
   Type: Fraunces (display) + Work Sans (body) + Space Grotesk (data/stats)
   Signature: "Seal & Ribbon" achievement medallions + chalk-underline eyebrows
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Colors */
  --navy: #182449;
  --navy-2: #24326a;
  --navy-soft: #2c3a72;
  --cream: #faf5ea;
  --cream-2: #f2ead9;
  --paper: #fffdf8;
  --gold: #d6a237;
  --gold-dark: #ad7d22;
  --gold-light: #f0cd7f;
  --teal: #2c6e63;
  --teal-dark: #1e4d45;
  --maroon: #8a3a3a;
  --ink: #201c14;
  --ink-soft: #524c3f;
  --line: rgba(24, 36, 73, 0.12);
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", system-ui, -apple-system, sans-serif;
  --font-data: "Space Grotesk", "Work Sans", monospace;

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --shadow-soft: 0 10px 30px rgba(24, 36, 73, 0.10);
  --shadow-strong: 0 20px 50px rgba(24, 36, 73, 0.20);
  --header-h: 84px;
}

/* =========================================================================
   RESET & BASE
   ========================================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

.container-xl { max-width: 1280px; }

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.accordion-button:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =========================================================================
   EYEBROW / CHALK-UNDERLINE SIGNATURE
   Used above every section heading. The underline is a hand-set squiggle,
   evoking a teacher's chalk mark on a board — an intentional, subject-tied
   signature rather than a decorative divider.
   ========================================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-heading {
  margin-bottom: 0.35rem;
}

.chalk-underline {
  display: block;
  width: 148px;
  height: 14px;
  margin-top: 6px;
}
.chalk-underline path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
}
.text-center .chalk-underline { margin-inline: auto; }

.section-lede {
  color: var(--ink-soft);
  max-width: 640px;
  font-size: 1.05rem;
}
.text-center .section-lede { margin-inline: auto; }

section { position: relative; }
.section-pad { padding: 5.5rem 0; }
@media (max-width: 767.98px) {
  .section-pad { padding: 3.5rem 0; }
}

.bg-paper { background: var(--paper); }
.bg-cream-2 { background: var(--cream-2); }
.bg-navy { background: var(--navy); color: var(--cream); }
.bg-navy .section-lede { color: rgba(250, 245, 234, 0.78); }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn-hema-gold,
.btn-hema-outline,
.btn-hema-navy {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}
.btn-hema-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-hema-gold:hover, .btn-hema-gold:focus-visible {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-hema-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-hema-outline:hover, .btn-hema-outline:focus-visible {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-hema-navy {
  background: var(--navy);
  color: var(--cream);
}
.btn-hema-navy:hover, .btn-hema-navy:focus-visible {
  background: var(--navy-2);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* =========================================================================
   HEADER / NAVIGATION
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(250, 245, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 245, 234, 0.98);
  box-shadow: 0 6px 24px rgba(24, 36, 73, 0.10);
  border-bottom-color: var(--line);
}

.header-topbar {
  background: var(--navy);
  color: rgba(250, 245, 234, 0.85);
  font-size: 0.82rem;
  padding: 6px 0;
}
.header-topbar a { color: inherit; }
.header-topbar a:hover { color: var(--gold-light); }

.navbar-brand-hema {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}
.brand-text-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}
.brand-text-sub {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.main-nav .nav-link {
  font-weight: 600;
  color: var(--navy);
  padding: 0.5rem 0.9rem !important;
  position: relative;
  font-size: 0.95rem;
}
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  transform: scaleX(1);
}
.main-nav .nav-link.active { color: var(--gold-dark); }

.nav-apply-btn {
  margin-left: 0.5rem;
}

.navbar-toggler {
  border: none;
  padding: 0.4rem;
}
.navbar-toggler:focus { box-shadow: none; }

/* =========================================================================
   HERO / CAROUSEL
   ========================================================================= */
.hero-carousel {
  height: min(88vh, 720px);
  min-height: 460px;
}
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 100%; }

.hero-slide {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 36, 73, 0.35) 0%, rgba(24, 36, 73, 0.55) 55%, rgba(15, 20, 40, 0.86) 100%);
}
.hero-caption {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 0 4.5rem;
  max-width: 720px;
}
.hero-caption .eyebrow { color: var(--gold-light); }
.hero-caption h1,
.hero-caption h2 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 0.9rem;
}
.hero-caption p {
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
  margin-bottom: 1.6rem;
  max-width: 560px;
}

.hero-carousel .carousel-item {
  opacity: 0;
  transition: opacity 1.1s ease, transform 6s ease;
  display: block !important;
  position: absolute;
  top: 0; left: 0;
}
.hero-carousel .carousel-item.active {
  opacity: 1;
  position: relative;
}
.hero-carousel .carousel-item .hero-slide { transform: scale(1.02); }
.hero-carousel .carousel-item.active .hero-slide {
  animation: heroZoom 8s ease-in-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-carousel .carousel-item.active .hero-caption > * {
  animation: heroRise 0.9s ease both;
}
.hero-carousel .carousel-item.active .hero-caption h1,
.hero-carousel .carousel-item.active .hero-caption h2 { animation-delay: 0.1s; }
.hero-carousel .carousel-item.active .hero-caption p { animation-delay: 0.28s; }
.hero-carousel .carousel-item.active .hero-caption .hero-cta { animation-delay: 0.44s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-carousel .carousel-indicators {
  margin-bottom: 1.5rem;
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255,255,255,0.45);
  border: none;
  opacity: 1;
}
.hero-carousel .carousel-indicators .active { background-color: var(--gold); }

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  background: rgba(255,255,255,0.14);
  border-radius: 50%;
  opacity: 0.9;
}
@media (max-width: 767.98px) {
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next { display: none; }
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.scroll-cue .bi { display: block; margin: 4px auto 0; animation: bounce 1.8s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* =========================================================================
   ABOUT SECTION
   ========================================================================= */
.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-media img { border-radius: var(--radius-lg); }
.about-since-badge {
  position: absolute;
  bottom: -1.4rem;
  right: -1.2rem;
  background: var(--navy);
  color: var(--cream);
  border-radius: 50%;
  width: 128px;
  height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-strong);
}
.about-since-badge strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}
.about-since-badge span {
  font-family: var(--font-data);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}
@media (max-width: 575.98px) {
  .about-since-badge { width: 96px; height: 96px; bottom: -1rem; right: -0.6rem; }
  .about-since-badge strong { font-size: 1.2rem; }
}

.about-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0;
}
.about-highlight-chip {
  background: var(--cream-2);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.about-highlight-chip .bi { color: var(--teal); }

/* =========================================================================
   STATS — "SEAL & RIBBON" MEDALLIONS (signature element)
   Each stat reads like an award medal: circular seal with a ribbon tail,
   tying the numbers to the school's language of achievement/excellence.
   ========================================================================= */
.medallion {
  text-align: center;
  padding: 1rem 0.5rem;
}
.medallion-seal {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: radial-gradient(circle at 32% 28%, var(--navy-soft), var(--navy) 70%);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 12px 26px rgba(24,36,73,0.28);
}
.medallion-seal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(214, 162, 55, 0.55);
}
.medallion-seal::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 16px solid var(--gold-dark);
}
.medallion-number {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}
.medallion-label {
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.35rem;
  font-size: 0.98rem;
}
.medallion-sub {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* =========================================================================
   FACILITIES CARDS
   ========================================================================= */
.facility-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.facility-card:hover, .facility-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold);
}
.facility-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.facility-card:hover .facility-icon {
  background: var(--gold);
  color: var(--navy);
  transform: rotate(-6deg) scale(1.05);
}
.facility-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.facility-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

/* =========================================================================
   WHY CHOOSE
   ========================================================================= */
.why-choose-media { border-radius: var(--radius-lg); overflow: hidden; }
.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
  font-weight: 500;
}
.why-list li:last-child { border-bottom: none; }
.why-list .why-tick {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* =========================================================================
   EVENTS
   ========================================================================= */
.event-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.event-media { position: relative; height: 210px; overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 0.4rem 0.7rem;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-data);
  line-height: 1.1;
}
.event-date-badge strong { display: block; font-size: 1.15rem; color: var(--maroon); }
.event-date-badge span { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.event-body { padding: 1.4rem; }
.event-category {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
}
.event-body h3 { font-size: 1.1rem; margin: 0.4rem 0 0.5rem; }
.event-body p { color: var(--ink-soft); font-size: 0.92rem; }
.event-meta { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; }

/* =========================================================================
   FAQ / ACCORDION
   ========================================================================= */
.faq-accordion .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0 !important;
}
.faq-accordion .accordion-item:first-of-type { border-top: 1px solid var(--line); }
.faq-accordion .accordion-button {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  padding: 1.3rem 0.5rem;
  font-size: 1.05rem;
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--gold-dark);
  box-shadow: none;
}
.faq-accordion .accordion-button::after {
  background-image: none;
  content: "\002B";
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal-dark);
  transition: transform 0.25s ease;
}
.faq-accordion .accordion-button:not(.collapsed)::after {
  content: "\2212";
  color: var(--gold-dark);
  transform: rotate(180deg);
}
.faq-accordion .accordion-body {
  padding: 0 0.5rem 1.4rem;
  color: var(--ink-soft);
}
.faq-placeholder-tag {
  display: inline-block;
  background: var(--cream-2);
  color: var(--maroon);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* =========================================================================
   CTA / CONTACT BAND
   ========================================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 3.2rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px dashed rgba(214,162,55,0.3);
  right: -120px;
  top: -140px;
}
@media (max-width: 767.98px) {
  .cta-band { padding: 2.2rem 1.4rem; border-radius: var(--radius-md); }
}
.cta-band h2 { color: var(--white); }
.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  color: rgba(250,245,234,0.9);
}
.cta-contact-item .bi {
  width: 42px;
  height: 42px;
  background: rgba(214,162,55,0.16);
  color: var(--gold-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =========================================================================
   MAP
   ========================================================================= */
.map-frame-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.map-frame-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(250,245,234,0.78);
  padding: 4rem 0 0;
}
.site-footer h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.footer-brand img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold); }
.footer-brand strong { color: var(--white); font-family: var(--font-display); font-size: 1.15rem; }
.site-footer a { color: rgba(250,245,234,0.78); }
.site-footer a:hover { color: var(--gold-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(250,245,234,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(250,245,234,0.14);
  margin-top: 2.5rem;
  padding: 1.3rem 0;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--gold-light); }

/* =========================================================================
   INNER PAGE HERO (for about/fee/faculty/results/events/contact pages)
   ========================================================================= */
.page-hero {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: var(--cream);
  padding: 3.2rem 0 3.6rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(214,162,55,0.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.5;
}
.page-hero h1 { color: var(--white); position: relative; z-index: 1; }
.page-hero .breadcrumb-hema { position: relative; z-index: 1; }
.breadcrumb-hema {
  font-family: var(--font-data);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(250,245,234,0.7);
}
.breadcrumb-hema a { color: rgba(250,245,234,0.7); }
.breadcrumb-hema a:hover { color: var(--gold-light); }
.breadcrumb-hema .current { color: var(--gold-light); }

/* Generic content tables/cards for inner pages */
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  height: 100%;
}
.table-hema {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table-hema th {
  background: var(--navy);
  color: var(--cream);
  text-align: left;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.table-hema td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.table-hema tr:last-child td { border-bottom: none; }
.table-responsive-hema { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }

.staff-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.staff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.staff-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.staff-card .staff-info { padding: 1.1rem; }
.staff-card h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.staff-card .staff-role { color: var(--teal-dark); font-size: 0.85rem; font-weight: 600; }

.result-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: center;
}
.result-stat .medallion-number { color: var(--gold-dark); font-size: 2.1rem; }

.placeholder-notice {
  background: var(--cream-2);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Contact page form */
.form-hema label { font-weight: 600; color: var(--navy); font-size: 0.92rem; margin-bottom: 0.35rem; }
.form-hema .form-control,
.form-hema .form-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  min-height: 46px;
}
.form-hema .form-control:focus,
.form-hema .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214,162,55,0.22);
}
.form-hema textarea.form-control { min-height: 130px; }

/* =========================================================================
   BACK TO TOP
   ========================================================================= */
.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1040;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--navy); }

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-carousel .carousel-item.active .hero-slide,
  .hero-carousel .carousel-item.active .hero-caption > *,
  .scroll-cue .bi {
    animation: none !important;
  }
  * { transition-duration: 0.01ms !important; }
}

/* =========================================================================
   RESPONSIVE TUNING
   ========================================================================= */
@media (max-width: 991.98px) {
  .main-nav {
    background: var(--paper);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
  }
  .main-nav .nav-link::after { display: none; }
  .nav-apply-btn { margin: 0.6rem 0 0; width: 100%; justify-content: center; }
}

@media (max-width: 575.98px) {
  .brand-text-name { font-size: 0.98rem; }
  .brand-text-sub { display: none; }
  .cta-band { text-align: left; }
}

/* Utility */
.text-teal { color: var(--teal); }
.text-gold { color: var(--gold-dark); }
.bg-gold-soft { background: rgba(214,162,55,0.14); }
.fw-display { font-family: var(--font-display); }
.lazy-img { background: var(--cream-2); }
