/* ==========================================================================
   Fo Guang Shan Temple of Toronto — site stylesheet
   ========================================================================== */

:root {
  /* ========================================================================
     Fo Guang Shan Buddha Museum (FGSBMC) Inspired Palette
     - Primary: Warm Buddhist Ochre / Robe Brown (Ref: "Announcements" #896132)
     - Accent: Warm Sand / Light Ochre (Ref: "2026 Museum Closed Days" #aa8559)
     - Contrast: Deep Slate Charcoal (Ref: "Cultural Route" card body #292c35)
     - Grounds: Calm, serene, mindful temple stone & off-white linen
     ======================================================================== */
  --primary-ochre: #896132;        /* Main brand color (Announcements) */
  --primary-ochre-dark: #6e4c23;   /* Rich teak for hover states & contrast */
  --primary-ochre-deep: #463016;   /* Deep Buddhist earth for high-contrast headings */
  
  --accent-sand: #aa8559;          /* Secondary contrasting tone (Museum Closed Days & Card Trim) */
  --accent-sand-light: #c8a87e;    /* Soft sand highlight / active accents */
  --accent-sand-soft: #f4eee6;     /* Gentle sand surface tint for badges */

  /* Master Hsing Yun Robe Yellow Accent Palette */
  --robe-yellow: #e0c774;          /* Warm golden monk robe yellow */
  --robe-yellow-deep: #cfb35c;     /* Deeper golden tone for trims & active states */
  --robe-yellow-soft: #faf5e4;     /* Soft warm highlight ground */
  
  --slate-dark: #292c35;           /* Contrast charcoal slate (Cultural Route card body) */
  --slate-deep: #1f2229;           /* Deep contrast tone for footers & dark headers */
  --slate-light: #3d424e;          /* Muted slate border/hover on dark areas */

  --cream: #fcfaf7;                /* Body background: peaceful, bright, mindful off-white */
  --cream-deep: #f4eee4;           /* Secondary section background: serene warm stone */
  --cream-soft: #f8f5ee;           /* Light surface ground for cards */

  --ink: #2b2622;                  /* Body text: deep warm espresso charcoal */
  --ink-light: #524a42;            /* Secondary body text */
  --muted: #6e6459;                /* Muted text: warm stone */
  --line: #e3dacb;                 /* Soft borders and dividers */
  --white: #ffffff;

  /* Backward-compatible token mappings for existing components */
  --gold: var(--robe-yellow);
  --gold-dark: var(--primary-ochre);
  --maroon: var(--primary-ochre);
  --maroon-dark: var(--primary-ochre-deep);

  --shadow: 0 8px 24px rgba(41, 44, 53, 0.08);
  --shadow-lg: 0 14px 34px rgba(41, 44, 53, 0.12);
  --radius: 12px;
  --max-width: 1140px;
  --font-head: "Playfair Display", "Noto Serif TC", Georgia, serif;
  --font-body: "Noto Sans", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--maroon-dark);
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 0.6em;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm {
  padding: 0.52em 1.2em;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--maroon);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--maroon-dark); }

.btn-gold {
  background: var(--robe-yellow);
  color: var(--primary-ochre-deep);
  border: 1.5px solid var(--robe-yellow-deep);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.btn-gold:hover {
  background: var(--robe-yellow-deep);
  color: #1a1208;
  border-color: #baa04e;
}

.btn-outline {
  background: transparent;
  border-color: var(--maroon);
  color: var(--maroon);
}
.btn-outline:hover { background: var(--maroon); color: var(--white); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.nav-links a:hover { background: var(--cream-deep); color: var(--maroon-dark); }
.nav-links a.active { color: var(--maroon); background: var(--cream-deep); }

.nav-cta { flex-shrink: 0; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--maroon-dark);
  white-space: nowrap;
}
.lang-switch:hover { background: var(--cream-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--maroon-dark); }

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta.desktop-only { display: none; }
}

