/* Anita Vidyalaya HSS — public site */
:root {
  --blue: #0b5fa5;
  --orange: #e67e22;
  --yellow: #f4d03f;
  --white: #ffffff;
  --dark: #111111;
  --dark2: #1a1a1a;
  --muted: #6b7a90;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(11, 95, 165, 0.12);
  --shadow-hover: 0 16px 40px rgba(11, 95, 165, 0.16);
  --surface: #ffffff;
  --border-soft: rgba(11, 95, 165, 0.1);
  --ring: 0 0 0 3px rgba(244, 208, 63, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Hero height — tuned for stage/group photos */
  --hero-h: min(82vh, 920px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark2);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(11, 95, 165, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #f6f9fc 0%, #eef3f8 100%);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Keyboard focus — visible rings without cluttering mouse users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

#main {
  min-height: 40vh;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--dark);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.container {
  width: min(1100px, 100% - clamp(1rem, 5vw, 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  background:
    radial-gradient(ellipse 80% 120% at 100% -20%, rgba(244, 208, 63, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse 60% 100% at 0% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
    linear-gradient(160deg, #0a4a7c 0%, var(--blue) 42%, #083d66 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(244, 208, 63, 0) 0%,
    rgba(244, 208, 63, 0.65) 18%,
    rgba(230, 126, 34, 0.9) 50%,
    rgba(244, 208, 63, 0.65) 82%,
    rgba(244, 208, 63, 0) 100%
  );
  pointer-events: none;
  opacity: 0.92;
}
.site-header--scrolled {
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 70% 100% at 90% 0%, rgba(244, 208, 63, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, rgba(11, 95, 165, 0.96) 0%, rgba(8, 52, 96, 0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1200px, 100% - clamp(1rem, 4vw, 1.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: inherit;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}

.brand-logo-wrap {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
  width: 80px;
  height: 80px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(165deg, #ffffff 0%, #eef5fb 55%, #e2ecf6 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(11, 95, 165, 0.35),
    0 6px 20px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.brand-logo-wrap:hover {
  box-shadow:
    0 0 0 2px rgba(244, 208, 63, 0.55),
    0 0 0 5px rgba(255, 255, 255, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.brand-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(11, 95, 165, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-wrap:hover {
    transform: none;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 1.28;
  gap: 0.28rem;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}
.brand-name {
  font-weight: 800;
  font-size: clamp(0.95rem, 2.9vw, 1.28rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
h1.brand-name {
  font-size: clamp(0.95rem, 2.9vw, 1.28rem);
  font-weight: 800;
}

.brand-name--caps {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(0.72rem, 1.35vw + 0.55rem, 1.45rem);
  line-height: 1.15;
  max-width: none;
}

.brand-heading-link {
  color: inherit;
  text-decoration: none;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.brand-heading-link:hover {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

h1.brand-name.brand-name--caps {
  font-size: clamp(0.72rem, 1.35vw + 0.55rem, 1.45rem);
}

/* Single line when the full nav row is visible (wide header) */
@media (min-width: 901px) {
  .brand-name--caps,
  h1.brand-name.brand-name--caps {
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .brand-name--caps,
  h1.brand-name.brand-name--caps {
    white-space: normal;
    letter-spacing: 0.04em;
  }
}

.brand-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.2rem;
  max-width: min(42rem, 100%);
}

.brand-motto-line {
  font-size: clamp(0.72rem, 2.1vw, 0.88rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.03em;
  margin: 0;
}

/* Address under tagline — plain text, white (no link) */
.site-header .brand .brand-loc--static {
  display: inline-flex;
  align-items: flex-start;
  align-self: flex-start;
  gap: 0.45rem;
  margin: 0;
  font-size: clamp(0.68rem, 1.85vw, 0.82rem);
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  max-width: 100%;
  line-height: 1.45;
}

.site-header .brand .brand-loc__pin {
  flex-shrink: 0;
  margin-top: 0.1em;
  color: #ffffff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.brand-loc__text {
  min-width: 0;
  color: #ffffff;
}

.nav-overlay {
  display: none;
}

.nav-toggle {
  display: none;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.nav-toggle__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 16px;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-toggle__label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bar {
    transition: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
}

@media (min-width: 901px) {
  .site-nav {
    margin-top: 0.35rem;
    padding: 0.45rem 0.65rem 0.5rem;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.05) 48%,
      rgba(0, 0, 0, 0.08) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 -1px 0 rgba(0, 0, 0, 0.12),
      0 6px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__item {
  margin: 0;
  padding: 0;
  position: relative;
}

@media (min-width: 901px) {
  .site-nav__item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 0.95rem;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(255, 255, 255, 0.45),
      transparent
    );
    opacity: 0.55;
    pointer-events: none;
  }
}

.site-nav__item--cta {
  margin-left: 0.35rem;
}

.site-nav__item--apply {
  margin-left: 0.15rem;
}

.site-nav__item--util {
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

@media (min-width: 901px) {
  .site-nav__item--util {
    border-left: none;
    padding-left: 0.5rem;
    margin-left: 0.35rem;
  }
  .site-nav__item--util::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.1rem;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(255, 255, 255, 0.5),
      transparent
    );
    opacity: 0.65;
  }
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    transform 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.site-nav__link:hover {
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__link:hover {
    transform: none;
  }
}

.site-nav__link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Gold underline sweep on standard links */
@media (min-width: 901px) {
  .site-nav__link:not(.site-nav__link--cta):not(.site-nav__link--apply)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.35rem;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow), var(--orange), var(--yellow), transparent);
    transform: translateX(-50%);
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.95;
    pointer-events: none;
  }
  .site-nav__link:not(.site-nav__link--cta):not(.site-nav__link--apply):hover::after {
    width: 70%;
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .site-nav__link:not(.site-nav__link--cta):not(.site-nav__link--apply)::after {
    transition: none;
    width: 0;
  }
  .site-nav__link:not(.site-nav__link--cta):not(.site-nav__link--apply):hover::after {
    width: 55%;
  }
}

.site-nav__link--active,
.site-nav__link--anchor.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 20px rgba(244, 208, 63, 0.15);
  color: #fff;
}

.site-nav__link--admin {
  opacity: 0.92;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.site-nav__link--admin:hover {
  opacity: 1;
}

.site-nav__link--cta {
  background: linear-gradient(165deg, rgba(244, 208, 63, 0.35) 0%, rgba(244, 208, 63, 0.08) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 0 0 1px rgba(244, 208, 63, 0.55),
    0 2px 12px rgba(244, 208, 63, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.site-nav__link--cta:hover {
  background: linear-gradient(165deg, rgba(244, 208, 63, 0.5) 0%, rgba(244, 208, 63, 0.2) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(244, 208, 63, 0.75),
    0 4px 16px rgba(244, 208, 63, 0.28);
}

.site-nav__link--cta.site-nav__link--active {
  background: linear-gradient(165deg, rgba(244, 208, 63, 0.55) 0%, rgba(230, 126, 34, 0.25) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(244, 208, 63, 0.85),
    0 0 24px rgba(244, 208, 63, 0.25);
}

/* Apply now — distinct from yellow “News & Events” CTA */
.site-nav__link--apply {
  background: linear-gradient(165deg, #14b8a6 0%, #0d9488 55%, #0f766e 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow:
    0 2px 10px rgba(15, 118, 110, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.site-nav__link--apply:hover {
  background: linear-gradient(165deg, #2dd4bf 0%, #14b8a6 50%, #0d9488 100%);
  color: #ffffff;
  box-shadow:
    0 4px 16px rgba(15, 118, 110, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.site-nav__link--apply:focus-visible {
  outline-color: #5eead4;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__link--apply:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }
  body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }
  .nav-toggle__label {
    display: none;
  }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .brand {
    min-width: 0;
  }
  .brand-logo-wrap {
    width: 64px;
    height: 64px;
    padding: 4px;
  }
  .brand-logo {
    width: 56px;
    height: 56px;
  }
  .brand-name--caps {
    letter-spacing: 0.045em;
    font-size: clamp(0.88rem, 2.65vw, 1.12rem);
  }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.35rem 0 0;
    animation: nav-slide 0.28s ease both;
    background: none;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0.25rem 0.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.18) 100%);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 8px 32px rgba(0, 0, 0, 0.22);
  }
  .site-nav__item--cta {
    margin-left: 0;
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .site-nav__item--util {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 0.15rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .site-nav__item--util::before {
    display: none;
  }
  .site-nav__item:not(:last-child)::after {
    display: none;
  }
  .site-nav__link {
    padding: 0.75rem 0.95rem;
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    white-space: normal;
  }
  .site-nav__link:not(.site-nav__link--cta):not(.site-nav__link--apply)::after {
    display: none;
  }
}

@keyframes nav-slide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .site-nav {
    animation: none;
  }
}

/* Hero — full-bleed photos only (no overlay, text, or chrome) */
.hero {
  position: relative;
  min-height: var(--hero-h);
  isolation: isolate;
}

.hero-slider {
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow:
    0 4px 6px rgba(11, 95, 165, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.1);
}

.hero-slides { position: relative; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  margin: 0;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  background: #e8eef5;
  overflow: hidden;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Favor upper area (faces, speakers on stage) */
  object-position: center 24%;
  display: block;
}

.hero-fallback {
  min-height: min(60vh, 520px);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue), #063d6b);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  text-align: center;
  padding: 2rem;
}
.hero-fallback-inner h1 { margin-top: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-accent {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(244, 208, 63, 0.35);
}
.btn-accent:hover { box-shadow: 0 6px 24px rgba(244, 208, 63, 0.45); }

.btn-apply {
  background: linear-gradient(165deg, #14b8a6 0%, #0d9488 55%, #0f766e 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 18px rgba(15, 118, 110, 0.42);
}
.btn-apply:hover {
  background: linear-gradient(165deg, #2dd4bf 0%, #14b8a6 50%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(15, 118, 110, 0.52);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.35rem;
}

.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--white);
}

/* Flash ticker (below hero — yellow label + blue marquee) */
.flash-bar--under-hero {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 var(--radius) var(--radius);
}

.flash-bar--under-hero .flash-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: min(200px, 26vw);
  padding: 0.55rem 1rem;
  margin: 0;
  background: var(--yellow);
  color: var(--dark);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 800;
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
}

.flash-bar--under-hero .flash-track {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #0d4d8c 0%, var(--blue) 45%, #094a82 100%);
  color: var(--white);
  padding: 0.4rem 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.flash-marquee {
  display: flex;
  width: max-content;
  animation: flash-scroll 45s linear infinite;
}

.flash-inner {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  padding-right: 1.25rem;
}

.flash-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.flash-cluster-static {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.flash-bar--under-hero .flash-link {
  color: inherit;
  text-decoration: none;
}

.flash-bar--under-hero .flash-link:hover {
  text-decoration: underline;
  color: var(--yellow);
}

.flash-link--cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.flash-thumb {
  width: 32px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.flash-bar--under-hero .flash-item {
  font-weight: 700;
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}

.flash-item-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--yellow), var(--orange));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.flash-bar--under-hero .flash-sep {
  opacity: 0.45;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

@keyframes flash-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.flash-bar--under-hero:hover .flash-marquee {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .flash-marquee {
    animation: none;
  }
  .flash-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    justify-content: flex-start;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .flash-inner {
    display: flex;
    flex-wrap: wrap;
    white-space: normal;
    justify-content: center;
    gap: 0.5rem 1rem;
  }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1.5rem;
  color: var(--blue);
  position: relative;
  padding-bottom: 0.5rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  border-radius: 2px;
}

.lead { font-size: 1.1rem; max-width: 70ch; color: var(--muted); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  transition:
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(11, 95, 165, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}

.about-card h3 { margin-top: 0; color: var(--orange); }

.notice-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }

/* Notice board: show 3 rows; scroll up when more than 3 notices */
.notice-board-viewport {
  --notice-gap: 0.75rem;
  --notice-row: 6rem;
  height: calc(3 * var(--notice-row) + 2 * var(--notice-gap));
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.35);
}

.notice-board-viewport--scroll .notice-board-track {
  will-change: transform;
  animation: notice-board-scroll-up var(--notice-duration, 24s) linear infinite;
}

.notice-board-viewport--scroll:hover .notice-board-track {
  animation-play-state: paused;
}

@keyframes notice-board-scroll-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.notice-board-viewport--scroll .notice-item {
  min-height: var(--notice-row);
  flex-shrink: 0;
  align-items: center;
  box-sizing: border-box;
}

.notice-board-viewport--scroll .notice-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .notice-board-viewport--scroll .notice-board-track {
    animation: none;
  }
  .notice-board-viewport--scroll {
    height: auto;
    max-height: min(70vh, 28rem);
    overflow-y: auto;
  }
}

.notice-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.notice-item time { font-weight: 700; color: var(--blue); min-width: 7rem; }
.notice-title { flex: 1; min-width: 200px; }
.notice-pdf {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(11, 95, 165, 0.1);
  text-decoration: none;
}
.notice-pdf:hover { background: rgba(11, 95, 165, 0.2); }

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.event-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.event-img-link {
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, #e8eef5, #dce6f2);
}

.event-img-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.event-card:hover .event-img-link img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .event-card:hover {
    transform: none;
  }
  .event-card:hover .event-img-link img {
    transform: none;
  }
}

.event-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-body time { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.event-body h3 { margin: 0.35rem 0 0.5rem; font-size: 1.15rem; }
.event-body h3 a { text-decoration: none; color: inherit; }
.event-body h3 a:hover { color: var(--blue); }
.event-body p {
  flex: 1;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.read-more {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--blue);
  margin-top: auto;
}

.read-more::after {
  content: "→";
  transition: transform 0.25s var(--ease-out);
  display: inline-block;
}

.read-more:hover {
  text-decoration: underline;
}

.read-more:hover::after {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .read-more::after {
    transition: none;
  }
}

.section-cta { text-align: center; margin-top: 2rem; }

/* Principal’s message — premium layout */
.section.principal--premium {
  background: linear-gradient(180deg, #e6f0f9 0%, #f4f8fc 42%, #eef3f8 100%);
  border-top: 1px solid rgba(11, 95, 165, 0.08);
  border-bottom: 1px solid rgba(11, 95, 165, 0.06);
}

.principal-inner {
  max-width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(0rem, 2vw, 0.25rem);
}

.principal-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.principal-section-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 0.65rem;
  display: inline-block;
  width: 100%;
}

.principal-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  border-radius: 2px;
}

.principal-card {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.75rem, 3.5vw, 2.85rem) clamp(1.5rem, 4vw, 2.75rem);
  background: var(--white);
  border-radius: 1.125rem;
  box-shadow:
    0 4px 6px rgba(11, 95, 165, 0.05),
    0 22px 56px rgba(11, 95, 165, 0.11);
  border: 1px solid rgba(11, 95, 165, 0.06);
}

.principal-card--solo {
  justify-content: flex-start;
}

.principal-card--solo .principal-body {
  max-width: 100%;
}

.principal-photo-frame {
  flex-shrink: 0;
  width: min(320px, 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(11, 95, 165, 0.09);
  background: linear-gradient(145deg, #f8fafc, #eef2f7);
}

@media (min-width: 768px) {
  .principal-photo-frame {
    width: clamp(300px, 30vw, 380px);
    max-width: 40%;
  }
}

.principal-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.principal-body {
  position: relative;
  flex: 1 1 320px;
  min-width: min(100%, 280px);
  padding: 0.35rem 0 0;
  max-width: 100%;
}

/* Accent bar when photo + message (desktop) */
.principal-body--with-photo {
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
}

.principal-body--with-photo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 5.5rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--yellow) 60%, rgba(11, 95, 165, 0.35) 100%);
  pointer-events: none;
}

.principal-quote-icon {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 7vw, 4.75rem);
  line-height: 0.72;
  color: rgba(11, 95, 165, 0.32);
  margin: 0 0 0.5rem;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 2px 10px rgba(11, 95, 165, 0.12));
}

.principal-body .principal-text {
  font-size: clamp(1.02rem, 1.5vw, 1.08rem);
  line-height: 1.92;
  color: #334155;
  max-width: 62ch;
}

.principal-body .principal-text p {
  margin: 0 0 1.35em;
}

.principal-body .principal-text p:last-child {
  margin-bottom: 0;
}

.principal-signature {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(11, 95, 165, 0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  text-align: right;
}

.principal-signature__name {
  font-style: normal;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.principal-signature__role {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.empty {
  margin: 0 auto;
  padding: 2rem 1.5rem;
  max-width: 32rem;
  text-align: center;
  font-style: normal;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  border: 1px dashed rgba(11, 95, 165, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.empty + p {
  margin-top: 1rem;
  text-align: center;
}

.gallery-empty {
  max-width: 36rem;
}

/* Footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #161616 0%, var(--dark) 28%);
  color: #ccc;
  padding: 3rem 1rem 1rem;
  margin-top: 2rem;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.08);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(244, 208, 63, 0) 0%,
    rgba(244, 208, 63, 0.55) 20%,
    rgba(230, 126, 34, 0.85) 50%,
    rgba(244, 208, 63, 0.55) 80%,
    rgba(244, 208, 63, 0) 100%
  );
  pointer-events: none;
}

.footer-inner {
  width: min(1100px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.site-footer h3 { color: var(--white); margin-top: 0; }
.site-footer a { color: #9ecfff; text-decoration: none; border-radius: 4px; }
.site-footer a:hover { text-decoration: underline; color: var(--yellow); }
.site-footer a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }

.motto {
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer .social a.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: #9ecfff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.site-footer .social a.social-link:hover {
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .social a.social-link:hover {
    transform: none;
  }
}

.site-footer .social a.social-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.social-icon {
  flex-shrink: 0;
  display: block;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

.footer-copyright {
  margin: 0 0 1rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin: 0;
  padding-top: 0.25rem;
}

.footer-powered {
  margin: 0;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-powered a {
  color: #b8d9ff;
  font-weight: 600;
}

.footer-powered a:hover {
  color: var(--yellow);
}

.footer-visitors {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer-visitors__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #999;
  font-size: 0.72rem;
}

.footer-visitors__count {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

/* Events list page extras */
.page-hero {
  background:
    radial-gradient(ellipse 90% 85% at 50% 115%, rgba(244, 208, 63, 0.14) 0%, transparent 52%),
    linear-gradient(135deg, #094a82 0%, var(--blue) 48%, #083d66 100%);
  color: var(--white);
  padding: 2.5rem 1rem 2.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: 0.02em; }

.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb__sep {
  margin: 0 0.5rem;
  opacity: 0.75;
}
.breadcrumb__current {
  font-weight: 700;
  color: var(--yellow);
}

.page-hero__lede {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  opacity: 0.95;
  font-weight: 600;
}

.about-page__inner {
  width: min(760px, 100% - clamp(1rem, 5vw, 2rem));
  margin-inline: auto;
}

.about-prose {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--dark2);
}
.about-prose p {
  margin: 0 0 1.25rem;
}
.about-prose p:last-child {
  margin-bottom: 0;
}

.about-page__back {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(11, 95, 165, 0.12);
  font-size: 0.95rem;
  color: var(--muted);
}
.about-page__back a {
  font-weight: 600;
}

/* Contact Us page */
.page-hero--contact {
  background:
    radial-gradient(ellipse 90% 80% at 50% 120%, rgba(244, 208, 63, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #094a82 0%, var(--blue) 45%, #0a3d66 100%);
  padding-bottom: 3rem;
}

.contact-page__intro {
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.contact-page__intro-inner {
  width: min(820px, 100% - clamp(1rem, 5vw, 2rem));
  margin-inline: auto;
  text-align: center;
}

.contact-page__lead {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: var(--dark2);
  font-weight: 500;
}

.contact-page__grid-section {
  padding-top: 0.5rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.35rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 95, 165, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(11, 95, 165, 0.14);
}

.contact-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(11, 95, 165, 0.12), rgba(11, 95, 165, 0.05));
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.contact-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark2);
  letter-spacing: 0.02em;
}

.contact-card__body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--dark2);
  flex: 1 1 auto;
}

.contact-card__body--address {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-card__line {
  display: block;
}

.contact-card__link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.contact-card__link:hover {
  text-decoration: underline;
}

.contact-card__hint {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.contact-card__action {
  margin: 1rem 0 0;
}

.contact-hours-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--dark2);
}

.contact-hours-list li {
  margin-bottom: 0.35rem;
}

.contact-card--hours .contact-hours-list {
  flex: 1 1 auto;
}

.contact-page__map-section {
  padding-top: 1rem;
}

.contact-map-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.contact-map-head__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--dark2);
}

.contact-map-head__sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.5;
}

.contact-map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 95, 165, 0.12);
  background: #e8eef4;
  aspect-ratio: 16 / 10;
  max-height: min(480px, 70vh);
}

.contact-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-page__social {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.contact-social-inner {
  text-align: center;
}

.contact-social-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--dark2);
}

.contact-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--blue);
  background: var(--white);
  border: 2px solid rgba(11, 95, 165, 0.2);
  box-shadow: 0 2px 10px rgba(11, 95, 165, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.contact-social-link:hover {
  background: linear-gradient(180deg, rgba(11, 95, 165, 0.08), rgba(11, 95, 165, 0.02));
  border-color: var(--blue);
  text-decoration: none;
  transform: translateY(-1px);
}

.contact-page__cta-bar {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, rgba(11, 95, 165, 0.06) 0%, rgba(238, 243, 248, 0.9) 100%);
  border-top: 1px solid rgba(11, 95, 165, 0.1);
}

.contact-page__cta-inner {
  width: min(640px, 100% - clamp(1rem, 5vw, 2rem));
  margin-inline: auto;
  text-align: center;
}

.contact-page__cta-text {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark2);
}

.contact-page__cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.btn--sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

@media (prefers-reduced-motion: reduce) {
  .contact-card:hover,
  .contact-social-link:hover {
    transform: none;
  }
}

.event-detail { padding: 2rem 0 4rem; }
.event-detail-msg {
  padding: 2rem 0 3rem;
}
.event-detail .container {
  width: min(760px, 100% - clamp(1rem, 5vw, 2rem));
  margin-inline: auto;
}
.event-detail img.hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.event-meta { color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.event-body-prose {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--dark2);
}
.event-body-prose p:first-child { margin-top: 0; }

.event-detail__prose {
  margin-top: 1.75rem;
}

.event-detail__nav {
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(11, 95, 165, 0.12);
  font-size: 0.98rem;
}

.event-detail__nav-sep {
  margin: 0 0.5rem;
  opacity: 0.55;
}

.event-detail-msg .empty {
  margin-bottom: 1rem;
}

.event-detail--notfound .page-hero {
  padding-bottom: 2rem;
}

/* Top bar (phone, email, social) */
.top-bar {
  background: var(--dark);
  color: #bbb;
  font-size: 0.8rem;
  padding: 0.35rem 0;
}
.top-bar-inner {
  width: min(1200px, 100% - 1.5rem);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}
.top-bar-link {
  color: #e8f4ff;
  text-decoration: none;
  font-weight: 600;
}
.top-bar-link--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.top-bar-icon {
  flex-shrink: 0;
  opacity: 0.9;
  color: var(--yellow);
}
.top-bar-link:hover { text-decoration: underline; color: var(--yellow); }
.top-bar-link:hover .top-bar-icon {
  opacity: 1;
}
.top-bar-sep { opacity: 0.35; user-select: none; }
.top-bar-social {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}
.top-bar-soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.2rem;
  color: #9ecfff;
  text-decoration: none;
  border-radius: 8px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.top-bar-soc:hover {
  color: var(--yellow);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}
.top-bar-soc:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .top-bar-social { width: 100%; margin-left: 0; justify-content: flex-start; }
}

.hero-location {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  opacity: 0.95;
}
.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  max-width: 42ch;
  margin-inline: auto;
  opacity: 0.95;
}

.section--tint {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(11, 95, 165, 0.08);
  border-bottom: 1px solid rgba(11, 95, 165, 0.08);
}

.eyebrow {
  text-align: center;
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title--center {
  text-align: center;
}
.section-title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 2rem;
  align-items: start;
  margin-top: 0.5rem;
}
@media (max-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr; }
}

.body-quiet {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 1rem;
}

.welcome-aside h3 {
  margin-top: 0;
  color: var(--blue);
  font-size: 1.1rem;
}
.glance-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--dark2);
  line-height: 1.7;
}
.glance-list li { margin-bottom: 0.35rem; }

.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.vm-card h3 {
  margin-top: 0;
  color: var(--blue);
  font-size: 1.15rem;
}
.vm-card--accent {
  border-top: 4px solid var(--yellow);
  box-shadow: 0 12px 40px rgba(230, 126, 34, 0.12);
}

.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.mgmt-card h3 {
  margin-top: 0;
  color: var(--orange);
  font-size: 1.1rem;
}

.contact-strip {
  background:
    radial-gradient(ellipse 70% 100% at 0% 50%, rgba(244, 208, 63, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, #094a82 0%, var(--blue) 50%, #0a4d8a 100%);
  color: var(--white);
  padding: 2.75rem 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.contact-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 768px) {
  .contact-strip-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-strip-cta { justify-self: center; }
}
.contact-strip-title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.contact-strip-text {
  margin: 0;
  line-height: 1.65;
  font-size: 1rem;
}
/* Links only in text columns — do not override .btn-accent (yellow on yellow = invisible label) */
.contact-strip-text a {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
}
.contact-strip-text a:hover {
  text-decoration: underline;
}

.contact-strip-cta .btn-accent {
  color: var(--dark);
}

.footer-tagline {
  color: #aaa;
  font-size: 0.92rem;
  margin: 0.5rem 0 0;
  line-height: 1.5;
}
.footer-address {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.65;
}
.footer-contact a {
  font-weight: 600;
}

.hero--premium {
  position: relative;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.35s ease;
  }
}

.btn--pulse {
  position: relative;
  overflow: visible;
}

@media (prefers-reduced-motion: no-preference) {
  .btn--pulse::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid rgba(244, 208, 63, 0.55);
    animation: btn-ring 2.4s ease-out infinite;
    pointer-events: none;
  }
}

@keyframes btn-ring {
  0% { transform: scale(1); opacity: 0.9; }
  70% { transform: scale(1.08); opacity: 0; }
  100% { opacity: 0; }
}

/* Feature strip under hero */
.home-features {
  padding: 2.25rem 0 2.5rem;
  margin-top: -0.5rem;
  position: relative;
  z-index: 2;
}

.home-features-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 95, 165, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(11, 95, 165, 0.18);
}

.feature-icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.08));
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  color: var(--blue);
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.home-features.reveal {
  transition-delay: 0.05s;
}

/* Impact / stats strip (navy serif, editable in Admin → Homepage stats) */
.home-stats {
  --home-stat-navy: #002147;
  --home-stat-navy-soft: rgba(0, 33, 71, 0.08);
  position: relative;
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background:
    linear-gradient(180deg, rgba(0, 33, 71, 0.03) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #fafbfd 50%, #ffffff 100%);
  border-top: 1px solid var(--home-stat-navy-soft);
  border-bottom: 1px solid var(--home-stat-navy-soft);
  overflow: hidden;
}

.home-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 33, 71, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.55;
}

.home-stats-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.home-stats-header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.35rem);
}

.home-stats-eyebrow {
  color: var(--home-stat-navy);
  opacity: 0.75;
}

.home-stats-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--home-stat-navy);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.home-stats-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0.95;
}

.home-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 0;
  align-items: stretch;
  text-align: center;
}

.home-stat-item {
  position: relative;
  padding: 1rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s var(--ease-out), opacity 0.5s var(--ease-out);
}

@media (min-width: 901px) {
  .home-stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.25rem;
    right: 0;
    bottom: 1.25rem;
    width: 1px;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(0, 33, 71, 0.12) 20%,
      rgba(0, 33, 71, 0.12) 80%,
      transparent
    );
  }
}

