/* ============================================================
   UGCC Our Lady of Zarvanycia — Custom CSS
   Mirrors the Tailwind CSS variables from src/index.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary:          hsl(220, 60%, 30%);   /* #1e3d7a dark navy */
  --primary-light:    hsl(220, 60%, 38%);
  --primary-dark:     hsl(220, 60%, 22%);
  --primary-10:       hsla(220, 60%, 30%, 0.10);
  --primary-50:       hsla(220, 60%, 30%, 0.50);
  --primary-70:       hsla(220, 60%, 30%, 0.70);
  --primary-90:       hsla(220, 60%, 30%, 0.90);
  --secondary:        hsl(45, 85%, 50%);    /* #ecb513 golden */
  --secondary-10:     hsla(45, 85%, 50%, 0.10);
  --foreground:       hsl(220, 20%, 20%);
  --muted:            hsl(220, 15%, 90%);
  --muted-30:         hsla(220, 15%, 90%, 0.30);
  --muted-fg:         hsl(220, 15%, 40%);
  --border:           hsl(220, 15%, 85%);
  --white-10:         rgba(255,255,255,0.10);
  --white-20:         rgba(255,255,255,0.20);
  --white-80:         rgba(255,255,255,0.80);
  --white-60:         rgba(255,255,255,0.60);
  --white-40:         rgba(255,255,255,0.40);
  --radius:           0.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.font-serif { font-family: 'Playfair Display', serif; }

/* ---- Layout ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
main { flex: 1; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all 0.2s; border: 2px solid transparent;
}
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--secondary); color: var(--primary-dark); }
.btn-secondary:hover { opacity: 0.9; }
.btn-outline-white { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); }
.card-body { padding: 1.5rem; }

/* ---- Animations (replaces Framer Motion) ---- */

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
main {
  animation: pageEnter 0.55s ease forwards;
}

/* Scroll-reveal: elements with .fade-up animate in when they enter the viewport */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ---- Nav ---- */
nav.site-nav {
  background: var(--primary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--white-80); object-fit: cover;
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text span { color: #fff; line-height: 1.2; }
.nav-logo-text .main { font-weight: 700; font-size: 0.8rem; }
.nav-logo-text .sub  { font-size: 0.7rem; color: var(--white-80); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  color: var(--white-80); text-decoration: none; font-size: 0.9rem;
  padding: 0.5rem 0.75rem; border-radius: var(--radius); transition: all 0.2s;
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: var(--white-10); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-dropdown:hover > a svg { transform: rotate(180deg); }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); overflow: hidden;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 0.6rem 1rem;
  color: var(--foreground); font-size: 0.875rem;
  border-radius: 0; background: none;
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--muted); color: var(--primary); }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

.nav-search-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid var(--white-20);
  background: var(--white-10);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.nav-search-btn:hover {
  background: var(--white-20);
  border-color: var(--white-40);
}

.nav-search-btn svg {
  width: 16px;
  height: 16px;
}

/* ---- Language toggle ---- */
.lang-toggle { display: flex; align-items: center; }
.lang-btn {
  background: var(--white-10); color: #fff; border: 1px solid var(--white-20);
  padding: 0.25rem 0.55rem; border-radius: 9999px; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: background 0.2s; letter-spacing: 0.03em;
}
.lang-btn:hover { background: var(--white-20); }
.lang-btn.active { background: var(--secondary); border-color: var(--secondary); color: var(--primary); }
.lang-sep { color: var(--white-30); font-size: 0.85rem; line-height: 1; }

.lang-btn-single {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 0.35rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--white-40);
  background: transparent;
  color: #fff;
}

.lang-btn-single:hover {
  background: var(--white-10);
}

/* Mobile lang in mobile menu */
.mobile-lang {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 2rem; border-top: 1px solid var(--white-10); margin-top: 0.5rem;
}
.mobile-lang .lang-btn { background: var(--white-10); border-color: var(--white-20); }
.mobile-lang .lang-btn.active { background: var(--secondary); border-color: var(--secondary); color: var(--primary); }
.mobile-lang .lang-btn-single {
  display: inline-flex;
  background: #fff;
  border-color: var(--primary-light);
  color: var(--primary);
}

.mobile-lang .lang-btn-single:hover {
  background: rgba(255,255,255,0.94);
}

/* Mobile hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* Mobile nav */
.mobile-menu {
  display: none; background: var(--primary-dark);
  padding: 1rem 0; border-top: 1px solid var(--white-10);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 0.75rem 2rem;
  color: var(--white-80); text-decoration: none; font-size: 0.95rem;
}
.mobile-menu a:hover { color: #fff; background: var(--white-10); }
.mobile-menu .mobile-section { padding: 0.5rem 2rem; color: var(--white-40); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.5rem; }

/* ---- Hero ---- */
.hero {
  position: relative; height: 600px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--primary-90), var(--primary-70), var(--primary-50));
}
.hero-content {
  position: relative; z-index: 10;
  text-align: center; color: #fff; padding: 0 1rem;
  max-width: 900px;
}
.hero-content h1 {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-family: 'Playfair Display', serif;
  font-weight: 700; margin-bottom: 1.25rem; line-height: 1.15;
}
.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 2rem; color: rgba(255,255,255,0.9);
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section-muted { background: var(--muted-30); }
.section-white { background: #fff; }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; color: var(--primary); margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}
.section-subtitle { font-size: 1.1rem; color: var(--muted-fg); }
.text-center { text-align: center; }

/* ---- Feature Cards Grid ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature-card { position: relative; cursor: pointer; }

/* Stretch inner anchor to cover the full card */
.stretched-link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: '';
}

