:root {
  --navy: #00365d;
  --navy-deep: #00243f;
  --navy-mid: #0a4a73;
  --gold: #c4a35a;
  --gold-deep: #a6853f;
  --ivory: #f7f3eb;
  --ivory-dark: #efe8dc;
  --paper: #fffdf8;
  --text: #1c2833;
  --muted: #5c6b76;
  --line: rgba(0, 54, 93, 0.12);
  --shadow: 0 12px 40px rgba(0, 36, 63, 0.08);
  --radius: 14px;
  --header-h: 84px;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.65;
  min-height: 100vh;
}

body:has(.site-header) {
  padding-top: var(--header-h);
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.15em;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--navy);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 36, 63, 0.08);
}

.btn:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 36, 63, 0.18);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 36, 63, 0.1);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #b59048;
  border-color: #b59048;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 163, 90, 0.3);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 54, 93, 0.18);
}

.btn-danger,
button[data-delete-open] {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.btn-danger:hover,
button[data-delete-open]:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 6px;
  font-weight: 500;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(247, 243, 235, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 36, 63, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.2rem;
}

.nav-desktop a {
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  color: var(--navy);
  border-radius: 999px;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  background: rgba(0, 54, 93, 0.08);
}

.has-sub {
  position: relative;
}

.subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
}

.has-sub:hover .subnav,
.has-sub:focus-within .subnav {
  display: grid;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--navy);
}

.donate-nav {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--ivory);
  padding: 1rem 0 1.4rem;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  place-items: end start;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 36, 63, 0.15), rgba(0, 36, 63, 0.72)),
    radial-gradient(circle at 20% 20%, #0a4a73, transparent 40%),
    radial-gradient(circle at 80% 80%, #003964, #014f86);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 24, 41, 0.65) 0%,
    rgba(0, 36, 63, 0.78) 50%,
    rgba(0, 24, 41, 0.88) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 4.5rem;
  max-width: 720px;
}

.hero .eyebrow {
  color: #ffd782;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 6vw, 4.1rem);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero p {
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--paper);
}

.section-navy {
  background: var(--navy);
  color: #fff;
}

.section-navy h2,
.section-navy h3 {
  color: #fff;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split-visual {
  min-height: 280px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  overflow: hidden;
}

.split-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.mission-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.mission-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.mission-card .icon {
  color: var(--gold-deep);
  width: 28px;
  height: 28px;
  margin-bottom: 0.8rem;
}

.founder-block {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

.founder-photo {
  background: var(--navy-deep);
  border-radius: var(--radius);
  min-height: 360px;
  overflow: hidden;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.quote-slider {
  display: grid;
  gap: 1rem;
}

.quote-card {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 1.6rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-card .icon {
  color: var(--gold);
  width: 36px;
  height: 36px;
  margin-bottom: 0.6rem;
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
}

.card-grid {
  display: grid;
  gap: 1.2rem;
}

.event-card,
.album-card,
.person-card,
.video-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.event-card img,
.album-card img,
.person-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 1.1rem 1.15rem 1.3rem;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--ivory-dark);
  color: var(--navy);
}

.badge-gold {
  background: rgba(196, 163, 90, 0.2);
  color: var(--gold-deep);
}

.gallery-mosaic {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 1fr;
}

.gallery-mosaic a:first-child {
  grid-column: span 2;
}

.gallery-mosaic img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-mosaic a:first-child img {
  height: 260px;
}

.video-feature,
.video-featured-card {
  max-width: 680px;
  margin-inline: auto;
}

.video-feature iframe,
.video-embed {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 36, 63, 0.12);
  background: #000;
}

.people-grid {
  display: grid;
  gap: 1.2rem;
}

.person-card img {
  height: 260px;
  object-fit: cover;
}

.donate-panel {
  display: grid;
  gap: 1.5rem;
}

.bank-list {
  display: grid;
  gap: 0.6rem;
}

.bank-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}

.qr-box {
  width: min(220px, 100%);
  background: #fff;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.map-frame {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ivory-dark);
}

.form-input,
.form-file,
textarea.form-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.86);
  padding: 3.5rem 0 1.5rem;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.86);
}

.socials {
  display: flex;
  gap: 0.6rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-bottom a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.page-hero {
  padding: 3.2rem 0 2rem;
  background: linear-gradient(180deg, var(--navy), var(--navy-mid));
  color: #fff;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--navy-mid);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
}

.alert-success {
  background: #e8f4ea;
  color: #1e4620;
}

.alert-error {
  background: #fdecea;
  color: #611a15;
}

.alert-warning {
  background: #fff4d6;
  color: #5c4300;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .icon {
  width: 56px;
  height: 56px;
  color: var(--gold);
}

.legal-body {
  max-width: 72ch;
}

.legal-body p {
  margin-bottom: 1rem;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .split,
  .founder-block,
  .donate-panel,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mission-grid,
  .card-grid,
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-mosaic img {
    height: 220px;
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mission-grid,
  .people-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  }
  .founder-block {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (max-width: 1023px) {
  .nav-desktop {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

.video-featured-card {
  padding: 1.4rem;
  border-radius: 14px;
  margin-bottom: 1.4rem;
}

.mt-1-2 {
  margin-top: 1.2rem;
}

.mt-1-5 {
  margin-top: 1.5rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-2-5 {
  margin-top: 2.5rem;
}

.eyebrow-gold {
  color: var(--gold);
}

.event-cover-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 14px;
  margin: 1rem 0;
}

.pagination-toolbar {
  margin-top: 1.5rem;
}

