:root {
  --bg: #f8efe2;
  --bg-deep: #53131a;
  --panel: rgba(255, 251, 244, 0.8);
  --panel-strong: rgba(255, 248, 237, 0.94);
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 239, 214, 0.28);
  --text: #2d170f;
  --muted: #6f5343;
  --primary: #7a1621;
  --primary-deep: #53131a;
  --accent: #dfab43;
  --accent-strong: #c47f12;
  --secondary-accent: #0f6f73;
  --success: #2f6d4d;
  --shadow-soft: 0 12px 30px rgba(76, 36, 15, 0.12);
  --shadow-card: 0 22px 54px rgba(68, 26, 9, 0.16);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 78px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top, rgba(255, 196, 77, 0.34), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(33, 146, 154, 0.08), transparent 18%),
    linear-gradient(180deg, #fffaf1 0%, #f7ead7 100%);
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 55;
  background:
    radial-gradient(circle at 20% 12%, rgba(223, 171, 67, 0.22), transparent 24%),
    rgba(25, 10, 6, 0.52);
  backdrop-filter: blur(7px);
}

body.is-admin {
  background:
    radial-gradient(circle at top, rgba(191, 121, 56, 0.18), transparent 25%),
    linear-gradient(180deg, #f8f0e3 0%, #efe0cb 100%);
}

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

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

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

.shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid rgba(255, 237, 208, 0.18);
  background: linear-gradient(90deg, rgba(95, 17, 28, 0.88), rgba(55, 35, 20, 0.84));
  backdrop-filter: blur(16px);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 48px;
  height: 48px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.3), transparent 30%),
    linear-gradient(145deg, rgba(255, 245, 223, 0.24), rgba(255, 245, 223, 0.08));
  border: 1px solid rgba(255, 239, 214, 0.34);
  border-radius: 18px;
  cursor: pointer;
  padding: 0;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px rgba(25, 10, 6, 0.18);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 13px;
  background: rgba(255, 248, 236, 0.08);
  border: 1px solid rgba(255, 239, 214, 0.12);
  pointer-events: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.nav-toggle:hover {
  border-color: rgba(255, 239, 214, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 30px rgba(25, 10, 6, 0.26);
  transform: translateY(-1px);
}

.nav-toggle:hover::before {
  background: rgba(255, 248, 236, 0.13);
}

.nav-toggle.active {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(145deg, rgba(223, 171, 67, 0.42), rgba(122, 22, 33, 0.22));
  border-color: rgba(255, 231, 184, 0.62);
}

.nav-toggle.active::before {
  transform: scale(0.92);
  background: rgba(83, 19, 26, 0.16);
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(223, 171, 67, 0.62);
  outline-offset: 3px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #fff7eb;
  border-radius: 999px;
  transition: top 180ms ease, transform 180ms ease, opacity 180ms ease, width 180ms ease, background-color 180ms ease;
  position: absolute;
  left: 50%;
  z-index: 1;
  box-shadow: 0 1px 6px rgba(25, 10, 6, 0.2);
}

.hamburger {
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
}

.hamburger::before {
  top: -7px;
  transform: translateX(-50%);
}

.hamburger::after {
  top: 7px;
  transform: translateX(-50%);
}

.nav-toggle.active .hamburger {
  background: transparent;
  width: 0;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  opacity: 1;
  width: 22px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  opacity: 1;
  width: 22px;
  transform: translateX(-50%) rotate(-45deg);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 10px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  color: #fff7eb;
}

.brand::before {
  content: "";
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    url("/assets/images/sai-mandir-usa-logo.png") center / cover no-repeat,
    #fff8ee;
  border: 2px solid rgba(255, 239, 214, 0.72);
  box-shadow: 0 12px 26px rgba(25, 10, 6, 0.18);
}

.brand strong {
  grid-column: 2;
  font-size: 1rem;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.brand span {
  grid-column: 2;
  color: #f4dab1;
  font-size: 0.88rem;
  line-height: 1.22;
}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  max-width: 430px;
  color: #ffe7bd;
  font-size: 0.72rem;
  line-height: 1.25;
  opacity: 0.94;
}

.brand-meta span {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.brand-meta span + span::before {
  content: "/";
  margin-right: 10px;
  color: rgba(255, 231, 184, 0.56);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #fff7eb;
  font-size: 0.94rem;
  transition: background-color 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 237, 208, 0.14);
  transform: translateY(-1px);
}

.nav a[href="/donations/"],
.nav a[href="/upcoming-events/"] {
  background: linear-gradient(135deg, rgba(223, 171, 67, 0.92), rgba(196, 127, 18, 0.9));
  color: #fff8ee;
  box-shadow: 0 10px 22px rgba(86, 26, 10, 0.18);
}

@media (max-width: 1080px) {
  .site-header {
    background:
      radial-gradient(circle at 100% 0%, rgba(223, 171, 67, 0.18), transparent 28%),
      linear-gradient(92deg, rgba(95, 17, 28, 0.96), rgba(55, 35, 20, 0.94));
  }

  .nav-row {
    min-height: 72px;
  }

  .nav-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: calc(72px + env(safe-area-inset-top, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: auto;
    max-height: min(680px, calc(100dvh - 92px));
    height: auto;
    background:
      radial-gradient(circle at 100% 0%, rgba(223, 171, 67, 0.26), transparent 30%),
      linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(249, 237, 215, 0.98));
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 8px;
    border: 1px solid rgba(122, 22, 33, 0.12);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(44, 14, 6, 0.34);
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    z-index: 75;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    text-align: left;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(122, 22, 33, 0.08);
    color: #53131a;
    background: rgba(255, 255, 255, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    font-size: 1rem;
    font-weight: 700;
  }

  .nav a::after {
    content: ">";
    color: rgba(83, 19, 26, 0.5);
    font-size: 1.25rem;
    line-height: 1;
  }

  .nav a:hover,
  .nav a.active {
    background: linear-gradient(135deg, rgba(122, 22, 33, 0.1), rgba(223, 171, 67, 0.16));
    transform: none;
  }

  .nav a[href="/donations/"],
  .nav a[href="/upcoming-events/"] {
    color: #fff8ee;
    background: linear-gradient(135deg, #8d1d28, #c88718);
    border-color: rgba(255, 236, 205, 0.36);
  }

  .nav a[href="/donations/"]::after,
  .nav a[href="/upcoming-events/"]::after {
    color: rgba(255, 248, 238, 0.76);
  }
}

.hero,
.page-hero {
  padding: 34px 0 20px;
}

.grid-hero,
.two-col,
.poster-grid,
.contact-grid,
.media-highlight,
.admin-layout,
.portal-layout,
.donation-grid,
.donation-experience,
.action-grid,
.category-grid,
.event-card-grid,
.program-grid,
.booking-grid,
.communication-grid,
.feature-grid,
.stats-grid,
.gallery-grid,
.schedule-grid {
  display: grid;
  gap: 20px;
}

.grid-hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: stretch;
}

.home-dashboard-section {
  padding: 34px 0 24px;
}

.home-intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 26px;
  align-items: center;
  margin-bottom: 20px;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% 0%, rgba(223, 171, 67, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(249, 237, 217, 0.94));
  border: 1px solid rgba(122, 61, 18, 0.12);
  box-shadow: var(--shadow-card);
}

.home-intro-panel h1 {
  margin: 0 0 12px;
  color: var(--primary-deep);
  font-size: clamp(2.35rem, 3.4vw, 3.55rem);
}

.home-intro-panel p {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.home-intro-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: stretch;
}

.home-intro-links p {
  max-width: none;
  min-height: 118px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(122, 22, 33, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.48;
}

.home-intro-links strong {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 1.05rem;
}

.home-intro-links span {
  display: block;
  color: var(--muted);
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: 20px;
  align-items: start;
}

.home-showcase {
  padding: 18px;
}

.home-slider-shell {
  position: relative;
  min-height: 600px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 224, 173, 0.35), transparent 35%),
    linear-gradient(180deg, rgba(92, 18, 23, 0.08), rgba(255, 247, 235, 0.92));
  border: 1px solid rgba(111, 16, 24, 0.1);
}

