:root {
  color-scheme: light;
  --ink: #16231f;
  --muted: #586a63;
  --line: #d8e4dc;
  --paper: #fbfcf8;
  --soft: #edf7ef;
  --green: #236650;
  --deep-green: #133d32;
  --gold: #d6a13c;
  --rose: #c03c80;
  --red: #9d4d45;
  --white: #ffffff;
  --content-font-size: 18px;
  --content-color: #60707f;
  --banner-title-size: 20px;
  --banner-title-color: #ffffff;
  --banner-text-size: 15px;
  --banner-text-color: #ffffff;
  --hero-title-size: 88px;
  --hero-title-color: #ffffff;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  max-width: 100%;
  overflow-x: hidden;
}

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

@keyframes softPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

body:not(.admin-page) {
  position: relative;
  background:
    linear-gradient(180deg, rgba(251, 252, 248, 0.88), rgba(240, 248, 242, 0.94)),
    #fbfcfb;
}

body:not(.admin-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(251, 252, 248, 0.68), rgba(251, 252, 248, 0.9)),
    radial-gradient(circle at 18% 28%, rgba(214, 161, 60, 0.18), transparent 28%),
    radial-gradient(circle at 82% 48%, rgba(35, 102, 80, 0.16), transparent 32%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2200&q=80") center / cover no-repeat;
  opacity: 0.32;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 252, 0.9);
  border-bottom: 1px solid rgba(216, 228, 220, 0.78);
  box-shadow: 0 12px 34px rgba(19, 61, 50, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 210px;
  max-width: 100%;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
}

.brand-logo {
  width: 86px;
  height: 64px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: softPulse 5s ease-in-out infinite;
}

.brand strong,
.brand small {
  display: block;
  overflow-wrap: anywhere;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav a:hover {
  color: var(--green);
  border-color: var(--gold);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #14251f;
}

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

.banner-track::after,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 31, 25, 0.88), rgba(15, 31, 25, 0.34)),
    linear-gradient(0deg, rgba(15, 31, 25, 0.46), transparent 55%);
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img,
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-caption {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: 30px;
  z-index: 2;
  display: grid;
  gap: 4px;
  max-width: 360px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(16, 25, 22, 0.64);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  color: var(--white);
  animation: fadeUp 700ms ease both;
}

.banner-caption strong {
  color: var(--banner-title-color);
  font-size: var(--banner-title-size);
}

.banner-caption span {
  color: var(--banner-text-color);
  font-size: var(--banner-text-size);
}

.banner-dots {
  position: absolute;
  left: clamp(22px, 7vw, 86px);
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.banner-dots button {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.banner-dots button.active {
  background: var(--gold);
  border-color: var(--gold);
}

.hero-copy {
  position: relative;
  max-width: 820px;
  padding: 110px clamp(22px, 7vw, 86px) 90px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-kicker::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--rose));
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy h1 {
  color: var(--hero-title-color);
  font-size: clamp(36px, var(--hero-title-size), 130px);
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  font-size: 20px;
  line-height: 1.7;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.26);
}

