:root {
  --blue: #0057d9;
  --blue-700: #1e40af;
  --green: #0b6b3a;
  --green-700: #084f2c;
  --gold: #d4af37;
  --ink: #1f2937;
  --muted: #5d6675;
  --light: #f3f4f6;
  --white: #ffffff;
  --line: rgba(31, 41, 55, 0.12);
  --blue-soft: #eef5ff;
  --green-soft: #edf8f1;
  --gold-soft: #fff7df;
  --shadow: 0 18px 48px rgba(31, 41, 55, 0.11);
  --hero-bg: url("assets/images/nasfat-home-hero.jpg?v=20260706");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Open Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 14px;
  z-index: 200;
  border-radius: 6px;
  background: var(--white);
  color: var(--blue-700);
  padding: 12px 16px;
  font-weight: 800;
}

.skip-link:focus {
  left: 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 87, 217, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 26px rgba(31, 41, 55, 0.05);
}

.nav {
  max-width: 1430px;
  min-height: 84px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 190px;
  font-family: Poppins, Montserrat, Arial, sans-serif;
  font-weight: 900;
}

.brand-logo {
  width: auto;
  height: 66px;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  border-radius: 0;
  padding: 31px 0 27px;
  color: #071b44;
  font-size: 17px;
  font-weight: 900;
}

.nav-item {
  position: relative;
}

.has-subnav > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.has-subnav > a::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  order: 2;
  transform: translateY(1px);
}

.subnav {
  position: absolute;
  top: calc(100% - 12px);
  left: 50%;
  z-index: 140;
  min-width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0, 87, 217, 0.94), rgba(11, 107, 58, 0.9)),
    #2494c2;
  box-shadow: 0 24px 58px rgba(7, 27, 68, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.has-subnav:hover .subnav,
.has-subnav:focus-within .subnav,
.has-subnav.subnav-open .subnav {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-links .subnav a {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  padding: 19px 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.25;
}

.nav-links .subnav a:hover,
.nav-links .subnav a.active {
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
}

.nav-links .subnav a:last-child {
  border-bottom: 0;
}

.nav-links .subnav a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active,
.nav-item.active > a {
  background: transparent;
  color: var(--blue);
}

.nav-links a.active {
  box-shadow: none;
}

.nav-links a.active::after,
.nav-links a:hover::after,
.nav-item.active > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--blue-700);
  font-weight: 900;
  cursor: pointer;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 22px;
}

.section.compact {
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 32%, rgba(255, 255, 255, 0.38) 56%, rgba(255, 255, 255, 0.08) 78%),
    var(--hero-bg) center center/cover,
    url("https://images.unsplash.com/photo-1564769662533-4f00a87b4056?auto=format&fit=crop&w=2200&q=80") center/cover;
  color: #071b44;
}

.home-page .hero {
  background: none;
}

.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 32%, rgba(255, 255, 255, 0.38) 56%, rgba(255, 255, 255, 0.08) 78%),
    var(--hero-bg) center center/cover,
    url("https://images.unsplash.com/photo-1564769662533-4f00a87b4056?auto=format&fit=crop&w=2200&q=80") center/cover;
  opacity: 0.9;
  transform: scale(1.03);
  transform-origin: center;
  animation: homeHeroBackground 1000ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform;
}

.home-page .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.08) 58%, transparent 100%);
  opacity: 0;
  transform: translateX(-34%);
  pointer-events: none;
  animation: homeLightVeil 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
  will-change: opacity, transform;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .home-page .hero::before {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0.72) 62%, rgba(255, 255, 255, 0.14) 100%),
      var(--hero-bg) 72% center/cover,
      url("https://images.unsplash.com/photo-1564769662533-4f00a87b4056?auto=format&fit=crop&w=1800&q=80") center/cover;
  }

  .home-page .hero-content {
    max-width: 540px;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1430px;
  margin: 0 auto;
  padding: 92px 76px 140px;
}

.hero-content {
  max-width: 570px;
}

.home-page .site-header {
  /* Homepage-only entrance sequence; duration stays under 1.2s total. */
  opacity: 0;
  transform: translateY(-22px);
  animation: homeNavEntrance 650ms cubic-bezier(0.22, 1, 0.36, 1) 40ms forwards;
  will-change: opacity, transform;
}

.home-page .hero h1 {
  opacity: 0;
  transform: translateY(30px);
  animation: homeSlideUp 700ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
  will-change: opacity, transform;
}

.home-page .hero .lead {
  opacity: 0;
  animation: homeFadeIn 500ms cubic-bezier(0.22, 1, 0.36, 1) 340ms forwards;
  will-change: opacity;
}

.home-page .hero-invocation,
.home-page .hero .eyebrow,
.home-page .hero-date {
  opacity: 0;
  transform: translateY(12px);
  animation: homeDetailEntrance 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform;
}

.home-page .hero-invocation {
  animation-delay: 80ms;
}

.home-page .hero .eyebrow {
  animation-delay: 160ms;
}

.home-page .hero-date {
  animation-delay: 260ms;
}

.home-page .hero .button-row .btn {
  opacity: 0;
  transform: translateY(14px);
  animation: homeCtaEntrance 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform;
}

.home-page .hero .button-row .btn:nth-child(1) {
  animation-delay: 420ms;
}

.home-page .hero .button-row .btn:nth-child(2) {
  animation-delay: 520ms;
}

.home-page .hero .button-row .btn:nth-child(3) {
  animation-delay: 620ms;
}

.home-page .hero-socials {
  opacity: 0;
  transform: scale(0.9);
  transform-origin: left center;
  animation: homeSocialEntrance 450ms cubic-bezier(0.22, 1, 0.36, 1) 700ms forwards;
  will-change: opacity, transform;
}

.hero-invocation {
  display: inline-flex;
  margin: 0 0 14px;
  border-left: 4px solid var(--gold);
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.72);
  color: #071b44;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
}

.hero-date {
  display: inline-flex;
  margin: 0 0 18px;
  border: 1px solid rgba(0, 87, 217, 0.18);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-actions a {
  border-bottom: 2px solid rgba(0, 87, 217, 0.28);
  padding-bottom: 5px;
  color: #071b44;
  font-size: 14px;
  font-weight: 900;
}

.hero-actions a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(7, 27, 68, 0.14);
  border-radius: 999px;
  padding: 7px 13px 7px 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #071b44;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(7, 27, 68, 0.12);
}

.social-link span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  text-transform: uppercase;
}

.social-link span svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

.social-link.facebook span {
  background: #1877f2;
}

.social-link.instagram span {
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 107%, #fdf497 0 11%, #fdf497 12%, #fd5949 36%, #d6249f 62%, #285aeb 100%);
}

.social-link.youtube span {
  background: #ff0000;
}

.social-link.tiktok span {
  background: #111827;
}

.social-link:hover,
.social-link:focus-visible {
  transform: scale(1.1);
  border-color: rgba(0, 87, 217, 0.32);
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 18px 42px rgba(7, 27, 68, 0.2);
  outline: none;
}

.social-link.facebook:hover,
.social-link.facebook:focus-visible {
  border-color: #1877f2;
  background: #1877f2;
  color: var(--white);
}

.social-link.instagram:hover,
.social-link.instagram:focus-visible {
  border-color: #c13584;
  background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af);
  color: var(--white);
}

.social-link.youtube:hover,
.social-link.youtube:focus-visible {
  border-color: #ff0000;
  background: #ff0000;
  color: var(--white);
}

.social-link.tiktok:hover,
.social-link.tiktok:focus-visible {
  border-color: #111827;
  background: #111827;
  color: var(--white);
}

.footer-socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.footer-socials .social-link {
  min-height: 46px;
  justify-content: flex-start;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 8px 12px 8px 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.footer-socials .social-link span {
  width: 28px;
  height: 28px;
}

.footer-socials .social-link span svg {
  width: 15px;
  height: 15px;
}

.home-page .quick-card {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease;
  will-change: opacity, transform;
}

.home-page .quick-card.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes homeHeroBackground {
  from {
    opacity: 0.9;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes homeLightVeil {
  0% {
    opacity: 0;
    transform: translateX(-34%);
  }
  32% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(24%);
  }
}

@keyframes homeNavEntrance {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeDetailEntrance {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeLineDraw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes homeFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes homeCtaEntrance {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeSocialEntrance {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -58px;
  position: relative;
  z-index: 2;
}

.quick-card {
  min-height: 126px;
  border: 1px solid rgba(0, 87, 217, 0.14);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-card span,
.next-prayer span,
.service-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-card strong {
  color: #071b44;
  font-family: Poppins, Montserrat, Arial, sans-serif;
  font-size: 22px;
  line-height: 1.1;
}

.quick-card:hover {
  transform: translateY(-3px);
  transition: transform 180ms ease;
}

.next-prayer {
  border-left: 5px solid var(--gold);
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(0, 87, 217, 0.1), rgba(11, 107, 58, 0.11)),
    var(--blue-soft);
}

.contact-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(238, 245, 255, 0.98) 0%, rgba(238, 245, 255, 0.9) 38%, rgba(238, 245, 255, 0.48) 64%, rgba(238, 245, 255, 0.72) 100%),
    linear-gradient(135deg, rgba(0, 87, 217, 0.22), rgba(11, 107, 58, 0.18)),
    var(--hero-bg) right center/cover;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 18% 28%, rgba(212, 175, 55, 0.22), transparent 26%),
    radial-gradient(circle at 82% 26%, rgba(0, 87, 217, 0.18), transparent 30%);
  pointer-events: none;
}

.contact-hero .section {
  position: relative;
  z-index: 1;
}

.about-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(238, 245, 255, 0.97) 0%, rgba(238, 245, 255, 0.87) 44%, rgba(238, 245, 255, 0.42) 72%, rgba(238, 245, 255, 0.76) 100%),
    linear-gradient(135deg, rgba(0, 87, 217, 0.18), rgba(11, 107, 58, 0.2)),
    var(--hero-bg) right center/cover;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 18% 24%, rgba(212, 175, 55, 0.2), transparent 26%),
    radial-gradient(circle at 76% 32%, rgba(0, 87, 217, 0.16), transparent 28%);
  pointer-events: none;
}

.about-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -90px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(0, 87, 217, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.about-hero .section {
  position: relative;
  z-index: 1;
}

.membership-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(238, 245, 255, 0.96), rgba(237, 248, 241, 0.92)),
    var(--blue-soft);
}

.membership-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 12% 30%, rgba(0, 87, 217, 0.16), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(212, 175, 55, 0.18), transparent 24%);
  pointer-events: none;
}

.membership-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 64px;
  align-items: center;
}

.membership-copy .lead {
  max-width: 620px;
}

.membership-showcase {
  position: relative;
  min-height: 440px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(31, 41, 55, 0.16);
}

.membership-showcase img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: block;
  object-fit: cover;
}

.membership-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 68, 0.04), rgba(7, 27, 68, 0.42));
}

.member-pass {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(31, 41, 55, 0.16);
}

.member-pass span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-pass strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.member-pass-code {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  border-radius: 8px;
  padding: 9px;
  background: var(--ink);
}

.member-pass-code span {
  margin: 0;
  border-radius: 3px;
  background: var(--white);
}

.membership-steps .card {
  min-height: 100%;
}

.membership-portal .button-row {
  justify-content: flex-end;
}

.donate-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(238, 245, 255, 0.96), rgba(252, 247, 229, 0.9)),
    var(--blue-soft);
}

.donate-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 16% 28%, rgba(11, 107, 58, 0.16), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(0, 87, 217, 0.13), transparent 26%);
  pointer-events: none;
}

.donate-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
  gap: 70px;
  align-items: start;
}

.donate-copy .lead {
  max-width: 640px;
}

.donate-hero .section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.donation-panel {
  border: 1px solid rgba(0, 87, 217, 0.13);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(31, 41, 55, 0.14);
}

.donation-panel-header {
  margin-bottom: 22px;
}

.donation-panel-header span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.donation-panel-header strong {
  display: block;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.12;
}

.donation-field {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.donation-field > label,
.custom-amount span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.donation-amounts button {
  border: 1px solid rgba(0, 87, 217, 0.2);
  border-radius: 8px;
  padding: 14px 10px;
  background: var(--blue-soft);
  color: var(--blue-700);
  font: inherit;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.donation-amounts button:hover,
.donation-amounts button.active {
  background: var(--blue);
  color: var(--white);
}

.custom-amount {
  display: grid;
  gap: 8px;
}

.amount-input-wrap {
  position: relative;
  display: block;
}

.amount-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  pointer-events: none;
}

.custom-amount input {
  width: 100%;
  border: 1px solid rgba(0, 87, 217, 0.18);
  border-radius: 8px;
  padding: 14px 16px 14px 34px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.custom-amount input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 87, 217, 0.12);
}

.donation-purpose-list {
  display: grid;
  gap: 10px;
}

.donation-purpose-list button {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.donation-purpose-list span {
  color: var(--muted);
  font-weight: 800;
}

.donation-purpose-list strong {
  color: var(--ink);
  text-align: right;
}

.donation-purpose-list button:hover,
.donation-purpose-list button.active {
  border-color: rgba(11, 107, 58, 0.28);
  background: var(--green-soft);
}

.payment-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-method-list a,
.payment-method-item {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 8px;
  padding: 14px;
  background: #fffaf0;
}

.payment-method-list a:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.payment-method-item {
  cursor: default;
}

.payment-method-list span {
  color: #172033;
  font-weight: 900;
}

.payment-method-list strong {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.donation-panel-cta {
  width: 100%;
  justify-content: center;
  margin-top: 0;
}

.donation-methods .card {
  min-height: 100%;
}

.donation-method-card {
  text-decoration: none;
}

.donation-method-card.is-static {
  cursor: default;
}

.donation-category-grid .card {
  position: relative;
  overflow: hidden;
}

.donation-category-grid .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--blue));
}

.donation-badge {
  min-width: 76px;
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 10px 16px;
  background:
    linear-gradient(135deg, rgba(11, 107, 58, 0.96), rgba(0, 87, 217, 0.9));
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(11, 107, 58, 0.18);
}

.donation-campaign-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  margin-bottom: 18px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 45, 112, 0.1);
}