.home-stats.reveal:not(.is-visible) .home-stat-item {
  opacity: 0;
  transform: translateY(16px);
}

.home-stats.reveal.is-visible .home-stat-item {
  opacity: 1;
  transform: translateY(0);
}

.home-stats.reveal.is-visible .home-stat-item:nth-child(1) { transition-delay: 0.05s; }
.home-stats.reveal.is-visible .home-stat-item:nth-child(2) { transition-delay: 0.12s; }
.home-stats.reveal.is-visible .home-stat-item:nth-child(3) { transition-delay: 0.19s; }
.home-stats.reveal.is-visible .home-stat-item:nth-child(4) { transition-delay: 0.26s; }
.home-stats.reveal.is-visible .home-stat-item:nth-child(n+5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .home-stats.reveal:not(.is-visible) .home-stat-item,
  .home-stats.reveal.is-visible .home-stat-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.home-stat-item:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .home-stat-item:hover {
    transform: none;
  }
}

.home-stat-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.85rem;
  color: var(--home-stat-navy);
}

.home-stat-icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: rgba(0, 33, 71, 0.06);
  border: 1px solid rgba(0, 33, 71, 0.1);
  box-shadow: 0 4px 14px rgba(0, 33, 71, 0.07);
  transition: box-shadow 0.35s ease, background 0.35s ease, transform 0.35s var(--ease-out);
}

