﻿/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #1e3a8a;
  --blue-light: #2563eb;
  --blue-dark: #0f172a;
  --black: #111827;
  --white: #ffffff;
  --gray-light: #f3f6fb;
  --gray: #64748b;
  --home-paper: #f7f8fc;
  --home-accent: #1e3a8a;
  --home-line: #dce3ef;
  --shadow: 0 8px 26px rgba(24, 38, 68, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
}

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

:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER / NAV ===== */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-right: auto;
}

.logo img {
  height: 55px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 400;
}

.nav-links {
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  color: var(--black);
  transition: all 0.3s;
  font-size: 0.95rem;
}

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

.donate-btn {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
}

.donate-btn:hover {
  background: var(--blue-dark) !important;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-links {
  position: absolute;
  top: 100%;
  right: 20px;
  z-index: 1001;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(900px, calc(100vw - 40px));
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 16px;
  list-style: none;
  background: var(--surface, var(--white));
  border: 1px solid var(--line-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.nav-links.active { display: grid; }
.nav-links li { min-width: 0; }
.nav-links a { display: block; padding: 10px 12px; border-radius: 7px; white-space: normal; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-color, #cbd5e1);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-color, var(--blue-dark));
  background: var(--surface, var(--white));
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 12, 25, .78), rgba(5, 12, 25, .42));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* Editorial homepage layout inspired by the reference site. */
.site-topbar { background: #0f172a; color: #f5f7ff; font-size: .82rem; }
.site-topbar-inner { width: min(1200px, calc(100% - 40px)); min-height: 38px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-topbar-inner div { display: flex; align-items: center; gap: 14px; }
.site-topbar a { color: inherit; text-decoration: none; }
.site-topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero.home-hero { padding: clamp(48px, 6vw, 82px) 0; color: var(--text-color); background: var(--home-paper); text-align: left; }
.home-hero::before, .home-hero::after { display: none; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(32px, 6vw, 76px); }
.home-hero .hero-content { max-width: 620px; margin: 0; z-index: auto; }
.home-kicker { color: var(--home-accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero.home-hero h1 { max-width: 620px; margin: 18px 0 22px; color: var(--home-accent); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.65rem, 5vw, 4.45rem); letter-spacing: -.045em; line-height: 1.06; }
.hero.home-hero p { max-width: 560px; margin-bottom: 0; color: var(--muted-color, #64748b); font-size: 1.08rem; line-height: 1.8; opacity: 1; }
.home-hero .hero-buttons { justify-content: flex-start; margin-top: 28px; }
.home-hero .btn-primary { color: #fff; background: var(--home-accent); }
.home-hero .btn-outline { color: var(--home-accent); border-color: var(--home-line); }
.home-hero .btn-outline:hover { color: #fff; background: var(--home-accent); }
.home-hero .hero-image { position: relative; z-index: auto; width: 100%; height: clamp(330px, 42vw, 510px); border: 8px solid var(--surface, #fff); border-radius: 46% 46% 8px 8px; object-fit: cover; object-position: center 35%; box-shadow: var(--shadow); }
.home-principles { padding: 0 20px; border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); background: var(--surface); }
.home-principles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1200px; margin: 0 auto; }
.home-principles-grid > div { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 14px; border-right: 1px solid var(--home-line); }
.home-principles-grid > div:last-child { border-right: 0; }
.home-principles-grid strong { color: var(--home-accent); font-size: 1.05rem; }
.home-principles-grid span { max-width: 150px; color: var(--muted-color); font-size: .8rem; line-height: 1.4; }

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--gray-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

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

.btn-whatsapp {
  background: #128c7e;
  color: #fff;
}

.btn-whatsapp:hover { background: #0b6b60; color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.admin-editor { max-width: 900px; margin: 40px auto; }
.admin-editor section { margin-top: 32px; }
.admin-editor label { display: block; margin: 16px 0; font-weight: 600; }
.admin-editor input:not([type="checkbox"]), .admin-editor select, .admin-editor textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line-color); border-radius: 6px; background: var(--surface); color: var(--text-color); font: inherit; }
.admin-editor .admin-checkbox { display: flex; align-items: center; gap: 9px; }
.admin-update-row { padding: 16px 0; border-bottom: 1px solid var(--line-color); }
.admin-update-row .btn { margin: 4px 8px 0 0; }
.admin-editor .notice { padding: 16px; border-left: 4px solid #1d4ed8; background: var(--surface); color: var(--text-color); }
.admin-editor [hidden] { display: none !important; }
.admin-auth { max-width: 620px; }
.password-row { display: flex; align-items: end; gap: 10px; }
.password-row input { flex: 1; }
.admin-toolbar { display: flex; align-items: center; gap: 12px; }
.admin-workspace > [role="status"] { margin: 0 0 20px; padding: 10px 12px; border-left: 4px solid var(--blue); background: var(--surface); overflow-wrap: anywhere; }
.admin-layout { display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, 1fr); gap: 28px; padding-top: 32px; padding-bottom: 56px; }
.admin-sidebar, .admin-workspace { min-width: 0; }
.admin-sidebar { align-self: start; position: sticky; top: 18px; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-section-button { padding: 10px 12px; border: 1px solid var(--line-color); border-radius: 6px; background: var(--surface); color: var(--text-color); text-align: left; font: inherit; cursor: pointer; }
.admin-section-button[aria-current="page"] { background: var(--blue); color: #fff; }
.admin-manager-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.9fr); gap: 28px; align-items: start; }
.admin-manager-grid > div { min-width: 0; }
.enquiry-block { margin-top: 28px; }
.enquiry-block, .enquiry-block form, .enquiry-block form label { min-width: 0; }
.enquiry-block form label { display: block; margin: 14px 0; font-weight: 600; }
.enquiry-block input, .enquiry-block select, .enquiry-block textarea { display: block; width: 100%; max-width: 100%; min-width: 0; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line-color); border-radius: 6px; background: var(--surface); color: var(--text-color); font: inherit; }
.enquiry-block textarea { min-height: 140px; resize: vertical; }
.enquiry-block form [type="submit"] { max-width: 100%; white-space: normal; }
.enquiry-block form [data-form-status] { overflow-wrap: anywhere; }
.enquiry-block form [data-form-status].form-success { margin: 8px 0; padding: 10px 12px; border-radius: 6px; color: #166534; background: #dcfce7; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-note { font-size: .92rem; color: var(--muted-color); }
.admin-workspace form label { display: block; margin: 14px 0; font-weight: 600; }
.admin-workspace input:not([type="checkbox"]):not([type="file"]), .admin-workspace select, .admin-workspace textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line-color); border-radius: 6px; background: var(--surface); color: var(--text-color); font: inherit; }
.gallery-image-field { min-width: 0; margin: 14px 0; padding: 16px; border: 1px solid var(--line-color); border-radius: 8px; }
.gallery-image-field legend { padding: 0 6px; color: var(--blue); font-weight: 700; }
.gallery-image-field label { margin: 12px 0; }
.gallery-image-field input[type="file"] { display: block; width: 100%; margin-top: 8px; }
.gallery-image-field .admin-image-preview { width: min(100%, 420px); max-height: 260px; object-fit: contain; background: var(--gray-light); }
.admin-image-preview { display: block; max-width: 100%; max-height: 240px; margin-top: 12px; border-radius: 8px; }
.admin-record-tools { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; align-items: end; margin: 18px 0; padding: 16px; border: 1px solid var(--line-color); border-radius: 10px; background: var(--surface); }
.admin-record-tools label { display: grid; gap: 6px; font-weight: 600; }
.admin-record-tools input, .admin-record-tools select, .admin-workspace label select { min-width: 0; width: 100%; padding: 10px 12px; border: 1px solid var(--line-color); border-radius: 6px; background: var(--surface); color: var(--text-color); font: inherit; }
.admin-record-tools > p { grid-column: 1 / -1; margin: 0; color: var(--muted-color); }
.admin-pagination { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 14px; }
.admin-notification { margin: 14px 0; padding: 10px 14px; border: 1px solid #b91c1c; border-radius: 8px; background: #fef2f2; color: #7f1d1d; font: inherit; font-weight: 700; cursor: pointer; }
.admin-notification[hidden] { display: none; }
.gallery-card figcaption { padding: 10px 14px; color: var(--text-color); font-size: .95rem; }
html[data-theme="dark"] .admin-notification { border-color: #fca5a5; background: #451a1a; color: #fee2e2; }
@media (max-width: 850px) { .admin-manager-grid { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .admin-layout { grid-template-columns: 1fr; } .admin-sidebar { position: static; } .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0,1fr)); } .admin-toolbar #admin-user { display:none; } }

.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--blue-dark);
}

.section-title, .page-hero h1, .content-block h2, .card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
}

.bg-light {
  background: var(--gray-light);
}

.bg-blue {
  background: var(--blue);
  color: var(--white);
}

.bg-blue .section-title,
.bg-blue .section-subtitle {
  color: var(--white);
}

/* ===== CARDS ===== */
.grid {
  display: grid;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > *, .contact-grid > *, .footer-grid > * { min-width: 0; }

.homepage-highlights { margin-top: 28px; }
.homepage-highlights .card { display: flex; flex-direction: column; align-items: flex-start; }
.homepage-highlights .text-link { margin-top: auto; padding-top: 18px; }

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 35px 25px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--blue);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.card h3 {
  color: var(--blue);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.card p {
  color: var(--gray);
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--home-paper);
  color: var(--text-color);
  border-bottom: 1px solid var(--home-line);
  padding: clamp(54px, 8vw, 88px) 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--home-accent);
}

.page-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted-color, var(--gray));
}

/* ===== ABOUT / CONTENT ===== */
.content-block {
  max-width: 900px;
  margin: 0 auto;
}

.content-block h2 {
  color: var(--blue);
  margin: 30px 0 15px;
  font-size: 1.6rem;
}

.content-block p {
  margin-bottom: 15px;
  color: #333;
}

/* ===== VALUES LIST ===== */
.values-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.values-list li {
  background: var(--white);
  padding: 20px 25px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.values-list li strong {
  color: var(--blue);
  display: block;
  margin-bottom: 5px;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  border: 2px dashed #cbd5e1;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CONTACT INFO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.contact-info-item .icon {
  font-size: 1.5rem;
  background: var(--blue);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  color: var(--blue);
  margin-bottom: 4px;
}

/* ===== DONATION BOX ===== */
.donation-box {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  padding: 45px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.donation-box h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.donation-details {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  margin-top: 25px;
  text-align: left;
}

.donation-details p {
  margin-bottom: 10px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--blue-dark);
  color: var(--white);
  text-align: center;
  padding: 70px 20px;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-banner p {
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.85;
}

/* ===== FOOTER ===== */
footer {
  background: var(--black);
  color: #cbd5e1;
  padding: 60px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h2,
.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: block;
  transition: color 0.3s;
}

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

.footer-logo {
  height: 60px;
  margin-bottom: 15px;
  padding: 5px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--blue);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  font-size: 1.1rem;
}

.social-links a:hover {
  background: var(--blue-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.7rem; }
}

@media (max-width: 900px) {
  .home-principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-principles-grid > div:nth-child(2) { border-right: 0; }
  .home-principles-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--home-line); }
}

