/* ============================================================
   QUALITY GEMS NETWORK - YOUR EXACT STYLES + HUMAN BACKGROUND FIX
   Only body background changed to avoid AI look
   Keeps everything: header, donate, whatsapp, footer, grids, etc.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --deep:         #2C1812;
  --deep-2:       #41251C;
  --purple:       #6E2F81;
  --rose:         #FF0A8A;
  --rose-dark:    #C3006B;
  --rose-light:   #FF4DAB;
  --gold:         #E8B86A;
  --gold-light:   #F7D9A3;
  --white:        #FFF8F0;
  --muted:        rgba(255,235,215,0.72);
  --glass:        rgba(255,228,200,0.07);
  --glass-hover:  rgba(255,228,200,0.12);
  --glass-border: rgba(255,210,175,0.15);
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 12px 50px rgba(30,12,8,0.55);
  --shadow-rose:  0 8px 28px rgba(255,10,138,0.45);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   0.35s var(--ease);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── FIXED: No AI gradient — solid + subtle human grain ── */
body {
  font-family: var(--font-body);
  background-color: #1E1510;
  color: var(--white);
  line-height: 1.72;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  /* Subtle paper grain at 3.5% + soft vignette - no purple/pink blobs */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.32) 100%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.13; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.9rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--muted); line-height: 1.75; }
a  { text-decoration: none; color: inherit; }
em { font-style: italic; color: var(--gold); }
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  height: 70px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(44, 24, 18, 0.62);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255,210,175,0.10);
  z-index: 1000;
  transition: background var(--transition);
}
.logo-container { width: 54px; flex-shrink: 0; }
.logo-image { width: 100%; display: block; }
nav { position: absolute; left: 50%; transform: translateX(-50%); }
nav ul { display: flex; gap: 2px; list-style: none; justify-content: center; }
nav a {
  display: block;
  color: rgba(255, 248, 240, 0.72);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 50px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
nav a:hover { color: var(--white); background: rgba(255,228,200,0.10); }
nav a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  box-shadow: 0 2px 14px rgba(255,10,138,0.45);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px 6px;
  border: none;
  background: transparent;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  header { padding: 0 20px; }
  .hamburger { display: flex; }
  nav {
    position: fixed;
    left: 0; right: 0;
    transform: none;
    top: 70px;
    background: rgba(32, 16, 12, 0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
    z-index: 999;
  }
  nav.open { max-height: 440px; }
  nav ul { flex-direction: column; gap: 2px; padding: 14px 16px 22px; justify-content: flex-start; }
  nav a { padding: 13px 16px; font-size: 0.92rem; border-radius: 12px; }
}
@media (max-width: 640px) {
  .footer-nav { gap: 2px; }
  .footer-links { gap: 14px; }
}

/* ── FLOATING DONATE ── FIXED POSITION - NOW HIGHER */
.floating-donate-btn {
  position: fixed;
  top: auto;
  bottom: 180px;
  right: 18px;
  transform: none;
  background: linear-gradient(160deg, var(--rose), var(--rose-dark));
  color: var(--white);
  padding: 13px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-rose);
  z-index: 9999;
  transition: var(--transition);
  writing-mode: vertical-lr;
  text-orientation: mixed;
}
.floating-donate-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(255,10,138,0.6);
}

/* ── WHATSAPP BUTTON ── WITH REAL ICON */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 18px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 9999;
  transition: var(--transition);
  text-decoration: none;
  animation: waPulse 2.5s ease-in-out infinite;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 10px 36px rgba(37,211,102,0.6); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 36px rgba(37,211,102,0.75); }
}
.whatsapp-btn::before {
  content: "";
  width: 28px;
  height: 28px;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.05 4.94A9.82 9.82 0 0 0 12.04 2C6.58 2 2.12 6.34 2.12 10.68c0 1.53.43 3.02 1.24 4.33L2 22l7.16-1.83a10.02 10.02 0 0 0 4.88 1.23h.01c5.46 0 9.92-4.34 9.92-9.68 0-2.59-1.03-5.02-2.92-6.78zm-7.01 14.5h-.01a8.26 8.26 0 0 1-4.22-1.13l-.3-.18-4.25 1.09 1.13-4.02-.2-.31a8.17 8.17 0 0 1-1.25-4.21c0-4.46 3.72-8.09 8.3-8.09 2.22 0 4.3.84 5.87 2.37a7.98 7.98 0 0 1 2.43 5.72c0 4.46-3.72 8.15-8.3 8.15zm4.59-6.07c-.25-.12-1.48-.72-1.71-.8-.23-.08-.4-.12-.56.12-.16.25-.65.8-.79.97-.15.16-.29.18-.54.06-.25-.12-1.06-.38-2.01-1.22-.74-.65-1.24-1.46-1.39-1.7-.14-.25-.02-.38.11-.51.11-.11.25-.29.37-.44.12-.14.16-.25.25-.41.08-.17.04-.31-.02-.44-.06-.12-.56-1.33-.77-1.82-.2-.47-.4-.4-.56-.41h-.48c-.16 0-.44.06-.67.31-.22.25-.87.83-.87 2.03s.89 2.36 1.01 2.52c.12.16 1.76 2.65 4.27 3.71.6.25 1.06.4 1.42.51.6.19 1.14.16 1.57.1.48-.07 1.48-.59 1.69-1.17.2-.57.2-1.06.14-1.17-.06-.1-.23-.16-.48-.29z'/%3E%3C/svg%3E");
  background-size: 28px 28px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── BACK TO TOP ── MOVED UP TO AVOID OVERLAP */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  z-index: 9998;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--glass-hover); transform: translateY(-3px); }

/* HERO */
.hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 70px;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { font-size: 1.1rem; max-width: 580px; margin: 14px auto 0; }

/* SECTIONS */
.section { padding: 88px 24px; }
.section.alt {
  background: linear-gradient(180deg,
    rgba(255,10,138,0.05) 0%,
    rgba(232,184,106,0.05) 50%,
    rgba(255,10,138,0.04) 100%);
  border-top:    1px solid rgba(255,210,175,0.09);
  border-bottom: 1px solid rgba(255,210,175,0.09);
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.gold-divider {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  margin: 14px auto 40px;
  border-radius: 2px;
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card:hover { background: var(--glass-hover); transform: translateY(-5px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card h3 { color: var(--white); margin-bottom: 10px; }
.card.center { text-align: center; }
.img-box {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.img-box img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.card:hover .img-box img, .gallery-item:hover img { transform: scale(1.06); }
.leader-img {
  width: 108px; height: 108px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(232,184,106,0.14);
}
.leader-img img { width: 100%; height: 100%; object-fit: cover; }
.stat-num { font-family: var(--font-display); font-size: 3rem; color: var(--gold); display: block; margin-bottom: 4px; line-height: 1; }

/* BUTTONS HOT PINK */
.hero-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.donate-btn {
  padding: 14px 34px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FF0A8A, #C3006B);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(255,10,138,0.45);
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.donate-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255,10,138,0.62); }
.learn-btn {
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1.5px solid rgba(255,228,200,0.32);
  color: var(--white);
  display: inline-block;
  transition: var(--transition);
}
.learn-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(232,184,106,0.08); }

/* CTA / CONTACT / VIEW = HOT PINK + WHATSAPP ICON */
.cta-btn, .contact-button, .view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #FF0A8A, #C3006B);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(255,10,138,0.42);
  transition: var(--transition);
}
.cta-btn:hover, .contact-button:hover, .view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,10,138,0.62);
}