/* ---------- Nav dropdown ("Service") ---------- */
.nav-item-dropdown { position: relative; }
.nav-dropdown-head { display: flex; align-items: center; }
.nav-dropdown-head > a {
  padding: 8px 2px 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.nav-dropdown-head > a:hover { background: var(--cream-deep); color: var(--maroon-dark); }
.nav-dropdown-head > a.active { color: var(--maroon); background: var(--cream-deep); }
.nav-dropdown-caret {
  background: none;
  border: none;
  padding: 8px 10px;
  margin: 0;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  border-radius: 8px;
}
.nav-dropdown-caret svg { width: 14px; height: 14px; transition: transform 0.2s ease; pointer-events: none; }
.nav-item-dropdown:hover .nav-dropdown-caret svg,
.nav-item-dropdown.open .nav-dropdown-caret svg { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  margin-top: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 10;
}
.nav-item-dropdown:hover .nav-dropdown-panel,
.nav-item-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.nav-dropdown-panel a:hover { background: var(--cream-deep); color: var(--maroon-dark); }

@media (max-width: 900px) {
  .nav-dropdown-head > a { flex: 1; padding: 12px; }
  .nav-dropdown-panel {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 4px 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--cream-deep);
    border-radius: 10px;
  }
  .nav-item-dropdown.open .nav-dropdown-panel { display: block; }
}

/* ---------- Service page — large media header + expandable body ---------- */
.service-block {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.service-block:last-of-type { border-bottom: none; }
.service-block-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 6;
  min-height: 220px;
  overflow: hidden;
  color: var(--white);
}
@media (max-width: 768px) {
  .service-block-media {
    aspect-ratio: 16 / 9;
    min-height: 180px;
  }
}
@media (max-width: 480px) {
  .service-block-media {
    aspect-ratio: 16 / 10;
    min-height: 180px;
  }
}
.service-block-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-block-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,10,12,0.35) 0%, rgba(20,10,12,0.8) 100%);
}
.service-block-media-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 28px;
}
.service-block-media-inner .eyebrow { color: var(--robe-yellow); }
.service-block-media-inner h2 { color: var(--white); margin: 4px 0 0; }
.service-toggle {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.14);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.service-toggle:hover { background: rgba(255,255,255,0.28); }
.service-toggle svg { width: 20px; height: 20px; transition: transform 0.25s ease; }
.service-block.open .service-toggle svg { transform: rotate(180deg); }
.service-block-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.service-block-body-inner { padding: 48px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% -10%, #c8a87e 0%, var(--primary-ochre) 45%, var(--primary-ochre-deep) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding: 96px 24px 110px;
  text-align: center;
  max-width: 820px;
}
.hero .eyebrow { color: var(--robe-yellow); }
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(255,255,255,0.88); margin: 0 auto 2em; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  z-index: 1;
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 2;
}

.page-hero {
  background: var(--accent-sand);
  color: var(--white);
  padding: 64px 0 84px;
  position: relative;
  border-bottom: 3px solid var(--robe-yellow);
}
.page-hero .eyebrow { color: rgba(255, 255, 255, 0.95); }
.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.4em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.page-hero p { color: rgba(255, 255, 255, 0.92); max-width: 60ch; }

/* ---------- Home hero, photo variant ---------- */
.hero-photo {
  background: var(--slate-dark);
  border-bottom: 4px solid var(--accent-sand);
}
/* Shorter than the plain-color .hero elsewhere (e.g. participate.html) —
   this is a photo banner, not a page opener that needs room to breathe;
   the image re-crops itself via object-fit:cover regardless of height, so
   there's no distortion risk in shrinking this. */
.hero-photo .container { padding: 18px 24px 24px; }
.hero-photo .eyebrow {
  margin-bottom: 0.3em;
  color: var(--robe-yellow);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.hero-photo h1 {
  margin-bottom: 0.2em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.hero-photo .lede {
  margin: 0 auto 0.8em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
/* The Master Hsing Yun quote block (zh homepage only) sits directly between
   the hero and the events carousel, both of which share the same
   --cream-deep background — so the two sections' padding was stacking into
   one big blank gap with no visual reason to be that tall. Scoped to this
   exact adjacency (hero-photo → quote block → carousel) so no other use of
   .section-alt or .event-carousel-wrap elsewhere is affected. */
.hero-photo + .section-alt { padding: 32px 0 16px; }
.section-alt + .event-carousel-wrap { padding-top: 32px; }
.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20, 16, 12, 0.52) 0%, rgba(20, 16, 12, 0.24) 55%, transparent 85%);
}