.feature-card .icon-box {
  width: 48px; height: 48px; background: var(--primary-10);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-card .icon-box svg { width: 24px; height: 24px; color: var(--primary); stroke: var(--primary); }
.feature-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted-fg); margin-bottom: 1.25rem; font-size: 0.95rem; }

/* ---- Brotherhood / Sisterhood ---- */
.community-card {
  border-radius: 1rem; box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden; border: 1px solid var(--border); max-width: 960px; margin: 0 auto;
}
.community-split { display: grid; grid-template-columns: 1fr 1fr; }
.community-side {
  padding: 2.5rem; display: flex; flex-direction: column;
  background: var(--muted-30);
}
.community-side:first-child { border-right: 1px solid var(--border); }
.community-icon-box {
  width: 56px; height: 56px; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.community-icon-box.primary { background: var(--primary-10); }
.community-icon-box.secondary { background: var(--secondary-10); }
.community-icon-box svg { width: 28px; height: 28px; }
.community-icon-box.primary svg { stroke: var(--primary); }
.community-icon-box.secondary svg { stroke: var(--secondary); }
.community-side h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; font-family: 'Playfair Display', serif; }
.community-side p { color: var(--muted-fg); line-height: 1.7; font-size: 0.95rem; }
.community-cta { background: var(--primary-10); padding: 1.5rem; text-align: center; border-top: 1px solid var(--primary-10); }

/* ---- Schedule Section ---- */
.schedule-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; max-width: 1000px; margin: 0 auto; align-items: start; }
.schedule-panel {
  width: 100%;
}
.schedule-panel h3 { color: var(--primary); font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem; }
.schedule-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
.schedule-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: rgba(0,0,0,0.75); line-height: 1.4; }
.check-icon { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--secondary); margin-top: 1px; }
.schedule-note { font-size: 0.8rem; color: var(--muted-fg); font-style: italic; }
.calendar-embed { border-radius: 0.75rem; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.08); border: 1px solid var(--border); min-height: 420px; }
.calendar-embed iframe { display: block; }