/* WhatsApp icon for CONTACT button - FIXED */
.contact-button::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  background-color: white;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* FORMS */
input, textarea, select {
  width: 100%;
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--glass-border);
  background: rgba(255,228,200,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.93rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(255,228,200,0.38); }
input:focus, textarea:focus, select:focus { border-color: var(--gold); background: rgba(255,228,200,0.10); }
select option { background: var(--deep-2); color: var(--white); }
textarea { min-height: 130px; resize: vertical; }
.contact-form { display: flex; flex-direction: column; gap: 13px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 960px; margin: 0 auto; }

/* DONATION */
.payment-options { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.payment-options button {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  color: rgba(255,248,240,0.7);
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.payment-options button:hover,
.payment-options button.active-tab {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  border-color: var(--rose);
  color: var(--white);
  box-shadow: var(--shadow-rose);
}
.donation-container { max-width: 500px; margin: 0 auto; }
.payment-form {
  display: none;
  flex-direction: column;
  gap: 13px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 36px;
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}
.payment-form.active { display: flex; }
.payment-form > button[type="submit"] {
  padding: 14px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.payment-form > button[type="submit"]:hover { box-shadow: var(--shadow-rose); transform: translateY(-2px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amount-btn {
  background: rgba(255,228,200,0.07);
  border: 1.5px solid rgba(255,210,175,0.18);
  color: rgba(255,248,240,0.78);
  padding: 9px 4px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}
.amount-btn:hover, .amount-btn.selected { background: rgba(255,10,138,0.22); border-color: var(--rose); color: #fff; }

.info-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--glass-border); }
.info-item:last-child { border-bottom: none; }
.info-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, rgba(255,10,138,0.28), rgba(232,184,106,0.12));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.info-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 2px; }
.info-value { color: var(--white); font-size: 0.92rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: auto ; aspect-ratio: 1; object-fit: contain; display: block; transition: transform 0.55s var(--ease); }
.gallery-item:first-child { grid-row: span 2; }
.gallery-item:first-child img { aspect-ratio: unset; height: 100%; }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(200,58,120,0.28), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

.programs { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cta-section { text-align: center; padding: 90px 24px; }
.cta-section h2 { margin-bottom: 12px; }
.cta-section p  { margin-bottom: 32px; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(32px);  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-left.active, .reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

footer {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(110,47,129,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(255,10,138,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #22141B 0%, #1A1016 100%);
  border-top: 1px solid rgba(255,210,175,0.07);
  padding: 0;
  text-align: center;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,10,138,0.25) 25%, rgba(232,184,106,0.20) 50%, rgba(255,10,138,0.18) 75%, transparent 100%);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 36px 24px 22px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  opacity: 0.92;
}
.footer-logo { width: 34px; display: block; flex-shrink: 0; opacity: 0.9; }
.footer-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(232,184,106,0.75);
  letter-spacing: 0.02em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,210,175,0.06);
  width: 100%;
  max-width: 650px;
}
.footer-nav a {
  color: rgba(255,248,240,0.48);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.footer-nav a:hover { color: rgba(255,248,240,0.85); background: rgba(255,255,255,0.05); }

.footer-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}
.footer-bottom span { font-size: 0.70rem; color: rgba(255,248,240,0.28); font-weight: 300; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: rgba(255,248,240,0.35); font-size: 0.70rem; transition: color 0.3s ease; }
.footer-links a:hover { color: rgba(232,184,106,0.7); }

@media (max-width: 768px) {
  .footer-inner { padding: 28px 20px 18px; }
  .footer-brand { flex-direction: column; gap: 8px; margin-bottom: 18px; }
  .footer-nav { gap: 2px; margin-bottom: 18px; padding-bottom: 18px; }
  .footer-nav a { font-size: 0.68rem; padding: 6px 10px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
@media (max-width: 960px) {
  .grid-3, .programs, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-row: span 1; }
  .gallery-item:first-child img { aspect-ratio: 1; height: auto; }
}
@media (max-width: 680px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .programs, .gallery-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 0; }
  .footer-nav a { font-size: 0.68rem; padding: 4px 9px; }
  .floating-donate-btn { right: 10px; bottom: 160px; padding: 11px 13px; font-size: 11px; }
  .whatsapp-btn { bottom: 20px; right: 10px; width: 48px; height: 48px; }
  .back-to-top { bottom: 82px; right: 12px; }
}


/* ── PHONE OVERFLOW FIX - added 2026-10-26 ── */
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; }
  .section { padding: 48px 16px !important; }
  .container { padding: 0 14px !important; max-width: 100% !important; }
  .card { padding: 24px 16px !important; max-width: 100% !important; }
  .contact-grid { gap: 20px !important; max-width: 100% !important; }
  .form-row-2 { grid-template-columns: 1fr !important; }
  .hero { padding: 60px 16px 40px !important; }
  .info-value { word-break: break-all !important; overflow-wrap: anywhere !important; }
}
@media (max-width: 480px) {
  .section { padding: 32px 12px !important; }
  .container { padding: 0 12px !important; }
  .card { padding: 20px 14px !important; }
  .hero { padding: 40px 12px 28px !important; }
  .hero h1 { font-size: 2rem !important; }
}