/* ---------- Announcement Banner (Header Overlay) ---------- */
.announcement-banner {
  position: relative;
  z-index: 10;
  width: 100%;
}
.announcement-banner:not(.is-expanded):not(.is-collapsed) {
  display: none;
}

/* Expanded state */
.announcement-expanded {
  background: rgba(41, 44, 53, 0.95);
  border-bottom: 2px solid var(--robe-yellow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}
.announcement-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}
.announcement-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.announcement-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-ochre);
  border: 1px solid var(--robe-yellow);
  color: #ffffff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.announcement-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--robe-yellow);
}
.announcement-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  line-height: 1.45;
}
.announcement-message strong {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent-sand);
  text-underline-offset: 2px;
}
.announcement-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.announcement-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-sand);
  color: var(--accent-sand-light);
}
.announcement-toggle-btn svg {
  width: 13px;
  height: 13px;
}
.announcement-toggle-btn *,
.announcement-tab-btn * {
  pointer-events: none;
}

/* Collapsed state */
.announcement-collapsed-bar {
  display: flex;
  justify-content: center;
  padding: 8px 16px 0;
}
.announcement-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 15px;
  border-radius: 999px;
  background: rgba(137, 97, 50, 0.94);
  border: 1.5px solid var(--robe-yellow);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  transition: all 0.2s ease;
}
.announcement-tab-btn:hover {
  background: var(--primary-ochre-dark);
  border-color: #ffffff;
  transform: translateY(1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}
.announcement-tab-btn .announcement-arrow {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

/* State toggling */
.announcement-banner.is-collapsed .announcement-expanded {
  display: none !important;
}
.announcement-banner.is-collapsed .announcement-collapsed-bar {
  display: flex !important;
}
.announcement-banner.is-expanded .announcement-expanded {
  display: block !important;
}
.announcement-banner.is-expanded .announcement-collapsed-bar {
  display: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .announcement-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 18px;
  }
  .announcement-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .announcement-toggle-btn {
    align-self: flex-end;
  }
}

/* ---------- Recent-events carousel ---------- */
.event-carousel-wrap { background: var(--cream-deep); }
.event-carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.event-carousel-head .section-head.left { margin: 0; }
.carousel-arrows { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--maroon-dark);
  transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-arrow:hover { background: var(--cream); transform: translateY(-1px); }
.carousel-arrow svg { width: 18px; height: 18px; }
.event-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
}
.event-carousel::-webkit-scrollbar { height: 6px; }
.event-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.event-slide {
  scroll-snap-align: start;
  flex: 0 0 280px;
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 4px;
}
.event-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}
.event-slide img[src*="friday-talk-sue"] {
  object-position: 72% center;
}
.event-slide:hover img { transform: scale(1.06); }
.event-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,10,12,0) 50%, rgba(28,12,15,0.92) 100%);
}
.event-slide-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; z-index: 2; }
.event-slide .pill { background: var(--robe-yellow); color: var(--primary-ochre-deep); font-weight: 700; }
.event-slide h4 { color: var(--white); margin: 8px 0 0; font-size: 1.02rem; }
@media (max-width: 640px) {
  .event-slide { flex-basis: 240px; }
}