.home-stat-item:hover .home-stat-icon-ring {
  background: rgba(0, 33, 71, 0.09);
  box-shadow: 0 8px 22px rgba(0, 33, 71, 0.11);
}

.home-stat-icon .home-stat-icon-svg {
  display: block;
}

.home-stat-value {
  margin: 0 0 0.4rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.85rem, 4.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--home-stat-navy);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "lnum" 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-stat-label {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(0.88rem, 1.85vw, 1.02rem);
  color: var(--home-stat-navy);
  line-height: 1.4;
  max-width: 15rem;
  margin-inline: auto;
  opacity: 0.92;
}

@media (max-width: 900px) {
  .home-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .home-stats {
    padding: 1.85rem 0 2rem;
  }

  .home-stats-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-stat-item::after {
    display: none !important;
  }
}

/* ========== Full responsive polish ========== */
.top-bar-inner {
  width: min(1200px, 100% - clamp(1rem, 4vw, 1.5rem));
  padding-inline: 0;
}

@media (max-width: 480px) {
  .top-bar {
    font-size: 0.72rem;
  }
  .top-bar-link {
    word-break: break-word;
  }
}

.footer-inner {
  width: min(1100px, 100% - clamp(1rem, 5vw, 2rem));
  padding-inline: 0;
}