/* QUALITY GEMS NETWORK: restrained white-theme refinements */
:root {
  --deep: #24352d;
  --deep-2: #f5f7f4;
  --purple: #536d61;
  --rose: #8a5537;
  --rose-dark: #70432e;
  --rose-light: #aa714d;
  --gold: #285347;
  --gold-light: #d9e4dc;
  --white: #ffffff;
  --muted: #4e5d54;
  --glass: rgba(37, 72, 57, 0.035);
  --glass-hover: rgba(37, 72, 57, 0.06);
  --glass-border: rgba(34, 68, 53, 0.16);
  --shadow: 0 10px 34px rgba(31, 54, 43, 0.10);
  --shadow-rose: 0 5px 17px rgba(40, 83, 71, 0.16);
}
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--deep); }
body::before { display: none; }
p { color: var(--muted); }
em, .hero h1 em { color: var(--gold); }
.section-label { color: #285347; letter-spacing: .16em; }
header { background: rgba(255,255,255,.97) !important; color: var(--deep); border-bottom: 1px solid #e1e6e1; box-shadow: 0 3px 18px rgba(29,46,38,.05); }
nav a { color: #42544a !important; border-radius: 4px; }
nav a:hover { color: #20362a !important; background: rgba(40,83,71,.06) !important; }
nav a.active { color: #285347 !important; background: transparent !important; box-shadow: none !important; text-decoration: underline; text-decoration-color: #a45e34; text-underline-offset: 7px; }
.hamburger span { background: #285347; }
.floating-donate-btn { writing-mode: horizontal-tb; text-orientation: initial; right: 18px; bottom: 172px; top: auto; background: #285347; border-radius: 4px; color: #fff; box-shadow: 0 5px 18px rgba(40,83,71,.22); }
.hero { background: #fff; }
.hero::after { background: #b8c4bb; }
.section.alt { background: #f6f8f5; border-color: #e4e9e4; }
.gold-divider { background: #9b6a49; border-radius: 0; }
.card { background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; }
.card::before { display: none; }
.card:hover { background: transparent; transform: none; box-shadow: none; }
.card h3 { color: var(--deep); }
.img-box { border-radius: 0 !important; }
.gallery-item { border-radius: 0; }
.stat-num { color: #285347; }
.donate-btn, .cta-btn, .contact-button, .view-btn { background: #285347; color: #fff; border-radius: 4px; box-shadow: none; }
.donate-btn:hover, .cta-btn:hover, .contact-button:hover, .view-btn:hover { background: #1f4339; color: #fff; box-shadow: none; transform: translateY(-1px); }
.learn-btn { border-radius: 4px; border-color: #7a8b80; color: #285347; }
.learn-btn:hover { color: #1f4339; background: #f4f7f4; border-color: #285347; }
input, textarea, select { border-radius: 3px; border-color: #c8d1ca; background: #fff; color: #24352d; }
input::placeholder, textarea::placeholder { color: #6a766e; }
input:focus, textarea:focus, select:focus { border-color: #285347; background: #fff; box-shadow: 0 0 0 3px rgba(40,83,71,.12); }
.payment-options button { border-radius: 4px; background: #fff; border-color: #bdc9c0; color: #374d40; }
.payment-options button:hover, .payment-options button.active-tab { background: #285347; border-color: #285347; color: #fff; box-shadow: none; }
.donation-container { max-width: 760px; }
.payment-form { border-radius: 4px; background: #fff; border: 1px solid #dfe6df; box-shadow: none; backdrop-filter: none; }
.amount-btn { border-radius: 4px; background: #fff; border-color: #bdc9c0; color: #30483b; }
.amount-btn:hover, .amount-btn.selected { background: #eef4ef; border-color: #285347; color: #1f4339; }
main [style*="color:var(--white)"], main [style*="color:#fff"], main [style*="color: #fff"] { color: #24352d !important; }
.cta-section { background: #fff; }
footer { background: #24352d; border-top: 1px solid #dce5de; }
footer::before { background: #82978a; }
.footer-tagline { color: #d8e4db; }
.footer-nav { border-color: rgba(255,255,255,.16); }
.footer-nav a, .footer-bottom span, .footer-links a { color: rgba(255,255,255,.78); }
.footer-nav a:hover, .footer-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active { opacity: 1; transform: none; transition: none; }
:focus-visible { outline: 3px solid #9b6a49; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
/* Donation preference page uses the original site grid and button vocabulary. */
.donation-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(240px, .75fr); gap: 42px; align-items: start; }
.giving-intro { max-width: 900px; text-align: center; }
.giving-intro p { max-width: 740px; margin: 12px auto 0; }
.donation-preference { display: flex; flex-direction: column; gap: 20px; max-width: 560px; margin: 24px auto 0; }
.donation-preference fieldset { min-width: 0; border: 0; padding: 0; }
.donation-preference legend { margin-bottom: 12px; color: var(--deep); font-family: var(--font-display); font-size: 1.35rem; }
.suggested-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
.amount-label { display: block; margin: 4px 0 8px; color: var(--muted); font-size: .9rem; }
.custom-amount-wrap { display: flex; align-items: center; max-width: 320px; border: 1px solid #c8d1ca; background: #fff; }
.custom-amount-wrap > span { padding: 0 13px; color: #536259; border-right: 1px solid #dce4dc; font-size: .85rem; }
.custom-amount-wrap input { border: 0; box-shadow: none; }
.payment-note, .donation-error { font-size: .84rem; }
.donation-error { color: #9a332c; }
.donation-aside { padding: 8px 0 0 24px; border-left: 1px solid #dce4dc; }
.donation-aside h3 { margin: 10px 0 12px; font-size: 1.7rem; }
@media (max-width: 760px) { .donation-layout { grid-template-columns: 1fr; gap: 32px; } .donation-aside { padding: 20px 0 0; border-left: 0; border-top: 1px solid #dce4dc; } }

.skip-link { position: absolute; z-index: 12000; top: -60px; left: 16px; padding: 10px 14px; background: #24352d; color: #fff; text-decoration: none; }
.skip-link:focus { top: 14px; }
.info-icon { display: none; }
.faq-item { border-bottom: 1px solid #e0e6e0; }
.faq-question h3 { color: #24352d; }
.faq-icon { background: #f4f7f4; border-color: #dce4dc; color: #285347; }
.faq-item.active .faq-icon { background: #285347; border-color: #285347; color: #fff; }
.faq-answer p { color: #4e5d54; }

/* Use the original image when it is present; show a plain text/initials fallback only if it is absent. */
.logo-container { width: auto; max-width: 200px; flex-shrink: 0; }
.logo-image { width: auto; max-width: 178px; max-height: 48px; object-fit: contain; }
.footer-logo { width: auto; max-width: 190px; max-height: 44px; object-fit: contain; }
.logo-wordmark { display: block; color: #24352d; font-family: var(--font-display); font-size: .85rem; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; }
.footer-wordmark { display: block; color: #fff; font-family: var(--font-display); font-size: .9rem; letter-spacing: .05em; }
.leader-img { position: relative; display: grid; place-items: center; background: #f3f6f3; }
.leader-fallback { color: #285347; font-family: var(--font-display); font-size: 1.6rem; }
@media (max-width: 820px) { .logo-container { max-width: 176px; } .logo-image { max-width: 150px; } }

.logo-image[hidden], .footer-logo[hidden], .leader-img img[hidden] { display: none !important; }


/* Follow-up: brand, grouped navigation, readable controls, and privacy notice. */
#main-nav > ul { align-items: center; gap: 4px; }
#main-nav > ul > li { position: relative; }
#main-nav .menu-disclosure > summary {
  display: block; list-style: none; cursor: pointer; white-space: nowrap;
  padding: 7px 12px; color: #42544a; font-size: .78rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; border-radius: 4px;
}
#main-nav .menu-disclosure > summary::-webkit-details-marker { display: none; }
#main-nav .menu-disclosure > summary::after { content: "⌄"; margin-left: 7px; color: #6a766e; }
#main-nav .menu-disclosure[open] > summary,
#main-nav .menu-disclosure > summary:hover { color: #20362a; background: #f4f7f4; }
#main-nav .submenu {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 1100;
  display: none; min-width: 230px; max-width: 280px; padding: 8px 0;
  border: 1px solid #dce4dc; background: #fff; box-shadow: 0 10px 26px rgba(31,54,43,.14);
}
#main-nav .menu-disclosure[open] .submenu { display: grid; }
#main-nav .submenu a { white-space: normal; padding: 10px 16px; color: #31483b !important; text-transform: none; letter-spacing: 0; font-size: .88rem; }
#main-nav .submenu a:hover, #main-nav .submenu a[aria-current="page"] { color: #1f4339 !important; background: #f2f6f2 !important; text-decoration: none; }
#main-nav .menu-disclosure > summary:focus-visible { outline: 3px solid #9b6a49; outline-offset: 3px; }

/* Native select text must remain legible in both the closed control and OS dropdown. */
select { color: #24352d !important; background-color: #fff !important; color-scheme: light; }
select option, select optgroup { color: #24352d !important; background-color: #fff !important; }

/* The earlier glass/white-on-white rule made this fixed control disappear on white pages. */
.back-to-top {
  background: #285347 !important; color: #fff !important; border: 1px solid #1f4339 !important;
  box-shadow: 0 4px 14px rgba(31,67,57,.24); font-size: 1.2rem; font-weight: 700;
}
.back-to-top.visible { opacity: 1; visibility: visible; pointer-events: auto; }
.back-to-top:hover { background: #1f4339 !important; }

/* A payment method is a preference only; reveal the choices after an amount is selected. */
.payment-methods[hidden] { display: none !important; }
.payment-methods { margin: 0; border: 0; border-top: 1px solid #dce4dc; padding: 20px 0 0; }
.payment-methods legend { margin-bottom: 8px; color: #24352d; font-family: var(--font-display); font-size: 1.35rem; }
.payment-methods .method-note { margin: 0 0 14px; font-size: .84rem; }
.payment-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.payment-method-option {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px;
  border: 1px solid #bdc9c0; background: #fff; color: #30483b; cursor: pointer;
}
.payment-method-option:has(input:checked) { border-color: #285347; background: #eef4ef; }
.payment-method-option input { width: 18px; height: 18px; margin: 0; accent-color: #285347; }
#payment-method-error { margin: 10px 0 0; color: #9a332c; font-size: .85rem; }
@media (max-width: 820px) {
  #main-nav.open { max-height: calc(100vh - 70px); overflow-y: auto; }
  #main-nav > ul { align-items: stretch; gap: 0; }
  #main-nav .menu-disclosure > summary { padding: 13px 16px; font-size: .92rem; }
  #main-nav .submenu {
    position: static; min-width: 0; max-width: none; margin: 0 16px 8px;
    padding: 4px 0; border: 0; background: #f4f7f4; box-shadow: none;
  }
  #main-nav .submenu a { padding: 10px 16px; }
}
@media (max-width: 520px) { .payment-method-grid { grid-template-columns: 1fr; } }

#privacy-notice[hidden] { display: none !important; }
#privacy-notice {
  position: fixed; z-index: 12050; left: 20px; bottom: 18px; width: min(650px, calc(100vw - 40px));
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px;
  padding: 16px 18px; border: 1px solid #d8e1da; border-left: 4px solid #285347;
  background: #fff; color: #24352d; box-shadow: 0 8px 28px rgba(21,42,32,.18);
}
#privacy-notice p { margin: 0; color: #405148; font-size: .84rem; line-height: 1.5; }
#privacy-notice strong { color: #24352d; }
#privacy-notice a { color: #1f5b49; text-decoration: underline; text-underline-offset: 2px; }
#privacy-notice-dismiss { border: 0; padding: 10px 15px; background: #285347; color: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
#privacy-notice-dismiss:hover { background: #1f4339; }
#privacy-notice-dismiss:focus-visible, #privacy-notice a:focus-visible { outline: 3px solid #9b6a49; outline-offset: 3px; }
@media (max-width: 600px) {
  #privacy-notice { left: 10px; bottom: 10px; width: calc(100vw - 20px); grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  #privacy-notice-dismiss { justify-self: start; }
}


/* Final brand alignment: white editorial surfaces with the logo's high-contrast plum family. */
:root {
  --deep: #2d2632;
  --deep-2: #f8f5f9;
  --purple: #51265f;
  --rose: #8f1d65;
  --rose-dark: #7a174f;
  --rose-light: #b54b8c;
  --gold: #51265f;
  --gold-light: #e8d9ed;
  --white: #ffffff;
  --muted: #5b5560;
  --glass: rgba(81, 38, 95, .035);
  --glass-hover: rgba(81, 38, 95, .07);
  --glass-border: rgba(81, 38, 95, .16);
  --shadow: 0 10px 32px rgba(40, 27, 46, .10);
  --shadow-rose: 0 5px 17px rgba(81, 38, 95, .18);
}
body { background: #fff !important; color: #2d2632 !important; }
p { color: #5b5560; }
a { color: inherit; }
em, .hero h1 em, .section-label, .stat-num { color: #51265f !important; }
.section-label { letter-spacing: .16em; }
header { background: rgba(255,255,255,.98) !important; border-bottom-color: #e7e0e9; }
nav a, #main-nav .menu-disclosure > summary { color: #4c3b51 !important; }
nav a:hover, #main-nav .menu-disclosure > summary:hover { color: #51265f !important; background: rgba(81,38,95,.055) !important; }
nav a.active, #main-nav .submenu a[aria-current="page"] { color: #51265f !important; text-decoration-color: #8f1d65; }
#main-nav .submenu { border-color: #e3d9e7; box-shadow: 0 10px 26px rgba(46,28,52,.13); }
#main-nav .submenu a { color: #49394f !important; }
#main-nav .submenu a:hover, #main-nav .submenu a[aria-current="page"] { color: #51265f !important; background: #f8f5f9 !important; }
.hamburger span { background: #51265f !important; }
.section.alt { background: #f8f5f9 !important; border-color: #ece5ef; }
.hero, .cta-section { background: #fff !important; }
.hero::after { background: #c9b6d1 !important; }
.gold-divider { background: #8f1d65 !important; }
main h1, main h2, main h3, main h4 { color: #2d2632; }
main [style*="color:var(--white)"], main [style*="color:#fff"], main [style*="color: #fff"] { color: #2d2632 !important; }
.card h3 { color: #2d2632 !important; }
.donate-btn, .cta-btn, .contact-button, .view-btn, .back-to-top, #privacy-notice-dismiss {
  background: #51265f !important; color: #fff !important;
}
.donate-btn:hover, .cta-btn:hover, .contact-button:hover, .view-btn:hover, .back-to-top:hover, #privacy-notice-dismiss:hover {
  background: #421d52 !important; color: #fff !important;
}
.learn-btn { color: #51265f; border-color: #9e87a5; }
.learn-btn:hover { color: #421d52; border-color: #51265f; background: #f8f5f9; }
.floating-donate-btn { background: #51265f !important; border-color: #421d52; color: #fff !important; box-shadow: 0 5px 18px rgba(81,38,95,.22); }
.amount-btn:hover, .amount-btn.selected, .payment-options button.active-tab { background: #f2eaf5 !important; border-color: #51265f !important; color: #421d52 !important; }
.payment-options button.active-tab { background: #51265f !important; color: #fff !important; }
input:focus, textarea:focus, select:focus { border-color: #51265f !important; box-shadow: 0 0 0 3px rgba(81,38,95,.13) !important; }
select, select option, select optgroup { color: #2d2632 !important; background-color: #fff !important; }
.payment-method-option input { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; accent-color: #51265f; }
.payment-method-option:has(input:checked) { border-color: #51265f; background: #f8f5f9; }
.payment-methods legend { color: #2d2632; }
#payment-method-error { color: #9a332c; }
:focus-visible { outline-color: #8f1d65 !important; }
.skip-link { background: #51265f; }
footer { background: #302037 !important; border-top-color: #d8cadf; }
footer::before { background: linear-gradient(90deg, transparent, #8f1d65, #51265f, transparent) !important; }
.footer-tagline { color: #e8d9ed !important; }
.footer-nav a, .footer-bottom span, .footer-links a { color: rgba(255,255,255,.82) !important; }
.footer-nav a:hover, .footer-links a:hover { color: #fff !important; background: rgba(255,255,255,.08) !important; }
.logo-wordmark { color: #51265f; }
.leader-fallback { color: #51265f; }
.history-note, .values-note { border-top: 1px solid #e6dfea; margin-top: 34px; padding-top: 22px; }
.content-prose { max-width: 820px; }
.content-prose h2 { margin: 8px 0 16px; }
.content-prose p { max-width: 760px; }
.team-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 20px; }
.team-list p { border-top: 1px solid #e6dfea; padding: 16px 0; color: #2d2632; }
.team-list strong, .team-list span { display: block; }
.team-list span { margin-top: 4px; color: #5b5560; font-size: .9rem; }
@media (max-width: 820px) {
  #main-nav { background: rgba(255,255,255,.99) !important; border-bottom-color: #e7e0e9; }
  #main-nav .submenu { background: #f8f5f9 !important; }
  .team-list { grid-template-columns: 1fr; gap: 0; }
}

.donation-preference .payment-methods { border-top: 1px solid #e3d9e7; padding: 20px 0 0; }
.donation-preference .payment-method-option input { width: 18px; min-width: 18px; height: 18px; padding: 0 !important; }

/* Final visibility refinements for the supplied square logo and fixed controls. */
.logo-image { max-width: 62px !important; max-height: 62px !important; }
.footer-logo { max-width: 210px; max-height: 52px; }
.back-to-top { border-color: #421d52 !important; box-shadow: 0 4px 14px rgba(81,38,95,.24); }
.back-to-top:hover { background: #421d52 !important; }
#privacy-notice { color: #2d2632; border-color: #e3d9e7; border-left-color: #51265f; }
#privacy-notice strong { color: #2d2632; }
#privacy-notice a { color: #51265f; }
#privacy-notice-dismiss { background: #51265f; }
#privacy-notice-dismiss:hover { background: #421d52; }
@media (max-width: 820px) { .logo-image { max-width: 58px !important; max-height: 58px !important; } }

.info-value { color: #2d2632 !important; }
.info-value a, a.info-value { color: #51265f !important; text-decoration: underline; text-underline-offset: 2px; }


/* Refined grouped navigation controls: quiet borders, clear open state, consistent focus. */
#main-nav .menu-disclosure > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid #ded3e4;
  border-radius: 7px;
  background: #fbf9fc;
  color: #43244f !important;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .075em;
  box-shadow: 0 2px 4px rgba(43, 28, 49, .035);
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
#main-nav .menu-disclosure > summary::after { color: #714982; transition: transform .18s ease; }
#main-nav .menu-disclosure[open] > summary,
#main-nav .menu-disclosure > summary:hover {
  color: #fff !important;
  background: #51265f !important;
  border-color: #51265f;
  box-shadow: 0 4px 12px rgba(81, 38, 95, .18);
}
#main-nav .menu-disclosure[open] > summary::after { color: #fff; transform: rotate(180deg); }
#main-nav .menu-disclosure > summary:focus-visible { outline: 3px solid #8f1d65 !important; outline-offset: 3px; }
#main-nav .submenu { border-radius: 8px; overflow: hidden; padding: 7px; }
#main-nav .submenu a { border-radius: 5px; padding: 10px 12px; }
@media (max-width: 820px) {
  #main-nav .menu-disclosure > summary { width: 100%; justify-content: space-between; min-height: 46px; border-radius: 7px; }
  #main-nav .menu-disclosure[open] > summary { border-radius: 7px 7px 0 0; }
  #main-nav .submenu { margin: 0 6px 9px; padding: 5px; }
}

/* Original method-specific donation panels, now amount-gated and wired to request-only behavior. */
.method-selection[hidden], .method-panel[hidden] { display: none !important; }
.method-selection { border-top: 1px solid #e3d9e7; padding-top: 19px; }
.method-selection h3 { color: #2d2632; font: 600 1.1rem var(--font-body); margin: 0 0 5px; }
.method-selection p, .method-note { font-size: .87rem; margin-bottom: 12px; color: #5b5560; }
.method-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.method-tabs button {
  min-height: 46px; padding: 10px 12px; border: 1px solid #d9cde0; border-radius: 6px;
  background: #fff; color: #492957; font: 600 .9rem var(--font-body); cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.method-tabs button:hover, .method-tabs button.selected { background: #f4edf7; border-color: #51265f; color: #421d52; }
.method-tabs button:focus-visible { outline: 3px solid #8f1d65; outline-offset: 2px; }
.method-panel {
  display: flex; flex-direction: column; gap: 13px; padding: 23px 0 0;
  border-top: 1px solid #e3d9e7; scroll-margin-top: 100px;
}
.method-panel .section-label { margin-bottom: 0; }
.method-panel h3 { color: #2d2632; margin: 3px 0 7px; font-size: 1.65rem; }
.method-panel p { color: #5b5560; font-size: .9rem; }
.method-panel label { color: #382a3e; font-size: .9rem; font-weight: 600; }
.method-panel input[type="tel"] { width: 100%; padding: 12px 14px; border: 1px solid #cfc4d5; border-radius: 5px; background: #fff; color: #2d2632; }
.method-panel .cta-btn { align-self: flex-start; text-align: center; }
.method-panel .method-note { font-size: .8rem; margin: -6px 0 0; }
.card-checkout-note { border-left: 3px solid #8f1d65; padding-left: 18px; }
.payment-note { display: block; font-size: .84rem; color: #5b5560; }
.donation-preference fieldset.amount-field, .donation-preference fieldset.frequency-field { min-width: 0; }
.donation-preference [hidden] { display: none !important; }
@media (max-width: 520px) {
  .method-tabs { grid-template-columns: 1fr 1fr; }
  .method-panel .cta-btn { width: 100%; }
}

@media (max-width: 600px) {
  body.privacy-banner-open .floating-donate-btn { bottom: 210px; }
}


/* Unified primary navigation: direct links and disclosure controls are equal peers. */
#main-nav > ul > li > a.nav-control,
#main-nav > ul > li > details.menu-disclosure > summary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #ded3e4;
  border-radius: 7px;
  background: #fbf9fc;
  color: #43244f !important;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .075em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(43, 28, 49, .035);
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
#main-nav > ul > li > details.menu-disclosure > summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}
#main-nav > ul > li > details.menu-disclosure > summary::-webkit-details-marker { display: none; }
#main-nav > ul > li > details.menu-disclosure > summary::marker { content: ""; }
#main-nav > ul > li > details.menu-disclosure > summary::after {
  content: "+";
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  margin-left: 1px;
  border: 1px solid #d9c9e0;
  border-radius: 50%;
  color: #712c84;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  transform: none;
}
#main-nav > ul > li > details.menu-disclosure[open] > summary::after {
  content: "−";
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
#main-nav > ul > li > a.nav-control:hover,
#main-nav > ul > li > details.menu-disclosure > summary:hover,
#main-nav > ul > li > details.menu-disclosure[open] > summary,
#main-nav > ul > li > a.nav-control[aria-current="page"] {
  border-color: #51265f;
  background: #51265f !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(81, 38, 95, .17);
}
#main-nav > ul > li > a.nav-control:focus-visible,
#main-nav > ul > li > details.menu-disclosure > summary:focus-visible {
  outline: 3px solid #d42e9c !important;
  outline-offset: 3px;
}
#main-nav .submenu { top: calc(100% + 6px); }
#main-nav .submenu a { min-height: 40px; }
@media (max-width: 820px) {
  #main-nav > ul > li > a.nav-control,
  #main-nav > ul > li > details.menu-disclosure > summary {
    width: 100%;
    min-height: 46px;
    justify-content: space-between;
    margin: 3px 0;
    padding: 0 15px;
    border-radius: 7px;
    text-align: left;
  }
  #main-nav > ul > li > details.menu-disclosure[open] > summary { border-radius: 7px; }
  #main-nav .submenu { top: auto; }
}

/* Editorial rhythm for the expanded, source-led information pages. */
.partner-steps { margin: 1.2rem 0 1.5rem; padding-left: 1.35rem; }
.partner-steps li { padding: 0 0 .85rem .3rem; line-height: 1.75; }
.partner-steps li::marker { color: #8f1d65; font-weight: 700; }
.partner-steps strong { color: #42264a; }
.content-prose > p + p { margin-top: 1rem; }
.retained-gallery { margin-top: 1.5rem; }
.retained-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pillar-bridge { padding-top: 2.4rem; }


/* Context for legacy source photographs kept without unverified attribution. */
.visual-caption { max-width: 62rem; color: #675e69; font-size: .86rem; line-height: 1.65; }
.unverified-portraits { max-width: 820px; margin: 1.5rem auto 0; align-items: start; }
.unverified-portraits figure { margin: 0; }
.unverified-portraits img { display: block; width: min(100%, 300px); aspect-ratio: 4 / 5; object-fit: cover; }
.unverified-portraits figcaption { max-width: 300px; padding-top: .65rem; color: #675e69; font-size: .8rem; line-height: 1.5; }
.retained-gallery figure.gallery-item { margin: 0; }


/* Source illustrations are placed beside the relevant information, not in a duplicate pathway gallery. */
.source-photo-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; max-width: 760px; margin: 1.5rem 0 0; }
.source-photo { max-width: 320px; margin: 1.5rem 0; }
.source-photo-pair .source-photo { margin: 0; }
.source-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.source-photo figcaption { padding-top: .55rem; color: #675e69; font-size: .76rem; line-height: 1.5; }
.donation-aside .source-photo { max-width: 100%; }
.donation-aside .source-photo img { aspect-ratio: 16 / 10; }
@media (max-width: 640px) { .source-photo-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } .source-photo-pair .source-photo { max-width: none; } }


/* Sitewide Donate prompt, heart button, and full-width cookie preference bar. */
.donate-prompt[hidden] { display: none !important; }
.donate-prompt {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  min-height: 64px;
  padding: 10px 66px;
  background: #8f1d65;
  color: #fff;
  text-align: center;
}
.donate-prompt p, .donate-prompt strong {
  margin: 0;
  color: #fff !important;
  font-size: .94rem;
  line-height: 1.45;
}
.donate-prompt-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #51265f !important;
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
.donate-prompt-link:hover { background: #f8eaf2; transform: translateY(-1px); }
#donate-prompt-dismiss {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 400 1.55rem/1 var(--font-body);
  cursor: pointer;
}
#donate-prompt-dismiss:hover { background: rgba(255,255,255,.14); }
#donate-prompt-dismiss:focus-visible, .donate-prompt-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.floating-donate-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  writing-mode: horizontal-tb !important;
  min-height: 48px;
  padding: 0 17px !important;
  border: 1px solid #74154e !important;
  border-radius: 999px !important;
  background: #8f1d65 !important;
  color: #fff !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: .045em;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(143,29,101,.30) !important;
  z-index: 10000;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.floating-donate-btn svg { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }
.floating-donate-btn:hover { transform: translateY(-3px); background: #74154e !important; box-shadow: 0 8px 24px rgba(116,21,78,.34) !important; }
.floating-donate-btn:focus-visible { outline: 3px solid #d42e9c !important; outline-offset: 3px; }

#privacy-notice[hidden] { display: none !important; }
#privacy-notice {
  position: fixed;
  inset: auto 0 0;
  z-index: 12050;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px clamp(16px, 3vw, 42px) max(18px, env(safe-area-inset-bottom));
  border: 0;
  border-top: 3px solid #d42e9c;
  border-radius: 0;
  background: #302037;
  color: #fff;
  box-shadow: 0 -8px 30px rgba(31,18,35,.22);
}
.cookie-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  width: min(1480px, 100%);
  margin: 0 auto;
}
.cookie-copy > strong { display: block; margin-bottom: 5px; color: #fff !important; font-size: .95rem; }
.cookie-copy p { margin: 0; color: #f0e9f2 !important; font-size: .79rem; line-height: 1.5; }
.cookie-copy a { color: #f5b5dd !important; text-decoration: underline; text-underline-offset: 2px; }
.cookie-copy a:hover { color: #fff !important; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.cookie-actions button {
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: 600 .77rem/1.25 var(--font-body);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.cookie-actions button[data-cookie-choice="all"] { border-color: #a92770; background: #a92770; }
.cookie-actions button:hover { transform: translateY(-1px); border-color: #fff; background: rgba(255,255,255,.12); }
.cookie-actions button[data-cookie-choice="all"]:hover { background: #8f1d65; }
.cookie-actions button:focus-visible { outline: 3px solid #f5b5dd; outline-offset: 3px; }
.cookie-actions button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #f5b5dd; }
body.cookie-banner-open .floating-donate-btn { bottom: 170px; }
body.cookie-banner-open .back-to-top { bottom: 104px; }
.cookie-settings-link {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255,255,255,.82);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-settings-link:hover { color: #fff; }
.cookie-settings-link:focus-visible { outline: 3px solid #f5b5dd; outline-offset: 3px; }

@media (max-width: 900px) {
  .cookie-inner { grid-template-columns: 1fr; gap: 12px; }
  .cookie-actions { max-width: 720px; }
  body.cookie-banner-open .floating-donate-btn { bottom: 190px; }
  body.cookie-banner-open .back-to-top { bottom: 118px; }
}
@media (max-width: 600px) {
  .donate-prompt { gap: 9px; min-height: 74px; padding: 12px 54px 12px 16px; }
  .donate-prompt p { flex-basis: 100%; font-size: .85rem; }
  #donate-prompt-dismiss { right: 9px; width: 34px; height: 34px; }
  .cookie-inner { gap: 10px; }
  .cookie-actions { grid-template-columns: 1fr; gap: 7px; }
  .cookie-actions button { width: 100%; min-height: 44px; }
  #privacy-notice { padding: 14px 14px max(14px, env(safe-area-inset-bottom)); }
  .cookie-copy > strong { font-size: .9rem; }
  .cookie-copy p { font-size: .75rem; }
  body.cookie-banner-open .floating-donate-btn { bottom: 355px; }
  body.cookie-banner-open .back-to-top { bottom: 300px; }
}
@media (max-width: 380px) {
  body.cookie-banner-open .floating-donate-btn { bottom: 380px; }
  body.cookie-banner-open .back-to-top { bottom: 325px; }
}

/* Keep the floating call to action clear of the tall phone-sized choice bar. */
@media (max-width: 600px) {
  body.cookie-banner-open .floating-donate-btn { bottom: 420px; }
}
@media (max-width: 380px) {
  body.cookie-banner-open .floating-donate-btn { bottom: 440px; }
}
@media (max-width: 600px) {
  /* The Donate now strip remains available; hide the second fixed Donate link
     while the full-width consent bar is open, avoiding overlap with its choices. */
  body.cookie-banner-open .floating-donate-btn {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}


/* QGN leadership portraits and community gallery */
.leader-portrait { float: right; width: min(34%, 250px); margin: 0 0 1.25rem 2rem; text-align: center; }
.leader-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: 14px; box-shadow: 0 12px 36px rgba(0,0,0,.3); }
.leader-portrait figcaption, .qgn-photo-grid figcaption, .qgn-gallery figcaption { padding-top: .65rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.qgn-photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.15rem; margin-top: 1.5rem; }
.qgn-photo-grid figure { margin: 0; min-width: 0; }
.qgn-photo-grid img { display: block; width: 100%; height: 250px; object-fit: cover; border-radius: 12px; }
.gallery-action { margin-top: 1.75rem; }
.gallery-heading { max-width: 780px; margin: 0 auto 2rem; text-align: center; }
.qgn-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.qgn-gallery .gallery-item { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass); }
.qgn-gallery .gallery-item a { display: block; overflow: hidden; }
.qgn-gallery .gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s var(--ease); }
.qgn-gallery .gallery-item:hover img { transform: scale(1.04); }
.qgn-gallery .gallery-item figcaption { padding: .8rem 1rem 1rem; }
@media (max-width: 760px) { .qgn-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); } .qgn-photo-grid { grid-template-columns: 1fr; } .qgn-photo-grid img { height: auto; aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .qgn-gallery { grid-template-columns: 1fr; } .leader-portrait { float: none; width: min(100%,280px); margin: 0 auto 1.5rem; } }


/* Leadership profile sequence: alternating portrait panels with slide-in reveals */
.leader-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px, .72fr); gap: clamp(2rem,5vw,5rem); align-items: start; max-width: 1120px; margin-inline: auto; }
.leader-layout.image-right { grid-template-columns: minmax(0,1fr) minmax(230px,.72fr); }
.leader-layout.image-left { grid-template-columns: minmax(230px,.72fr) minmax(0,1fr); }
.leader-layout.image-right .leader-portrait { grid-column: 2; grid-row: 1; }
.leader-layout.image-right .leader-copy { grid-column: 1; grid-row: 1; }
.leader-layout.image-left .leader-portrait { grid-column: 1; grid-row: 1; }
.leader-layout.image-left .leader-copy { grid-column: 2; grid-row: 1; }
.leader-layout .leader-portrait { float: none; width: 100%; max-width: 390px; margin: 0 auto; padding: 10px; border: 1px solid rgba(232,184,106,.55); border-radius: 22px; background: linear-gradient(145deg,rgba(255,10,138,.14),rgba(232,184,106,.10)); box-shadow: 0 18px 50px rgba(0,0,0,.32); }
.leader-layout .leader-portrait img { aspect-ratio: 4 / 5; border-radius: 15px; }
.leader-layout .leader-portrait figcaption { color: var(--gold-light); font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.leader-copy > .section-label { display: inline-block; padding: .36rem .7rem; border: 1px solid rgba(232,184,106,.45); border-radius: 99px; background: rgba(232,184,106,.10); color: var(--gold-light); }
.leader-copy h2 { margin: .25rem 0 1rem; color: var(--white); }
.leader-copy h3 { margin: 1.4rem 0 .45rem; color: var(--gold-light); }
.profile-tag { display: inline-block; margin: .08rem .12rem .08rem 0; padding: .12rem .55rem; border-radius: 999px; background: rgba(255,10,138,.16); color: #ff8bc8; font-size: .86rem; letter-spacing: .025em; }
.leader-copy em { color: var(--gold-light); }
.youth-photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1.5rem 0; }
.youth-photo-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--glass-border); border-radius: 13px; background: var(--glass); }
.youth-photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.youth-photo-grid figcaption { padding: .6rem .8rem; color: var(--gold-light); font-size: .82rem; }
@media (max-width: 820px) { .leader-layout, .leader-layout.image-right, .leader-layout.image-left { grid-template-columns: 1fr; gap: 1.7rem; } .leader-layout.image-right .leader-portrait, .leader-layout.image-left .leader-portrait, .leader-layout.image-right .leader-copy, .leader-layout.image-left .leader-copy { grid-column: 1; grid-row: auto; } .leader-layout .leader-portrait { max-width: 340px; } }
@media (max-width: 520px) { .youth-photo-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { nav.open { max-height: min(90vh, 720px); overflow-y: auto; } }


/* Leader reveals are visible by default; the observer opts into the animation. */
.leader-layout .reveal-left, .leader-layout .reveal-right { opacity: 1; transform: none; transition: none; }
.leader-layout[data-animate="true"] .reveal-left,
.leader-layout[data-animate="true"] .reveal-right { opacity: 0; transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.leader-layout[data-animate="true"] .reveal-left { transform: translateX(-54px); }
.leader-layout[data-animate="true"] .reveal-right { transform: translateX(54px); }
.leader-layout.is-visible .reveal-left,
.leader-layout.is-visible .reveal-right { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .leader-layout[data-animate="true"] .reveal-left, .leader-layout[data-animate="true"] .reveal-right { opacity: 1; transform: none; transition: none; will-change: auto; } }


/* Final leadership visibility fix: never fade profile content to zero opacity. */
.leader-layout .leader-copy, .leader-layout .leader-portrait { opacity: 1 !important; visibility: visible !important; }
.leader-layout[data-animate="true"] .leader-copy { transform: translateX(-38px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.leader-layout[data-animate="true"] .leader-portrait { transform: translateX(38px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.leader-layout.is-visible .leader-copy, .leader-layout.is-visible .leader-portrait { transform: translateX(0); }
@media (max-width: 820px) { .leader-layout[data-animate="true"] .leader-copy, .leader-layout[data-animate="true"] .leader-portrait { transform: translateY(22px); } .leader-layout.is-visible .leader-copy, .leader-layout.is-visible .leader-portrait { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .leader-layout .leader-copy, .leader-layout .leader-portrait { opacity: 1 !important; visibility: visible !important; transform: none !important; transition: none !important; } }


/* High-contrast leadership typography (readable on both light and dark previews). */
.leader-copy h2 { color: #2C1812 !important; opacity: 1 !important; visibility: visible !important; }
.leader-copy h3 { color: #6E2F81 !important; opacity: 1 !important; visibility: visible !important; }
.leader-copy > .section-label { color: #51265F !important; background: #F7EAF4 !important; border-color: #D8B7D4 !important; }
.leader-layout .leader-portrait figcaption { color: #51265F !important; }
.leader-copy .profile-tag { color: #6E2F81 !important; background: #F8E8F2 !important; }
.form-feedback { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(232,184,106,.12); color: var(--white); font-size: .92rem; }
.form-feedback[hidden] { display: none !important; }
.form-feedback.is-error { background: rgba(195,0,107,.16); color: #ffd6e8; }

/* Preserve complete event-photo compositions on Home and Impact pages. */
.home-community-photo { height: auto !important; aspect-ratio: auto !important; max-height: none !important; overflow: visible; border-radius: 16px; }
.home-community-photo img { display: block; width: 100%; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; object-position: center; border-radius: 16px; }
.impact-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.impact-photo-grid .gallery-item { grid-row: auto !important; height: auto !important; background: rgba(255,248,240,.04); }
.impact-photo-grid .gallery-item:first-child { grid-row: auto !important; }
.impact-photo-grid .gallery-item img, .impact-photo-grid .gallery-item:first-child img { display: block; width: 100%; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; object-position: center; }
@media (max-width: 640px) { .impact-photo-grid { grid-template-columns: 1fr; } .impact-photo-grid .gallery-item img, .impact-photo-grid .gallery-item:first-child img { width: 100%; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; } }


/* Contact form: keep submission state and feedback readable on the white theme. */
.contact-form > button[type="submit"].cta-btn,
.contact-form > button[type="submit"].cta-btn:disabled {
  display: inline-flex !important;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  background: #285347 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  cursor: wait;
}
.contact-form > button[type="submit"].cta-btn:disabled { cursor: progress; }
.contact-form .form-feedback {
  color: #24352d !important;
  background: #f2f6f2 !important;
  border-left: 4px solid #285347;
  overflow-wrap: anywhere;
}
.contact-form .form-feedback.is-error {
  color: #762d27 !important;
  background: #fff2ef !important;
  border-left-color: #a83e32;
}
.contact-form .form-feedback[hidden] { display: none !important; }


/* Balance long leadership biographies by vertically centering portraits beside the full text column. */
.leader-layout { align-items: center; }
@media (max-width: 820px) { .leader-layout { align-items: start; } }

/* Impact page editorial layout: distinct stories, respectful photographs, and clear responsive flow. */
.impact-intro { max-width: 860px; }
.impact-stories .container { display: grid; gap: clamp(24px, 4vw, 48px); }
.impact-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); align-items: center; gap: clamp(24px, 4vw, 48px); padding: clamp(22px, 4vw, 42px); background: #fff; border: 1px solid #e1e8e2; }
.impact-story-copy { max-width: 720px; }
.impact-story-copy h2 { margin: .3rem 0 1rem; font-size: clamp(1.7rem, 3vw, 2.4rem); color: #24352d; }
.impact-story-copy p + p { margin-top: 1rem; }
.impact-story .section-label { color: #285347; }
.impact-story-text { grid-template-columns: minmax(0, 1fr); }
.impact-photo-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.impact-photo-row figure, .impact-feature-photo { min-width: 0; margin: 0; }
.impact-photo-row img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.impact-photo-row figcaption, .impact-feature-photo figcaption { padding: .55rem .65rem; color: #4e5d54; font-size: .8rem; line-height: 1.45; }
.impact-story-with-gallery { grid-template-columns: minmax(0, 1fr); }
.impact-story-with-gallery .impact-story-copy { max-width: 860px; }
.impact-feature-photo { width: min(100%, 380px); justify-self: center; background: #f3f6f3; }
.impact-feature-photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.impact-values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 1.5rem; }
.impact-values-grid article { padding: 22px; background: #f6f8f5; border-top: 3px solid #9b6a49; }
.impact-values-grid h3 { margin-bottom: .6rem; color: #24352d; }
.impact-values-grid p { margin: 0; font-size: .93rem; }
.impact-cta { background: #f6f8f5; }
@media (max-width: 820px) { .impact-story { grid-template-columns: 1fr; } .impact-photo-row { grid-template-columns: repeat(2,minmax(0,1fr)); } .impact-values-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .impact-photo-row, .impact-values-grid { grid-template-columns: 1fr; } .impact-story { padding: 20px 16px; } }