.page-hero .section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.page-hero.narrow .section {
  padding-top: 62px;
  padding-bottom: 62px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark .eyebrow,
.cta-band .eyebrow {
  color: var(--gold);
}

.hero .eyebrow {
  color: var(--blue);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 590px;
  margin-bottom: 26px;
  color: #071b44;
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1.04;
}

.hero h1::after {
  content: "";
  display: block;
  width: 82px;
  height: 4px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--blue);
}

.home-page .hero h1::after {
  transform: scaleX(0);
  transform-origin: left center;
  animation: homeLineDraw 650ms cubic-bezier(0.22, 1, 0.36, 1) 520ms forwards;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Poppins, Montserrat, Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 930px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(29px, 4vw, 50px);
  line-height: 1.06;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.18;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero .lead,
.dark .lead,
.cta-band .lead {
  color: rgba(255, 255, 255, 0.82);
}

.hero .lead {
  max-width: 565px;
  color: #071b44;
  font-size: 21px;
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.events-view-more {
  justify-content: center;
  margin-top: 34px;
}

.event-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 34px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 13px 18px;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue-700);
}

.btn.green {
  background: var(--green);
}

.btn.green:hover {
  background: var(--green-700);
}

.btn.light {
  background: var(--white);
  color: var(--blue-700);
}

.hero .btn {
  min-height: 50px;
  padding: 14px 21px;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(0, 87, 217, 0.13);
}

.hero .btn.green {
  background: #004a9f;
}

.hero .btn.green:hover {
  background: var(--blue-700);
}

.hero .btn.light {
  border-color: rgba(7, 27, 68, 0.14);
  color: var(--blue);
}

.hero .btn.event {
  border-color: rgba(0, 87, 217, 0.42);
  background: #0b63d8;
  color: var(--white);
  box-shadow:
    0 14px 28px rgba(0, 87, 217, 0.2),
    0 8px 18px rgba(7, 27, 68, 0.12);
}

.hero .btn.event:hover {
  background: #004a9f;
  color: var(--white);
  transform: translateY(-2px);
}

.btn.outline {
  border-color: rgba(0, 87, 217, 0.22);
  background: var(--white);
  color: var(--blue-700);
}

.btn.gold {
  background: var(--gold);
  color: #172033;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 46px;
  align-items: center;
}

.split.top {
  align-items: start;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-2px);
  transition: transform 180ms ease;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 28px;
}

.service-card:last-child {
  border-right: 0;
}

.service-card h3 {
  margin-top: 34px;
}

.service-card a {
  margin-top: auto;
  color: var(--blue-700);
  font-weight: 900;
}

.service-card a:hover {
  color: var(--green);
}

.donate-strip {
  max-width: none;
  background: var(--gold-soft);
}

.donate-strip > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.donation-options a {
  min-height: 88px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--white);
  color: #172033;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.06);
}

.donation-options a:hover {
  background: var(--blue);
  color: var(--white);
}

.quote-panel {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.quote-panel blockquote {
  margin: 0 0 18px;
  color: #071b44;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.18;
}

.quote-panel p {
  margin-bottom: 0;
  color: var(--green);
  font-weight: 900;
}

.feature-card {
  min-height: 100%;
}

.leadership-directory {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(212, 175, 55, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(238, 245, 255, 0.96), rgba(237, 248, 241, 0.94));
}

.leadership-page .page-hero .section {
  opacity: 0;
  transform: translateX(-38px);
  animation: leadershipHeroSlide 820ms cubic-bezier(0.22, 1, 0.36, 1) 80ms forwards;
  will-change: opacity, transform;
}

.leadership-page .leadership-directory::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  opacity: 0;
  transform: translateX(-44%);
  animation: leadershipDirectorySweep 900ms cubic-bezier(0.22, 1, 0.36, 1) 160ms forwards;
  pointer-events: none;
}

.leadership-page .leadership-directory .eyebrow,
.leadership-page .leadership-directory h2 {
  opacity: 0;
  transform: translateX(-28px);
  animation: leadershipTextSlide 680ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform;
}

.leadership-page .leadership-directory .eyebrow {
  animation-delay: 180ms;
}

.leadership-page .leadership-directory h2 {
  animation-delay: 280ms;
}

.leadership-link-card {
  min-height: 235px;
  position: relative;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(0, 87, 217, 0.14);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 245, 255, 0.78)),
    var(--white);
  box-shadow: var(--shadow);
}

.leadership-link-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--gold));
}

.leadership-link-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.leadership-link-card h3 {
  max-width: 220px;
  margin: 40px 0 12px;
  color: #071b44;
  font-size: 26px;
}

.leadership-link-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.leadership-link-card:hover {
  transform: translateY(-3px);
  transition: transform 180ms ease;
}

.leadership-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.leadership-page .leadership-tabs {
  opacity: 0;
  transform: translateX(34px);
  animation: leadershipTabsSlide 720ms cubic-bezier(0.22, 1, 0.36, 1) 380ms forwards;
  will-change: opacity, transform;
}

.leadership-tabs button {
  min-height: 48px;
  border: 1px solid rgba(0, 87, 217, 0.16);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue-700);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 45, 112, 0.06);
}

.leadership-tabs button:hover,
.leadership-tabs button.active {
  border-color: rgba(212, 175, 55, 0.76);
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
}

.leadership-group-section {
  scroll-margin-top: 108px;
  display: none;
}

.leadership-group-section.active {
  display: block;
}

.leadership-group-section.soft-panel {
  max-width: none;
  background:
    linear-gradient(135deg, rgba(238, 245, 255, 0.72), rgba(237, 248, 241, 0.76)),
    var(--blue-soft);
}

.leadership-profile {
  min-height: 100%;
  padding: 24px 18px;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.leadership-page .leadership-slide-card {
  opacity: 0;
  transform: translateX(46px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease;
  will-change: opacity, transform;
}

.leadership-page .leadership-slide-card:nth-child(even) {
  transform: translateX(-46px);
}

.leadership-page .leadership-slide-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.leadership-profile img {
  width: 156px;
  aspect-ratio: 1 / 1;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  margin-bottom: 18px;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(0, 45, 112, 0.14);
}

.leadership-profile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(0, 45, 112, 0.14);
}

.leadership-home-preview {
  padding-top: 78px;
  padding-bottom: 78px;
  background:
    radial-gradient(circle at 8% 16%, rgba(212, 175, 55, 0.11), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, rgba(238, 245, 255, 0.68) 100%);
}

@keyframes leadershipHeroSlide {
  from {
    opacity: 0;
    transform: translateX(-38px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes leadershipDirectorySweep {
  0% {
    opacity: 0;
    transform: translateX(-44%);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(28%);
  }
}

@keyframes leadershipTextSlide {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes leadershipTabsSlide {
  from {
    opacity: 0;
    transform: translateX(34px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.leadership-preview-grid {
  margin-top: 26px;
  align-items: stretch;
}

.leadership-home-preview .leadership-profile {
  border-radius: 8px;
  padding: 16px 16px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(238, 245, 255, 0.72)),
    var(--white);
  border: 1px solid rgba(0, 87, 217, 0.12);
  box-shadow: 0 18px 44px rgba(7, 27, 68, 0.09);
}

.leadership-home-preview .leadership-profile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  margin-bottom: 18px;
}

.leadership-home-preview .leadership-profile h3 {
  font-size: 21px;
  line-height: 1.18;
}

.leadership-home-preview .leader-post {
  margin-bottom: 0;
}

.leadership-view-more {
  justify-content: center;
  margin-top: 22px;
}

.leader-post {
  margin: -2px 0 12px;
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.leader-contact {
  display: block;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.leadership-empty {
  min-height: 190px;
  display: grid;
  place-content: center;
  text-align: center;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.muted {
  color: var(--muted);
  line-height: 1.7;
}

.band {
  background: var(--light);
}

.green-band {
  background: var(--green-soft);
}

.blue-band {
  background: var(--blue-soft);
}

.event-calendar-section {
  background: var(--blue-soft);
}

.calendar-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 31, 53, 0.12);
  margin-top: 24px;
  overflow: hidden;
}

.calendar-frame iframe {
  border: 0;
  display: block;
  min-height: 680px;
  width: 100%;
}

.dark,
.cta-band {
  background: #172033;
  color: var(--white);
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(0, 87, 217, 0.95), rgba(11, 107, 58, 0.94)),
    #172033;
}

.dark .card,
.cta-band .card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.dark .muted,
.cta-band .muted {
  color: rgba(255, 255, 255, 0.74);
}

.stat {
  border-left: 4px solid var(--gold);
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.dark .stat strong {
  color: var(--gold);
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}

.prayer-card {
  position: relative;
  min-height: 142px;
  border: 1px solid rgba(0, 87, 217, 0.14);
  border-radius: 8px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 255, 0.76)),
    var(--white);
  padding: 18px 16px;
  box-shadow: 0 16px 34px rgba(31, 41, 55, 0.08);
}

.prayer-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--gold));
}

.prayer-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(0, 87, 217, 0.08);
}

.prayer-card.current {
  border-color: rgba(212, 175, 55, 0.52);
  background:
    linear-gradient(145deg, rgba(0, 87, 217, 0.96), rgba(11, 107, 58, 0.94)),
    var(--green);
  color: var(--white);
  box-shadow: 0 22px 46px rgba(0, 87, 217, 0.22);
}

.prayer-card.current::before {
  background: var(--gold);
}

.prayer-card.current::after {
  background: rgba(255, 255, 255, 0.12);
}

.prayer-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prayer-card.current span {
  color: rgba(255, 255, 255, 0.8);
}

.prayer-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: #071b44;
  font-size: 25px;
  line-height: 1.05;
}

.prayer-time-pair {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.prayer-time-pair span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.prayer-time-pair strong {
  border-radius: 7px;
  margin-top: 0;
  padding: 9px 10px;
  background: rgba(0, 87, 217, 0.08);
  color: var(--blue-700);
  font-size: 18px;
  line-height: 1.15;
}

.prayer-card.current strong,
.prayer-card.current .prayer-time-pair strong {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: left;
}

th {
  background: var(--blue-soft);
  color: var(--blue-700);
}

tr:last-child td {
  border-bottom: 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: 900;
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 87, 217, 0.12);
  overflow: hidden;
}

.progress span {
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.tag-list,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 34px;
}

.tag,
.filter-btn {
  border: 1px solid rgba(0, 87, 217, 0.18);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-700);
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 900;
}

.filter-btn {
  cursor: pointer;
}

.filter-btn.active {
  background: var(--green);
  color: var(--white);
}

.program-card img,
.profile img,
.news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

.news-card,
.program-card {
  padding: 0;
  overflow: hidden;
}

.news-card img,
.program-card img {
  border-radius: 0;
  margin: 0;
  aspect-ratio: 16 / 10;
}

.card-body {
  padding: 24px;
}

.event-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: var(--muted);
}

.event-meta strong {
  color: var(--ink);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-top: 28px;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.gallery-browser {
  display: grid;
  gap: 28px;
}

.gallery-browser[hidden] {
  display: none;
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 150px 190px;
  gap: 12px;
  align-items: end;
}

.gallery-toolbar label {
  display: grid;
  gap: 8px;
  color: #071b44;
  font-weight: 900;
}

.gallery-toolbar input,
.gallery-toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.gallery-hero-albums {
  max-width: 780px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.gallery-hero-album {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(7, 27, 68, 0.08);
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(7, 27, 68, 0.08);
  backdrop-filter: blur(10px);
  transform: translateY(0) scale(1);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.gallery-hero-album:hover {
  border-color: rgba(0, 87, 217, 0.18);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(7, 27, 68, 0.14);
  transform: translateY(-3px) scale(1.02);
}

.gallery-hero-album span {
  font-weight: 900;
}

.gallery-hero-album small {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
}

.gallery-hero-empty {
  display: inline-flex;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-weight: 800;
}

.gallery-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.gallery-album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-album-card {
  position: relative;
  min-height: 250px;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 18px 50px rgba(7, 27, 68, 0.10);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
}

.gallery-album-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 26px 64px rgba(7, 27, 68, 0.16);
}

.gallery-album-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 360ms ease;
  z-index: -2;
}

.gallery-album-card:hover img {
  transform: scale(1.08);
}

.gallery-album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 68, 0.12), rgba(7, 27, 68, 0.82));
  z-index: -1;
}

.gallery-album-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 18px;
}

.gallery-album-card h3 {
  color: var(--white);
  margin-bottom: 6px;
}