/* ---- Footer ---- */
footer.site-footer { background: var(--primary); color: #fff; margin-top: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem; padding: 3rem 0 2rem;
}
.footer-brand .logo-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand .logo-row img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--white-20); object-fit: cover; }
.footer-brand .logo-text span { display: block; color: #fff; }
.footer-brand .logo-text .main { font-weight: 700; font-size: 0.8rem; }
.footer-brand .logo-text .sub { font-size: 0.7rem; color: var(--white-80); }
.footer-brand p { font-size: 0.875rem; color: var(--white-80); line-height: 1.7; max-width: 320px; margin-bottom: 1.5rem; }
.footer-col h4 { font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.footer-col ul li a { color: var(--white-80); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--white-80); margin-bottom: 0.75rem; }
.footer-contact-item a { color: var(--white-80); text-decoration: none; }
.footer-contact-item a:hover { text-decoration: underline; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white-10); display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; transition: background 0.2s;
}
.social-link:hover { background: var(--white-20); }
.social-link svg { width: 18px; height: 18px; display: block; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.875rem; color: var(--white-60); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links, .nav-right .lang-toggle, .nav-right .nav-search-btn { display: none; }
  .hamburger { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .community-split { grid-template-columns: 1fr; }
  .community-side:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .schedule-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { height: 480px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { height: 420px; }
  .container { padding: 0 1rem; }
}

/* ============================================================
   NEW PAGE COMPONENTS
   ============================================================ */

/* ---- Page Hero (simple gradient) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 5rem 0;
  text-align: center; color: #fff;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 1rem; font-family: 'Playfair Display', serif; }
.page-hero p  { font-size: 1.2rem; color: rgba(255,255,255,0.88); max-width: 600px; margin: 0 auto; }

/* ---- Page Hero with image background ---- */
.page-hero-image {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 420px; background-size: cover; background-position: center;
}
.page-hero-tall { min-height: 600px; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(26,54,93,0.80);
}
.page-hero-overlay.dark { background: rgba(0,0,0,0.62); }
.page-hero-content {
  position: relative; z-index: 2; text-align: center; color: #fff;
  padding: 3rem 1.5rem; max-width: 800px;
}
.page-hero-content h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; margin-bottom: 1rem; font-family: 'Playfair Display', serif; line-height: 1.2; }
.page-hero-content p  { font-size: 1.1rem; color: rgba(255,255,255,0.88); max-width: 620px; margin: 0 auto; }
.hero-icon-row {
  display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem;
}
.hero-icon-row svg { width: 2.25rem; height: 2.25rem; }
.hero-icon-single { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.hero-icon-single svg { width: 2.5rem; height: 2.5rem; }

/* ---- bg helpers ---- */
.bg-white { background: #fff; }
.bg-muted  { background: var(--muted-30); }

/* ---- Base card ---- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ---- Card interaction system ---- */
.card,
.card-bordered,
.org-card,
.purpose-card,
.donation-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.card:focus-within,
.card-bordered:hover,
.card-bordered:focus-within,
.org-card:hover,
.org-card:focus-within,
.purpose-card:hover,
.purpose-card:focus-within,
.donation-card:hover,
.donation-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: var(--primary-10);
}

.card-clickable {
  position: relative;
  cursor: pointer;
}

.card-clickable .btn {
  position: relative;
  z-index: 2;
}

/* ---- Card variants ---- */
.card-bordered {
  border: 2px solid var(--primary-10); border-radius: 0.75rem; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.card-header-primary {
  background: var(--primary-10); padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--primary-10);
}
.card-header-primary h2 { color: var(--primary); font-size: 1.4rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.card-body { padding: 1.75rem; }
.max-w-3xl { max-width: 760px; }
.max-w-4xl { max-width: 900px; }
.mx-auto    { margin-left: auto; margin-right: auto; }

/* ---- Intro text ---- */
.intro-text { font-size: 1.1rem; line-height: 1.8; color: var(--muted-fg); }

/* ---- Checklist ---- */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.checklist li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 1rem; line-height: 1.6;
}
.checklist li::before {
  content: '';
  display: block; flex-shrink: 0; margin-top: 4px;
  width: 20px; height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecb513' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.checklist-secondary li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecb513' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ---- Calendar note ---- */
.calendar-note {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem; padding: 0.875rem 1rem;
  background: var(--muted-30); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--muted-fg); font-style: italic;
}

/* ---- Cards grid ---- */
.cards-grid { display: grid; gap: 1.75rem; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card-centered { text-align: center; }
.card-centered.card { padding: 2rem 1.5rem; }

/* ---- Card icon ---- */
.card-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--primary-10);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.card-icon svg { width: 1.75rem; height: 1.75rem; stroke: var(--primary); }
.card-icon.secondary { background: var(--secondary-10); }
.card-icon.secondary svg { stroke: var(--secondary); }
.card-icon.amber  { background: rgba(245,158,11,0.12); } .card-icon.amber svg  { stroke: #b45309; }
.card-icon.blue   { background: rgba(59,130,246,0.12);  } .card-icon.blue svg   { stroke: #1d4ed8; }
.card-icon.rose   { background: rgba(244,63,94,0.12);   } .card-icon.rose svg   { stroke: #be123c; }
.card-icon.emerald{ background: rgba(16,185,129,0.12);  } .card-icon.emerald svg{ stroke: #047857; }
.card-icon.purple { background: rgba(139,92,246,0.12);  } .card-icon.purple svg { stroke: #6d28d9; }
.card-icon.accent { background: var(--secondary-10);    } .card-icon.accent svg { stroke: var(--secondary); }

.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p   { font-size: 0.925rem; color: var(--muted-fg); line-height: 1.6; }

/* ---- Section icon (large, above heading) ---- */
.section-icon {
  width: 4rem; height: 4rem; background: var(--primary-10); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.section-icon svg { width: 2rem; height: 2rem; stroke: var(--primary); }

/* ---- Two-col grid ---- */
.two-col-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}
.items-center { align-items: center; }
.gap-md { gap: 2rem; }

/* ---- Alert ---- */
.alert { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.25rem; border-radius: var(--radius); }
.alert svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-success svg { stroke: #16a34a; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-error svg { stroke: #dc2626; }

/* ---- Contact form ---- */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.9rem; font-weight: 600; }
.required { color: #dc2626; }
.optional  { color: var(--muted-fg); font-weight: 400; }
.form-group input,
.form-group textarea {
  padding: 0.6rem 0.875rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 0.95rem; font-family: inherit;
  color: var(--foreground); background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-outline { background: #fff; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-10); }

/* ---- Contact info col ---- */
.contact-info-col { display: flex; flex-direction: column; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.info-icon {
  width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: 50%;
  background: var(--primary-10); display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 1.25rem; height: 1.25rem; stroke: var(--primary); }
.info-icon.secondary { background: var(--secondary-10); }
.info-icon.secondary svg { stroke: var(--secondary); }
.info-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-fg); margin-bottom: 0.2rem; }
.info-value { font-size: 0.95rem; color: var(--foreground); line-height: 1.5; }
.info-value a { color: var(--primary); text-decoration: none; }
.info-value a:hover { text-decoration: underline; }
.service-times-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.service-times-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.service-times-list li svg { width: 1rem; height: 1rem; stroke: var(--primary); flex-shrink: 0; }
.map-embed { border-radius: 0.75rem; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.08); border: 1px solid var(--border); }

/* ---- CTA box ---- */
.cta-box { padding: 3rem 2rem; background: var(--primary-10); border-radius: 1rem; }
.cta-box h2 { font-size: 1.75rem; color: var(--primary); margin-bottom: 1rem; font-family: 'Playfair Display', serif; }
.cta-box p { color: var(--muted-fg); margin-bottom: 1.5rem; }

/* ---- Timeline ---- */
.timeline { position: relative; padding: 2rem 0; max-width: 860px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 3px; top: 0; bottom: 0;
  background: var(--secondary-10);
  border-radius: 2px;
}
.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
  width: 100%;
}
.timeline-item.timeline-right {
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--secondary-10);
}
.timeline-card {
  position: relative;
  background: #fff; border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 340px; width: 100%;
}
.timeline-year {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--secondary); font-weight: 700; margin-bottom: 0.5rem;
}
.timeline-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.timeline-card p  { font-size: 0.9rem; color: var(--muted-fg); line-height: 1.65; }
.timeline-side-year {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.05rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #be8f12;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.05;
}
.timeline-left .timeline-side-year {
  grid-column: 3;
  justify-self: start;
  text-align: left;
  padding-left: 0.5rem;
}
.timeline-right .timeline-side-year {
  grid-column: 1;
  justify-self: end;
  text-align: right;
  padding-right: 0.5rem;
}
.history-event-trigger {
  position: relative;
  z-index: 1;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.timeline-left .history-event-trigger {
  grid-column: 1;
  justify-self: end;
}
.timeline-right .history-event-trigger {
  grid-column: 3;
  justify-self: start;
}
.history-event-trigger:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* ---- Org cards (Brotherhood / Sisterhood) ---- */
.org-card {
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid var(--border); max-width: 900px; margin: 0 auto;
  background: #fff;
}
.org-card-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 2rem; border-bottom: 1px solid var(--border);
}
.org-card-header.primary { background: var(--primary-10); }
.org-card-header.secondary { background: var(--secondary-10); }
.org-card-header h2 { font-size: 1.75rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.org-card-header.primary h2 { color: var(--primary); }
.org-card-header.secondary h2 { color: #8a6000; }
.org-icon {
  background: var(--primary-10); padding: 0.75rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.org-icon svg { width: 2rem; height: 2rem; stroke: var(--primary); }
.org-icon.secondary { background: var(--secondary-10); }
.org-icon.secondary svg { stroke: var(--secondary); }
.org-card-body { padding: 2rem; display: flex; flex-direction: column; gap: 1.75rem; }
.org-mission { border-left: 4px solid var(--primary-10); padding-left: 1rem; }
.org-mission h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.org-mission p  { color: var(--muted-fg); line-height: 1.7; font-size: 1.05rem; }

/* ---- Donations ---- */
.donations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.donation-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: box-shadow 0.2s, transform 0.2s; padding: 1.75rem; }
.donation-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.12); transform: translateY(-3px); }
.donation-card-featured { border: 2px solid var(--primary); box-shadow: 0 8px 28px rgba(26,54,93,0.18); position: relative; }
.donation-badge { position: absolute; top: 0; right: 0; background: var(--primary); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.75rem; border-bottom-left-radius: 0.5rem; }
.donation-card-inner { flex: 1; display: flex; flex-direction: column; }
.donation-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.donation-card-header h2 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.donation-icon { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: var(--primary-10); border-radius: var(--radius); flex-shrink: 0; }
.donation-icon svg { width: 1.25rem; height: 1.25rem; stroke: var(--primary); }
.donation-icon.secondary { background: hsla(45,85%,50%,0.12); }
.donation-icon.secondary svg { stroke: hsl(45,85%,42%); }
.donation-icon.accent { background: hsla(340,70%,50%,0.10); }
.donation-icon.accent svg { stroke: hsl(340,70%,45%); }
.donation-card h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.donation-card p  { font-size: 0.9rem; color: var(--muted-fg); margin-bottom: 1rem; }
.qr-box { background: #fff; border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem; text-align: center; margin: 1rem 0; box-shadow: inset 0 1px 4px rgba(0,0,0,0.04); }
.qr-box img { width: 140px; height: 140px; object-fit: contain; }
.qr-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-fg); margin-top: 0.5rem; }
.fee-note { display: flex; align-items: flex-start; gap: 0.5rem; background: var(--muted-30); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.875rem 1rem; font-size: 0.875rem; color: var(--muted-fg); margin-top: 1rem; }

/* ---- Zelle page ---- */
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); text-decoration: none; font-weight: 600; margin-bottom: 2rem; }
.back-link:hover { text-decoration: underline; }
.back-link svg { width: 1.1rem; height: 1.1rem; }
.zelle-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.zelle-content { min-width: 0; }
.zelle-sidebar { position: sticky; top: 5rem; }
.zelle-qr-panel { border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.10); }
.zelle-qr-header { background: var(--primary); color: #fff; padding: 1.25rem 1.5rem; text-align: center; }
.zelle-qr-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; color: #fff; }
.zelle-qr-header p { font-size: 0.85rem; opacity: 0.85; margin: 0; }
.zelle-qr-body { background: #fff; padding: 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.zelle-qr-img { width: 180px; height: 180px; object-fit: contain; border: 1px dashed var(--border); border-radius: 0.5rem; padding: 0.5rem; }
.zelle-wordmark { font-size: 1.75rem; font-weight: 800; font-style: italic; color: #6d1ed4; letter-spacing: -0.02em; line-height: 1; }
.zelle-wordmark sup { font-size: 0.65rem; font-weight: 400; vertical-align: super; }
.zelle-pay-label { font-size: 0.85rem; font-weight: 700; color: #6d1ed4; letter-spacing: 0.04em; margin: 0; }
.zelle-details { display: flex; flex-direction: column; gap: 1rem; }
.zelle-detail-row { display: flex; align-items: baseline; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.zelle-detail-row:last-child { border-bottom: none; }
.zelle-label { font-weight: 700; white-space: nowrap; min-width: 140px; }
.zelle-value { font-size: 1.05rem; }
.zelle-value.highlight { color: var(--primary); font-weight: 700; font-size: 1.15rem; }
.zelle-value a { color: var(--primary); text-decoration: none; }
.zelle-value a:hover { text-decoration: underline; }
.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.purpose-card { background: var(--muted-30); border-radius: 0.75rem; padding: 1.25rem; border: 1px solid var(--border); }
.purpose-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.purpose-card p  { font-size: 0.9rem; color: var(--muted-fg); }
.badge { background: var(--primary-10); color: var(--primary); font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 9999px; font-weight: 600; vertical-align: middle; }

/* ---- School page ---- */
.section-title-left { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; margin-bottom: 0.75rem; }
.title-underline { width: 4rem; height: 4px; background: var(--secondary); border-radius: 2px; margin-bottom: 1.5rem; }
.title-underline.centered { margin-left: auto; margin-right: auto; }
.image-tilted-wrap { position: relative; }
.image-tilted-bg { position: absolute; inset: -1rem; background: var(--primary-10); border-radius: 1.5rem; transform: rotate(3deg); }
.image-tilted { position: relative; border-radius: 1rem; box-shadow: 0 12px 40px rgba(0,0,0,0.15); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.fade-in-left { opacity: 1; }
.teacher-card { text-align: center; padding: 2rem 1.5rem; }
.teacher-photo { width: 8rem; height: 8rem; border-radius: 50%; object-fit: cover; margin: 0 auto 1.25rem; display: block; border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.teacher-role { font-size: 0.875rem; color: var(--primary); font-weight: 600; margin-bottom: 0.4rem; }
.teacher-edu  { font-size: 0.8rem; color: var(--muted-fg); line-height: 1.5; }
.hover-lift { transition: transform 0.25s, box-shadow 0.25s; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.quote-box { background: var(--primary-10); border-left: 4px solid var(--primary); border-radius: 0 0.75rem 0.75rem 0; padding: 2rem; }
.quote-icon { width: 1.75rem; height: 1.75rem; fill: var(--primary); margin-bottom: 1rem; opacity: 0.5; }
.quote-box p { font-size: 1rem; color: var(--muted-fg); line-height: 1.75; font-style: italic; }

/* ---- Catechetical classes ---- */
.catechetical-card { overflow: visible; }
.catechetical-top-bar { height: 4px; width: 100%; margin-bottom: 0; }
.amber-bar   { background: #f59e0b; }
.blue-bar    { background: #3b82f6; }
.emerald-bar { background: #10b981; }

/* ---- Photo Gallery + Lightbox ---- */

/* Gallery grid — used on history, events, and any future page */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
}
.gallery-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); cursor: zoom-in;
  display: block;
  transition: transform 0.22s, box-shadow 0.22s;
}
.gallery-img:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

/* Gallery section heading */
.gallery-section { margin-bottom: 3rem; }
.gallery-section-title {
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}
.gallery-section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Lightbox overlay ── */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.93); cursor: pointer;
}

.lightbox-dialog {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 92vw; max-width: 1100px; max-height: 90vh;
  background: #0e0e0e; border-radius: 0.75rem; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}

/* Close button — fixed so it stays visible on mobile even when dialog overflows */
.lightbox-close {
  position: fixed; top: 0.75rem; right: 0.75rem; z-index: 2010;
  background: rgba(30,30,30,0.85); border: 1.5px solid rgba(255,255,255,0.25); color: #fff;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.lightbox-close:hover { background: rgba(60,60,60,0.95); }

.lightbox-meta {
  padding: 1.1rem 3.75rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow-y: auto;
}
.lightbox-meta[hidden] { display: none; }
.lightbox-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  font-family: 'Playfair Display', serif;
}
.lightbox-description {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}
.lightbox-meta-links {
  margin: 0.55rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.lightbox-meta-links a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}
.lightbox-meta-links a:hover { text-decoration: underline; }

.timeline-card-icon-links {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}
.timeline-card-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0.35rem;
}
.timeline-card-icon-link svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}
.timeline-card-icon-link:hover {
  color: var(--secondary);
  background: var(--primary-10);
}
.timeline-card-icon-link:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

/* Main image area */
.lightbox-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 200px; max-height: min(74vh, 74svh); padding: 1rem 3.75rem;
  overflow: hidden;
}
.lightbox-img-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 100%; max-height: 100%;
  overflow: hidden;
}
.lightbox-img {
  max-width: calc(100vw - 9rem); max-height: min(70vh, 70svh); object-fit: contain;
  object-position: center;
  border-radius: 3px; display: block; margin: 0 auto;
  transition: opacity 0.22s ease;
  width: auto; height: auto;
}
.lightbox-img.fading { opacity: 0; }

/* Prev / Next buttons */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s; z-index: 2;
}
.lightbox-nav:hover:not(:disabled) { background: rgba(255,255,255,0.28); }
.lightbox-nav:disabled { opacity: 0.2; cursor: default; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

/* Footer: caption + counter + thumbnails */
.lightbox-footer {
  padding: 0.6rem 1rem 0.9rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  background: rgba(0,0,0,0.5);
}
.lightbox-info {
  display: flex; gap: 1rem; align-items: center;
  width: 100%; justify-content: center;
}
.lightbox-caption {
  color: rgba(255,255,255,0.82); font-size: 0.88rem;
  text-align: center; flex: 1; margin: 0;
}
.lightbox-counter {
  color: rgba(255,255,255,0.42); font-size: 0.78rem;
  white-space: nowrap; margin: 0; flex-shrink: 0;
}

/* Thumbnail strip */
.lightbox-thumbs {
  display: flex; gap: 0.35rem; overflow-x: auto; padding-bottom: 2px;
  max-width: 100%;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.lightbox-thumbs::-webkit-scrollbar { height: 4px; }
.lightbox-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.lightbox-thumb {
  flex-shrink: 0; width: 60px; height: 44px; cursor: pointer;
  border-radius: 3px; overflow: hidden; opacity: 0.45;
  border: 2px solid transparent;
  transition: opacity 0.18s, border-color 0.18s;
  background: none; padding: 0;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-thumb.active, .lightbox-thumb:hover { opacity: 1; border-color: var(--secondary); }

@media (max-width: 600px) {
  /* Align dialog to top so close button is always reachable */
  .lightbox { align-items: flex-start; padding-top: 0.5rem; }
  .lightbox-dialog { max-height: 98vh; border-radius: 0.5rem; overflow-y: auto; }
  .lightbox-meta { padding: 1rem 1rem 0.5rem; max-height: 35vh; overflow-y: auto; }
  .lightbox-main { padding: 0.5rem 1.5rem; min-height: 140px; max-height: min(52vh, 52svh); }
  .lightbox-img { max-width: calc(100vw - 3rem); max-height: min(48vh, 48svh); }
  .lightbox-footer { padding: 0.5rem 0.75rem 0.75rem; }
  .lightbox-thumb { width: 48px; height: 36px; }
  .photo-gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
.purple-bar  { background: #8b5cf6; }
.rose-bar    { background: #f43f5e; }
.age-badge {
  display: inline-block; padding: 0.2rem 0.75rem;
  background: var(--muted-30); border-radius: 9999px;
  font-size: 0.8rem; font-weight: 600; color: var(--muted-fg);
  margin-bottom: 0.75rem;
}
.info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.info-list-item { display: flex; align-items: flex-start; gap: 0.875rem; }
.info-list-item svg { width: 1.25rem; height: 1.25rem; stroke: var(--primary); flex-shrink: 0; margin-top: 2px; }
.info-list-item p { font-size: 0.95rem; color: var(--muted-fg); line-height: 1.65; }

/* ---- References page ---- */
.references-section { margin-bottom: 3.5rem; }
.references-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border); }
.references-header svg { width: 1.4rem; height: 1.4rem; stroke: var(--primary); }
.references-header h2 { font-size: 1.5rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.references-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.reference-card {
  display: block; text-decoration: none; padding: 1.25rem 1.5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 0.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.reference-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); border-color: var(--primary-10); }
.reference-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.reference-card-top h3 { font-size: 1rem; font-weight: 700; color: var(--primary); line-height: 1.3; }
.reference-card p   { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }
.ref-ext-icon { width: 1rem; height: 1rem; stroke: var(--muted-fg); flex-shrink: 0; margin-top: 2px; transition: stroke 0.2s; }
.reference-card:hover .ref-ext-icon { stroke: var(--primary); }

/* ---- Responsive additions ---- */
@media (max-width: 900px) {
  .two-col-grid  { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item {
    grid-template-columns: 1fr;
    width: 100%;
    padding-right: 0;
    padding-left: 3rem;
    justify-content: flex-start;
    column-gap: 0;
    row-gap: 0.5rem;
  }
  .timeline-item.timeline-right {
    grid-template-columns: 1fr;
    margin-left: 0;
    padding-left: 3rem;
  }
  .timeline-dot  { right: auto; left: 10px; }
  .timeline-right .timeline-dot { left: 10px; }
  .timeline-card { max-width: 100%; }
  .timeline-left .history-event-trigger,
  .timeline-right .history-event-trigger,
  .timeline-left .history-clergy-static-card,
  .timeline-right .history-clergy-static-card {
    grid-column: 1;
    justify-self: stretch;
  }
  .timeline-side-year {
    position: static;
    margin-bottom: 0.5rem;
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    text-align: left;
    justify-self: start;
  }
  .timeline-left .timeline-side-year,
  .timeline-right .timeline-side-year {
    grid-column: 1;
    left: auto;
    right: auto;
  }
  .purpose-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-row      { grid-template-columns: 1fr; }
  .donations-grid{ grid-template-columns: 1fr; }
  .cards-4       { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .zelle-layout  { grid-template-columns: 1fr; }
  .zelle-sidebar { position: static; order: -1; }
  .zelle-qr-img  { width: 140px; height: 140px; }
  .zelle-detail-row { flex-direction: column; gap: 0.25rem; }
  .zelle-label   { min-width: auto; }
}

/* ---- Post Pages ---- */
.page-hero-image {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero-image__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}
.page-hero-image__content {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2.5rem;
  color: #fff;
}
.page-hero-image__content h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin: 0.25rem 0 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.post-meta {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0;
}
.post-layout {
  max-width: 780px;
}
.post-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.post-body p a {
  color: var(--primary);
  text-decoration: underline;
}
.post-quote {
  border-left: 4px solid var(--secondary);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--bg-muted, #f8f7f4);
  border-radius: 0 0.5rem 0.5rem 0;
}
.post-quote p {
  font-style: italic;
  margin: 0 0 0.5rem;
}
.post-quote cite {
  font-size: 0.875rem;
  color: var(--muted-fg, #666);
}
.post-quote cite a {
  color: var(--primary);
}
.post-byline {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted-fg, #666);
  border-top: 1px solid var(--border, #e5e7eb);
  padding-top: 1rem;
}

/* ---- Post Pages ---- */
.page-hero-image {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero-image__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}
.page-hero-image__content {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2.5rem;
  color: #fff;
}
.page-hero-image__content h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin: 0.25rem 0 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.post-meta {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0;
}
.post-layout {
  max-width: 780px;
}
.post-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.post-body p a {
  color: var(--primary);
  text-decoration: underline;
}
.post-quote {
  border-left: 4px solid var(--secondary);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--bg-muted, #f8f7f4);
  border-radius: 0 0.5rem 0.5rem 0;
}
.post-quote p {
  font-style: italic;
  margin: 0 0 0.5rem;
}
.post-quote cite {
  font-size: 0.875rem;
  color: var(--muted-fg, #666);
}
.post-quote cite a {
  color: var(--primary);
}
.post-byline {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted-fg, #666);
  border-top: 1px solid var(--border, #e5e7eb);
  padding-top: 1rem;
}

/* ---- Event Cards & Filters ---- */

/* Filter bar */
.events-filters {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.events-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border: 2px solid var(--border);
  border-radius: 2rem;
  background: #fff;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.year-select {
  padding: 0.4rem 2rem 0.4rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: 2rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  transition: border-color 0.18s;
  margin-left: auto;
}
.year-select:focus, .year-select:hover { border-color: var(--primary); outline: none; }

/* Events grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.events-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.home-events-toolbar {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-events-toolbar__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.home-events-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.home-events-toggle__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted-fg);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  /* button reset */
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.home-events-toggle__link:hover {
  color: var(--primary);
  background: var(--primary-10);
}

.home-events-toggle__link.is-active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(30, 61, 122, 0.2);
}

/* Events page compact controls */
.events-controls {
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.events-controls .home-events-toolbar {
  margin-top: 0;
  gap: 0.45rem;
}

.events-controls .home-events-toolbar__label {
  font-size: 0.74rem;
}

.events-controls .home-events-toggle {
  padding: 0.14rem;
  box-shadow: none;
}

.events-controls .home-events-toggle__link {
  padding: 0.34rem 0.72rem;
  font-size: 0.8rem;
}

.events-controls__group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.events-controls .filter-btn {
  padding: 0.3rem 0.82rem;
  font-size: 0.82rem;
}

.year-select--compact {
  margin-left: 0;
  min-width: 128px;
  padding: 0.3rem 1.85rem 0.3rem 0.72rem;
  font-size: 0.82rem;
}

/* Event card */
.event-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
.event-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--muted);
}
.event-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.event-card:hover .event-card__thumb img {
  transform: scale(1.04);
}
.event-card__badges {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge--past     { background: rgba(0,0,0,0.55); color: #fff; }
.badge--upcoming { background: var(--secondary); color: #1a1a1a; }
.badge--type     { background: var(--primary-90); color: #fff; }
.event-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.event-card__date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
  margin: 0;
}
.event-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.35;
  margin: 0;
}
.event-card__excerpt {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
}.events-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted-fg);
  font-size: 1rem;
}

/* ---- Service Schedule Card Component ---- */
.service-schedule-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.service-schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.service-schedule-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  flex: 1;
}

.service-schedule-header .btn-link {
  padding: 0.4rem;
  background: transparent;
  color: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 50%;
  transition: all 0.2s;
}

.service-schedule-header .btn-link:hover {
  background: var(--primary-10);
  color: var(--primary-dark);
}

/* ---- Search Result Highlight ---- */
.search-result-query {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.82rem;
  color: var(--muted-fg);
}

.search-result-snippet {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--muted-30);
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.55rem 0.65rem;
}

.search-result-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.search-result-link:hover {
  color: var(--primary-dark);
}

.search-result-link svg {
  width: 16px;
  height: 16px;
}

.search-hit {
  background: var(--secondary-10);
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: 0.2rem;
  padding: 0 0.15rem;
}

@media (max-width: 768px) {
  .events-grid,
  .events-grid--home { grid-template-columns: 1fr; }
  .year-select        { margin-left: 0; }
  .home-events-toolbar { width: 100%; }
  .events-controls { margin-bottom: 1.2rem; }
}
@media (max-width: 480px) {
  .filter-btn { font-size: 0.8rem; padding: 0.35rem 0.8rem; }
  .home-events-toggle { width: 100%; justify-content: center; }
  .home-events-toggle__link { flex: 1; }
  .events-controls .home-events-toolbar { gap: 0.35rem; }
  .events-controls .home-events-toolbar__label { width: 100%; }
  .events-controls .home-events-toggle { width: auto; }
  .events-controls .home-events-toggle__link { flex: initial; }
}

/* ---- Post Inline Image Layouts ---- */

/* Multi-photo grid inserted between paragraphs */
.post-inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin: 1.75rem 0;
}
.post-inline-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}
.post-inline-grid img:hover { opacity: 0.88; }

/* Single photo floated right, text wraps left */
.post-img-right {
  float: right;
  margin: 0 0 1.25rem 1.75rem;
  max-width: 320px;
  width: 42%;
}
/* Single photo floated left, text wraps right */
.post-img-left {
  float: left;
  margin: 0 1.75rem 1.25rem 0;
  max-width: 320px;
  width: 42%;
}
.post-img-right img,
.post-img-left img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: var(--radius);
  display: block;
  cursor: pointer;
}
.post-img-right figcaption,
.post-img-left figcaption {
  font-size: 0.78rem;
  color: var(--muted-fg);
  text-align: center;
  margin-top: 0.3rem;
}
.post-clearfix::after {
  content: '';
  display: table;
  clear: both;
}
@media (max-width: 640px) {
  .post-img-right,
  .post-img-left {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 1.25rem 0;
  }
  .post-inline-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .post-inline-grid img { height: 120px; }
}

/* ---- Bulletin Cards & Filters ---- */

/* Year filter row */
.bulletin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* Bulletin grid: responsive rows */
.bulletin-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Bulletin card: horizontal row layout */
.bulletin-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.bulletin-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background: var(--primary-10);
}
.bulletin-card--latest {
  border-color: var(--secondary);
  background: hsla(45, 85%, 50%, 0.06);
}
.bulletin-card--latest:hover {
  border-color: var(--primary);
  background: var(--primary-10);
}

.bulletin-card__icon {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-10);
  border-radius: var(--radius);
  color: var(--primary);
}
.bulletin-card__new {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--secondary);
  color: #1a1a1a;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 2rem;
  white-space: nowrap;
}
.bulletin-card__body {
  flex: 1;
  min-width: 0;
}
.bulletin-card__date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
  margin: 0 0 0.2rem;
}
.bulletin-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bulletin-card__action {
  flex-shrink: 0;
}

/* btn-sm helper */
.btn-sm {
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  gap: 0.35rem;
}
.btn-sm svg { flex-shrink: 0; }

/* ---- Latest Bulletin banner on home page ---- */
.bulletin-banner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.9rem 1.25rem;
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius);
  background: hsla(45, 85%, 50%, 0.07);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.bulletin-banner:hover {
  border-color: var(--primary);
  background: var(--primary-10);
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}
.bulletin-banner__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-10);
  border-radius: var(--radius);
  color: var(--primary);
}
.bulletin-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.bulletin-banner__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--muted-fg);
}
.bulletin-banner__title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bulletin-banner__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.bulletin-banner:hover .bulletin-banner__cta {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 600px) {
  .bulletin-card { flex-wrap: wrap; gap: 0.75rem; }
  .bulletin-card__action { width: 100%; }
  .bulletin-banner__cta { display: none; }
  .bulletin-banner__title { white-space: normal; }
}