/* ---------- Photo-tile navigation grid ---------- */
.photo-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
@media (max-width: 900px) { .photo-tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-tile-grid { grid-template-columns: 1fr; } }
.photo-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: var(--white);
}
.photo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25,27,33,0.08) 0%, rgba(25,27,33,0.78) 100%);
  transition: background 0.3s ease;
}
.photo-tile:hover img { transform: scale(1.08); }
.photo-tile:hover::after { background: linear-gradient(180deg, rgba(25,27,33,0.15) 0%, rgba(137,97,50,0.85) 100%); }
.photo-tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 22px;
  z-index: 2;
  border-bottom: 4px solid var(--robe-yellow);
}
.photo-tile-label .eyebrow { color: var(--robe-yellow); }
.photo-tile-label h3 { color: var(--white); margin: 4px 0 0; font-size: 1.35rem; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--cream-deep); }
.section-maroon {
  background: linear-gradient(145deg, #342416 0%, #1f2229 100%);
  color: var(--white);
  border-top: 3px solid var(--robe-yellow);
  border-bottom: 3px solid var(--robe-yellow);
}
.section-maroon .eyebrow { color: var(--robe-yellow); }
.section-maroon h2, .section-maroon h3 { color: var(--white); }
.section-maroon p { color: rgba(255,255,255,0.9); }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--robe-yellow);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-bottom-color 0.2s ease;
}
.card:hover {
  border-bottom-color: var(--primary-ochre);
}
.card .icon {
  width: 46px; height: 46px;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

a.card.news-card {
  display: block;
  padding: 0 0 24px;
  overflow: hidden;
  border-bottom: 3px solid var(--robe-yellow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-bottom-color 0.15s ease;
}
a.card.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--primary-ochre);
}
a.card.news-card h3 { color: var(--maroon-dark); padding: 0 24px; }
a.card.news-card .pill { margin-left: 24px; }
a.card.news-card p { padding: 0 24px; }
.news-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 16px;
}

.news-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.news-more-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.card-flat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--maroon-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.divider {
  width: 64px; height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin: 18px auto;
}
.divider.left { margin: 18px 0; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.stat {
  text-align: center;
}
.stat .num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--gold-dark);
  font-weight: 700;
}
.stat .label { color: var(--muted); font-size: 0.92rem; }

.quote-block {
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 22px;
  font-style: italic;
  color: var(--maroon-dark);
  font-size: 1.15rem;
  margin: 1.4em 0;
}

table.hours { width: 100%; border-collapse: collapse; }
table.hours td { padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
table.hours td:last-child { text-align: right; color: var(--ink); font-weight: 600; }

ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--muted);
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