.primary-action,
.submit-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-action,
.submit-button {
  background: linear-gradient(135deg, #f0c46a, var(--gold));
  color: #241707;
  box-shadow: 0 12px 24px rgba(194, 139, 44, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action:hover,
.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(194, 139, 44, 0.34);
}

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

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

.ghost-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.section {
  padding: 84px clamp(18px, 5vw, 70px);
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 42px;
  align-items: start;
}

.prose,
.info-band p,
.donate-intro p {
  color: var(--content-color);
  font-size: var(--content-font-size);
  line-height: 1.85;
  white-space: pre-line;
}

.prose p:empty {
  display: none;
}

.prose h3,
.prose strong {
  color: #14231f;
  font-weight: 900;
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.2;
}

.about-tabs {
  overflow: hidden;
  border: 1px solid rgba(216, 228, 220, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(19, 61, 50, 0.1);
}

.about-logo {
  display: block;
  width: min(260px, 80vw);
  height: auto;
  margin-top: 24px;
}

.about-tab-list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: #f7f7f7;
}

.about-tab-list button {
  min-height: 64px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
  padding: 0 28px;
  background: #e92920;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.about-tab-list button.active {
  background: #ffffff;
  color: #e92920;
}

.about-tab-panel {
  padding: 30px;
}

.about-tab-poster {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  margin-bottom: 24px;
  border-radius: 8px;
  object-fit: contain;
  background: #f7f7f7;
}

.about-tab-panel h3 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: 28px;
}

.about-tab-panel p {
  margin: 0 0 12px;
}

.info-band {
  position: relative;
  background:
    linear-gradient(135deg, rgba(237, 247, 239, 0.96), rgba(255, 252, 244, 0.94));
  border-block: 1px solid rgba(216, 228, 220, 0.72);
}

.info-band > div {
  max-width: 980px;
}

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

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

.programs-section {
  background: rgba(255, 255, 255, 0.58);
}

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

.program-card {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(216, 228, 220, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 241, 0.9));
  box-shadow: 0 18px 44px rgba(19, 61, 50, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.program-card:hover,
.sponsor-entry:hover {
  transform: translateY(-3px);
}

.program-card:hover {
  box-shadow: 0 24px 54px rgba(19, 61, 50, 0.15);
}

.program-poster-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.program-card img {
  width: 100%;
  max-height: 260px;
  border-radius: 8px;
  object-fit: contain;
  background: #f7f7f7;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(10, 18, 15, 0.82);
}

.image-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.image-lightbox button {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  font-size: 30px;
  cursor: pointer;
}

.program-card span {
  color: var(--gold);
  font-weight: 900;
}

.program-card h3 {
  margin: 0;
  color: var(--deep-green);
  font-size: 24px;
}

.program-card p {
  margin: 0;
  color: var(--content-color);
  font-size: var(--content-font-size);
  line-height: 1.7;
  white-space: pre-line;
}

.program-card strong {
  align-self: end;
  color: var(--rose);
}

.activity-card {
  overflow: hidden;
  border: 1px solid rgba(216, 228, 220, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(19, 61, 50, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(19, 61, 50, 0.15);
}

.activity-card img,
.activity-card iframe,
.activity-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  object-fit: cover;
}

.activity-card div {
  padding: 18px;
}

.activity-card h3 {
  margin-bottom: 6px;
}

.activity-card p {
  margin: 0;
  color: var(--content-color);
  font-size: var(--content-font-size);
}

.video-fallback {
  display: inline-flex;
  margin: 12px 18px 0;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.donate-section {
  display: grid;
  gap: 30px;
  background:
    linear-gradient(135deg, rgba(255, 250, 239, 0.95), rgba(238, 247, 240, 0.92));
  border-block: 1px solid rgba(216, 228, 220, 0.72);
}

.sponsor-heading {
  margin-bottom: 0;
}

.sponsor-entry-grid {
  display: grid;
  gap: 28px;
}

.sponsor-entry {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 1.28fr);
  gap: 34px;
  align-items: center;
  transition: transform 180ms ease;
}

.donate-intro {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sponsor-poster {
  min-height: 430px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(21, 35, 31, 0.08), rgba(21, 35, 31, 0.82)),
    url("https://images.unsplash.com/photo-1545569341-9eb8b30979d9?auto=format&fit=crop&w=1200&q=80") center / cover;
  color: var(--white);
  box-shadow: 0 24px 60px rgba(19, 61, 50, 0.18);
}

.sponsor-poster div {
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.sponsor-poster span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.sponsor-poster strong {
  font-size: clamp(36px, 7vw, 76px);
  line-height: 0.98;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.sponsor-poster p {
  max-width: 440px;
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
}

.sponsor-page-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(300px, 1.3fr);
  gap: 34px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 250, 239, 0.95), rgba(238, 247, 240, 0.92));
  min-height: calc(100vh - 170px);
}

.sponsor-page-form {
  align-self: start;
}

.payment-info {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(216, 228, 220, 0.92);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8e8, #edf7ef);
}

.payment-info h2 {
  font-size: 26px;
}

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

.payment-grid p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.payment-grid span {
  color: var(--deep-green);
  font-weight: 800;
}

#duitNowQr {
  width: min(260px, 72vw);
  height: auto;
  border-radius: 8px;
  background: #ffffff;
}

.sponsor-form-logo {
  width: min(220px, 56vw);
  height: auto;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 18px 42px rgba(19, 61, 50, 0.14);
}

.sponsor-form-poster {
  min-height: 260px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  padding: 22px;
  background-position: center;
  background-size: cover;
  color: var(--white);
  box-shadow: 0 18px 42px rgba(19, 61, 50, 0.14);
}

.sponsor-form-poster div {
  display: grid;
  gap: 6px;
}

.sponsor-form-poster span {
  color: var(--gold);
  font-weight: 900;
}

.sponsor-form-poster strong {
  font-size: 34px;
  line-height: 1;
}

.sponsor-form-poster p {
  margin: 0;
  color: var(--white);
  line-height: 1.55;
}

.sponsor-form,
.admin-form,
.submission-panel {
  border: 1px solid rgba(216, 228, 220, 0.92);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(19, 61, 50, 0.1);
}

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

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(214, 161, 60, 0.18);
  border-color: var(--gold);
}