/* ---- Bulletin Cards & Filters ---- */

/* Year filter row */
.bulletin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* Bulletin grid: responsive rows */
.bulletin-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Bulletin card: horizontal row layout */
.bulletin-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.bulletin-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background: var(--primary-10);
}
.bulletin-card--latest {
  border-color: var(--secondary);
  background: hsla(45, 85%, 50%, 0.06);
}
.bulletin-card--latest:hover {
  border-color: var(--primary);
  background: var(--primary-10);
}

.bulletin-card__icon {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-10);
  border-radius: var(--radius);
  color: var(--primary);
}
.bulletin-card__new {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--secondary);
  color: #1a1a1a;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 2rem;
  white-space: nowrap;
}
.bulletin-card__body {
  flex: 1;
  min-width: 0;
}
.bulletin-card__date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
  margin: 0 0 0.2rem;
}
.bulletin-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bulletin-card__action {
  flex-shrink: 0;
}

/* btn-sm helper */
.btn-sm {
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  gap: 0.35rem;
}
.btn-sm svg { flex-shrink: 0; }

/* ---- Latest Bulletin banner on home page ---- */
.bulletin-banner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.9rem 1.25rem;
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius);
  background: hsla(45, 85%, 50%, 0.07);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.bulletin-banner:hover {
  border-color: var(--primary);
  background: var(--primary-10);
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}
.bulletin-banner__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-10);
  border-radius: var(--radius);
  color: var(--primary);
}
.bulletin-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.bulletin-banner__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--muted-fg);
}
.bulletin-banner__title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bulletin-banner__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.bulletin-banner:hover .bulletin-banner__cta {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 600px) {
  .bulletin-card { flex-wrap: wrap; gap: 0.75rem; }
  .bulletin-card__action { width: 100%; }
  .bulletin-banner__cta { display: none; }
  .bulletin-banner__title { white-space: normal; }
}