.location-card { border-top: 4px solid var(--robe-yellow); }
.card-header-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}
.card-details-btn,
.card-details-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--primary-ochre);
  color: var(--white);
  background: var(--primary-ochre);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(137, 97, 50, 0.25);
}
.card-details-btn:hover,
.card-details-link:hover {
  background: var(--primary-ochre-dark);
  border-color: var(--primary-ochre-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(137, 97, 50, 0.35);
}

.tag-list { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Events / Calendar ---------- */
.event-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .event-row { grid-template-columns: 72px 1fr; }
  .event-row .event-actions,
  .event-row > .event-cta { grid-column: 1 / -1; justify-self: start; }
}
.event-date {
  text-align: center;
  background: var(--cream-deep);
  border-radius: 10px;
  padding: 10px 4px;
}
.event-date .month { display: block; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--maroon); font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.event-date .day { display: block; font-family: var(--font-head); font-size: 1.55rem; color: var(--maroon-dark); font-weight: 700; line-height: 1.1; margin: 2px 0; }
.event-date .weekday { display: block; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--maroon); font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.event-body h4 { margin: 0 0 4px; color: var(--maroon-dark); font-family: var(--font-head); font-size: 1.05rem; }
.event-body .meta { color: var(--muted); font-size: 0.88rem; }
.event-actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.event-cta { white-space: nowrap; flex-shrink: 0; }
.event-poster-link {
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.event-poster-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.event-poster {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
}
@media (max-width: 640px) {
  .event-actions { justify-content: flex-start; }
}
.event-poster-link-large {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event-poster-link-large:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.event-poster-large {
  display: block;
  width: 100%;
  height: auto;
}

.notice-banner {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.notice-banner svg { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }
.notice-banner strong { color: var(--maroon-dark); }

/* ---------- Newsletter ---------- */
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.85em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--gold); }

/* ---------- Donation ---------- */
.donate-method {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.donate-method .icon { width: 34px; height: 34px; color: var(--gold-dark); flex-shrink: 0; }
.donate-method h4 { margin: 0 0 4px; color: var(--maroon-dark); }
.donate-method p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.donate-categories-card {
  margin-top: 88px;
}
@media (max-width: 900px) {
  .donate-categories-card {
    margin-top: 24px;
  }
}

.donate-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(42, 36, 32, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.donate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(42, 36, 32, 0.08);
}
.donate-card-body {
  margin-bottom: 14px;
}
.donate-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.donate-card .icon {
  width: 20px;
  height: 20px;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.donate-card h4 {
  margin: 0;
  color: var(--maroon-dark);
  font-size: 1.02rem;
  line-height: 1.3;
}
.donate-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.donate-card .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Contact ---------- */
.contact-item { display: flex; gap: 12px; margin-bottom: 14px; }
.contact-item svg { width: 20px; height: 20px; color: var(--gold-dark); flex-shrink: 0; margin-top: 3px; }
.contact-item div { color: var(--muted); }
.contact-item strong { color: var(--ink); display: block; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-deep);
  border-top: 3px solid var(--robe-yellow);
  color: #e5ded4;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid:has(> :last-child:nth-child(3)) {
  grid-template-columns: 1.5fr 1fr 1fr;
}
@media (max-width: 900px) { .footer-grid, .footer-grid:has(> :last-child:nth-child(3)) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid, .footer-grid:has(> :last-child:nth-child(3)) { grid-template-columns: 1fr; } }

.site-footer p {
  color: #e5ded4 !important;
  font-size: 0.92rem;
  line-height: 1.6;
}
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: var(--white) !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 8px;
}
.site-footer a {
  color: #d8cfc2;
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.site-footer ul li a {
  margin-bottom: 0;
}
.site-footer a:hover {
  color: var(--robe-yellow);
}

.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-logo {
  height: 40px;
  margin-bottom: 12px;
}
.footer-brand .footer-logo {
  margin-bottom: 0;
}
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  margin: 0;
}
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #d8cfc2;
}
.footer-bottom p {
  color: #d8cfc2 !important;
  margin: 0;
  font-size: 0.85rem;
}
.footer-bottom span {
  color: #d8cfc2;
}
.footer-bottom a {
  display: inline;
  color: #d8cfc2;
  margin: 0;
  transition: color 0.15s ease;
}
.footer-bottom a:hover {
  color: var(--robe-yellow);
}
.footer-legal {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-legal a {
  display: inline;
  color: #d8cfc2;
  margin: 0;
  transition: color 0.15s ease;
}
.footer-legal a:hover {
  color: var(--robe-yellow);
}

/* ---------- Breadcrumb / misc ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--maroon);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

.cta-band {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); }

.affil-map-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .affil-map-list { grid-template-columns: 1fr; } }
.affil-region {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.affil-region strong { color: var(--maroon-dark); display: block; margin-bottom: 4px; }
.affil-region span { color: var(--muted); font-size: 0.9rem; }

/* ---------- About: History timeline (photo + text, alternating) ---------- */
.history-timeline { display: flex; flex-direction: column; gap: 40px; }
.history-item { display: flex; gap: 36px; align-items: center; }
.history-item.reverse { flex-direction: row-reverse; }
.history-item-media {
  flex: 0 0 42%;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.history-item-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.history-item-body { flex: 1; }
.history-item-body .pill { margin-bottom: 14px; }
.history-item-body h3 { margin-top: 0; margin-bottom: 0.4em; }
.history-item-body p { color: var(--muted); margin-bottom: 0; }
@media (max-width: 760px) {
  .history-item, .history-item.reverse { flex-direction: column; }
  .history-item-media { flex-basis: auto; width: 100%; }
}

/* ---------- About: on-site facilities grid ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .facility-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .facility-grid { grid-template-columns: 1fr; } }
.facility-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.facility-card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.facility-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.facility-card-body h4 { margin: 0 0 8px; color: var(--maroon-dark); }
.facility-card-body p { color: var(--muted); font-size: 0.94rem; margin-bottom: 16px; }
.facility-card-body p:last-child { margin-bottom: 0; }
.facility-card-body .btn { align-self: flex-start; margin-top: auto; }
.btn-sm { padding: 0.55em 1.2em; font-size: 0.85rem; }
#facilities, #history, #mission { scroll-margin-top: 80px; }

/* ---------- About: founder card, right of the Mission intro ---------- */
.mission-founder-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}
.mission-founder-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(42, 36, 32, 0.16); }
.mission-founder-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; display: block; }
.mission-founder-body { padding: 22px 24px; }
.mission-founder-body h3 { margin: 4px 0 10px; color: var(--maroon-dark); }
.mission-founder-body p { color: var(--muted); margin-bottom: 14px; }
.mission-founder-cta { color: var(--maroon); font-weight: 700; }
.mission-founder-card:hover .mission-founder-cta { color: var(--maroon-dark); text-decoration: underline; }