textarea {
  min-height: 92px;
  resize: vertical;
}

fieldset {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 12px;
  font-weight: 800;
}

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

.sponsor-groups {
  display: grid;
  gap: 22px;
}

.sponsor-group {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(216, 228, 220, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.sponsor-group summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.sponsor-group summary::-webkit-details-marker {
  display: none;
}

.sponsor-group summary::after {
  content: "+";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff8e8;
  color: var(--deep-green);
  font-size: 24px;
  font-weight: 900;
}

.sponsor-group[open] summary::after {
  content: "-";
}

.sponsor-group summary span {
  color: var(--deep-green);
  font-size: 22px;
  font-weight: 900;
}

.sponsor-group summary small,
.sponsor-option small,
.chang-chog-heading small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.sponsor-group .option-list,
.sponsor-group .group-note,
.sponsor-group .chang-chog-list {
  margin-top: 16px;
}

.donation-option {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  transition: border-color 160ms ease, background 160ms ease;
}

.donation-option:has(input:checked) {
  border-color: var(--gold);
  background: #fff8e8;
}

.donation-option input {
  min-height: auto;
}

.donation-option strong {
  color: var(--green);
}

.amount-input,
.chang-chog-amount input {
  max-width: 130px;
}

.group-note {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.chang-chog-list {
  display: grid;
  gap: 14px;
}

.chang-chog-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.chang-chog-heading {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
}

.chang-chog-heading input {
  min-height: auto;
  margin-top: 4px;
}

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

.lotus-grid label {
  align-content: start;
}

.lotus-grid span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--deep-green);
  font-weight: 800;
}

.lotus-grid span input {
  width: auto;
  min-height: auto;
}

.chang-chog-amount {
  max-width: 220px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 22px;
}

.status {
  min-height: 24px;
  color: var(--green);
  font-weight: 700;
}

.admin-section {
  background: #f5f8fa;
}

.admin-page {
  min-height: 100vh;
  background: #f5f8fa;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  display: grid;
  gap: 16px;
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--white);
}

.login-brand {
  margin-bottom: 8px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.admin-title {
  color: var(--ink);
  font-size: clamp(34px, 6vw, 64px);
}

.admin-topbar {
  position: static;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.45fr);
  gap: 20px;
  align-items: start;
}

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

.style-controls {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.45fr);
  gap: 14px;
}

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

.admin-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 96px;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfc;
}

.admin-card-fields {
  display: grid;
  gap: 10px;
}

.media-preview {
  overflow: hidden;
  border-radius: 8px;
  background: #e8eef1;
}

.media-preview img,
.media-preview video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.video-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.banner-admin-preview {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #24342f;
}

.banner-admin-preview small {
  color: #d7e4dd;
  font-weight: 800;
}