/* ---- History Page Enhancements ---- */

/* Era quick-jump nav bar */
.timeline-era-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.timeline-era-btn {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 9999px;
  padding: 0.35rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted-fg);
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.timeline-era-btn:hover {
  border-color: var(--secondary);
  color: var(--primary);
  background: var(--secondary-10);
}

/* Allow anchor links to respect sticky nav */

/* ---- Call-to-Action Section (Stay Connected) ---- */
.cta-card {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cta-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.cta-card a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-card a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Social media links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.social-link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
  stroke: none;
}

@media (max-width: 768px) {
  .cta-card {
    padding: 2rem 1.5rem;
  }
  
  .cta-card h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .social-link {
    width: 2.2rem;
    height: 2.2rem;
  }
  
  .social-link svg {
    width: 1rem;
    height: 1rem;
  }
}
.timeline-item { scroll-margin-top: 5rem; }
.gallery-section { scroll-margin-top: 5rem; }

/* Thumbnail image at top of each timeline card */
.timeline-thumb-wrap {
  margin: -1.5rem -1.5rem 1.25rem;
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
  line-height: 0;
}
.timeline-card-thumb {
  width: 100%;
  height: 165px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.timeline-card:hover .timeline-card-thumb { transform: scale(1.04); }

.timeline-thumb-wrap-empty {
  line-height: normal;
  background: var(--muted-30);
  border-bottom: 1px solid var(--border);
}

.timeline-card-thumb-placeholder {
  min-height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.9rem;
}

/* ---- Post Breadcrumb Navigation ---- */
.post-breadcrumb {
  color: var(--muted-fg);
}

.post-breadcrumb__link {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
  border-bottom: 1px solid transparent;
}

.post-breadcrumb__link:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}
  padding: 1rem;
}