.home-slider {
  position: relative;
  min-height: 600px;
}

.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.home-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-slide img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  object-position: center;
}

.home-slide figcaption {
  position: absolute;
  left: 20px;
  right: 86px;
  bottom: 20px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #fff8ee;
  background: linear-gradient(180deg, rgba(83, 19, 26, 0.88), rgba(83, 19, 26, 0.72));
  box-shadow: 0 18px 32px rgba(25, 10, 6, 0.18);
}

.home-slide figcaption strong,
.home-slide figcaption span {
  display: block;
}

.home-slide figcaption strong {
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.home-slide figcaption span {
  line-height: 1.6;
  color: rgba(255, 241, 220, 0.92);
}

.home-slider-next {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: #fff8ee;
  background: linear-gradient(135deg, rgba(239, 191, 86, 0.95), rgba(200, 134, 22, 0.96));
  box-shadow: 0 16px 28px rgba(83, 19, 26, 0.2);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  z-index: 2;
}

.home-summary-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.summary-card:first-child,
.summary-card:last-child {
  grid-column: 1 / -1;
}

.summary-card {
  padding: 16px;
  border-radius: 18px;
}

.summary-card-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(122, 22, 33, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-card h3 {
  margin-bottom: 6px;
  color: var(--primary-deep);
  font-size: 1.04rem;
}

.summary-card p {
  margin: 0 0 10px;
  line-height: 1.48;
  font-size: 0.95rem;
}

.summary-card-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.summary-card-lines p {
  margin: 0;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 248, 236, 0.84);
  border: 1px solid rgba(203, 152, 61, 0.18);
}

.summary-card .btn {
  min-height: 40px;
  width: 100%;
  padding: 0 12px;
  font-size: 0.9rem;
}

.summary-card .inline-actions {
  gap: 8px;
}

.glass-card,
.content-card,
.feature-card,
.poster-card,
.schedule-card,
.contact-card,
.gallery-card,
.donation-card,
.admin-card,
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 61, 18, 0.12);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.9), rgba(255, 245, 231, 0.84));
  box-shadow: var(--shadow-card);
}