@media (max-width: 1024px) {
  .section {
    padding: 2.75rem 0;
  }
  .lead {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 2.25rem 0;
  }
  .section-title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 1.85rem 0;
  }
}

/* Hero: still tall enough on phones for group photos */
@media (max-width: 640px) {
  :root {
    --hero-h: min(76vh, 680px);
  }
  .hero {
    min-height: var(--hero-h);
  }
  .hero-slider {
    height: var(--hero-h);
    border-radius: 0 0 10px 10px;
  }
}

@media (max-width: 380px) {
  :root {
    --hero-h: min(72vh, 620px);
  }
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (max-width: 640px) {
  .home-features {
    padding: 1.5rem 0 1.75rem;
    margin-top: 0;
  }
  .home-features-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .feature-card {
    padding: 1.35rem 1.15rem;
  }
}

@media (max-width: 640px) {
  .notice-board-viewport {
    --notice-row: 7.25rem;
  }
  .notice-board-viewport--scroll .notice-item {
    align-items: flex-start;
  }
  .notice-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .notice-item time {
    min-width: 0;
  }
  .notice-title {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
  .event-img-link img {
    height: min(200px, 55vw);
  }
}

@media (max-width: 640px) {
  .principal-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.35rem 1.15rem;
    gap: 1.35rem;
  }
  .principal-photo-frame {
    width: min(280px, 88vw);
    max-width: none;
    margin-inline: auto;
  }
  .principal-photo {
    aspect-ratio: 4 / 5;
  }
  .principal-body {
    min-width: 0;
    padding-left: 0;
  }
  .principal-body--with-photo::before {
    display: none;
  }
  .principal-body .principal-text {
    max-width: none;
  }
  .principal-text {
    text-align: left;
  }
  .principal-signature {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .vm-grid,
  .mgmt-grid {
    grid-template-columns: 1fr;
  }
}

/* Flash ticker: readable on small screens */
@media (max-width: 640px) {
  .flash-bar--under-hero {
    flex-direction: column;
    border-radius: 0 0 12px 12px;
  }
  .flash-bar--under-hero .flash-label {
    min-width: 0;
    width: 100%;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }
  .flash-bar--under-hero .flash-item {
    font-size: 0.85rem;
  }
  .flash-bar--under-hero .flash-track {
    padding: 0.5rem 0;
  }
}

/* Page hero (events) */
@media (max-width: 640px) {
  .page-hero {
    padding: 1.75rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

@media (max-width: 640px) {
  .event-detail {
    padding: 1.25rem 0 2.5rem;
  }
  .event-body-prose {
    font-size: 1rem;
  }
}

/* Site header safe area (notched devices) */
.site-header {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.top-bar {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.site-footer {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Reduce motion: respect user preference globally for hover transforms */
@media (prefers-reduced-motion: reduce) {
  .feature-card:hover {
    transform: none;
  }
}

/* Gallery page */
.gallery-section {
  padding-bottom: 3rem;
}

.gallery-album {
  margin-bottom: 2.75rem;
}

.gallery-album:last-child {
  margin-bottom: 0;
}

.gallery-album__head {
  margin-bottom: 1.25rem;
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.gallery-album__title {
  position: relative;
  display: inline-block;
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--dark2);
  letter-spacing: 0.02em;
}

.gallery-album__title::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 0.5rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
}

.gallery-album__desc {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
}

.gallery-grid__item {
  margin: 0;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(11, 95, 165, 0.18);
}

.gallery-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.gallery-card__img-wrap {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8eef4;
}

.gallery-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem 1rem;
}

.gallery-card__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark2);
}

.gallery-card__caption {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.gallery-empty {
  max-width: 36rem;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(10, 20, 40, 0.88);
  cursor: pointer;
}

.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.gallery-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark2);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gallery-lightbox__close:hover {
  background: var(--white);
}

.gallery-lightbox__figure {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox__img {
  width: 100%;
  max-height: min(78vh, 800px);
  object-fit: contain;
  background: #0a1628;
}

.gallery-lightbox__cap {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--dark2);
  line-height: 1.5;
}

.gallery-lightbox__cap:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card:hover {
    transform: none;
  }
}

/* —— Print: hide chrome, keep content readable —— */
@media print {
  .skip-link,
  .top-bar,
  .site-header,
  .nav-overlay,
  .nav-toggle,
  .flash-bar,
  .flash-bar--under-hero,
  .gallery-lightbox,
  .hero-slider {
    display: none !important;
  }

  body.public-site {
    background: #fff !important;
    color: #111 !important;
  }

  .site-footer {
    background: #f5f5f5 !important;
    color: #222 !important;
    border-top: 1px solid #ccc;
  }

  .site-footer a {
    color: #0b5fa5 !important;
  }

  main,
  .container {
    max-width: 100% !important;
  }

  .card,
  .principal-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}