@media (max-width: 768px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero.home-hero { padding: 48px 0; }
  .home-hero .hero-image { height: clamp(280px, 68vw, 390px); border-radius: 42% 42% 8px 8px; }
}

@media (max-width: 560px) {
  .site-topbar-inner { width: calc(100% - 24px); min-height: 36px; justify-content: center; }
  .site-topbar-inner > span { display: none; }
  .home-principles-grid > div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 10px; }
  .home-principles-grid span { font-size: .74rem; }
}

/* Donation and simple content manager */
.donation-options, .admin-panel { max-width: 960px; margin: 0 auto; }
.donation-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0; }
.donation-tabs button { border:1px solid #cbd5e1; border-radius:999px; background:#fff; color:var(--blue-dark); padding:10px 18px; cursor:pointer; font:inherit; }
.donation-tabs button[aria-selected="true"] { background:var(--blue); color:#fff; border-color:var(--blue); }
.donation-panel { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:24px; box-shadow:var(--shadow); }
.donation-panel[hidden] { display:none; }
.donation-detail { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #e2e8f0; }
.copy-button { border:0; border-radius:8px; background:#eff6ff; color:var(--blue); padding:8px 12px; cursor:pointer; }
.tier-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; }
.tier-card { border:1px solid #dbeafe; border-radius:14px; padding:20px; background:linear-gradient(145deg,#fff,#eff6ff); }
.admin-post { border-bottom:1px solid #e2e8f0; padding:16px 0; }
.admin-post h3 { margin-bottom:4px; }
.site-update { border-left:4px solid var(--blue-light); padding:16px 20px; margin:14px 0; background:#f8fafc; border-radius:0 12px 12px 0; }
@media (max-width:600px) { .donation-detail { align-items:flex-start; flex-direction:column; } .donation-panel { padding:18px; } }


/* News, FAQ, login, and shared colour theme */
:root { color-scheme: light; --page-bg: #ffffff; --surface: #ffffff; --text-color: #111827; --muted-color: #64748b; --line-color: #dce3ef; }
body { color: var(--text-color); background: var(--page-bg); transition: background-color .2s ease, color .2s ease; }
header, .card, .content-block, .donation-box, .donation-panel, .faq-item, .tier-card { background-color: var(--surface); color: var(--text-color); }
.filter-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:0 auto 28px; justify-content:center; }
.filter-button { color:var(--blue); border-color:var(--blue); background:transparent; }
.news-date { color:var(--blue-light); font-size:.9rem; font-weight:700; margin-bottom:10px; }
.filter-empty { text-align:center; color:var(--muted-color); margin:24px auto; }
.text-link, .faq-item a { color:var(--blue-light); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.updates-heading { margin-top:60px; }
.faq-list { max-width:900px; margin:0 auto; display:grid; gap:14px; }
.faq-item { border:1px solid var(--line-color); border-radius:12px; padding:18px 22px; box-shadow:var(--shadow); }
.faq-item summary { cursor:pointer; font-weight:700; color:var(--blue); }
.faq-item p { margin:14px 0; }
html[data-theme="dark"] { color-scheme:dark; --page-bg:#0b1220; --surface:#111c2e; --text-color:#e5edf8; --muted-color:#a6b3c5; --line-color:#334155; --gray-light:#162235; --white:#ffffff; --black:#050913; --blue:#2563eb; --blue-light:#93c5fd; --blue-dark:#0f172a; --gray:#a6b3c5; --home-paper:#111c2e; --home-accent:#bfdbfe; --home-line:#334155; --shadow:0 6px 24px rgba(0,0,0,.35); }
html[data-theme="dark"] body { background:var(--page-bg); color:var(--text-color); }
html[data-theme="dark"] header, html[data-theme="dark"] .nav-links { background:var(--surface); }
html[data-theme="dark"] .bg-light, html[data-theme="dark"] .bg-gray { background:#0f1a2b; }
html[data-theme="dark"] .card, html[data-theme="dark"] .content-block, html[data-theme="dark"] .donation-box, html[data-theme="dark"] .donation-panel, html[data-theme="dark"] .faq-item, html[data-theme="dark"] .tier-card { background:var(--surface); color:var(--text-color); border-color:var(--line-color); }
html[data-theme="dark"] .section-title, html[data-theme="dark"] .nav-links a:not(.donate-btn), html[data-theme="dark"] .logo-text { color:var(--text-color); }
html[data-theme="dark"] .content-block p { color:var(--text-color); }
html[data-theme="dark"] .content-block h2, html[data-theme="dark"] .card h3, html[data-theme="dark"] .values-list li strong { color:#bfdbfe; }
html[data-theme="dark"] .section-subtitle, html[data-theme="dark"] .logo-text span, html[data-theme="dark"] .card p { color:var(--muted-color); }
html[data-theme="dark"] .faq-item summary { color:#93c5fd; }
html[data-theme="dark"] .values-list li { background:var(--surface); color:var(--text-color); }
html[data-theme="dark"] .donation-tabs button { color:var(--text-color); background:var(--surface); border-color:var(--line-color); }
html[data-theme="dark"] .donation-tabs button[aria-selected="true"] { color:#fff; background:var(--blue); border-color:var(--blue); }
html[data-theme="dark"] .btn-primary { background:#e5edf8; color:#1e3a8a; }
html[data-theme="dark"] .btn-outline { color:#bfdbfe; border-color:#93c5fd; }
html[data-theme="dark"] .filter-button[aria-pressed="true"] { color:#ffffff; background:var(--blue); }

/* Keyboard access and low-motion presentation */
.skip-link {
  position: absolute;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.payment-warning {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid #d97706;
  background: #fff7ed;
  color: #7c2d12;
}

.copy-status {
  color: var(--gray);
  font-size: .9rem;
}

.donation-tabs button:focus-visible,
.copy-button:focus-visible,
.btn:focus-visible {
  outline-offset: 4px;
}

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

@media (max-width: 600px) {
  .nav { padding: 10px 12px; gap: 8px; }
  .nav .logo { gap: 8px; }
  .nav .logo img { height: 44px; }
  .logo-text { font-size: .95rem; }
  .logo-text span { font-size: .68rem; }
  .menu-toggle, .theme-toggle { padding: 9px 10px; font-size: .82rem; }
  .nav-links { right: 12px; width: calc(100vw - 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
}

@media (max-width: 380px) {
  .nav-links { grid-template-columns: 1fr; }
  .nav .logo-text span { display: none; }
  .nav .logo { gap: 5px; }
  .nav .logo img { height: 36px; }
  .nav .logo-text { max-width: 105px; font-size: .74rem; overflow-wrap: anywhere; }
  .menu-toggle, .theme-toggle { padding: 7px 6px; font-size: .72rem; }
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: start;
}

.gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-color);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 6px;
  background: #f8fafc;
}
.gallery-card video { display: block; width: 100%; height: auto; max-height: 520px; background: #050913; }

/* Keep common actions easy to tap and text from forcing narrow layouts wider. */
.btn, .menu-toggle, .theme-toggle, .copy-button, .donation-tabs button { min-height: 44px; }
main, .card, .content-block, .donation-panel, .gallery-card { min-width: 0; }
p, h1, h2, h3, li { overflow-wrap: anywhere; }

@media (min-width: 769px) and (max-width: 1023px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .container { padding-right: 24px; padding-left: 24px; }
  section { padding-top: 64px; padding-bottom: 64px; }
}

@media (max-width: 768px) {
  section { padding-top: 52px; padding-bottom: 52px; }
  .btn { padding: 12px 20px; }
  .hero { padding: 72px 18px; }
}

html[data-theme="dark"] .menu-toggle { color: #fff; background: var(--blue); border-color: var(--blue); }
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.active { color: #fff; background: var(--blue); }
html[data-theme="dark"] .hero::after { background: linear-gradient(90deg, rgba(5, 12, 25, .84), rgba(5, 12, 25, .58)); }
html[data-theme="dark"] .gallery-card { border-color: #64748b; box-shadow: 0 8px 26px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .gallery-card img { background: #f8fafc; }