.glass-card::before,
.content-card::before,
.feature-card::before,
.poster-card::before,
.schedule-card::before,
.contact-card::before,
.gallery-card::before,
.donation-card::before,
.admin-card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 45%);
}

.glass-section {
  padding: 28px;
}

.hero-copy {
  padding: 38px;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(223, 171, 67, 0.2), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(15, 111, 115, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(249, 237, 217, 0.94));
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(122, 22, 33, 0.1);
}

.hero-brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.92);
  padding: 6px;
}

.hero-brand-lockup span,
.hero-brand-lockup strong {
  display: block;
}

.hero-brand-lockup span {
  color: rgba(122, 22, 33, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-brand-lockup strong {
  margin-top: 2px;
  color: var(--primary-deep);
  font-size: 1rem;
}

.event-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(122, 22, 33, 0.1);
  overflow: hidden;
}

.event-ticker > span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(223, 171, 67, 0.22);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker-track {
  display: grid;
  min-height: 24px;
  color: var(--primary-deep);
}

.ticker-track strong {
  grid-area: 1 / 1;
  opacity: 0;
  animation: tickerFade 12s infinite;
}

.ticker-track strong:nth-child(2) {
  animation-delay: 4s;
}

.ticker-track strong:nth-child(3) {
  animation-delay: 8s;
}

@keyframes tickerFade {
  0%, 30% {
    opacity: 1;
    transform: translateY(0);
  }

  36%, 100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.hero-visual-panel {
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 227, 179, 0.44), transparent 35%),
    linear-gradient(180deg, rgba(15, 111, 115, 0.12), rgba(88, 20, 18, 0.03));
}

.hero-visual-frame {
  height: 100%;
}

.hero-visual-image {
  min-height: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 247, 230, 0.22);
}

.hero-visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-info-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.glass-strip,
.hero-info-cards {
  display: grid;
}