/* ---------- About: Four Core Objectives, horizontal bubbles ---------- */
.objectives-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.objective-bubble {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12% 14%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.objective-bubble:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--cream); }
.objective-bubble-icon { width: 34px; height: 34px; color: var(--gold-dark); margin-bottom: 10px; flex-shrink: 0; }
.objective-bubble p { margin: 0; font-weight: 600; color: var(--maroon-dark); font-size: 0.9rem; line-height: 1.35; }
@media (max-width: 900px) { .objectives-row { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 560px) {
  .objectives-row { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .objective-bubble { aspect-ratio: auto; border-radius: var(--radius); padding: 24px; }
}

/* ---------- Founder page: portrait frame ---------- */
.founder-portrait-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.founder-portrait-frame img { width: 100%; display: block; }
.founder-bio { max-width: 720px; margin: 0 auto; }
.founder-bio h2 { color: var(--maroon-dark); margin-top: 2em; }
.founder-bio h2:first-child { margin-top: 0; }
.founder-bio p { color: var(--muted); }

/* ---------- News detail: full-width hero image above full-width text ---------- */
.news-hero-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.news-hero-frame a {
  display: block;
  cursor: zoom-in;
}
.news-hero-frame a:hover img {
  opacity: 0.95;
  transition: opacity 0.2s ease;
}
.news-hero-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* ---------- Event detail: the optional Registration / Donation /
   Live Stream buttons. All three are optional, so this row holds
   anywhere from one to three buttons and has to wrap cleanly on a
   phone rather than pushing the column wider. Replaces the single
   inline-styled gold button this section used to have. ---------- */
.btn-row,
.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* ---------- News/event detail: additional-photos gallery ---------- */
.news-gallery-head { margin: 48px 0 20px; }
.news-gallery-head h3 { margin: 0; color: var(--maroon-dark); }
.news-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.news-gallery figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.news-gallery figure a {
  display: block;
  cursor: zoom-in;
}
.news-gallery figure a:hover img {
  opacity: 0.95;
  transition: opacity 0.2s ease;
}
.news-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.news-gallery figcaption { padding: 10px 14px 14px; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 900px) { .news-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news-gallery { grid-template-columns: 1fr; } }


/* ---------- Past events (js/event-expiry.js) ----------
   The script sets `hidden` on a finished event's row or carousel slide.
   `.event-row` and `.event-slide` are display:grid / display:flex, which
   both beat the UA stylesheet's `[hidden] { display: none }`, so the rule
   has to be restated here or a "hidden" row would still be visible. */
.event-row[hidden],
.event-slide[hidden] { display: none !important; }

/* Shown in place of the Special Events list only when every dated event
   on the page has finished — otherwise a visitor gets a bare heading over
   nothing at all. Kept hidden until the script decides it's needed. */
.events-empty {
  margin: 0;
  padding: 22px 24px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}


/* ---------- Linked cards (Education course grid) ----------
   The six Education cards on service.html now link to their own course
   pages. `.card` on its own carries no link styling — only
   a.card.news-card did — so this adds the same hover lift for a linked
   card without touching the plain .card used all over the site. */
a.card.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.card.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(42, 36, 32, 0.16);
}
a.card.link-card h4 { color: var(--maroon-dark); }
a.card.link-card .link-card-cue {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

a.card-flat.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.card-flat.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(42, 36, 32, 0.12);
  border-color: var(--gold);
}
a.card-flat.link-card h4 {
  color: var(--maroon-dark);
  margin-bottom: 0;
}
a.card-flat.link-card .link-card-cue {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Course pages: a compact definition list for schedule/fees/eligibility. */
.detail-list { margin: 0; }
.detail-list dt {
  font-weight: 700;
  color: var(--maroon-dark);
  margin-top: 14px;
}
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { margin: 4px 0 0; color: var(--muted); }


/* ---------- Library page: book recommendation covers ----------
   The six covers are photographs of real books and their aspect ratios
   range from 0.62 to 1.30 — five portrait and one landscape — so the
   frame letterboxes with `contain` on a soft ground instead of cropping
   them all to a single shape. */
.book-card .book-cover {
  height: 260px;
  margin: -4px 0 18px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.book-card .book-cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 560px) {
  .book-card .book-cover { height: 300px; }
}

/* ---------- Participate page & group photo cards ---------- */
.participate-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background-color: var(--slate-dark);
}
.participate-hero img.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 1;
}
.participate-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(35, 27, 20, 0.48) 0%, rgba(41, 44, 53, 0.88) 100%);
  z-index: 2;
}
.participate-hero .container {
  position: relative;
  z-index: 3;
  padding-top: 60px;
  padding-bottom: 60px;
  max-width: 900px;
}
.participate-hero h1 {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.participate-hero p.lede {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  line-height: 1.6;
}

.participate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.participate-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  text-decoration: none;
  border-bottom: 4px solid var(--robe-yellow);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-bottom-color 0.25s ease;
  background-color: var(--slate-dark);
}
.participate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  border-bottom-color: var(--primary-ochre);
}
.participate-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  z-index: 1;
}
.participate-card:hover .participate-card-img {
  transform: scale(1.05);
}
.participate-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(35, 38, 47, 0.45) 45%, rgba(25, 27, 33, 0.95) 100%);
  z-index: 2;
  transition: background 0.25s ease;
}
.participate-card:hover .participate-card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(35, 38, 47, 0.35) 40%, rgba(20, 22, 28, 0.97) 100%);
}
.participate-card-content {
  position: relative;
  z-index: 3;
  padding: 24px;
  color: #fff;
  text-align: left;
}
.participate-card-title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.participate-card-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 12px;
}
.participate-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--robe-yellow);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.participate-card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.participate-card:hover .participate-card-cta svg {
  transform: translateX(4px);
}

