@font-face {
  font-family: "ML TT Chandrika";
  src:
    local("ML-TTChandrika Bold"),
    local("ML TT Chandrika Bold"),
    url("../../fonts/ML-TTChandrika-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

:root {
  --royal: #0e2761;
  --royal-mid: #122f75;
  --royal-deep: #081840;
  --royal-ink: #050c22;
  --rose: #9f0b55;
  --rose-deep: #6e073c;
  --cream: #f8f6f2;
  --text-on-dark: #f8f6f2;
  --muted-on-dark: rgba(248, 246, 242, 0.82);
  --text: var(--royal-ink);
  --muted: rgba(5, 12, 34, 0.72);
  --banner: linear-gradient(135deg, var(--royal) 0%, var(--royal-mid) 42%, var(--rose-deep) 78%, var(--rose) 100%);
  --footer-bg: linear-gradient(135deg, var(--royal-deep) 0%, var(--royal) 55%, var(--rose-deep) 100%);
  --panel: #fff;
  --panel-border: rgba(14, 39, 97, 0.12);
  --ok: #3d9a6a;
  --warn: #d4a017;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--cream);
  font-family: "ML TT Chandrika", "ML-TTChandrika", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.5;
}

a { color: var(--rose); }
a:hover { color: var(--royal); }

.site-header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(14, 39, 97, 0.1);
}
.banner {
  width: 100%;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem) clamp(0.65rem, 1.5vw, 0.85rem);
  background: var(--banner);
  color: var(--text-on-dark);
}