.hero-info-card {
  min-height: 126px;
  padding: 20px 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(252, 240, 221, 0.86));
  border: 1px solid rgba(203, 152, 61, 0.16);
  box-shadow: var(--shadow-soft);
}

.hero-info-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--primary);
}

.hero-info-card span {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.glass-pill {
  min-height: 100px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 251, 243, 0.12);
  border: 1px solid rgba(255, 242, 220, 0.16);
  backdrop-filter: blur(8px);
}

.glass-pill strong,
.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.glass-pill span,
.stat-card span {
  display: block;
  color: rgba(255, 248, 236, 0.84);
  line-height: 1.55;
  font-size: 0.92rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 22, 33, 0.1);
  background: rgba(255, 255, 255, 0.56);
  color: var(--primary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.02;
}

.hero-copy h1,
.page-banner h1 {
  margin: 12px 0 14px;
  font-size: clamp(1.95rem, 3vw, 3.35rem);
}

.hero-copy h1 {
  color: var(--primary-deep);
}

.hero-copy p,
.page-banner p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.page-banner p {
  color: rgba(255, 248, 236, 0.88);
}

.hero-copy .btn-secondary {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(122, 22, 33, 0.12);
}

.hero-actions,
.inline-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 24px;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff8ee;
  background: linear-gradient(135deg, #efbf56, #c88616);
  box-shadow: 0 12px 24px rgba(175, 117, 19, 0.26);
}

.btn-secondary {
  color: #fff5e6;
  background: rgba(255, 247, 234, 0.08);
  border-color: rgba(255, 235, 204, 0.22);
}

.btn-ghost {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.36);
  border-color: rgba(111, 16, 24, 0.14);
}

.btn-dark {
  color: #fff8ee;
  background: linear-gradient(135deg, #6d1018, #4a0710);
}

main section,
.page-section {
  padding: 24px 0;
}

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

.section-head h2 {
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  color: var(--primary-deep);
}

.section-head p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

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

.feature-card,
.content-card,
.poster-card,
.schedule-card,
.contact-card,
.donation-card,
.admin-card {
  padding: 24px;
}

.feature-card,
.gallery-card {
  height: 100%;
}

.feature-card h3,
.content-card h3,
.poster-card h3,
.schedule-card h3,
.contact-card h3,
.donation-card h3,
.admin-card h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  color: var(--primary);
}

.feature-card p,
.content-card p,
.poster-card p,
.contact-card p,
.donation-card p,
.admin-card p,
.admin-help,
.meta-text {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.74;
}

.mini-list,
.timeline,
.bullet-list,
.contact-list,
.split-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li,
.timeline li,
.bullet-list li,
.contact-list li,
.split-list li {
  padding: 11px 0;
  border-top: 1px solid rgba(111, 16, 24, 0.08);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.mini-list li:first-child,
.timeline li:first-child,
.bullet-list li:first-child,
.contact-list li:first-child,
.split-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

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

.stat-card {
  padding: 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(250, 239, 216, 0.88));
}

.stat-card strong {
  font-size: 1.58rem;
  color: var(--primary);
}

.stat-card span {
  color: var(--muted);
}

.poster-grid,
.two-col,
.contact-grid,
.donation-grid,
.donation-experience,
.booking-grid,
.communication-grid,
.event-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  align-items: start;
}

.poster-frame,
.media-panel {
  padding: 18px;
}

.poster-frame img,
.contact-media img,
.media-panel img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.overview-image {
  margin: 20px 0 0;
}

.overview-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.overview-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

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

.event-day {
  padding-top: 12px;
}

.event-day p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(203, 152, 61, 0.24);
  background: rgba(255, 247, 234, 0.74);
  color: var(--primary);
  font-size: 0.9rem;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

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

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

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

.action-card,
.category-card,
.program-card,
.event-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 61, 18, 0.12);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.94), rgba(255, 244, 226, 0.88));
  box-shadow: var(--shadow-card);
}

.action-card,
.category-card,
.program-card {
  padding: 22px;
}