.gallery-album-card p,
.gallery-album-card span {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.gallery-back-button {
  border: 0;
  border-radius: 999px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--green-soft);
  color: var(--green-700);
  font-weight: 900;
  cursor: pointer;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-photo-tile {
  width: 100%;
  border: 0;
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(7, 27, 68, 0.08);
  cursor: zoom-in;
  text-align: left;
}

.gallery-photo-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.gallery-photo-tile span {
  display: block;
  padding: 11px 12px;
  color: var(--ink);
  font-weight: 800;
}

.gallery-empty {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: var(--white);
}

.gallery-item {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-item.tall img {
  aspect-ratio: 4 / 3;
}

.gallery-item span {
  display: block;
  padding: 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(23, 32, 51, 0.94);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-height: 82vh;
  border-radius: 8px;
  transition: transform 220ms ease;
}

.lightbox img.zoomed {
  transform: scale(1.55);
}

.close-lightbox {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  border-radius: 6px;
  background: var(--white);
  padding: 12px 15px;
  color: var(--blue-700);
  font-weight: 900;
  cursor: pointer;
}

.gallery-lightbox figure {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.gallery-lightbox figcaption {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  text-align: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  border: 0;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.92);
  color: #071b44;
  font-size: 36px;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 18px;
}

.lightbox-nav.next {
  right: 18px;
}

.lightbox-tools {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.lightbox-tools button,
.lightbox-tools a {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #071b44;
  font-weight: 900;
  text-decoration: none;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  font-weight: 900;
}

.form input,
.form select,
.form textarea,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-slot {
  min-height: 0;
}

.turnstile-slot:has(iframe) {
  min-height: 65px;
}

.form-status {
  border-radius: 8px;
  margin: 0;
  padding: 12px 14px;
  background: var(--green-soft);
  color: var(--green-700);
  font-weight: 900;
}

.form-status[data-type="error"] {
  background: #fff1f2;
  color: #9f1239;
}

.contact-submit-button {
  position: relative;
}

.contact-submit-button:disabled {
  opacity: 0.74;
  cursor: wait;
}

.button-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-top-color: var(--white);
  border-radius: 999px;
  animation: contactButtonSpin 700ms linear infinite;
}

.is-sending .button-spinner {
  display: inline-block;
}

@keyframes contactButtonSpin {
  to {
    transform: rotate(360deg);
  }
}

.map {
  width: 100%;
  min-height: 470px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-panel {
  background:
    linear-gradient(135deg, rgba(0, 87, 217, 0.08), rgba(212, 175, 55, 0.11)),
    var(--white);
}

.phone-mock {
  max-width: 330px;
  margin: 0 auto;
  border: 10px solid #172033;
  border-radius: 32px;
  background: var(--white);
  padding: 20px;
  box-shadow: var(--shadow);
}

.phone-mock .screen {
  border-radius: 22px;
  background: var(--blue-soft);
  padding: 22px;
}

.admin-auth-page {
  min-height: 100vh;
  background: #0057d9;
}

.admin-back-link {
  position: fixed;
  top: 26px;
  left: 28px;
  z-index: 20;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 800;
}

.admin-back-link::before {
  content: "<";
  margin-right: 10px;
}

.admin-back-link:hover {
  color: var(--gold);
}

.admin-login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 82px 20px;
  background:
    linear-gradient(135deg, rgba(0, 87, 217, 0.92), rgba(7, 27, 68, 0.74)),
    var(--hero-bg) center bottom/cover,
    #0057d9;
  color: var(--white);
}

.admin-login-card {
  width: min(100%, 510px);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-top: 5px solid var(--gold);
  border-radius: 18px;
  display: grid;
  gap: 16px;
  padding: 42px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(7, 27, 68, 0.34);
  backdrop-filter: blur(16px);
}

.admin-login-mark {
  width: 152px;
  height: 100px;
  border: 2px solid rgba(212, 175, 55, 0.78);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  padding: 10px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(0, 87, 217, 0.2);
}

.admin-login-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.admin-login-card h1 {
  max-width: none;
  margin: 0;
  color: #071b44;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.1;
  text-align: center;
}

.admin-login-card p {
  margin: -8px 0 22px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.admin-login-card label {
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-login-card input {
  width: 100%;
  height: 61px;
  border: 1px solid rgba(0, 87, 217, 0.18);
  border-radius: 13px;
  padding: 0 20px;
  background: var(--blue-soft);
  color: #071b44;
  font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.admin-login-card input::placeholder {
  color: rgba(7, 27, 68, 0.38);
}

.admin-login-card input:focus {
  border-color: var(--blue);
  background: var(--white);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 88px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 12px;
  min-height: 38px;
  border: 1px solid rgba(0, 87, 217, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--white);
  color: var(--blue-700);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-field button:hover,
.password-field button:focus-visible {
  outline: none;
  background: var(--blue);
  color: var(--white);
}

.admin-login-card .btn {
  width: 100%;
  min-height: 60px;
  margin-top: 6px;
  border-radius: 13px;
  color: #071b44;
  font-size: 16px;
  box-shadow: 0 14px 28px rgba(212, 175, 55, 0.24);
}

.admin-forgot-link {
  border: 0;
  background: transparent;
  color: var(--blue-700);
  font-weight: 900;
  cursor: pointer;
  text-align: center;
}

.admin-forgot-link:hover {
  color: var(--green);
}

.admin-recovery {
  border: 1px solid rgba(0, 87, 217, 0.16);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  background: var(--gold-soft);
  color: #071b44;
  font-size: 14px;
}

.admin-recovery strong {
  color: var(--green);
}

.admin-login-card .admin-login-error {
  min-height: 22px;
  margin: 0;
  color: #b42318;
  font-size: 14px;
  text-align: center;
}

.admin-dashboard {
  min-height: 100vh;
  background: var(--white);
}

.admin-dashboard-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 22px 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.admin-dashboard-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(40px, 6vw, 68px);
}

.admin-shell {
  display: grid;
  gap: 28px;
}

.admin-toolbar,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.admin-toolbar .button-row {
  margin-top: 0;
}

.admin-panel {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.admin-editor {
  display: grid;
  gap: 16px;
}

.admin-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--light);
}

.admin-panel label {
  display: grid;
  gap: 7px;
  color: #071b44;
  font-weight: 900;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 13px;
  background: var(--white);
  color: var(--ink);
}

.admin-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-group-heading h3 {
  margin-bottom: 0;
}

.admin-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: end;
  padding-bottom: 12px;
}

.admin-check input {
  width: auto;
}

.leader-admin-card img {
  width: 120px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.admin-preview {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.admin-note {
  box-shadow: none;
}

.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.24);
  background:
    linear-gradient(145deg, rgba(7, 27, 68, 0.98), rgba(13, 35, 62, 0.96) 48%, rgba(9, 78, 48, 0.94)),
    #071b44;
  color: var(--white);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(255, 255, 255, 0) 28%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.footer::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 3px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--green), #38bdf8);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 22px 54px;
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-inner > div {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.footer-inner > div:first-child {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
}

.footer h2,
.footer h3 {
  color: var(--white);
}

.footer h2 {
  max-width: 12ch;
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 0.98;
}

.footer h2::after,
.footer h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--gold);
}

.footer h3 {
  margin-bottom: 18px;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.footer a,
.footer p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.62;
}

.footer a:hover {
  color: var(--gold);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.footer li a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 0;
  font-weight: 800;
}

.footer li a::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-right: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #38bdf8);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.copyright {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  body.menu-open {
    overflow: hidden;
  }

  .masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    min-height: 72px;
    padding: 0 20px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    position: relative;
    z-index: 125;
  }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(390px, 88vw);
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 96px 22px 28px;
    overflow-y: auto;
    background:
      linear-gradient(145deg, rgba(7, 27, 68, 0.98), rgba(0, 87, 217, 0.95) 52%, rgba(11, 107, 58, 0.95)),
      var(--blue-700);
    box-shadow: -24px 0 70px rgba(7, 27, 68, 0.28);
    transform: translateX(110%);
    transition: transform 260ms ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links::before {
    content: "Explore NASFAT Houston";
    display: block;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .nav-links a {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    backdrop-filter: blur(14px);
  }

  .nav-item {
    display: grid;
    gap: 8px;
  }

  .has-subnav > a {
    justify-content: space-between;
  }

  .subnav {
    position: static;
    min-width: 0;
    display: grid;
    gap: 8px;
    border: 0;
    border-left: 3px solid rgba(212, 175, 55, 0.82);
    border-radius: 0;
    padding: 0 0 0 12px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-links .subnav a {
    border-radius: 8px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
  }

  .nav-links .subnav a:hover,
  .nav-links .subnav a.active {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-item.active > a {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
  }

  .nav-links a.active::after,
  .nav-links a:hover::after,
  .nav-item.active > a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    background-position: 58% center, 58% center, center center;
  }

  .prayer-grid,
  .quick-panel,
  .service-grid,
  .donation-options,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-panel {
    margin-top: 0;
  }

  .service-card:nth-child(2) {
    border-right: 0;
  }

  .service-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .grid.three,
  .admin-row,
  .donate-hero-grid,
  .admin-admin-grid.three,
  .donation-form-admin-grid,
  .membership-hero-grid,
  .split,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .membership-showcase,
  .membership-showcase img {
    min-height: 340px;
  }

  .membership-portal .button-row {
    justify-content: flex-start;
  }

  .donation-panel {
    padding: 22px;
  }

  .payment-method-list {
    grid-template-columns: 1fr;
  }

  .donation-form-settings-card {
    padding: 16px;
  }

  .donation-form-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .donation-form-admin-item,
  .donation-form-admin-item.method {
    grid-template-columns: auto 1fr auto auto;
  }

  .donation-form-admin-item label,
  .donation-form-admin-item label.wide {
    grid-column: 2 / -1;
  }

  .donation-form-check {
    grid-column: span 1 !important;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dashboard-hero {
    align-items: stretch;
    flex-direction: column;
    padding-top: 82px;
  }

  .admin-login-card {
    padding: 30px 22px;
  }

  .admin-login-card h1 {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .donation-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html {
    scroll-padding-top: 74px;
  }

  body {
    background:
      linear-gradient(180deg, rgba(238, 245, 255, 0.72), rgba(255, 255, 255, 0) 360px),
      var(--white);
  }

  .site-header {
    top: 8px;
    width: calc(100% - 20px);
    margin: 0 auto;
    border: 1px solid rgba(0, 87, 217, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 34px rgba(7, 27, 68, 0.1);
    backdrop-filter: blur(18px);
  }

  .nav {
    min-height: 62px;
    padding: 0 10px 0 12px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100vw - 116px);
  }

  .brand-logo {
    height: 50px;
    max-width: 140px;
  }

  .menu-button {
    width: 44px;
    height: 40px;
    border-color: rgba(0, 87, 217, 0.18);
    border-radius: 999px;
    background: #071b44;
    color: var(--white);
    font-size: 0;
  }

  .menu-button::before,
  .menu-button::after {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-button::after {
    margin-top: -10px;
    transform: translateY(10px);
  }

  .menu-button[aria-expanded="true"]::before {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"]::after {
    transform: translateY(7px) rotate(-45deg);
  }

  .nav-links {
    width: 100vw;
    padding: 96px 18px 32px;
  }

  .nav-links a {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
  }

  .nav-links a::after {
    content: ">";
    display: inline;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--gold);
  }

  .has-subnav > a::after,
  .nav-links .subnav a::after {
    display: none;
  }

  .section,
  .hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .section.compact {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .hero {
    min-height: calc(100svh - 20px);
    align-items: end;
    margin-top: -70px;
    padding-top: 94px;
    background:
      linear-gradient(180deg, rgba(7, 27, 68, 0.44) 0%, rgba(7, 27, 68, 0.2) 36%, rgba(7, 27, 68, 0.86) 100%),
      var(--hero-bg) 66% center/cover,
      #071b44;
    color: var(--white);
  }

  .hero-inner {
    padding-top: 160px;
    padding-bottom: 30px;
  }

  .hero-content {
    max-width: none;
  }

  .hero-invocation,
  .hero-date {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    backdrop-filter: blur(16px);
  }

  .hero-invocation {
    border-left-color: var(--gold);
    font-size: 14px;
  }

  .hero .eyebrow {
    color: var(--gold);
    font-size: 11px;
  }

  .hero h1,
  h1 {
    font-size: clamp(33px, 11vw, 46px);
    line-height: 0.98;
  }

  .hero h1 {
    margin-bottom: 18px;
    color: var(--white);
  }

  .hero h1::after {
    width: 66px;
    height: 3px;
    margin-top: 16px;
    background: var(--gold);
  }

  h2 {
    font-size: clamp(27px, 9vw, 38px);
  }

  h3 {
    font-size: 20px;
  }

  .lead,
  .hero .lead {
    font-size: 16px;
    line-height: 1.58;
  }

  .hero .lead {
    color: rgba(255, 255, 255, 0.88);
  }

  .hero .button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero .button-row .btn:first-child {
    grid-column: 1 / -1;
  }

  .hero .btn {
    min-height: 52px;
    border-radius: 999px;
  }

  .hero-actions {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 18px -4px 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 5px;
    background: rgba(7, 27, 68, 0.78);
    backdrop-filter: blur(18px);
  }

  .hero-actions a {
    border: 0;
    border-radius: 999px;
    padding: 10px 8px;
    color: var(--white);
    font-size: 12px;
    text-align: center;
  }

  .hero-actions a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold);
  }

  .page-hero {
    margin-top: -70px;
    padding-top: 78px;
    background:
      linear-gradient(145deg, rgba(0, 87, 217, 0.16), rgba(11, 107, 58, 0.12)),
      var(--blue-soft);
  }

  .page-hero .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .button-row,
  .search-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
  }

  .prayer-grid,
  .service-grid,
  .donation-options,
  .grid.two,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    grid-template-columns: none;
    grid-auto-columns: minmax(178px, 72vw);
    grid-auto-flow: column;
    gap: 12px;
    margin-top: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .quick-panel::-webkit-scrollbar,
  .prayer-grid::-webkit-scrollbar,
  .donation-options::-webkit-scrollbar {
    display: none;
  }

  .quick-card {
    min-height: 116px;
    scroll-snap-align: start;
    border-radius: 10px;
    padding: 20px;
  }

  .quick-card strong {
    font-size: 20px;
  }

  .green-band .prayer-grid,
  .prayer-grid {
    grid-template-columns: none;
    grid-auto-columns: minmax(170px, 68vw);
    grid-auto-flow: column;
    gap: 12px;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .prayer-card {
    min-height: 132px;
    scroll-snap-align: start;
    border-radius: 10px;
  }

  .service-card,
  .service-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .service-grid {
    border: 0;
    gap: 12px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .service-card {
    min-height: 230px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 14px 30px rgba(31, 41, 55, 0.08);
  }

  .service-card h3 {
    margin-top: 24px;
  }

  .donation-options {
    grid-template-columns: none;
    grid-auto-columns: minmax(150px, 58vw);
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .donation-options a {
    min-height: 82px;
    scroll-snap-align: start;
  }

  .card,
  .program-card,
  .news-card,
  .gallery-item,
  .table-wrap,
  .map {
    border-radius: 10px;
  }

  .program-card img,
  .news-card img {
    aspect-ratio: 5 / 3;
  }

  .card {
    padding: 20px;
  }

  .program-card,
  .news-card {
    padding: 0;
  }

  .card-body {
    padding: 20px;
  }

  .footer-inner {
    padding-top: 42px;
    padding-bottom: 42px;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  :root {
    --shadow: 0 14px 34px rgba(7, 27, 68, 0.1);
  }

  html {
    scroll-padding-top: 86px;
  }

  body {
    overflow-x: hidden;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 24px);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 42px rgba(7, 27, 68, 0.12);
  }

  .nav {
    min-height: 64px;
  }

  .brand {
    max-width: calc(100vw - 122px);
  }

  .brand-logo {
    height: 52px;
    max-width: 145px;
  }

  .menu-button {
    width: 46px;
    height: 42px;
    box-shadow: 0 10px 22px rgba(7, 27, 68, 0.16);
  }

  .nav-links {
    inset: 0;
    width: 100vw;
    min-height: 100dvh;
    gap: 10px;
    padding: 94px 18px 34px;
    background:
      radial-gradient(circle at 18% 10%, rgba(212, 175, 55, 0.24), transparent 28%),
      linear-gradient(145deg, rgba(7, 27, 68, 0.98), rgba(0, 87, 217, 0.94) 52%, rgba(11, 107, 58, 0.96));
  }

  .nav-links::before {
    margin-bottom: 4px;
  }

  .nav-links a {
    min-height: 56px;
    border-radius: 12px;
    padding: 15px 16px;
    font-size: 17px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .subnav {
    gap: 7px;
    border-left-color: var(--gold);
    margin: -2px 0 2px 8px;
    padding-left: 12px;
  }

  .nav-links .subnav a {
    min-height: 50px;
    border-radius: 11px;
    padding: 13px 15px;
    font-size: 15px;
  }

  .hero {
    min-height: auto;
    margin-top: -74px;
    padding-top: 92px;
    background:
      linear-gradient(180deg, rgba(7, 27, 68, 0.2) 0%, rgba(7, 27, 68, 0.52) 45%, rgba(7, 27, 68, 0.94) 100%),
      var(--hero-bg) 70% center/cover,
      #071b44;
  }

  .hero-inner {
    min-height: calc(100svh - 18px);
    display: flex;
    align-items: end;
    padding-top: 130px;
    padding-bottom: 24px;
  }

  .hero-content {
    width: 100%;
    transform: translateY(-150px);
  }

  .hero-invocation,
  .hero-date {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
    line-height: 1.35;
  }

  .hero h1,
  h1 {
    font-size: clamp(34px, 10.5vw, 44px);
    line-height: 1.03;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero .lead {
    max-width: 34ch;
    font-size: 15.5px;
  }

  .hero .button-row {
    margin-top: 22px;
  }

  .hero .btn,
  .btn {
    min-height: 50px;
    padding: 12px 17px;
    font-size: 15px;
  }

  .hero-actions {
    position: static;
    border-radius: 16px;
    margin: 16px 0 0;
    padding: 6px;
  }

  .hero-actions a {
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: 8px 6px;
    font-size: 12px;
  }

  .section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .page-hero {
    margin-top: -74px;
    padding-top: 86px;
  }

  .page-hero .section {
    padding-top: 40px;
    padding-bottom: 42px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  h2 {
    font-size: clamp(27px, 8.4vw, 36px);
  }

  .lead {
    font-size: 16px;
    line-height: 1.62;
  }

  .quick-panel {
    margin-top: -2px;
    padding-top: 18px;
  }

  .quick-card,
  .prayer-card,
  .service-card,
  .leadership-link-card,
  .donation-options a {
    border-radius: 14px;
  }

  .quick-card {
    min-height: 104px;
    padding: 18px;
  }

  .quick-card strong {
    font-size: 19px;
  }

  .green-band .prayer-grid,
  .prayer-grid {
    grid-auto-columns: minmax(178px, 74vw);
  }

  .prayer-card {
    min-height: 126px;
    padding: 17px 15px;
  }

  .prayer-time-pair strong {
    font-size: 17px;
  }

  .split {
    gap: 24px;
  }

  .service-grid {
    gap: 14px;
  }

  .service-card {
    min-height: 0;
    padding: 22px;
  }

  .service-card h3 {
    margin-top: 18px;
  }

  .donate-strip,
  .green-band,
  .blue-band,
  .leadership-directory,
  .leadership-group-section.soft-panel {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .donation-options {
    margin-right: -16px;
    padding-right: 16px;
  }

  .card {
    border-radius: 14px;
    padding: 20px;
  }

  .news-card,
  .program-card {
    border-radius: 14px;
  }

  .program-card img,
  .news-card img {
    aspect-ratio: 16 / 10;
  }

  .card-body {
    padding: 19px;
  }

  .leadership-link-card {
    min-height: 188px;
    padding: 22px;
  }

  .leadership-link-card h3 {
    margin-top: 26px;
    font-size: 24px;
  }

  .leadership-profile {
    padding: 14px;
  }

  .leadership-profile img,
  .profile img {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }

  .search-panel {
    gap: 10px;
  }

  .search-panel input,
  .search-panel select,
  .form input,
  .form select,
  .form textarea {
    min-height: 50px;
    border-radius: 10px;
    font-size: 16px;
  }

  .masonry {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-toolbar,
  .gallery-album-grid {
    grid-template-columns: 1fr;
  }

  .gallery-hero-albums {
    gap: 10px;
  }

  .gallery-hero-album {
    min-height: 46px;
    padding: 10px 13px;
  }

  .gallery-album-card {
    min-height: 220px;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .lightbox-tools {
    width: calc(100% - 28px);
    justify-content: center;
    flex-wrap: wrap;
  }

  .gallery-item {
    border-radius: 14px;
  }

  .footer-inner {
    padding: 44px 18px;
    gap: 24px;
  }

  .menu-button {
    width: 54px;
    height: 34px;
    flex: 0 0 54px;
    position: fixed;
    top: 21px;
    right: max(18px, calc(100vw - 370px));
    z-index: 220;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: linear-gradient(145deg, #071b44, #0d2a63);
    color: var(--white);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(7, 27, 68, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .menu-button::before,
  .menu-button::after {
    display: none;
  }

  .menu-button::after {
    display: none;
  }

  .menu-button[aria-expanded="true"] {
    background: linear-gradient(145deg, #0b6b3a, #071b44);
    color: var(--white);
  }

  .menu-button[aria-expanded="true"]::before {
    display: none;
  }

  .menu-button[aria-expanded="true"]::after {
    display: none;
  }

  .nav-links {
    inset: 82px 12px auto;
    width: auto;
    min-height: 0;
    max-height: calc(100dvh - 98px);
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(0, 87, 217, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 58px rgba(7, 27, 68, 0.18);
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links::before {
    content: "Menu";
    margin: 2px 8px 8px;
    color: var(--green-700);
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .nav-links a {
    min-height: 48px;
    border: 0;
    border-bottom: 1px solid rgba(7, 27, 68, 0.08);
    border-radius: 0;
    padding: 13px 8px;
    background: transparent;
    color: var(--blue-900);
    font-size: 16px;
    font-weight: 900;
    box-shadow: none;
    backdrop-filter: none;
  }

  .nav-links > a:last-child,
  .nav-item:last-child > a {
    border-bottom: 0;
  }

  .nav-links a::after {
    content: "";
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-item.active > a {
    background: rgba(0, 87, 217, 0.08);
    color: var(--blue-700);
  }

  .nav-item {
    gap: 0;
  }

  .has-subnav > a {
    border-radius: 0;
  }

  .subnav {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0 8px 2px;
    border-left: 0;
  }

  .nav-links .subnav a {
    min-height: 38px;
    border: 1px solid rgba(0, 87, 217, 0.12);
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(0, 87, 217, 0.06);
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 800;
  }

  .nav-links .subnav a:hover,
  .nav-links .subnav a.active {
    background: var(--blue-700);
    color: var(--white);
  }

  .page-hero h1 {
    max-width: 11ch;
    font-size: clamp(32px, 9.2vw, 40px);
    line-height: 1.05;
  }

  .page-hero .lead {
    max-width: 34ch;
    font-size: 16px;
  }

  .leadership-directory h2 {
    max-width: 11ch;
    font-size: clamp(30px, 8.6vw, 38px);
  }
}

@media (max-width: 380px) {
  .brand-logo {
    height: 44px;
    max-width: 120px;
  }

  .hero h1,
  h1 {
    font-size: 32px;
  }

  .hero .button-row {
    grid-template-columns: 1fr;
  }

  .hero .button-row .btn:first-child {
    grid-column: auto;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 78px;
  }

  body {
    width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 18px);
    border-radius: 12px;
  }

  .nav {
    min-height: 58px;
    padding: 0 82px 0 10px;
  }

  .brand {
    max-width: calc(100vw - 84px);
  }

  .brand-logo {
    height: 46px;
    max-width: 128px;
  }

  .menu-button {
    width: 54px;
    height: 34px;
    flex: 0 0 54px;
    position: fixed;
    top: 21px;
    right: max(18px, calc(100vw - 370px));
    z-index: 220;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(145deg, #071b44, #0d2a63);
    color: var(--white);
    box-shadow: 0 10px 22px rgba(7, 27, 68, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .menu-button::before {
    display: none;
  }

  .menu-button::after {
    display: none;
  }

  .menu-button[aria-expanded="true"]::before {
    display: none;
  }

  .menu-button[aria-expanded="true"]::after {
    display: none;
  }

  .nav-links {
    inset: 72px 9px auto;
    max-height: calc(100dvh - 84px);
    padding: 10px;
    border-radius: 16px;
  }

  .nav-links a {
    min-height: 45px;
    padding: 11px 8px;
    font-size: 15px;
  }

  .subnav {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 8px;
    padding: 0 6px 2px;
  }

  .nav-links .subnav a {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 12.5px;
  }

  .section,
  .hero-inner,
  .footer-inner {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .page-hero {
    margin-top: -66px;
    padding-top: 76px;
  }

  .page-hero .section {
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .hero {
    min-height: auto;
    margin-top: -66px;
    padding-top: 22px;
    background:
      linear-gradient(180deg, rgba(7, 27, 68, 0.04), rgba(7, 27, 68, 0.6) 54%, rgba(7, 27, 68, 0.96)),
      var(--hero-bg) 68% center/cover,
      #071b44;
  }

  .hero-inner {
    min-height: min(760px, calc(100svh - 18px));
    align-items: start;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .hero-content {
    padding-top: 0;
    transform: none;
  }

  .hero-invocation,
  .hero-date {
    max-width: 100%;
    white-space: normal;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.35;
  }

  .eyebrow,
  .hero .eyebrow {
    margin-bottom: 9px;
    font-size: 10.5px;
    letter-spacing: 0.16em;
  }

  h1,
  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: clamp(29px, 8.5vw, 34px);
    line-height: 1.1;
  }

  .hero h1 {
    max-width: 12ch;
    color: var(--white);
  }

  .hero h1::after {
    width: 58px;
    height: 3px;
    margin-top: 16px;
    background: var(--gold);
  }

  h2,
  .leadership-directory h2 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(26px, 8vw, 32px);
    line-height: 1.1;
  }

  h3 {
    font-size: 19px;
  }

  .lead,
  .hero .lead,
  .page-hero .lead {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.58;
  }

  .hero .lead {
    color: rgba(255, 255, 255, 0.86);
  }

  .button-row,
  .hero .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 18px;
  }

  .btn,
  .hero .btn {
    width: 100%;
    min-height: 47px;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
  }

  .hero-actions a {
    min-height: 36px;
    border: 0;
    border-radius: 9px;
    padding: 7px 4px;
    color: var(--blue-900);
    font-size: 11px;
    text-align: center;
  }

  .quick-panel,
  .grid,
  .grid.two,
  .grid.three,
  .grid.four,
  .split,
  .service-grid,
  .admin-grid,
  .admin-editor-grid {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 12px;
    margin-top: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .quick-card,
  .card,
  .service-card,
  .program-card,
  .news-card,
  .leadership-link-card,
  .leadership-profile,
  .profile,
  .donation-options a {
    max-width: 100%;
    border-radius: 13px;
  }

  .program-card,
  .news-card,
  .leadership-profile,
  .profile,
  .gallery-item {
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(7, 27, 68, 0.08);
  }

  .quick-card {
    min-height: 86px;
    padding: 16px;
  }

  .quick-card strong {
    font-size: 18px;
  }

  .card,
  .leadership-profile,
  .profile {
    padding: 16px;
  }

  .card-body {
    padding: 16px;
  }

  .program-card img,
  .news-card img,
  .leadership-profile img,
  .profile img,
  .gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .leadership-link-card {
    min-height: 128px;
    padding: 18px;
  }

  .leadership-link-card h3 {
    margin-top: 12px;
    font-size: 22px;
  }

  .leadership-link-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  .donate-strip,
  .green-band,
  .blue-band,
  .cta-band,
  .leadership-directory,
  .leadership-group-section.soft-panel {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .donation-options {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    margin-right: 0;
    padding-right: 0;
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .donation-options a {
    min-height: 68px;
    padding: 12px;
    font-size: 14px;
  }

  .green-band .prayer-grid,
  .prayer-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 10px;
    margin-right: 0;
    padding-bottom: 8px;
    padding-right: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .prayer-card {
    min-height: 112px;
    padding: 14px;
  }

  .prayer-time-pair strong {
    font-size: 16px;
  }

  .table-wrap {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  table {
    min-width: 620px;
    font-size: 14px;
  }

  .search-panel,
  .form-grid,
  .admin-toolbar,
  .admin-actions {
    grid-template-columns: 1fr;
  }

  .search-panel input,
  .search-panel select,
  .form input,
  .form select,
  .form textarea {
    width: 100%;
    min-height: 48px;
  }

  .map {
    min-height: 300px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .footer h2 {
    font-size: 25px;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    align-items: flex-start;
    padding-top: 64px;
  }

  .hero-content {
    max-width: 360px;
    transform: none;
  }

  .hero-invocation {
    margin-bottom: 12px;
    box-shadow: 0 10px 26px rgba(7, 27, 68, 0.14);
  }

  .hero .eyebrow {
    margin-bottom: 12px;
  }

  .hero h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 9.4vw, 40px);
    line-height: 1.04;
  }

  .hero-date {
    font-size: 12px;
  }

  .hero .lead {
    max-width: 33ch;
    font-size: 15px;
    line-height: 1.52;
  }

  .hero .button-row {
    margin-top: 16px;
    gap: 10px;
  }

  .hero .btn {
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 115;
    background: rgba(7, 27, 68, 0.46);
    backdrop-filter: blur(3px);
  }

  .site-header {
    z-index: 240;
  }

  .menu-button {
    width: auto;
    min-width: 74px;
    height: 44px;
    padding: 0 18px;
    top: 20px;
    right: max(18px, calc((100vw - min(100vw, 430px)) / 2 + 28px));
    border: 2px solid rgba(212, 175, 55, 0.78);
    border-radius: 999px;
    background: linear-gradient(135deg, #071b44, #0b6b3a);
    color: var(--white);
    font-size: 12px;
    letter-spacing: 0.08em;
    box-shadow:
      0 10px 24px rgba(7, 27, 68, 0.24),
      0 0 0 5px rgba(212, 175, 55, 0.18);
  }

  .menu-button[aria-expanded="true"] {
    min-width: 82px;
    background: linear-gradient(135deg, #0b6b3a, #071b44);
    box-shadow:
      0 14px 30px rgba(7, 27, 68, 0.3),
      0 0 0 5px rgba(212, 175, 55, 0.24);
  }

  .nav-links {
    position: fixed;
    inset: 90px 18px auto;
    z-index: 230;
    width: auto;
    max-height: calc(100dvh - 112px);
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(0, 87, 217, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 26px 80px rgba(7, 27, 68, 0.28);
    overflow-y: auto;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links::before {
    content: "Menu";
    margin: 0 4px 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(7, 27, 68, 0.08);
    color: var(--green-700);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-align: center;
    text-transform: uppercase;
  }

  .nav-links a,
  .has-subnav > a {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 16px;
    background: #ffffff;
    color: #172033;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
    box-shadow: none;
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-item.active > a {
    border-color: rgba(0, 87, 217, 0.16);
    background: linear-gradient(135deg, rgba(0, 87, 217, 0.1), rgba(11, 107, 58, 0.06));
    color: var(--blue-700);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-item {
    display: grid;
    gap: 8px;
  }

  .has-subnav > a::before {
    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 6px;
    opacity: 0.9;
  }

  .subnav {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    min-width: 0;
    margin: -2px 0 6px;
    padding: 8px;
    border: 0;
    border-radius: 16px;
    background: #f3f7ff;
    box-shadow: inset 0 0 0 1px rgba(0, 87, 217, 0.08);
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links .subnav a {
    min-height: 44px;
    border: 1px solid rgba(0, 87, 217, 0.12);
    border-radius: 999px;
    padding: 0 14px;
    background: #ffffff;
    color: var(--blue-700);
    font-size: 15px;
    font-weight: 900;
  }

  .nav-links .subnav a:hover,
  .nav-links .subnav a.active {
    background: var(--blue-700);
    color: var(--white);
  }
}

@media (max-width: 380px) {
  .nav-links {
    inset-inline: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .nav-links a,
  .has-subnav > a {
    min-height: 46px;
    padding-inline: 13px;
    font-size: 16px;
  }

  .menu-button {
    min-width: 68px;
    height: 40px;
    padding-inline: 14px;
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-bottom: 28px;
  }

  .hero .button-row {
    gap: 10px;
    margin-top: 22px;
  }

  .hero .btn {
    width: 100%;
    min-height: 54px;
    border-radius: 10px;
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
    border: 1px solid rgba(0, 87, 217, 0.14);
    border-radius: 14px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(7, 27, 68, 0.18);
  }

  .hero-actions a {
    min-height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 87, 217, 0.14);
    border-radius: 10px;
    padding: 0 8px;
    background: linear-gradient(180deg, #ffffff, #eef5ff);
    color: #071b44;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    box-shadow: inset 0 -2px 0 rgba(0, 87, 217, 0.08);
  }

  .hero-actions a:first-child {
    border-color: rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--gold-soft), rgba(237, 248, 241, 0.98));
  }

  .hero-actions a:hover,
  .hero-actions a:focus-visible {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
    outline: none;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-socials {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .site-header,
  .home-page .hero::before,
  .home-page .hero::after,
  .home-page .hero h1,
  .home-page .hero h1::after,
  .home-page .hero-invocation,
  .home-page .hero .eyebrow,
  .home-page .hero-date,
  .home-page .hero .lead,
  .home-page .hero .button-row .btn,
  .home-page .hero-socials {
    opacity: 1;
    transform: none;
    animation: none;
    will-change: auto;
  }

  .home-page .quick-card,
  .home-page .quick-card.visible {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .social-link:hover,
  .social-link:focus-visible {
    transform: none;
  }

  .leadership-page .page-hero .section,
  .leadership-page .leadership-directory::before,
  .leadership-page .leadership-directory .eyebrow,
  .leadership-page .leadership-directory h2,
  .leadership-page .leadership-tabs,
  .leadership-page .leadership-slide-card,
  .leadership-page .leadership-slide-card.visible {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
    will-change: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: min(92vw, 388px);
    border-radius: 18px;
  }

  .nav {
    min-height: 70px;
    padding: 8px 12px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-logo {
    height: 52px;
    max-width: 142px;
  }

  .menu-button {
    position: static;
    width: auto;
    min-width: 72px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 999px;
    padding: 0 15px;
    background: linear-gradient(135deg, #071b44, #0b6b3a);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 20px rgba(7, 27, 68, 0.18);
  }

  .menu-button[aria-expanded="true"] {
    min-width: 72px;
    background: var(--blue-700);
    box-shadow: 0 10px 24px rgba(7, 27, 68, 0.22);
  }
}

@media (max-width: 380px) {
  .site-header {
    width: calc(100% - 20px);
  }

  .brand-logo {
    height: 48px;
    max-width: 128px;
  }

  .menu-button {
    min-width: 66px;
    height: 40px;
    padding-inline: 13px;
  }
}

.admin-login-card .admin-login-error[data-type="success"] {
  color: var(--green);
}

.admin-login-card button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.admin-center-page {
  background:
    linear-gradient(135deg, #071b44 0%, #0b2f6f 44%, #1459c8 100%);
}

.admin-center-screen {
  place-items: stretch;
  padding: 92px 20px 64px;
  background:
    linear-gradient(135deg, rgba(7, 27, 68, 0.94), rgba(20, 89, 200, 0.82)),
    var(--hero-bg) center bottom/cover;
}

.admin-center-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 24px;
  margin: auto;
}

.admin-center-hero,
.admin-center-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.admin-center-hero::before,
.admin-center-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), #38bdf8, var(--green));
}

.admin-center-hero {
  min-height: 640px;
  display: grid;
  align-content: end;
  padding: clamp(28px, 4vw, 46px);
}

.admin-center-hero .admin-login-mark {
  margin: 0 0 28px;
}

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

.admin-center-hero h1 {
  max-width: 10ch;
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.96;
}

.admin-center-hero p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.65;
}

.admin-center-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.admin-center-metrics span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-center-grid {
  display: grid;
  gap: 24px;
}

.admin-center-card {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 38px);
}

.admin-center-card h2 {
  margin-bottom: 4px;
  color: #071b44;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1;
}

.admin-center-card p {
  margin: 0 0 10px;
  text-align: left;
}

.admin-center-login {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
}

.admin-center-login h2,
.admin-center-login p {
  text-align: left;
}

.admin-card-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-center-membership {
  align-content: start;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.94));
}

.admin-center-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.admin-center-actions .btn {
  min-height: 52px;
  justify-content: center;
}

.admin-center-feature-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.admin-center-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #172033;
  font-weight: 800;
}

.admin-center-feature-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--green));
  box-shadow: 0 0 0 5px rgba(11, 107, 58, 0.08);
}

.dashboard-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-admin-page {
  min-height: 100vh;
  background: var(--light);
}

.admin-admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 22px;
  background: var(--white);
  overflow-y: auto;
}

.admin-sidebar-logo img {
  width: 170px;
  height: auto;
  display: block;
  margin-bottom: 24px;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.admin-sidebar button:hover,
.admin-sidebar button.active {
  background: linear-gradient(135deg, rgba(0, 87, 217, 0.1), rgba(11, 107, 58, 0.08));
  color: #071b44;
}

.admin-dashboard {
  min-width: 0;
  padding: 28px;
}

.admin-dashboard-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-dashboard-topbar h1 {
  margin-bottom: 6px;
}

.admin-toast {
  position: sticky;
  top: 12px;
  z-index: 10;
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--green-soft);
  color: var(--green-700);
  font-weight: 900;
}

.admin-toast[data-type="error"] {
  background: #fff1f2;
  color: #9f1239;
}

#email-delivery-status {
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--green-soft);
  color: var(--green-700);
  font-weight: 900;
}

#email-delivery-status[data-type="error"] {
  background: #fff1f2;
  color: #9f1239;
}

.admin-nav-badge {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 7px;
  margin-left: 6px;
  background: #dc2626;
  color: var(--white);
  font-size: 12px;
  line-height: 1;
}

.admin-panel {
  display: none;
  gap: 20px;
}

.admin-panel.active {
  display: grid;
}

.admin-card,
.admin-stat-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-card h2 {
  margin-bottom: 18px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-stat-grid span {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.admin-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: #071b44;
  font-size: 42px;
  line-height: 1;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form label span {
  color: #071b44;
  font-weight: 900;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 87, 217, 0.12);
}

.admin-admin-grid {
  display: grid;
  gap: 16px;
}

.admin-admin-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-admin-grid .wide {
  grid-column: 1 / -1;
}

.admin-list,
.admin-media-grid {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: var(--white);
}

.activity-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.activity-card-head h2 {
  margin: 0;
}

.activity-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.activity-bulk-actions label {
  min-height: 40px;
  border: 1px solid rgba(0, 87, 217, 0.14);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--white);
  color: #071b44;
  font-weight: 900;
  cursor: pointer;
}

.activity-list-item {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.activity-check {
  display: grid;
  place-items: center;
}

.activity-check input,
.activity-bulk-actions input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.activity-bulk-actions .danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.contact-inbox-panel {
  display: grid;
  gap: 18px;
}

.contact-inbox-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 180px;
  gap: 14px;
}

.contact-inbox-toolbar label {
  display: grid;
  gap: 8px;
  color: #071b44;
  font-weight: 900;
}

.contact-inbox-toolbar input,
.contact-inbox-toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.contact-message-list {
  display: grid;
  gap: 12px;
}

.contact-message-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: var(--white);
}

.contact-message-item.unread {
  border-color: rgba(0, 87, 217, 0.32);
  background: linear-gradient(90deg, rgba(0, 87, 217, 0.06), var(--white));
}

.contact-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.contact-message-preview {
  color: var(--muted);
  margin: 0;
}

.contact-message-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.contact-status-pill {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--green-soft);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
}

.contact-status-pill.unread {
  background: #eff6ff;
  color: #1d4ed8;
}

.contact-status-pill.replied {
  background: #fef3c7;
  color: #92400e;
}

.contact-message-modal-card dl {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 14px;
}

.contact-message-modal-card dt {
  color: #071b44;
  font-weight: 900;
}

.contact-message-modal-card dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-message-body {
  white-space: pre-wrap;
  color: var(--ink);
}

.admin-media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-media-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.gallery-admin-panel {
  display: grid;
  gap: 22px;
}

.gallery-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.gallery-admin-album-list,
.gallery-admin-photo-list {
  display: grid;
  gap: 12px;
}

.gallery-admin-album-list {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  align-items: start;
}

.gallery-admin-album {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-rows: auto auto;
  align-self: start;
  gap: 0;
  overflow: hidden;
  padding: 0;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(7, 27, 68, 0.05);
}

.gallery-admin-album.dragging,
.gallery-admin-photo.dragging {
  opacity: 0.55;
}

.gallery-admin-album-cover {
  position: relative;
  height: 118px;
  background: #f8fafc;
}

.gallery-admin-album-cover img {
  width: 100%;
  height: 118px;
  display: block;
  object-fit: cover;
}

.gallery-admin-drag,
.gallery-admin-count {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #071b44;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(7, 27, 68, 0.12);
}

.gallery-admin-drag {
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: grab;
}

.gallery-admin-count {
  right: 8px;
  bottom: 8px;
  padding: 7px 10px;
  font-size: 12px;
}

.gallery-admin-album-body {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.gallery-admin-album-body label {
  display: grid;
  gap: 6px;
  color: #071b44;
  font-weight: 900;
}

.gallery-admin-album input,
.gallery-admin-album textarea,
.gallery-photo-toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.gallery-admin-album-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.gallery-admin-album-actions .donation-form-check {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  background: #f8fafc;
}

.gallery-admin-album-actions .donation-form-check input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--blue);
}

.gallery-admin-album-actions button {
  width: 100%;
}

.gallery-admin-album-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gallery-upload-form {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.gallery-drop-zone {
  border: 1px dashed rgba(0, 87, 217, 0.38);
  border-radius: 10px;
  padding: 20px;
  background: var(--white);
}

.gallery-drop-zone span {
  color: var(--muted);
}

.gallery-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-upload-preview span {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--green-soft);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
}

.gallery-photo-toolbar {
  margin-bottom: 12px;
}

.gallery-photo-toolbar label {
  display: grid;
  gap: 8px;
  color: #071b44;
  font-weight: 900;
}

.gallery-admin-photo {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 120px minmax(130px, auto);
  gap: 12px;
  align-items: center;
  justify-content: start;
  padding: 12px;
  background: var(--white);
}

.gallery-admin-photo > img {
  width: 120px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-photo-actions {
  display: grid;
  gap: 8px;
  min-width: 130px;
}

.gallery-photo-actions input {
  display: none;
}

.button.danger,
.admin-list-item .danger,
.admin-media-card .danger {
  border: 0;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 900;
  cursor: pointer;
}

.leadership-admin-panel {
  overflow: hidden;
}

.leadership-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.leadership-admin-groups {
  display: grid;
  gap: 28px;
}

.leadership-admin-group {
  border: 1px solid rgba(0, 87, 217, 0.12);
  border-radius: 12px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.7), rgba(255, 255, 255, 0.94));
}

.leadership-admin-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.leadership-admin-group-head h3 {
  margin: 0;
  font-size: 22px;
}

.leadership-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.group-add-button,
.group-save-button {
  min-height: 44px;
  border: 1px solid rgba(0, 87, 217, 0.16);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--white);
  color: var(--blue-700);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.group-save-button {
  border-color: rgba(212, 175, 55, 0.6);
  background: var(--gold);
  color: #071b44;
}

.group-add-button:hover,
.group-save-button:hover {
  background: var(--blue);
  color: var(--white);
}

.admin-member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.admin-member-card {
  position: relative;
  min-height: 100%;
  border: 1px solid rgba(7, 27, 68, 0.1);
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 18px;
  overflow: hidden;
  background: var(--white);
  color: inherit;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 45, 112, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.admin-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 58px rgba(0, 45, 112, 0.14);
}

.admin-member-card.dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.admin-member-photo {
  position: relative;
  min-height: auto;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(238, 245, 255, 0.96), rgba(237, 248, 241, 0.72));
}

.admin-member-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border: 4px solid var(--white);
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 45, 112, 0.12);
}

.member-action,
.icon-only {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: #071b44;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 45, 112, 0.12);
}

.member-action {
  position: absolute;
}

.member-action.danger {
  top: 14px;
  right: 14px;
  color: #9f1239;
}

.member-action.drag {
  top: 14px;
  left: 14px;
  color: var(--green);
  cursor: grab;
  letter-spacing: -0.16em;
  touch-action: none;
}

.admin-member-card:active .member-action.drag {
  cursor: grabbing;
}

.member-action.edit {
  right: 14px;
  bottom: 14px;
  color: var(--blue-700);
}

.member-action.preview {
  left: 50%;
  bottom: 14px;
  color: var(--green);
  transform: translateX(-50%);
}

.member-action:hover,
.icon-only:hover {
  background: #071b44;
  color: var(--white);
}

.admin-member-body {
  display: grid;
  gap: 7px;
  align-content: start;
  justify-items: center;
  padding: 18px 0 0;
}

.admin-member-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.12;
}

.admin-member-body p {
  margin: 0;
  color: var(--blue-700);
  font-weight: 900;
}

.admin-member-body span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.member-order-pill {
  min-width: 42px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(0, 87, 217, 0.08);
  color: var(--blue-700) !important;
  font-size: 12px !important;
  line-height: 1;
}

.member-reorder-controls {
  display: none;
  gap: 8px;
  margin-top: 8px;
}

.member-reorder-controls button {
  width: 42px;
  height: 36px;
  border: 1px solid rgba(0, 87, 217, 0.16);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-700);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.member-reorder-controls button:hover {
  background: var(--blue);
  color: var(--white);
}

.add-member-card {
  min-height: 100%;
  border: 2px dashed rgba(0, 87, 217, 0.24);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.add-member-card span {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
  font-size: 48px;
  line-height: 1;
  box-shadow: 0 18px 34px rgba(0, 87, 217, 0.18);
}

.donation-admin-panel {
  overflow: hidden;
}

.donation-admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.donation-admin-categories {
  position: sticky;
  top: 24px;
  border: 1px solid rgba(0, 87, 217, 0.12);
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.7), rgba(255, 255, 255, 0.96));
}

.donation-admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.donation-admin-section-head h3 {
  margin: 0;
}

.category-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.category-inline-form input {
  min-height: 44px;
  border: 1px solid rgba(0, 87, 217, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.donation-category-admin-list {
  display: grid;
  gap: 10px;
}

.donation-category-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(0, 87, 217, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
}

.donation-category-admin-item span {
  color: #071b44;
  font-weight: 900;
}

.donation-category-admin-item div {
  display: flex;
  gap: 5px;
}

.donation-category-admin-item button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 87, 217, 0.14);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-700);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.donation-campaign-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.donation-form-settings-card {
  display: grid;
  gap: 22px;
  margin: 24px 0;
  border: 1px solid rgba(0, 87, 217, 0.12);
  border-radius: 10px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(238, 245, 255, 0.72), rgba(255, 255, 255, 0.94));
}

.admin-admin-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.donation-form-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.donation-form-list-card:nth-child(3) {
  grid-column: 1 / -1;
}

.donation-form-list-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(0, 87, 217, 0.12);
  border-radius: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(0, 45, 112, 0.06);
}

.donation-form-list-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.donation-form-list-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.donation-form-sortable-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.donation-form-admin-item {
  display: grid;
  grid-template-columns: auto minmax(92px, 1fr) auto auto auto auto;
  gap: 8px;
  align-items: end;
  border: 1px solid rgba(0, 87, 217, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
  min-width: 0;
}

.donation-form-admin-item.method {
  grid-template-columns: auto minmax(130px, 0.9fr) minmax(160px, 1.2fr) minmax(130px, 0.9fr) minmax(190px, 1.5fr) auto auto auto;
}

.donation-form-admin-item.dragging {
  opacity: 0.48;
}

.donation-form-admin-item label {
  display: grid;
  gap: 5px;
  color: #071b44;
  font-size: 12px;
  font-weight: 900;
}

.donation-form-admin-item label.wide {
  grid-column: auto;
}

.donation-form-admin-item input {
  min-height: 38px;
  min-width: 0;
  border: 1px solid rgba(0, 87, 217, 0.14);
  border-radius: 7px;
  padding: 0 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.donation-form-check {
  align-items: center;
  justify-items: center;
  text-align: center;
}

.donation-form-check input {
  min-height: auto;
}

.donation-form-drag,
.donation-form-admin-item button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 87, 217, 0.14);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-700);
  font: inherit;
  font-weight: 900;
  cursor: grab;
}

.donation-form-admin-item button {
  cursor: pointer;
}

.donation-admin-card {
  position: relative;
  min-height: 100%;
  border: 1px solid rgba(0, 87, 217, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  color: inherit;
  text-align: left;
  box-shadow: 0 16px 38px rgba(0, 45, 112, 0.08);
}

.donation-admin-card.inactive {
  opacity: 0.62;
}

.donation-admin-card.dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.event-admin-panel {
  overflow: hidden;
}

.event-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.4fr) minmax(170px, 0.9fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
}

.event-admin-toolbar h3 {
  margin: 0;
}

.event-admin-toolbar label {
  display: grid;
  gap: 8px;
  color: #071b44;
  font-weight: 900;
}

.event-admin-toolbar input,
.event-admin-toolbar select {
  min-height: 44px;
  border: 1px solid rgba(0, 87, 217, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.event-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-admin-card {
  position: relative;
  min-height: 100%;
  border: 1px solid rgba(0, 87, 217, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(0, 45, 112, 0.08);
}

.event-admin-card.inactive {
  opacity: 0.68;
}

.event-admin-card.dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.event-admin-image {
  position: relative;
  background: var(--blue-soft);
}

.event-admin-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.event-admin-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.event-admin-body h3,
.event-admin-body p,
.event-admin-body dl {
  margin: 0;
}

.event-admin-body h3 {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.15;
}

.event-subtitle {
  color: var(--blue-700);
  font-weight: 900;
}

.event-admin-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.event-admin-body dl {
  display: grid;
  gap: 6px;
}

.event-admin-body dl div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
}

.event-admin-body dt {
  color: #071b44;
  font-weight: 900;
}

.event-admin-body dd {
  margin: 0;
  color: var(--muted);
}

.event-admin-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.event-status {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(0, 87, 217, 0.08);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.event-status.draft {
  background: #fff1f2;
  color: #9f1239;
}

.event-status.featured {
  background: rgba(212, 175, 55, 0.2);
  color: #806100;
}

.event-empty-admin {
  grid-column: 1 / -1;
  border: 1px dashed rgba(0, 87, 217, 0.2);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}

.event-reorder-controls {
  display: flex;
}

.event-modal {
  width: min(860px, calc(100vw - 28px));
}

.donation-admin-image {
  position: relative;
  background: var(--blue-soft);
}

.donation-admin-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.member-action.duplicate {
  left: 50%;
  bottom: 12px;
  color: var(--green);
  transform: translateX(-50%);
}

.donation-admin-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.donation-admin-body h3,
.donation-admin-body p {
  margin: 0;
}

.donation-admin-body h3 {
  font-size: 20px;
  line-height: 1.15;
}

.donation-admin-body p,
.donation-admin-body strong {
  color: var(--muted);
  font-size: 13px;
}

.donation-add-card {
  min-height: 330px;
  border: 2px dashed rgba(0, 87, 217, 0.24);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  cursor: pointer;
}

.donation-add-card span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
  font-size: 46px;
}

.member-modal {
  width: min(760px, calc(100vw - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
}

.member-modal::backdrop {
  background: rgba(7, 27, 68, 0.58);
  backdrop-filter: blur(5px);
}

.member-modal[open] {
  animation: modal-pop 180ms ease both;
}

.member-modal-card {
  border: 1px solid rgba(0, 87, 217, 0.14);
  border-radius: 14px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(0, 45, 112, 0.22);
}

.member-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.member-photo-edit {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.member-photo-edit img {
  width: 124px;
  height: 124px;
  border: 4px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 16px 30px rgba(0, 45, 112, 0.12);
}

.member-check {
  align-content: end;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
}

.member-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.preview-modal-card {
  max-width: 430px;
  margin: 0 auto;
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .admin-admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar nav,
  .admin-stat-grid,
  .admin-admin-grid.two,
  .admin-media-grid {
    grid-template-columns: 1fr;
  }

  .admin-member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donation-admin-layout {
    grid-template-columns: 1fr;
  }

  .gallery-admin-layout,
  .gallery-admin-photo {
    grid-template-columns: 1fr;
  }

  .gallery-admin-photo > img {
    width: 100%;
  }

  .donation-admin-categories {
    position: static;
  }

  .donation-campaign-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-admin-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .event-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-topbar,
  .admin-list-item {
    grid-template-columns: 1fr;
  }

  .contact-inbox-toolbar,
  .contact-message-item {
    grid-template-columns: 1fr;
  }

  .contact-message-actions {
    justify-content: flex-start;
  }

  .activity-list-item {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .admin-dashboard,
  .admin-sidebar {
    padding: 16px;
  }

  .admin-dashboard-topbar {
    display: grid;
  }

  .leadership-admin-group-head,
  .leadership-admin-head,
  .member-photo-edit {
    grid-template-columns: 1fr;
    display: grid;
  }

  .leadership-admin-actions {
    justify-content: stretch;
  }

  .group-add-button,
  .group-save-button {
    width: 100%;
  }

  .admin-member-grid {
    grid-template-columns: 1fr;
  }

  .donation-campaign-admin-grid {
    grid-template-columns: 1fr;
  }

  .event-admin-toolbar,
  .event-admin-grid {
    grid-template-columns: 1fr;
  }

  .category-inline-form {
    grid-template-columns: 1fr;
  }

  .member-reorder-controls {
    display: flex;
  }

  .activity-card-head,
  .activity-bulk-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .member-modal-card {
    padding: 18px;
  }
}

@media (max-width: 700px) {
  .admin-admin-page {
    background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 240px, var(--light) 100%);
  }

  .admin-admin-shell {
    width: 100%;
    min-width: 0;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 87, 217, 0.12);
    padding: 14px;
  }

  .admin-sidebar-logo img {
    width: 132px;
    margin-bottom: 14px;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-sidebar button {
    min-height: 42px;
    border: 1px solid rgba(0, 87, 217, 0.1);
    border-radius: 12px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    text-align: center;
  }

  .admin-nav-badge {
    margin-left: 4px;
  }

  .admin-dashboard {
    padding: 14px;
  }

  .admin-card,
  .donation-form-settings-card,
  .donation-admin-categories {
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 14px 30px rgba(0, 45, 112, 0.08);
  }

  .donation-admin-panel {
    overflow: visible;
  }

  .donation-admin-section-head,
  .donation-form-list-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .donation-admin-section-head .group-save-button,
  .donation-form-list-head .btn,
  .category-inline-form .btn {
    width: 100%;
    min-height: 46px;
  }

  .donation-form-settings-form .admin-admin-grid.three,
  .donation-form-admin-grid,
  .donation-admin-layout,
  .donation-campaign-admin-grid {
    grid-template-columns: 1fr;
  }

  .donation-form-list-card:nth-child(3) {
    grid-column: auto;
  }

  .donation-form-list-card {
    border-radius: 14px;
    padding: 14px;
  }

  .donation-form-admin-item,
  .donation-form-admin-item.method {
    grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border-radius: 14px;
    padding: 12px;
  }

  .donation-form-admin-item > label:not(.donation-form-check) {
    grid-column: 1 / -1;
  }

  .donation-form-admin-item > label:not(.donation-form-check):first-of-type {
    grid-column: 2 / -1;
  }

  .donation-form-admin-item label.wide {
    grid-column: 1 / -1;
  }

  .donation-form-admin-item input {
    min-height: 44px;
    border-radius: 10px;
    font-size: 15px;
  }

  .donation-form-check {
    min-height: 54px;
    border: 1px solid rgba(0, 87, 217, 0.12);
    border-radius: 12px;
    padding: 8px 10px;
    background: #f8fbff;
  }

  .donation-form-check input {
    width: 20px;
    height: 20px;
  }

  .donation-form-drag,
  .donation-form-admin-item button {
    width: 42px;
    height: 42px;
  }

  .donation-form-admin-item button {
    width: 100%;
    border-radius: 12px;
  }

  .donation-form-admin-item button[data-duplicate-donation-form-item] {
    grid-column: 1 / 2;
  }

  .donation-form-admin-item button[data-delete-donation-form-item] {
    grid-column: 2 / -1;
    color: #9f1239;
    background: #fff1f2;
  }

  .donation-category-admin-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 12px;
  }

  .donation-category-admin-item div {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .donation-admin-card,
  .donation-add-card {
    border-radius: 14px;
  }

  .donation-add-card {
    min-height: 190px;
  }
}

@media (max-width: 420px) {
  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .admin-card,
  .donation-form-settings-card,
  .donation-admin-categories {
    padding: 14px;
  }

  .donation-form-admin-item,
  .donation-form-admin-item.method {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .donation-form-check {
    justify-items: start;
    text-align: left;
  }

  .donation-form-admin-item button[data-duplicate-donation-form-item],
  .donation-form-admin-item button[data-delete-donation-form-item] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(0, 87, 217, 0.12);
    background: rgba(248, 251, 255, 0.94);
    box-shadow: 0 14px 30px rgba(0, 45, 112, 0.08);
    backdrop-filter: blur(14px);
  }

  .admin-sidebar-logo {
    display: flex;
    justify-content: center;
  }

  .admin-sidebar nav {
    display: flex;
    gap: 8px;
    margin: 0 -4px;
    padding: 2px 4px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .admin-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .admin-sidebar button {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: 999px;
    padding: 0 14px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(0, 45, 112, 0.07);
  }

  .admin-sidebar button.active {
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: var(--white);
    box-shadow: 0 12px 24px rgba(0, 87, 217, 0.22);
  }

  .donation-admin-panel {
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .donation-admin-panel > .leadership-admin-head {
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 22px;
    padding: 20px;
    background:
      radial-gradient(circle at 90% 0%, rgba(212, 175, 55, 0.32), transparent 34%),
      linear-gradient(135deg, #071b44 0%, #0057d9 58%, #0b6b3a 100%);
    color: var(--white);
    box-shadow: 0 22px 44px rgba(7, 27, 68, 0.22);
  }

  .donation-admin-panel > .leadership-admin-head .eyebrow {
    color: #f7d86a;
  }

  .donation-admin-panel > .leadership-admin-head h2 {
    color: var(--white);
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1;
  }

  .donation-admin-panel > .leadership-admin-head .muted {
    color: rgba(255, 255, 255, 0.82);
  }

  .donation-admin-panel > .leadership-admin-head .group-add-button {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.94);
    color: #071b44;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  }

  .donation-form-settings-card,
  .donation-admin-categories,
  .donation-admin-layout > section:last-child {
    border: 1px solid rgba(0, 87, 217, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
  }

  .donation-form-settings-card {
    margin: 16px 0;
  }

  .donation-admin-layout > section:last-child {
    padding: 16px;
    box-shadow: 0 14px 30px rgba(0, 45, 112, 0.08);
  }

  .donation-form-settings-form .admin-admin-grid.three {
    gap: 12px;
  }

  .donation-form-settings-form input,
  .donation-form-settings-form textarea,
  .category-inline-form input {
    min-height: 48px;
    border-radius: 13px;
    background: #f8fbff;
    font-size: 15px;
  }

  .donation-form-list-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 87, 217, 0.1);
    background:
      linear-gradient(180deg, rgba(238, 245, 255, 0.72), rgba(255, 255, 255, 0.96));
  }

  .donation-form-list-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--blue), var(--green), var(--gold));
  }

  .donation-form-list-head {
    padding-top: 4px;
  }

  .donation-form-list-head h4 {
    font-size: 24px;
    line-height: 1.08;
  }

  .donation-form-list-head .btn,
  .donation-admin-section-head .group-save-button,
  .category-inline-form .btn {
    border-radius: 13px;
    font-weight: 950;
  }

  .donation-form-admin-item,
  .donation-form-admin-item.method {
    border-color: rgba(0, 87, 217, 0.1);
    background: var(--white);
    box-shadow: 0 12px 26px rgba(0, 45, 112, 0.07);
  }

  .donation-form-admin-item label {
    font-size: 12.5px;
  }

  .donation-form-drag {
    background: #eef5ff;
    color: #071b44;
    cursor: grab;
  }

  .donation-form-admin-item button[data-duplicate-donation-form-item] {
    background: #eef5ff;
  }

  .donation-category-admin-list {
    gap: 8px;
  }

  .donation-category-admin-item {
    min-height: 54px;
    background: #f8fbff;
  }

  .donation-admin-card {
    box-shadow: 0 14px 30px rgba(0, 45, 112, 0.1);
  }

  .donation-admin-image img {
    aspect-ratio: 4 / 3;
  }

  .donation-admin-body {
    padding: 14px;
  }

  .donation-admin-body h3 {
    font-size: 22px;
  }

  .donation-add-card {
    background:
      linear-gradient(180deg, rgba(238, 245, 255, 0.88), rgba(255, 255, 255, 0.96));
  }
}

@media (max-width: 420px) {
  .admin-dashboard {
    padding: 12px;
  }

  .admin-sidebar {
    padding: 12px;
  }

  .donation-admin-panel > .leadership-admin-head {
    border-radius: 18px;
    padding: 18px;
  }

  .donation-form-settings-card,
  .donation-admin-categories,
  .donation-admin-layout > section:last-child {
    border-radius: 18px;
  }

  .donation-form-admin-item > label:not(.donation-form-check):first-of-type {
    grid-column: 2 / -1;
  }
}

@media (max-width: 1080px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 115;
    background: rgba(2, 9, 25, 0.62);
    backdrop-filter: blur(4px);
  }

  .site-header {
    z-index: 240;
    background: rgba(255, 255, 255, 0.96);
  }

  .nav {
    min-height: 76px;
    padding: 10px 18px;
    border: 1px solid rgba(0, 87, 217, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(7, 27, 68, 0.12);
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    height: 56px;
    max-width: 142px;
  }

  .menu-button {
    position: relative;
    z-index: 260;
    inset: auto;
    margin-left: auto;
    width: auto;
    min-width: 84px;
    height: 46px;
    border: 1px solid rgba(212, 175, 55, 0.88);
    border-radius: 999px;
    padding: 0 18px;
    background: #0a1a39;
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow:
      0 12px 28px rgba(7, 27, 68, 0.28),
      0 0 0 5px rgba(212, 175, 55, 0.22);
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  }

  .menu-button::before,
  .menu-button::after {
    display: none;
  }

  .menu-button:hover,
  .menu-button[aria-expanded="true"] {
    background: #123a93;
    transform: translateY(-1px);
    box-shadow:
      0 16px 32px rgba(7, 27, 68, 0.32),
      0 0 0 5px rgba(212, 175, 55, 0.26);
  }

  .nav-links {
    position: fixed;
    top: 86px;
    right: 14px;
    bottom: auto;
    left: auto;
    z-index: 230;
    width: min(86vw, 360px);
    max-height: calc(100dvh - 104px);
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    overflow-y: auto;
    background:
      linear-gradient(180deg, rgba(0, 87, 217, 0.96), rgba(7, 27, 68, 0.98)),
      #0057d9;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translateX(26px);
    transition: opacity 190ms ease, transform 220ms ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-links::before {
    content: "Menu";
    margin: 0 2px 8px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-align: left;
    text-transform: uppercase;
  }

  .nav-links a,
  .has-subnav > a {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 0 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    box-shadow: none;
    transition: background 170ms ease, color 170ms ease, border-color 170ms ease;
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-item.active > a,
  .has-subnav.subnav-open > a {
    border-color: rgba(212, 175, 55, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
  }

  .nav-links > a[href="donate.html"] {
    order: 20;
    margin: 8px 0 4px;
    border: 0;
    background: linear-gradient(135deg, #d4af37, #efd66f);
    color: #06142f;
    justify-content: center;
    font-weight: 900;
  }

  .nav-links a::after,
  .nav-links a.active::after,
  .nav-links a:hover::after,
  .nav-item.active > a::after {
    display: none;
  }

  .nav-item {
    display: grid;
    gap: 0;
  }

  .has-subnav > a::before {
    width: 8px;
    height: 8px;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    margin-left: 14px;
    transform: rotate(45deg);
    transition: transform 180ms ease;
  }

  .has-subnav.subnav-open > a::before {
    transform: rotate(225deg);
  }

  .subnav {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    min-width: 0;
    max-height: 0;
    margin: 0;
    border: 0;
    border-radius: 14px;
    padding: 0 0 0 14px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: none;
    transform: none;
    transition: max-height 220ms ease, padding 220ms ease, margin 220ms ease;
  }

  .has-subnav:hover .subnav,
  .has-subnav:focus-within .subnav {
    transform: none;
  }

  .has-subnav.subnav-open .subnav {
    max-height: 320px;
    margin: 6px 0 8px;
    padding: 4px 0 4px 14px;
    pointer-events: auto;
  }

  .nav-links .subnav a {
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
  }

  .nav-links .subnav a:hover,
  .nav-links .subnav a.active {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(0, 87, 217, 0.36);
    color: var(--white);
  }
}

@media (max-width: 480px) {
  .nav {
    min-height: 70px;
    margin: 10px 12px 0;
    padding: 10px 14px;
    border-radius: 20px;
  }

  .brand-logo {
    height: 50px;
    max-width: 132px;
  }

  .menu-button {
    inset: auto;
    margin-left: auto;
    min-width: 76px;
    height: 42px;
    padding-inline: 15px;
    font-size: 12px;
  }

  .nav-links {
    top: 78px;
    right: 10px;
    width: min(88vw, 330px);
    max-height: calc(100dvh - 92px);
    border-radius: 18px;
    padding: 14px;
  }

  .nav-links a,
  .has-subnav > a {
    min-height: 44px;
    padding-inline: 11px;
    font-size: 16px;
  }

  .nav-links .subnav a {
    min-height: 38px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .nav-links {
    width: calc(100vw - 18px);
    right: 9px;
    padding: 12px;
  }

  .brand-logo {
    max-width: 116px;
  }
}

@media (max-width: 640px) {
  .home-page .hero {
    margin-top: -82px;
    color: #071b44;
    background: #f8fbff;
  }

  .home-page .hero::before {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(239, 247, 255, 0.84) 44%, rgba(255, 255, 255, 0.96) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.78) 52%, rgba(255, 255, 255, 0.32) 100%),
      var(--hero-bg) 66% center/cover,
      url("https://images.unsplash.com/photo-1564769662533-4f00a87b4056?auto=format&fit=crop&w=1600&q=80") center/cover;
    opacity: 1;
  }

  .home-page .hero::after {
    display: none;
  }

  .home-page .hero-inner {
    min-height: auto;
    padding-top: 122px;
    padding-bottom: 34px;
  }

  .home-page .hero-content {
    max-width: 100%;
    padding-top: 0;
  }

  .home-page .hero-invocation {
    width: fit-content;
    max-width: 100%;
    border-color: rgba(212, 175, 55, 0.42);
    background: rgba(255, 255, 255, 0.86);
    color: #071b44;
    box-shadow: 0 14px 28px rgba(7, 27, 68, 0.1);
    backdrop-filter: blur(10px);
  }

  .home-page .hero .eyebrow {
    color: var(--green);
    text-shadow: none;
  }

  .home-page .hero h1 {
    max-width: 100%;
    color: #071b44;
    font-size: clamp(36px, 10.2vw, 48px);
    line-height: 1.04;
    text-shadow: 0 2px 18px rgba(255, 255, 255, 0.72);
  }

  .home-page .hero h1::after {
    background: var(--gold);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.28);
  }

  .home-page .hero-date {
    width: fit-content;
    max-width: 100%;
    border-color: rgba(0, 87, 217, 0.18);
    background: rgba(255, 255, 255, 0.9);
    color: #071b44;
    box-shadow: 0 12px 26px rgba(7, 27, 68, 0.1);
  }

  .home-page .hero .lead {
    max-width: 100%;
    color: #172033;
    font-size: 16px;
    line-height: 1.62;
    text-shadow: 0 2px 16px rgba(255, 255, 255, 0.72);
  }

  .home-page .hero .button-row {
    margin-top: 20px;
    gap: 10px;
  }

  .home-page .hero .btn {
    min-height: 54px;
    border-radius: 12px;
    font-size: 16px;
    box-shadow: 0 14px 26px rgba(0, 87, 217, 0.22);
  }

  .home-page .hero-actions {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  }

  .home-page .hero-socials {
    justify-content: flex-start;
    gap: 8px;
  }

  .home-page .social-link {
    min-height: 44px;
    padding: 8px 12px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 480px) {
  .home-page .hero {
    margin-top: -90px;
  }

  .home-page .hero-inner {
    padding-top: 118px;
    padding-bottom: 30px;
  }

  .home-page .hero h1 {
    font-size: clamp(34px, 10.6vw, 43px);
  }

  .home-page .hero .lead {
    font-size: 15.5px;
  }

  .home-page .hero-actions {
    grid-template-columns: 1fr;
  }

  .home-page .hero-actions a {
    min-height: 39px;
    font-size: 12.5px;
  }

  .home-page .hero-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .home-page .social-link {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .home-page .donate-strip {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    padding-top: 44px;
    padding-bottom: 52px;
    background:
      radial-gradient(circle at 100% 0%, rgba(0, 87, 217, 0.16), transparent 34%),
      radial-gradient(circle at 0% 100%, rgba(11, 107, 58, 0.14), transparent 36%),
      linear-gradient(180deg, #fff8e6 0%, #fffaf0 46%, #f8fbff 100%);
  }

  .home-page .donate-strip::before {
    content: "";
    position: absolute;
    inset: 14px 16px auto;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--green), var(--blue));
    opacity: 0.9;
  }

  .home-page .donate-strip .split.top {
    display: grid;
    gap: 16px;
  }

  .home-page .donate-strip .eyebrow {
    width: fit-content;
    border: 1px solid rgba(11, 107, 58, 0.16);
    border-radius: 999px;
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--green);
    font-size: 11px;
    box-shadow: 0 10px 24px rgba(11, 107, 58, 0.08);
  }

  .home-page .donate-strip h2 {
    max-width: 11ch;
    margin-bottom: 0;
    color: #071b44;
    font-size: clamp(36px, 10.8vw, 48px);
    line-height: 0.98;
  }

  .home-page .donate-strip .lead {
    max-width: 100%;
    color: #4b5870;
    font-size: 16px;
    line-height: 1.62;
  }

  .home-page .donation-options {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
  }

  .home-page .donation-options a {
    position: relative;
    min-height: 104px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
    color: #071b44;
    font-size: 15px;
    line-height: 1.16;
    text-align: left;
    box-shadow: 0 18px 34px rgba(7, 27, 68, 0.08);
  }

  .home-page .donation-options a::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 14px;
    width: 34px;
    height: 34px;
    border-radius: 13px;
    background:
      linear-gradient(135deg, rgba(11, 107, 58, 0.12), rgba(0, 87, 217, 0.1));
  }

  .home-page .donation-options a::after {
    position: absolute;
    top: 19px;
    left: 22px;
    color: var(--green);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0;
  }

  .home-page .donation-options a:nth-child(1)::after { content: "$"; }
  .home-page .donation-options a:nth-child(2)::after { content: "Z"; }
  .home-page .donation-options a:nth-child(3)::after { content: "S"; }
  .home-page .donation-options a:nth-child(4)::after { content: "B"; }
  .home-page .donation-options a:nth-child(5)::after { content: "E"; }
  .home-page .donation-options a:nth-child(6)::after { content: "W"; }

  .home-page .donation-options a::before {
    top: 12px;
    left: 14px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(212, 175, 55, 0.38);
    border-radius: 999px;
    background:
      #fff url("assets/images/nasfat-houston-logo.jpg") center/82% auto no-repeat;
    box-shadow:
      0 12px 24px rgba(7, 27, 68, 0.1),
      inset 0 0 0 4px rgba(255, 255, 255, 0.8);
  }

  .home-page .donation-options a::after {
    display: none;
  }

  .home-page .donation-options a:hover,
  .home-page .donation-options a:focus-visible {
    border-color: rgba(0, 87, 217, 0.22);
    background:
      linear-gradient(135deg, rgba(0, 87, 217, 0.96), rgba(11, 107, 58, 0.96));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(0, 87, 217, 0.18);
  }

  .home-page .donation-options a:hover::before,
  .home-page .donation-options a:focus-visible::before {
    border-color: rgba(255, 255, 255, 0.72);
    background:
      #fff url("assets/images/nasfat-houston-logo.jpg") center/82% auto no-repeat;
    transform: scale(1.04);
  }

  .home-page .donation-options a:hover::after,
  .home-page .donation-options a:focus-visible::after {
    color: var(--white);
  }

  .home-page .donation-options a:nth-child(1)::before {
    background:
      #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='26' fill='%23eef7f0'/%3E%3Cpath d='M18 38h12c4 0 6 4 10 4h6c4 0 6-3 8-5' fill='none' stroke='%230b6b3a' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M23 29c0-6 4-10 9-10s9 4 9 10-4 10-9 10-9-4-9-10Z' fill='%23d4af37'/%3E%3Cpath d='M32 22v14M28 26c2-2 8-2 8 1 0 4-8 2-8 6 0 3 6 3 9 1' fill='none' stroke='%23071b44' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/76% auto no-repeat;
  }

  .home-page .donation-options a:nth-child(2)::before {
    background:
      #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='26' fill='%23fff8e6'/%3E%3Cpath d='M39 18c-9 1-16 8-16 17s7 16 16 17c-3 2-7 3-11 2-10-2-17-10-17-20s7-18 17-20c4-1 8 0 11 4Z' fill='%230b6b3a'/%3E%3Cpath d='m43 24 2 6 6 1-5 4 2 6-5-3-5 3 2-6-5-4 6-1 2-6Z' fill='%23d4af37'/%3E%3Cpath d='M22 49h24' stroke='%23071b44' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/76% auto no-repeat;
  }

  .home-page .donation-options a:nth-child(3)::before {
    background:
      #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='26' fill='%23eef5ff'/%3E%3Cpath d='M20 34c0-6 8-9 12-3 4-6 12-3 12 3 0 8-12 15-12 15S20 42 20 34Z' fill='%23d4af37'/%3E%3Cpath d='M15 43h12c4 0 6 5 11 5h9c4 0 7-4 9-7' fill='none' stroke='%230b6b3a' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M25 22h14' stroke='%230057d9' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/76% auto no-repeat;
  }

  .home-page .donation-options a:nth-child(4)::before {
    background:
      #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='26' fill='%23eef7f0'/%3E%3Cpath d='M17 49h30V29L32 17 17 29v20Z' fill='%23fff' stroke='%23071b44' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M25 49V37c0-4 3-7 7-7s7 3 7 7v12' fill='%23eef5ff' stroke='%230b6b3a' stroke-width='4'/%3E%3Cpath d='M14 31 32 16l18 15M32 14v-5' fill='none' stroke='%23d4af37' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/76% auto no-repeat;
  }

  .home-page .donation-options a:nth-child(5)::before {
    background:
      #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='26' fill='%23fff8e6'/%3E%3Cpath d='M17 20h18c5 0 9 4 9 9v19H25c-4 0-8-4-8-8V20Z' fill='%23fff' stroke='%23071b44' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M25 25h24v23H31c-3 0-6-3-6-6V25Z' fill='%23eef5ff' stroke='%230b6b3a' stroke-width='4'/%3E%3Cpath d='M32 32h10M32 39h8' stroke='%23d4af37' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/76% auto no-repeat;
  }

  .home-page .donation-options a:nth-child(6)::before {
    background:
      #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='26' fill='%23eef5ff'/%3E%3Cpath d='M21 26c0-5 4-9 9-9h4c5 0 9 4 9 9 0 11-11 20-11 20S21 37 21 26Z' fill='%23d4af37'/%3E%3Cpath d='M17 43h11c4 0 5 5 10 5h8c4 0 7-4 9-8' fill='none' stroke='%230b6b3a' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M32 23v10M27 28h10' stroke='%23071b44' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/76% auto no-repeat;
  }
}

@media (max-width: 1080px) {
  .home-page .hero-socials {
    display: none;
  }
}

@media (max-width: 380px) {
  .home-page .donation-options {
    grid-template-columns: 1fr;
  }

  .home-page .donation-options a {
    min-height: 86px;
  }
}

@media (max-width: 640px) {
  .home-page .hero-actions {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 16px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-page .hero-actions a {
    min-height: auto;
    border: 0;
    border-bottom: 2px solid rgba(0, 87, 217, 0.32);
    border-radius: 0;
    padding: 0 0 6px;
    background: transparent;
    color: #071b44;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.1;
    text-align: left;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.78);
    white-space: nowrap;
  }

  .home-page .hero-actions a:hover,
  .home-page .hero-actions a:focus-visible {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-1px);
  }
}

@media (max-width: 380px) {
  .home-page .hero-actions {
    gap: 12px;
  }

  .home-page .hero-actions a {
    font-size: 13px;
  }
}

/* Final mobile UX polish layer */
@media (max-width: 1080px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.menu-open {
    touch-action: none;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav {
    width: min(100% - 24px, 1120px);
    margin: 10px auto;
    padding: 10px 14px;
    border: 1px solid rgba(0, 87, 217, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-logo {
    height: 52px;
    max-width: 142px;
  }

  .menu-button {
    position: relative;
    inset: auto;
    min-width: 78px;
    height: 44px;
    margin-left: auto;
    padding: 0 16px;
    border: 1px solid rgba(212, 175, 55, 0.8);
    border-radius: 999px;
    background: #071b44;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav-links {
    top: 92px;
    right: 16px;
    left: auto;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100dvh - 112px);
    border-radius: 20px;
    padding: 16px;
    visibility: hidden;
    transform: translateX(0);
  }

  .nav-links a,
  .has-subnav > a {
    min-height: 46px;
    font-size: 16px;
  }

  .home-page .hero-socials {
    display: none !important;
  }

  .nav-links.open {
    visibility: visible;
    transform: translateX(0);
  }
}

@media (max-width: 760px) {
  .section {
    padding: 54px 18px;
  }

  .calendar-frame iframe {
    min-height: 560px;
  }

  .page-hero .section {
    padding-top: 58px;
    padding-bottom: 52px;
  }

  .page-hero h1,
  .section h2 {
    max-width: 12ch;
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.04;
  }

  .lead {
    font-size: 16px;
    line-height: 1.62;
  }

  .grid.three,
  .grid.four,
  .quick-panel,
  .prayer-grid,
  .donation-options,
  .leadership-preview-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .card,
  .quick-card,
  .prayer-card,
  .news-card,
  .profile,
  .donation-panel,
  .member-pass,
  .quote-panel {
    border-radius: 8px;
  }

  .button-row {
    width: 100%;
    align-items: stretch;
    gap: 10px;
  }

  .button-row .btn {
    flex: 1 1 100%;
    min-height: 50px;
  }

  .home-page .hero {
    margin-top: -92px;
    min-height: auto;
  }

  .home-page .hero-inner {
    min-height: auto;
    padding: 132px 18px 42px;
  }

  .home-page .hero h1 {
    max-width: 10ch;
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.03;
  }

  .home-page .hero .button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .home-page .hero .button-row .btn:last-child {
    grid-column: 1 / -1;
  }

  .home-page .hero-actions {
    max-width: none;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .home-page .hero-actions::-webkit-scrollbar {
    display: none;
  }

  .quick-panel {
    width: calc(100% - 36px);
    margin-inline: auto;
    padding: 0;
  }

  .quick-card {
    min-height: 98px;
  }

  .membership-showcase,
  .membership-showcase img {
    min-height: 280px;
  }

  .member-pass {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px;
  }

  .table-wrap {
    margin-inline: -6px;
    border-radius: 8px;
  }

  .table-wrap table {
    min-width: 620px;
  }

  .gallery-toolbar,
  .gallery-album-grid,
  .gallery-masonry,
  .masonry {
    grid-template-columns: 1fr;
  }

  .footer {
    margin-top: 0;
  }

  .footer-inner {
    padding: 44px 20px;
    gap: 28px;
  }

  .footer h2,
  .footer h3 {
    margin-bottom: 8px;
  }

  .footer-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer-socials .social-link {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .nav {
    width: calc(100% - 18px);
    min-height: 66px;
    margin-top: 8px;
    padding: 8px 10px;
  }

  .brand-logo {
    height: 48px;
    max-width: 122px;
  }

  .menu-button {
    min-width: 68px;
    height: 40px;
    padding-inline: 13px;
    font-size: 11px;
  }

  .nav-links {
    top: 78px;
    right: 9px;
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 88px);
  }

  .home-page .hero-inner {
    padding-top: 122px;
  }

  .home-page .hero h1,
  .page-hero h1,
  .section h2 {
    max-width: 11ch;
  }

  .footer-socials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-page .hero {
    margin-top: 0;
    min-height: auto;
    background: #f8fbff;
  }

  .home-page .hero::before {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(248, 251, 255, 0.88) 46%, rgba(255, 255, 255, 0.98) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.74) 58%, rgba(255, 255, 255, 0.28) 100%),
      var(--hero-bg) 66% center/cover;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .home-page .hero-inner {
    min-height: auto;
    padding: 28px 20px 36px;
  }

  .home-page .hero-content {
    max-width: 100%;
  }

  .home-page .hero-invocation,
  .home-page .hero .eyebrow {
    display: none;
  }

  .home-page .hero h1 {
    max-width: 13.5ch;
    margin-bottom: 16px;
    font-size: clamp(34px, 9.6vw, 44px);
    line-height: 1.05;
    text-wrap: balance;
  }

  .home-page .hero h1::after {
    width: 56px;
    height: 3px;
    margin-top: 16px;
  }

  .home-page .hero-date {
    margin-bottom: 16px;
    padding: 8px 11px;
    font-size: 12px;
    line-height: 1.25;
  }

  .home-page .hero .lead {
    max-width: 35rem;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.58;
  }

  .home-page .hero .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
    width: 100%;
  }

  .home-page .hero .button-row .btn:first-child,
  .home-page .hero .button-row .btn:nth-child(2),
  .home-page .hero .button-row .btn:last-child {
    grid-column: 1 / -1;
  }

  .home-page .hero .button-row .btn,
  .home-page .hero .btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 56px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    padding: 15px 18px;
    font-size: 15.5px;
    line-height: 1.15;
    text-align: center;
    box-shadow: 0 18px 34px rgba(0, 87, 217, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  .home-page .hero .button-row .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 48%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-110%);
    transition: transform 320ms ease;
  }

  .home-page .hero .button-row .btn:hover::before,
  .home-page .hero .button-row .btn:focus-visible::before {
    transform: translateX(110%);
  }

  .home-page .hero .button-row .btn:nth-child(1) {
    background: linear-gradient(135deg, #2563eb, #0057d9);
  }

  .home-page .hero .button-row .btn:nth-child(2) {
    background: linear-gradient(135deg, #0b6b3a, #1e40af);
    box-shadow: 0 18px 34px rgba(11, 107, 58, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  .home-page .hero .button-row .btn:nth-child(3) {
    background: linear-gradient(135deg, #1d4ed8, #0b6b3a);
  }

  .home-page .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    overflow: visible;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-page .hero-actions a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid rgba(0, 87, 217, 0.22);
    padding: 0 0 5px;
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .home-page .hero-socials {
    display: none;
  }

  .quick-panel {
    width: auto;
    margin-inline: 20px;
    padding-top: 36px;
    padding-bottom: 42px;
  }
}

@media (max-width: 420px) {
  .home-page .hero-inner {
    padding: 24px 16px 32px;
  }

  .home-page .hero h1 {
    max-width: 13ch;
    font-size: clamp(32px, 9.2vw, 39px);
  }

  .home-page .hero .lead {
    font-size: 15.5px;
    line-height: 1.55;
  }

  .home-page .hero .button-row {
    gap: 10px;
  }

  .home-page .hero-actions {
    gap: 8px;
  }

  .home-page .hero-actions a {
    font-size: 11.5px;
  }
}

.footer {
  margin-top: 0;
}

.footer .btn,
.footer button {
  border-radius: 8px;
}

@media (min-width: 761px) {
  .footer-inner > div:first-child {
    min-height: 100%;
  }
}

@media (max-width: 760px) {
  .footer {
    border-top-width: 0;
  }

  .footer::after {
    left: 16px;
    right: 16px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 48px 16px 34px;
  }

  .footer-inner > div {
    padding: 20px;
  }

  .footer-inner > div:first-child {
    min-height: 168px;
    display: grid;
    align-content: end;
    background:
      linear-gradient(145deg, rgba(212, 175, 55, 0.16), rgba(56, 189, 248, 0.06)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  }

  .footer h2 {
    max-width: 11ch;
    margin-bottom: 10px;
    font-size: clamp(34px, 10vw, 44px);
  }

  .footer h3 {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .footer h2::after,
  .footer h3::after {
    width: 36px;
    margin-top: 11px;
  }

  .footer p {
    margin-bottom: 0;
    font-size: 15px;
  }

  .footer ul {
    margin-top: 8px;
    gap: 7px;
  }

  .footer li a {
    min-height: 34px;
    padding-block: 4px;
  }

  .footer-socials {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .footer-socials .social-link {
    width: 100%;
    min-height: 48px;
    padding: 9px 12px 9px 9px;
    font-size: 13px;
  }

  .copyright {
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .admin-center-shell {
    grid-template-columns: 1fr;
  }

  .admin-center-hero {
    min-height: auto;
  }

  .admin-center-hero h1 {
    max-width: 11ch;
  }
}

@media (max-width: 640px) {
  .admin-center-screen {
    padding: 74px 14px 34px;
  }

  .admin-back-link {
    top: 16px;
    left: 16px;
    font-size: 14px;
  }

  .admin-center-hero,
  .admin-center-card {
    padding: 22px;
  }

  .admin-center-hero .admin-login-mark {
    width: 128px;
    height: 84px;
    margin-bottom: 22px;
  }

  .admin-center-hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .admin-center-hero p {
    font-size: 16px;
    line-height: 1.55;
  }

  .admin-center-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar-actions {
    justify-content: stretch;
    width: 100%;
  }

  .dashboard-topbar-actions .btn {
    flex: 1 1 100%;
  }
}