@media (max-width: 960px) {
  .participate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .participate-grid {
    grid-template-columns: 1fr;
  }
  .participate-card {
    min-height: 280px;
  }
}

/* Testimonial & Quote Cards */
.testimonial-card {
  max-width: 800px;
  margin: 40px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--maroon-dark);
  line-height: 1.6;
  margin: 0 0 16px;
}
.testimonial-author {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.testimonial-role {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Volunteer Feature Section & Horizontal Banner ---------- */
.volunteer-feature-section {
  padding: 36px 0 44px;
}
.volunteer-quote-after {
  max-width: 820px;
  margin: 30px auto 0;
  text-align: center;
  padding: 0 16px;
}
.volunteer-quote-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--maroon-dark);
  font-style: italic;
  margin: 0 0 8px;
}
.volunteer-quote-author {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.03em;
}
.volunteer-banner-card {
  position: relative;
  width: 100%;
  min-height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  background: #2a1f18;
}
.volunteer-banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
  z-index: 1;
}
.volunteer-banner-card:hover .volunteer-banner-img {
  transform: scale(1.02);
}
.volunteer-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 8, 4, 0.32) 0%, rgba(15, 8, 4, 0.12) 50%, rgba(15, 8, 4, 0.04) 100%);
  z-index: 2;
}
.volunteer-banner-content {
  position: relative;
  z-index: 3;
  margin: 36px 0 36px 40px;
  width: 33.333%;
  max-width: 370px;
  min-width: 290px;
  background: rgba(16, 10, 6, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 26px 26px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  color: #fff;
  text-align: left;
}
.volunteer-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(224, 199, 116, 0.22);
  border: 1px solid rgba(224, 199, 116, 0.6);
  color: var(--robe-yellow);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.volunteer-banner-title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.volunteer-banner-desc {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 20px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.volunteer-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.volunteer-banner-actions .btn {
  padding: 8px 16px;
  font-size: 0.86rem;
}
.volunteer-btn-outline {
  border-color: rgba(255, 255, 255, 0.85) !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}
.volunteer-btn-outline:hover {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: #fff !important;
}

@media (max-width: 860px) {
  .volunteer-banner-card {
    min-height: auto;
    padding: 24px;
  }
  .volunteer-banner-content {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 24px 20px;
  }
  .volunteer-banner-overlay {
    background: rgba(15, 8, 4, 0.35);
  }
}
@media (max-width: 560px) {
  .volunteer-banner-card {
    padding: 16px;
  }
  .volunteer-banner-content {
    padding: 20px 16px;
  }
  .volunteer-banner-title {
    font-size: 1.4rem;
  }
  .volunteer-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .volunteer-banner-actions .btn {
    text-align: center;
  }
}

/* Dharma Services Hub & Subpages */
.dharma-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.dharma-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--accent-sand);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(41, 44, 53, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-bottom-color 0.25s ease;
}
.dharma-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(41, 44, 53, 0.12);
  border-bottom-color: var(--primary-ochre);
}
.dharma-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--slate-dark);
}
.dharma-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.dharma-card:hover .dharma-card-media img {
  transform: scale(1.04);
}
.dharma-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.dharma-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.35;
}
.dharma-card-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-light);
  margin: 0 0 16px;
  flex-grow: 1;
}
.dharma-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: auto;
}
.dharma-card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.dharma-card:hover .dharma-card-cta {
  color: var(--gold-dark);
}
.dharma-card:hover .dharma-card-cta svg {
  transform: translateX(4px);
}