.action-card span,
.category-card span,
.program-card span,
.event-date {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(122, 22, 33, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.action-card h3,
.category-card h3,
.program-card h3,
.event-card h3 {
  margin-bottom: 10px;
  color: var(--primary-deep);
  font-size: 1.18rem;
}

.action-card p,
.category-card p,
.program-card p,
.event-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.program-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.program-times strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff8ee;
  background: linear-gradient(135deg, var(--primary), var(--accent-strong));
  box-shadow: 0 10px 20px rgba(83, 19, 26, 0.14);
  font-size: 0.92rem;
}

.content-card .inline-actions + .pdf-frame {
  margin-top: 18px;
}

.event-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: stretch;
}

.event-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.event-card > div {
  padding: 22px;
}

.gallery-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #f6ede0 0%, #ead8b8 100%);
}

.gallery-card figcaption {
  padding: 16px 6px 8px;
  min-height: 110px;
}

.gallery-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
}

.gallery-card span {
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.page-banner {
  padding: 32px;
  color: #fff8ee;
  background:
    radial-gradient(circle at top right, rgba(250, 216, 157, 0.14), transparent 25%),
    linear-gradient(145deg, rgba(111, 16, 24, 0.96), rgba(53, 7, 13, 0.98));
}

.page-banner p {
  max-width: 860px;
}

.pdf-frame {
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 20px;
  background: #f1e5cf;
}

.address-box,
.donation-meta,
.admin-status {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.96), rgba(249, 237, 212, 0.88));
  border: 1px solid rgba(203, 152, 61, 0.18);
}

.contact-list strong {
  display: block;
  color: var(--primary-deep);
}

.contact-list a {
  color: var(--primary);
}

.contact-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card .inline-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.contact-card .inline-actions .btn {
  width: 100%;
}

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

.donation-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.donation-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.donation-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 247, 232, 0.88);
  border: 1px solid rgba(111, 16, 24, 0.1);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.split-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.split-row span:last-child {
  text-align: right;
  color: var(--muted);
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 247, 232, 0.9);
  border: 1px solid rgba(203, 152, 61, 0.18);
  color: var(--muted);
}

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

.site-form .btn {
  width: fit-content;
}

.amount-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(111, 16, 24, 0.1);
  border-radius: 18px;
  background: rgba(255, 248, 236, 0.74);
}

.amount-picker legend {
  padding: 0 8px;
  color: var(--primary);
  font-weight: 700;
}

.amount-picker label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(111, 16, 24, 0.08);
  color: var(--muted);
  font-weight: 700;
}

.payment-card {
  align-self: start;
}

.payment-link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: min(240px, 100%);
  aspect-ratio: 1;
  margin: 4px 0 18px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(83, 19, 26, 0.12) 50%, transparent 0) 0 0 / 28px 28px,
    linear-gradient(rgba(83, 19, 26, 0.12) 50%, transparent 0) 0 0 / 28px 28px,
    #fffaf1;
  border: 12px solid #fff;
  box-shadow: var(--shadow-soft);
}

.qr-placeholder span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  color: #fff8ee;
  background: linear-gradient(135deg, var(--primary), var(--accent-strong));
  font-weight: 700;
}

.qr-image {
  width: min(260px, 100%);
  margin: 4px 0 18px;
  padding: 14px;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}

.poster-archive-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poster-archive-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.poster-archive-card img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.poster-archive-card .btn {
  width: 100%;
}

.map-card iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 20px;
  background: #f1e5cf;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-tabs span {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(111, 16, 24, 0.12);
  font-weight: 700;
}

.floating-actions {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 65;
  display: grid;
  grid-template-columns: repeat(2, minmax(126px, auto));
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 239, 214, 0.38);
  background: rgba(255, 248, 236, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(49, 16, 8, 0.22);
}

.floating-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff8ee;
  background: linear-gradient(135deg, #8d1d28, #c88718);
  box-shadow: 0 10px 24px rgba(83, 19, 26, 0.22);
  font-weight: 700;
}

.floating-actions a:last-child {
  background: linear-gradient(135deg, #0f6f73, #1d8f64);
}

body.nav-open .floating-actions {
  display: none;
}

.admin-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
}