.banner a { color: var(--text-on-dark); }
.banner a:hover { color: #fff; }

.banner-inner {
  width: min(1100px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.75rem);
}
.logo-mark { flex: 0 0 min(200px, 42vw); align-self: flex-start; }
.logo-mark img { display: block; width: 100%; max-width: 200px; height: auto; }
.banner-spacer { flex: 0 0 min(200px, 42vw); visibility: hidden; pointer-events: none; }
.banner-text { flex: 1; text-align: center; min-width: 0; }
.banner-title-ml {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.02em;
}
.banner-subtitle-ml {
  margin: 0.35rem 0 0;
  font-size: clamp(0.95rem, 2.5vw, 1.35rem);
  line-height: 1.35;
  color: #ffd4e8;
}
.banner-reg {
  display: inline-block;
  margin: 0.6rem 0 0;
  padding: 0.3rem 0.75rem;
  font-size: clamp(0.7rem, 1.8vw, 0.82rem);
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(5, 12, 34, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}
.banner-contact {
  margin: 0.55rem 0 0;
  font-size: clamp(0.78rem, 1.9vw, 0.92rem);
  line-height: 1.45;
  color: var(--muted-on-dark);
}
.banner-contact a {
  color: #fff;
  text-decoration: none;
}
.banner-contact a:hover {
  color: #ffd4e8;
}
.banner h1 {
  margin: 0;
  font-size: clamp(1.15rem, 3.5vw, 1.75rem);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.site-nav {
  width: 100%;
  margin: 0;
  padding: 0.55rem clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  justify-content: center;
  font-size: 0.92rem;
  background: #fff;
  border-bottom: 3px solid var(--rose);
}
.site-nav a {
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  color: var(--royal);
  font-weight: 700;
}
.site-nav a:hover {
  background: rgba(14, 39, 97, 0.06);
  color: var(--royal-deep);
}
.site-nav a.active {
  background: var(--rose);
  color: #fff;
}

.content {
  width: min(960px, 94vw);
  flex: 1;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2rem) 0 2.5rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(14, 39, 97, 0.08);
}

.panel h2 { margin: 0 0 0.75rem; font-size: 1.35rem; color: var(--royal); }
.panel h3 { margin: 1rem 0 0.5rem; font-size: 1.1rem; color: var(--royal-mid); }
.panel p, .panel li { font-weight: 700; color: var(--muted); }
.panel ul { padding-left: 1.25rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.stat {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(14, 39, 97, 0.05);
  border: 1px solid var(--panel-border);
}
.stat .num { font-size: 1.75rem; color: var(--royal); display: block; }
.stat .lbl { font-size: 0.85rem; color: var(--muted); }

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  color: #fff;
}
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn-secondary {
  background: rgba(14, 39, 97, 0.08);
  border: 1px solid rgba(14, 39, 97, 0.2);
  color: var(--royal);
}
.btn-secondary:hover { color: var(--royal-deep); }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 420px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(14, 39, 97, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.form-group textarea { min-height: 90px; resize: vertical; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.alert-success { background: rgba(61, 154, 106, 0.12); border: 1px solid var(--ok); color: var(--text); }
.alert-error { background: rgba(159, 11, 85, 0.1); border: 1px solid var(--rose); color: var(--text); }
.alert-info { background: rgba(14, 39, 97, 0.08); border: 1px solid rgba(14, 39, 97, 0.25); color: var(--text); }

/* —— Home page —— */
.page-home .content {
  width: min(1080px, 94vw);
  padding-top: 1.75rem;
}
.home-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-hero {
  margin: 0 0 2.5rem;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--panel-border);
  border-top: 4px solid var(--royal);
  text-align: center;
  box-shadow: 0 6px 24px rgba(14, 39, 97, 0.07);
}
.home-hero-inner {
  max-width: 680px;
  margin-inline: auto;
}
.home-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  color: var(--royal);
}
.home-hero-lead {
  margin: 0 auto 1.5rem;
  max-width: 560px;
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 700;
}
.home-hero-lead strong { color: var(--rose); }
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.btn-hero {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
}
.page-home .btn-hero-outline {
  display: inline-block;
  padding: 0.68rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  color: var(--royal);
  background: transparent;
  border: 2px solid rgba(14, 39, 97, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.page-home .btn-hero-outline:hover {
  background: rgba(14, 39, 97, 0.06);
  border-color: var(--royal);
  color: var(--royal-deep);
}

.home-section {
  margin-bottom: 2.75rem;
}
.section-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.section-eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}
.section-eyebrow--light { color: #ffd4e8; }
.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  color: var(--royal);
  line-height: 1.25;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 0.6rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--royal), var(--rose));
}
.section-desc {
  margin: 0.85rem auto 0;
  max-width: 520px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.home-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.home-value-card {
  text-align: center;
  padding: 1.5rem 1rem 1.35rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--panel-border);
  box-shadow: 0 8px 28px rgba(14, 39, 97, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(14, 39, 97, 0.12);
}
.home-value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--royal), var(--rose));
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 39, 97, 0.2);
}
.home-value-icon svg {
  width: 26px;
  height: 26px;
}
.home-value-name {
  display: block;
  font-size: 1.35rem;
  color: var(--royal);
  line-height: 1.2;
}
.home-value-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.92rem;
  color: var(--rose);
}
.home-value-desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.home-about-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--panel-border);
  box-shadow: 0 8px 32px rgba(14, 39, 97, 0.08);
  overflow: hidden;
}
.home-about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--royal), var(--rose));
}
.home-about-quote {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 4rem;
  line-height: 1;
  color: rgba(159, 11, 85, 0.12);
  font-family: Georgia, serif;
  pointer-events: none;
}
.home-about-text {
  position: relative;
  white-space: pre-wrap;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.home-section-cta {
  margin: 1.25rem 0 0;
  text-align: center;
}

.home-section--goals {
  padding: 2rem clamp(1rem, 3vw, 1.5rem);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 39, 97, 0.04) 0%, rgba(159, 11, 85, 0.03) 100%);
}
.home-goals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.home-goal-card {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--panel-border);
  box-shadow: 0 4px 16px rgba(14, 39, 97, 0.05);
  transition: box-shadow 0.2s ease;
}
.home-goal-card:hover {
  box-shadow: 0 8px 24px rgba(14, 39, 97, 0.1);
}
.home-goal-num {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, var(--royal-mid), var(--rose));
  border-radius: 6px;
}
.home-goal-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--royal);
  line-height: 1.3;
}
.home-goal-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.home-programmes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.home-programme-card {
  padding: 1.35rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--panel-border);
  box-shadow: 0 6px 22px rgba(14, 39, 97, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-programme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 39, 97, 0.1);
}
.home-programme-card--featured {
  grid-column: 1 / -1;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(135deg, rgba(14, 39, 97, 0.06) 0%, rgba(159, 11, 85, 0.08) 100%);
  border: 1px solid rgba(159, 11, 85, 0.2);
  box-shadow: 0 10px 36px rgba(14, 39, 97, 0.1);
}
.home-programme-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rose);
  border-radius: 999px;
}
.home-programme-dot {
  width: 10px;
  height: 10px;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--rose));
}
.home-programme-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: var(--royal);
}
.home-programme-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}
.home-programme-card p:last-child { margin-bottom: 0; }

.home-mission-band {
  margin: 0 0 2.75rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem);
  border-radius: 20px;
  background: var(--banner);
  color: var(--text-on-dark);
  text-align: center;
  box-shadow: 0 12px 40px rgba(14, 39, 97, 0.15);
}
.home-mission-inner {
  max-width: 640px;
  margin-inline: auto;
}
.home-mission-quote {
  margin: 0.75rem 0 1.5rem;
  padding: 0;
  border: none;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  font-style: italic;
  line-height: 1.55;
  color: #fff;
  font-weight: 700;
}
.photo-gallery--home {
  gap: 1rem;
}
.photo-gallery--home .gallery-item {
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(14, 39, 97, 0.08);
}

@media (max-width: 768px) {
  .home-values,
  .home-programmes {
    grid-template-columns: 1fr;
  }
  .home-programme-card--featured {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-value-card:hover,
  .home-programme-card:hover {
    transform: none;
  }
}

.program-poster {
  margin-bottom: 1.25rem;
}
.program-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 4px 20px rgba(14, 39, 97, 0.1);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 39, 97, 0.15);
}
.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.directors-intro { text-align: center; }