/* Subpage Hero Banner & Layout */
.dharma-subpage-hero {
  max-width: 900px;
  margin: 0 auto 36px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.dharma-subpage-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.dharma-article {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.dharma-article p {
  margin-bottom: 1.35em;
}
.dharma-article h2, .dharma-article h3, .dharma-article h4 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: var(--ink);
}
.dharma-article ul, .dharma-article ol {
  margin-bottom: 1.4em;
  padding-left: 1.5em;
}
.dharma-article li {
  margin-bottom: 0.5em;
}
.dharma-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 960px) {
  .dharma-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .dharma-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Page Location Cards */
.card.location-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.location-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--cream-deep);
}
.location-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.card.location-card:hover .location-card-media img {
  transform: scale(1.04);
}
.location-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.location-card-body h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.3rem;
  color: var(--maroon-dark);
}

/* Humanistic Buddhism Courses & Posters */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 24px;
}
@media (max-width: 640px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}
.course-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--robe-yellow);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-bottom-color 0.2s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(41, 44, 53, 0.14);
  border-bottom-color: var(--primary-ochre);
}
.course-card-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
}
.course-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.course-card:hover .course-card-poster img {
  transform: scale(1.03);
}
.course-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.course-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--primary-ochre-deep);
  align-self: flex-start;
  margin-bottom: 12px;
}
.course-card-badge.gold {
  background: var(--robe-yellow-soft);
  color: var(--primary-ochre-deep);
  border: 1px solid var(--robe-yellow-deep);
}
.course-card-badge.maroon {
  background: #f8eee1;
  color: var(--primary-ochre);
  border: 1px solid rgba(137, 97, 50, 0.35);
}
.course-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--maroon-dark);
  margin: 0 0 10px;
  line-height: 1.35;
}
.course-card-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 18px;
  flex-grow: 1;
}
.course-card-meta p {
  margin: 0 0 5px;
  color: inherit;
  font-size: inherit;
}
.course-card-meta strong {
  color: var(--ink);
}
.course-card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.course-card-actions .btn {
  width: 100%;
  justify-content: center;
}
.course-action-banner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(42, 36, 32, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.course-action-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.course-action-banner .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}