.portal-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

.portal-sidebar {
  position: sticky;
  top: 98px;
}

.portal-nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.portal-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.82);
  border: 1px solid rgba(111, 16, 24, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.portal-main {
  min-width: 0;
}

.portal-section + .portal-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(111, 16, 24, 0.08);
}

.portal-json-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  max-height: 520px;
  overflow: auto;
}

.admin-stack {
  display: grid;
  gap: 18px;
}

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

.form-grid.one-col {
  grid-template-columns: 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field:has(select) {
  position: relative;
}

.field:has(select)::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(122, 22, 33, 0.08);
  pointer-events: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.field.dropdown-active::after,
.field:has(select:focus)::after {
  background: rgba(223, 171, 67, 0.24);
  transform: rotate(180deg);
}

.field label {
  font-size: 0.94rem;
  color: var(--primary);
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(111, 16, 24, 0.14);
  background: rgba(255, 253, 249, 0.96);
  color: var(--text);
}

.field select,
select.dropdown,
.dropdown-component select,
.dmforminput select {
  min-height: 52px;
  padding: 13px 48px 13px 16px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(122, 22, 33, 0.14);
  border-radius: 18px;
  color: var(--primary-deep);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 246, 229, 0.76)) padding-box,
    linear-gradient(135deg, rgba(223, 171, 67, 0.5), rgba(122, 22, 33, 0.22)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 12px 28px rgba(76, 36, 15, 0.08);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field select {
  background:
    url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%237a1621' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 18px 18px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 246, 229, 0.76)) padding-box,
    linear-gradient(135deg, rgba(223, 171, 67, 0.5), rgba(122, 22, 33, 0.22)) border-box;
}

.field select:hover,
select.dropdown:hover,
.dropdown-component select:hover,
.dmforminput select:hover {
  border-color: rgba(122, 22, 33, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 16px 34px rgba(76, 36, 15, 0.13);
  transform: translateY(-1px);
}

.field select:focus,
select.dropdown:focus,
.dropdown-component select:focus,
.dmforminput select:focus {
  outline: 0;
  border-color: rgba(196, 127, 18, 0.78);
  box-shadow:
    0 0 0 4px rgba(223, 171, 67, 0.2),
    0 16px 34px rgba(76, 36, 15, 0.14);
}

.field select option,
select.dropdown option,
.dropdown-component select option,
.dmforminput select option {
  color: var(--primary-deep);
  background: #fffaf1;
  font-weight: 700;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.admin-actions {
  margin-top: 10px;
}

.admin-status {
  color: var(--muted);
}

.footer {
  margin-top: 30px;
  padding: 28px 0 40px;
  background: linear-gradient(180deg, rgba(111, 16, 24, 0.04), rgba(111, 16, 24, 0.12));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer-inner strong {
  color: var(--primary);
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .feature-grid,
  .gallery-grid,
  .stats-grid,
  .donation-grid,
  .donation-experience,
  .action-grid,
  .category-grid,
  .event-card-grid,
  .program-grid,
  .booking-grid,
  .communication-grid,
  .schedule-grid,
  .poster-grid,
  .two-col,
  .contact-grid,
  .grid-hero,
  .home-dashboard-grid,
  .home-intro-panel,
  .admin-layout,
  .portal-layout,
  .hero-info-cards {
    grid-template-columns: 1fr;
  }

  .glass-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card img {
    max-height: 280px;
  }
}

@media (max-width: 720px) {
  .section-head,
  .footer-inner,
  .split-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-row {
    min-height: 68px;
    padding: 8px 0;
  }

  .brand {
    max-width: calc(100% - 62px);
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 10px;
  }

  .brand::before {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 0.92rem;
    letter-spacing: 0.035em;
  }

  .brand span {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .brand-meta {
    gap: 0 7px;
    font-size: 0.64rem;
    line-height: 1.2;
  }

  .brand-meta span + span::before {
    margin-right: 7px;
  }

  .nav {
    top: calc(68px + env(safe-area-inset-top, 0px));
    max-height: min(620px, calc(100dvh - 84px));
    border-radius: 24px;
  }

  .hero-copy,
  .page-banner,
  .feature-card,
  .content-card,
  .poster-card,
  .schedule-card,
  .contact-card,
  .donation-card,
  .admin-card {
    padding: 20px;
  }

  .shell {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .hero,
  .page-hero {
    padding: 20px 0 12px;
  }

  .home-dashboard-section {
    padding: 20px 0 12px;
  }

  .home-intro-panel {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 22px;
  }

  .home-intro-links {
    grid-template-columns: 1fr;
  }

  main section,
  .page-section {
    padding: 18px 0;
  }

  .grid-hero,
  .home-dashboard-grid,
  .poster-grid,
  .contact-grid,
  .donation-grid,
  .feature-grid,
  .stats-grid,
  .gallery-grid,
  .schedule-grid,
  .poster-archive-grid {
    gap: 14px;
  }

  .glass-card,
  .content-card,
  .feature-card,
  .poster-card,
  .schedule-card,
  .contact-card,
  .gallery-card,
  .donation-card,
  .admin-card,
  .stat-card {
    border-radius: 22px;
  }

  .hero-copy h1,
  .page-banner h1 {
    font-size: clamp(1.82rem, 8.5vw, 2.45rem);
  }

  .hero-copy p,
  .page-banner p,
  .section-head p,
  .feature-card p,
  .content-card p,
  .poster-card p,
  .contact-card p,
  .donation-card p,
  .admin-card p,
  .admin-help,
  .meta-text {
    line-height: 1.62;
  }

  .hero-actions,
  .inline-actions,
  .admin-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .inline-actions .btn,
  .admin-actions .btn,
  .site-form .btn {
    width: 100%;
  }

  .hero-brand-lockup {
    align-items: flex-start;
    border-radius: 22px;
  }

  .event-ticker {
    grid-template-columns: 1fr;
  }

  .ticker-track {
    min-height: 48px;
  }

  .action-card,
  .category-card,
  .program-card,
  .event-card > div {
    padding: 18px;
  }

  .amount-picker {
    display: grid;
  }

  .map-card iframe {
    min-height: 300px;
  }

  .floating-actions {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 7px;
  }

  .floating-actions a {
    min-height: 44px;
    min-width: 0;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero-visual-panel,
  .poster-frame,
  .media-panel,
  .gallery-card {
    padding: 12px;
  }

  .hero-visual-image {
    min-height: 260px;
    border-radius: 18px;
  }

  .home-showcase {
    padding: 12px;
  }

  .home-intro-panel h1 {
    font-size: clamp(2rem, 9vw, 2.9rem);
  }

  .home-summary-stack {
    grid-template-columns: 1fr;
  }

  .summary-card:first-child,
  .summary-card:last-child {
    grid-column: auto;
  }

  .home-slider-shell,
  .home-slider,
  .home-slide img {
    min-height: 340px;
  }

  .home-slide figcaption {
    left: 14px;
    right: 72px;
    bottom: 14px;
    padding: 14px;
  }

  .home-slider-next {
    right: 12px;
    width: 46px;
    height: 46px;
    font-size: 1.8rem;
  }

  .hero-info-card {
    min-height: 0;
    padding: 18px;
  }

  .gallery-card img {
    aspect-ratio: 1 / 1.12;
    border-radius: 16px;
  }

  .gallery-card figcaption {
    min-height: 0;
    padding: 14px 4px 4px;
  }

  .pdf-frame {
    min-height: 520px;
  }

  .contact-card .inline-actions {
    grid-template-columns: 1fr;
  }

  .donation-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-row span:last-child {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .nav-toggle::before {
    inset: 6px;
    border-radius: 12px;
  }

  .nav a {
    min-height: 50px;
    padding: 0 15px;
  }

  .hero-copy,
  .page-banner,
  .feature-card,
  .content-card,
  .poster-card,
  .schedule-card,
  .contact-card,
  .donation-card,
  .admin-card {
    padding: 18px;
  }

  .btn {
    min-height: 46px;
    padding: 0 16px;
  }
}