.program-admin-card {
  grid-template-columns: 170px minmax(0, 1fr) 96px;
}

.about-admin-card {
  grid-template-columns: 170px minmax(0, 1fr) 96px;
}

.sponsor-admin-card {
  grid-template-columns: 170px minmax(0, 1fr) 96px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-row input {
  width: auto;
  min-height: auto;
}

.program-mini-preview {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 150px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(160deg, #fff8e8, #edf7ef);
}

.program-mini-preview span,
.program-mini-preview small {
  color: var(--muted);
  font-weight: 800;
}

.program-mini-preview strong {
  color: var(--deep-green);
  font-size: 20px;
}

.admin-item {
  display: grid;
  grid-template-columns: 1fr 120px 96px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-item.activity {
  grid-template-columns: 120px 1fr 1fr 96px;
}

.remove-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

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

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading h3 {
  margin: 0;
}

.submission-table-wrap {
  overflow-x: auto;
}

.submission-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 320px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 228, 220, 0.92);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8e8, #edf7ef);
}

.submission-summary span {
  color: var(--muted);
  font-weight: 800;
}

.submission-summary strong {
  color: var(--deep-green);
  font-size: 24px;
}

.submission-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 14px;
}

.submission-table th,
.submission-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.submission-table th {
  position: sticky;
  top: 0;
  background: #edf7ef;
  color: var(--deep-green);
  font-weight: 900;
}

.submission-table td {
  color: var(--muted);
}