.history-clergy-static-card {
  cursor: default;
}

.timeline-left .history-clergy-static-card {
  grid-column: 1;
  justify-self: end;
}

.timeline-right .history-clergy-static-card {
  grid-column: 3;
  justify-self: start;
}

@media (max-width: 900px) {
  .timeline-left .history-event-trigger,
  .timeline-right .history-event-trigger,
  .timeline-left .history-clergy-static-card,
  .timeline-right .history-clergy-static-card {
    grid-column: 1;
    justify-self: stretch;
  }
}

/* "View Photos" anchor button on timeline cards */
.timeline-view-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 0.32rem 0.85rem;
  border: 1.5px solid var(--primary-10);
  border-radius: 9999px;
  background: var(--primary-10);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.timeline-view-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.timeline-view-link svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; }

.history-event-note {
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.95rem;
}

/* "Open sub-page" link on timeline cards (when a detail page exists) */
.timeline-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted-fg);
  text-decoration: none;
  padding: 0.32rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.timeline-detail-link:hover {
  background: var(--muted-30);
  border-color: var(--muted-fg);
  color: var(--primary);
}
.timeline-detail-link svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; }

/* ---- History Event Sub-Page ---- */
.history-event-gallery { max-width: 900px; margin: 0 auto; }
.history-event-gallery .photo-gallery {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Hero eyebrow year pill */
.page-hero-image__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .timeline-card-thumb { height: 130px; }
  .timeline-era-nav { gap: 0.35rem; }
  .timeline-era-btn { font-size: 0.75rem; padding: 0.3rem 0.85rem; }
  .lightbox-meta { padding: 1rem 3rem 0.5rem; }
}

/* ---- Home Social Feed ---- */
.social-feed-card {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.social-feed-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, var(--muted-30) 100%);
}

.social-feed-card__header h3 {
  margin: 0;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

.social-feed-card__links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-feed-embed {
  background: var(--muted);
}

.social-feed-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}

@media (max-width: 768px) {
  .social-feed-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-feed-embed iframe {
    height: 820px;
  }
}