.panel.directors-section > h2.directors-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--royal);
  text-align: center;
}
.panel.directors-section > p.directors-section-desc {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--muted);
}

.directors-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.directors-grid--principal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.directors-grid--officers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.directors-grid--board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.director-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-width: 0;
  padding: 1.25rem 0.75rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--panel-border);
  box-shadow: 0 4px 18px rgba(14, 39, 97, 0.07);
}
.director-card--principal {
  padding: 1.5rem 1rem;
  border-top: 4px solid var(--rose);
  background: linear-gradient(180deg, rgba(14, 39, 97, 0.04) 0%, #fff 45%);
}
.director-card--officer {
  border-top: 3px solid var(--royal-mid);
}
.director-card--director {
  padding: 1rem 0.65rem;
}

.director-photo {
  flex: 0 0 auto;
  width: 110px;
  height: 110px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--royal) 0%, var(--royal-mid) 45%, var(--rose) 100%);
  border: 3px solid rgba(14, 39, 97, 0.15);
  box-shadow: 0 4px 14px rgba(14, 39, 97, 0.15);
}
.director-card--principal .director-photo {
  width: 120px;
  height: 120px;
  border-width: 4px;
  border-color: var(--rose);
}
.director-card--director .director-photo {
  width: 88px;
  height: 88px;
  margin-bottom: 0.65rem;
}
.director-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-initials {
  font-size: 1.85rem;
  font-weight: 700;
  color: #f8f6f2;
  line-height: 1;
  user-select: none;
}
.director-card--principal .director-initials { font-size: 2rem; }
.director-card--director .director-initials { font-size: 1.4rem; }

.director-info {
  width: 100%;
  min-width: 0;
}
.director-card .director-name,
.director-card .director-role,
.director-card .director-meta {
  margin: 0;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.director-card .director-name {
  margin-bottom: 0.3rem;
  font-size: 1rem;
  color: var(--royal);
  line-height: 1.3;
}
.director-card--principal .director-name { font-size: 1.1rem; }
.director-card .director-role {
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
  color: var(--rose);
}
.director-card .director-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .directors-grid--officers,
  .directors-grid--board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .directors-grid--principal {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-inline: auto;
  }
}

@media (max-width: 400px) {
  .directors-grid--officers,
  .directors-grid--board {
    grid-template-columns: 1fr;
  }
  .director-card--director .director-photo {
    width: 80px;
    height: 80px;
  }
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}
.sponsor-total {
  margin: 0.5rem 0 1rem;
  font-size: 1.1rem;
  color: var(--royal);
}
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0;
}
.payment-box {
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(14, 39, 97, 0.03);
}
.payment-box h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--royal);
  text-align: center;
}
.payment-box--upi {
  border-top: 3px solid var(--rose);
}
.payment-box--bank {
  border-top: 3px solid var(--royal-mid);
}
.upi-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.upi-qr-wrap img {
  display: block;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: #fff;
  padding: 0.35rem;
}
.payment-amount {
  text-align: center;
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--royal);
}
.payment-detail {
  text-align: center;
  margin: 0 0 0.5rem;
}
.payment-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.payment-value {
  font-size: 1rem;
  color: var(--royal);
  background: rgba(14, 39, 97, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.payment-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.bank-details {
  margin: 0;
}
.bank-details > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--panel-border);
}
.bank-details > div:last-child {
  border-bottom: none;
}
.bank-details dt {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.bank-details dd {
  margin: 0;
  text-align: right;
  font-size: 0.9rem;
  color: var(--royal);
  font-weight: 700;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.patient-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--panel-border);
}
.patient-card:last-child { border-bottom: none; }
.patient-code { font-size: 1.1rem; color: var(--royal); }
.privacy-note { font-size: 0.85rem; color: var(--muted); font-style: italic; }

.site-footer {
  width: 100%;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-on-dark);
  background: var(--footer-bg);
  border-top: 3px solid var(--rose);
  margin-top: auto;
}
.site-footer a { color: #ffd4e8; }
.site-footer a:hover { color: #fff; }
.site-footer .privacy-note { color: var(--muted-on-dark); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th,
table.data td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
}
table.data th { color: var(--royal); }

@media (max-width: 520px) {
  .banner-inner { flex-wrap: wrap; }
  .banner-spacer { display: none; }
  .logo-mark { width: 100%; }
  .logo-mark img { max-width: 160px; }
}

/* Admin */
.admin-layout { max-width: 1200px; }
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  background: rgba(14, 39, 97, 0.1);
  color: var(--royal);
}
.badge-paid { background: rgba(61, 154, 106, 0.2); color: #2d7a52; }
.badge-pending { background: rgba(212, 160, 23, 0.2); color: #8a6d0f; }
.badge-redeemed { background: rgba(14, 39, 97, 0.15); color: var(--royal); }