.submission-items {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.submission-items li {
  line-height: 1.55;
}

.table-button {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.template-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px;
}

.template-editor summary {
  cursor: pointer;
  color: var(--deep-green);
  font-weight: 900;
}

.template-editor summary small {
  margin-left: 8px;
  color: var(--muted);
}

.template-groups,
.template-items,
.template-positions {
  display: grid;
  gap: 12px;
}

.template-group,
.template-item {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.template-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.side-stack,
.compact-form,
.user-list {
  display: grid;
  gap: 16px;
}

.user-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.user-item span {
  color: var(--muted);
}

.submission {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fcfdfc;
}

.submission p {
  margin: 4px 0;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 70px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.contact-section {
  background: rgba(255, 255, 255, 0.88);
}

.contact-section > h2 {
  margin-bottom: 34px;
  text-align: center;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
  gap: 42px;
  align-items: center;
}

.contact-info {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.contact-info img {
  width: min(280px, 80vw);
  height: auto;
}

.contact-info h3 {
  margin: 16px 0 0;
  font-size: 24px;
}

.contact-info p {
  margin: 0;
  line-height: 1.7;
}

.contact-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  justify-self: stretch;
  max-width: 360px;
  text-align: left;
}

.contact-icon {
  color: #e92920;
  font-size: 30px;
}

.contact-row strong,
.contact-row a {
  display: block;
}

.contact-row a {
  margin-top: 6px;
  color: #1687ff;
  text-decoration: none;
}

.contact-map {
  width: 100%;
  min-height: 450px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(19, 61, 50, 0.12);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(19, 61, 50, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 20px 40px rgba(19, 61, 50, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.whatsapp-float::before {
  content: "";
  width: 30px;
  height: 30px;
  background: currentColor;
  clip-path: path("M24.6 5.5A12.6 12.6 0 0 0 2.9 19.9L1.4 25.4l5.7-1.5a12.6 12.6 0 0 0 6 1.5h.1A12.6 12.6 0 0 0 24.6 5.5ZM13.2 23.2h-.1a10.4 10.4 0 0 1-5.3-1.4l-.4-.2-3.4.9.9-3.3-.2-.4a10.4 10.4 0 1 1 8.5 4.4Zm5.7-7.8c-.3-.2-1.8-.9-2.1-1s-.5-.2-.7.2-.8 1-.9 1.2-.3.2-.6.1a8.5 8.5 0 0 1-2.5-1.5 9.2 9.2 0 0 1-1.7-2.1c-.2-.3 0-.5.1-.7l.5-.6c.2-.2.2-.4.3-.6s0-.5 0-.7-.7-1.7-1-2.3c-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4s-1.2 1.1-1.2 2.8 1.2 3.2 1.4 3.4 2.4 3.7 5.8 5.2c.8.3 1.4.5 1.9.7.8.3 1.5.2 2.1.1.6-.1 1.8-.7 2.1-1.5.3-.7.3-1.4.2-1.5-.1-.2-.3-.3-.6-.4Z");
}

.whatsapp-float span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.danger {
  color: var(--red);
}

@media (max-width: 860px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 10px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
    width: 100%;
  }

  .brand-logo {
    width: 64px;
    height: 52px;
    flex: 0 0 auto;
  }

  .nav {
    width: 100%;
    gap: 8px 14px;
    line-height: 1.2;
  }

  .split,
  .donate-section,
  .sponsor-entry,
  .contact-layout,
  .sponsor-page-section,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .activity-grid,
  .program-grid,
  .form-grid,
  .payment-grid,
  .lotus-grid,
  .style-controls {
    grid-template-columns: 1fr;
  }

  .admin-item,
  .admin-item.activity,
  .admin-card {
    grid-template-columns: 1fr;
  }

  .about-tab-list {
    display: grid;
  }

  .about-tab-list button {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  }

  .banner-caption {
    left: 22px;
    right: 22px;
    bottom: 74px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 92px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 13vw, 72px);
    line-height: 1;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .sponsor-poster,
  .contact-map {
    min-height: 320px;
  }

  .sponsor-poster strong {
    font-size: clamp(32px, 12vw, 56px);
  }

  .submission-table-wrap {
    overflow-x: auto;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .nav {
    gap: 6px 12px;
    font-size: 13px;
  }

  .hero-copy {
    padding: 92px 14px 126px;
  }

  .hero {
    min-height: 520px;
    align-items: start;
  }

  .hero-copy .eyebrow {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .section {
    padding: 46px 16px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(42px, 15vw, 58px) !important;
    line-height: 1.02;
    letter-spacing: 0;
    text-wrap: balance;
  }

  h2,
  .admin-title {
    font-size: clamp(28px, 10vw, 42px);
  }

  h2,
  .admin-title {
    overflow-wrap: anywhere;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-copy .primary-action {
    margin-top: 14px;
  }

  .banner-caption {
    left: 16px;
    right: 16px;
    bottom: 62px;
    max-width: calc(100vw - 32px);
    padding: 10px 12px;
    gap: 4px;
  }

  .banner-caption strong {
    font-size: min(var(--banner-title-size), 18px) !important;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .banner-caption span {
    font-size: min(var(--banner-text-size), 13px) !important;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .banner-dots {
    left: 24px;
    bottom: 28px;
  }

  .about-logo,
  .contact-info img,
  .sponsor-form-logo {
    max-width: 100%;
  }

  .sponsor-form,
  .admin-form,
  .submission-panel,
  .sponsor-group,
  .program-card,
  .activity-card {
    padding: 16px;
  }

  .sponsor-poster {
    min-height: 300px;
    padding: 18px;
  }

  .sponsor-poster strong {
    font-size: clamp(34px, 12vw, 48px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .sponsor-poster p {
    font-size: 16px;
    line-height: 1.35;
  }

  .sponsor-entry {
    gap: 18px;
  }

  .donation-option,
  .sponsor-option {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .donation-option strong,
  .amount-input {
    grid-column: 2;
    width: 100%;
  }

  .sponsor-group summary {
    grid-template-columns: 1fr 34px;
  }

  .sponsor-group summary span {
    font-size: 18px;
  }

  .chang-chog-card,
  .template-item,
  .template-group {
    min-width: 0;
  }

  input,
  textarea,
  select,
  button {
    max-width: 100%;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 390px) {
  .hero-copy h1 {
    font-size: clamp(38px, 14vw, 50px) !important;
  }

  .banner-caption {
    bottom: 58px;
  }

  .sponsor-poster strong {
    font-size: clamp(30px, 11vw, 42px);
  }
}
}
