/* ============================================
   KCANA — Golden Jubilee site stylesheet
   ============================================ */

:root {
  --maroon: #7a0f24;
  --maroon-dark: #5c0b1b;
  --maroon-light: #9c1730;
  --gold: #b8892f;
  --gold-light: #e8d9a8;
  --cream: #faf6ee;
  --cream-alt: #f3ece0;
  --footer-bg: #ece5d8;
  --green: #2f5d3a;
  --green-dark: #244a2d;
  --text-dark: #2b2320;
  --text-muted: #6b625a;
  --border: #e3dbc9;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(43, 35, 32, 0.08);
  --shadow-lg: 0 12px 40px rgba(43, 35, 32, 0.16);
  --brand-gradient: linear-gradient(135deg, var(--maroon-dark), var(--maroon) 55%, var(--gold));
}

/* Used wherever a photo hasn't been uploaded yet (hero banners, event/office
   bearer/news photos) so the site never shows a blank box or broken image —
   it always looks like a deliberate branded design until a real photo
   replaces it. */
img { background: var(--brand-gradient); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

em, .accent-italic { color: var(--maroon); font-style: italic; }

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

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

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

.icon { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; flex-shrink: 0; }

.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-up { transform: translateY(24px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-fade { transform: none; }
.reveal-up.in-view, .reveal-left.in-view, .reveal-right.in-view, .reveal-fade.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-left, .reveal-right, .reveal-fade { opacity: 1; transform: none; transition: none; }
}

/* Page load — a gentle fade-in so every page arrives smoothly instead of popping in */
body { animation: pageFadeIn 0.2s ease; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform 0.15s ease;
  animation: whatsappPulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); animation-play-state: paused; }
.whatsapp-float .icon { width: 30px; height: 30px; }
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 10px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* Floating quick-links side rail — tucked mostly off the right edge, showing
   only a small tab until hovered/tapped, then slides out to reveal icons
   with their labels. Retracts again automatically once you're done with it. */
.quick-rail-wrap {
  position: fixed; top: 50%; right: 0; transform: translateY(-50%);
  z-index: 200; display: flex; flex-direction: row-reverse; align-items: stretch;
}
.quick-rail-tab {
  width: 34px; height: 64px; flex-shrink: 0; background: var(--maroon); color: var(--white);
  border: none; border-radius: 12px 0 0 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: -2px 0 12px rgba(0,0,0,0.18);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.quick-rail-tab .icon { width: 18px; height: 18px; }
.quick-rail-tab.tab-hidden { display: none; }
.quick-rail-icons {
  max-width: 0; overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-lg); border-radius: var(--radius) 0 0 var(--radius);
  display: flex; flex-direction: column;
  transition: max-width 0.3s ease;
}
.quick-rail-icons.open { max-width: 96px; }
.quick-rail-icons a, .quick-rail-icons button {
  width: 92px; min-height: 66px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--maroon); text-align: center; padding: 8px 6px;
  border: none; background: none; font: inherit; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.quick-rail-icons a:hover, .quick-rail-icons button:hover { background: var(--cream-alt); }
.quick-rail-icons a .icon, .quick-rail-icons button .icon { width: 22px; height: 22px; flex-shrink: 0; }
.quick-rail-icons a span, .quick-rail-icons button span { font-size: 0.68rem; font-weight: 700; line-height: 1.2; color: var(--text-dark); }
@media (max-width: 480px) {
  .quick-rail-tab { width: 24px; height: 54px; }
  .quick-rail-icons a, .quick-rail-icons button { width: 78px; min-height: 58px; }
  .quick-rail-icons.open { max-width: 82px; }
  .quick-rail-icons a span, .quick-rail-icons button span { font-size: 0.62rem; }
}
@media (prefers-reduced-motion: reduce) {
  .quick-rail-icons { transition: none; }
}

/* Event calendar popup */
.calendar-modal-overlay {
  position: fixed; inset: 0; background: rgba(20,15,13,0.6); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.calendar-modal-overlay.open { display: flex; }
.calendar-modal {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 420px; padding: 24px; position: relative; max-height: 90vh; overflow-y: auto;
}
.calendar-modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 1.6rem; cursor: pointer; color: var(--text-muted); line-height: 1;
}
.calendar-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-modal-header button {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--cream-alt);
  cursor: pointer; font-size: 1.2rem; color: var(--maroon); flex-shrink: 0;
}
.calendar-modal-header h3 { font-size: 1.05rem; margin: 0; }
.calendar-grid-header, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-grid-header span { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; padding-bottom: 6px; }
.calendar-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 0.85rem; color: var(--text-dark);
}
.calendar-day.has-event {
  background: var(--brand-gradient); color: var(--white); font-weight: 700; cursor: pointer;
  animation: calDayPulse 2s ease-in-out infinite;
}
.calendar-day.has-event:hover { transform: scale(1.08); }
.calendar-day.empty { visibility: hidden; }
@keyframes calDayPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(122,15,36,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(122,15,36,0); }
}
.calendar-day-events { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.calendar-day-events a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; color: var(--maroon); }
.calendar-day-events a:hover { background: var(--cream-alt); }
@media (prefers-reduced-motion: reduce) {
  .calendar-day.has-event { animation: none; }
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  background: #000;
}
.video-embed-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-embed-wrap .video-link-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--brand-gradient);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.section { padding: 72px 0; }
.section-alt { background: var(--cream-alt); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); display: inline-block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: var(--maroon-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--text-dark); border-color: var(--border); }
.btn-outline:hover { border-color: var(--maroon); color: var(--maroon); }
.btn-ghost { background: var(--cream-alt); color: var(--text-dark); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand-text .brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--maroon);
  letter-spacing: 0.02em;
}
.brand-text .brand-tagline { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.03em; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--maroon); border-color: var(--maroon); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--maroon); }

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: var(--brand-gradient);
  background-color: var(--maroon-dark);
  background-size: cover;
  background-position: center;
  color: var(--white);
}
/* A separate, always-present darkening layer — sits on top of whatever photo
   is set inline, so an uploaded hero photo can never wash out the white
   heading text on top of it (this was the actual bug: previously the dark
   tint lived inside the same background-image value that the photo replaced). */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 12, 10, 0.55), rgba(30, 12, 10, 0.75));
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 0 24px; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw + 1rem, 3rem); color: var(--white); }
.hero h1 em { color: var(--gold-light); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Hero entrance — badge, heading, copy and buttons ease in on page load */
.hero-content > * { animation: heroFadeUp 0.4s ease both; }
.hero-content > *:nth-child(1) { animation-delay: 0.03s; }
.hero-content > *:nth-child(2) { animation-delay: 0.08s; }
.hero-content > *:nth-child(3) { animation-delay: 0.13s; }
.hero-content > *:nth-child(4) { animation-delay: 0.18s; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-content > * { animation: none; }
}
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.5); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Quick links row */
.quick-links {
  max-width: 1200px;
  margin: -56px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.quick-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.quick-card .icon { transition: transform 0.25s ease; }
.quick-card:hover .icon { transform: scale(1.15); }
.quick-card.grad-maroon { background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: var(--white); justify-content: space-between; }
.quick-card.grad-gold { background: linear-gradient(135deg, var(--gold), #8a6a24); color: var(--white); justify-content: space-between; }
.quick-card.grad-green { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: var(--white); justify-content: space-between; }
.quick-card.grad-rose { background: linear-gradient(135deg, var(--maroon-light), var(--gold)); color: var(--white); justify-content: space-between; }
.quick-card .icon { font-size: 1.3rem; margin-bottom: 8px; }
.quick-card strong, .quick-card .card-title { position: relative; font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.quick-card .card-link { position: relative; font-size: 0.82rem; opacity: 0.9; margin-top: 4px; }
.quick-card p { color: rgba(255,255,255,0.85); font-size: 0.85rem; margin: 6px 0 0; }

/* Two column feature (About / Journey section) */
.feature-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.feature-split.ratio-wide { grid-template-columns: 1fr 1.2fr; }
.feature-split > * { min-width: 0; }
.feature-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-images img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-images .tall { grid-column: 1 / 2; grid-row: 1 / 3; }
.stat-row { display: flex; gap: 40px; margin: 24px 0; }
.stat-row .stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--maroon); font-weight: 700; }
.stat-row .stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

/* Section header (centered) */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { justify-content: center; }
.section-head.left { text-align: left; margin: 0 0 40px; }
.section-head.left .eyebrow { justify-content: flex-start; }

/* Cards grid generic */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-3-sparse { grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); justify-content: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* Event cards */
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.event-card .event-media { position: relative; height: 200px; background: var(--brand-gradient); background-size: cover; background-position: center; }
.event-card .status-tag {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.92); color: var(--text-dark);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.status-tag.upcoming { background: var(--gold-light); color: #6b5119; }
.status-tag.jubilee { background: var(--gold); color: var(--white); }
.event-card .event-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.event-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.event-card .event-meta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  border-top: 1px solid var(--border); margin-top: 16px; padding-top: 14px;
  font-size: 0.82rem; color: var(--text-muted);
}
.event-time-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.recurrence-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--cream-alt); color: var(--text-muted);
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.recurrence-tag .icon { width: 0.9em; height: 0.9em; }
.event-date-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--white); font-weight: 700; font-size: 0.8rem;
  padding: 7px 14px; border-radius: 999px;
  animation: eventPillPulse 2.4s ease-in-out infinite;
}
.event-date-pill .icon { width: 1em; height: 1em; }
@keyframes eventPillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(122,15,36,0.45); }
  50% { box-shadow: 0 0 0 7px rgba(122,15,36,0); }
}
@media (prefers-reduced-motion: reduce) {
  .event-date-pill { animation: none; }
}
.event-card .btn { margin-top: 14px; }

/* Gallery */
.gallery-filter-bar { display: flex; justify-content: center; margin: 28px 0 40px; }
.gallery-filter-select {
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--white); font-size: 0.9rem; font-weight: 600; cursor: pointer;
  min-width: 220px; color: var(--text-dark);
}
.report-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.report-title a { font-weight: 700; font-size: 1.02rem; color: var(--text-dark); }
.report-title a:hover { color: var(--maroon); }
.report-date { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.report-date .icon { width: 0.9em; height: 0.9em; }

.load-more-hidden { display: none; }
.load-more-wrap { text-align: center; margin-top: 24px; }
.gallery-event-group { margin-bottom: 32px; }
.gallery-event-label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--maroon);
  margin-bottom: 12px; font-size: 0.98rem;
}
.gallery-event-label:hover { text-decoration: underline; }
.gallery-event-label .icon { width: 1.05em; height: 1.05em; }
.gallery-grid {
  column-count: 4;
  column-gap: 16px;
}
.gallery-grid .g-item {
  border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow);
  break-inside: avoid;
  margin-bottom: 16px;
  transition: box-shadow 0.3s ease;
}
.gallery-grid .g-item:hover { box-shadow: var(--shadow-lg); }
.gallery-grid .g-item img { width: 100%; height: auto; max-height: 360px; min-height: 140px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .gallery-grid .g-item img { transition: none; }
  .gallery-grid .g-item:hover img { transform: none; }
}

/* Office bearers */
.exec-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.exec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.exec-card .card-photo { width: 100%; height: 280px; background: var(--brand-gradient); }
.exec-card .card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.exec-card .avatar-placeholder.exec-avatar {
  width: 100%; height: 100%; border-radius: 0; border: none; margin: 0; box-shadow: none;
  display: flex; align-items: center; justify-content: center; background: var(--brand-gradient); color: var(--white);
}
.exec-card .avatar-placeholder.exec-avatar .icon { width: 64px; height: 64px; }
.exec-card .card-accent { height: 4px; background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); }
.exec-card.alt .card-accent { background: linear-gradient(135deg, var(--gold), #b8860b); }
.exec-card .card-body { padding: 22px 20px 26px; }
.exec-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.exec-card .role { color: var(--gold); font-style: italic; font-size: 0.9rem; margin-bottom: 16px; }
.exec-card .icon-row { display: flex; justify-content: center; gap: 10px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--cream-alt);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { background: var(--maroon); color: var(--white); }
@media (max-width: 600px) {
  .exec-card .card-photo { height: 220px; }
}

.committee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.committee-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.committee-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.committee-card .member-photo { width: 100%; height: 200px; background: var(--brand-gradient); }
.committee-card .member-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; margin: 0; border: none; border-radius: 0;
}
.committee-card .avatar-placeholder {
  width: 100%; height: 100%; border-radius: 0; border: none; margin: 0;
  background: var(--brand-gradient); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
}
.committee-card .card-body { padding: 16px 12px 20px; }
.committee-card .name { font-weight: 600; font-size: 0.95rem; }
.committee-card .role { color: var(--gold); font-size: 0.8rem; font-style: italic; }
@media (max-width: 600px) {
  .committee-card .member-photo { height: 170px; }
}

/* Blog */
.blog-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.blog-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 28px; }
.blog-featured img { height: 100%; min-height: 220px; object-fit: cover; }
.blog-featured .blog-body { padding: 24px 24px 24px 0; display: flex; flex-direction: column; justify-content: center; }
.blog-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.blog-card img { height: 170px; width: 100%; object-fit: cover; }
.blog-card .blog-body { padding: 18px 20px; }
.blog-meta { font-size: 0.75rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.blog-card h3, .blog-featured h3 { font-size: 1.1rem; }
.read-link { color: var(--maroon); font-weight: 600; font-size: 0.85rem; }
.sidebar-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.sidebar-box h4 { font-size: 1rem; margin-bottom: 14px; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--cream-alt); border-radius: 999px; padding: 10px 16px; }
.search-box input { border: none; background: transparent; outline: none; font-size: 0.9rem; width: 100%; }
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.share-row .share-label { font-weight: 600; font-size: 0.88rem; margin-right: 4px; }
.share-row button.icon-btn { border: none; cursor: pointer; }
.recent-post { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.recent-post img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.recent-post .title { font-size: 0.85rem; font-weight: 600; }
.recent-post .date { font-size: 0.72rem; color: var(--text-muted); }
.jubilee-cta { background: var(--maroon); color: var(--white); border-radius: var(--radius); padding: 26px; text-align: center; }

/* News (external coverage links) */
.news-card {
  display: block; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-thumb { position: relative; height: 170px; background: var(--brand-gradient); background-size: cover; background-position: center; }
.news-ext-badge {
  position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,0.65); color: var(--white); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 999px;
}
.news-ext-badge .icon { width: 0.85em; height: 0.85em; }
.news-body { padding: 18px 20px; }
.news-source {
  display: inline-flex; align-items: center; gap: 6px; background: var(--cream-alt); color: var(--maroon);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.news-source .icon { width: 0.9em; height: 0.9em; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.news-event-tag { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.news-event-tag .icon { width: 0.9em; height: 0.9em; }

.donation-card {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon) 60%, var(--maroon-light));
  border-radius: var(--radius);
  padding: 48px 44px;
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.donation-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.donation-card .donation-icon {
  position: relative;
  flex-shrink: 0;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.donation-card .donation-icon .icon { width: 38px; height: 38px; color: var(--gold-light); }
.donation-card .donation-content { position: relative; }
.donation-card h2 { color: var(--white); margin-bottom: 10px; }
.donation-card p { color: rgba(255,255,255,0.85); margin-bottom: 22px; max-width: 480px; }
.donation-highlights {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  flex-shrink: 0; margin-left: auto;
  padding-left: 32px;
  border-left: 1px solid rgba(255,255,255,0.25);
}
.donation-highlights .dh-item { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600; white-space: nowrap; color: var(--white); }
.donation-highlights .dh-item .icon { width: 20px; height: 20px; color: var(--gold-light); flex-shrink: 0; }
@media (max-width: 900px) {
  .donation-highlights { display: none; }
}
@media (max-width: 600px) {
  .donation-card { flex-direction: column; text-align: center; padding: 36px 28px; }
  .donation-card p { margin-left: auto; margin-right: auto; }
}

.membership-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.benefits-list { list-style: none; padding: 0; margin: 24px 0; }
.benefits-list li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.benefits-list li .icon { width: 22px; height: 22px; color: var(--maroon); flex-shrink: 0; margin-top: 3px; }
.benefits-list li strong { display: block; font-size: 0.98rem; margin-bottom: 2px; }
.benefits-list li span { display: block; font-size: 0.86rem; color: var(--text-muted); }
@media (max-width: 960px) {
  .membership-layout { grid-template-columns: 1fr; }
}
.jubilee-cta .yr { color: var(--gold-light); font-family: 'Playfair Display', serif; font-size: 1.4rem; }
.tag-pill { display: inline-block; background: var(--cream-alt); padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; margin: 0 6px 6px 0; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0; }
.pagination a, .pagination span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.9rem; }
.pagination .active { background: var(--maroon); color: var(--white); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: start; }
.contact-info-card { background: var(--cream-alt); border-radius: var(--radius); padding: 28px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item .ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; color: var(--white); }
.contact-item .ic.maroon { background: var(--maroon); }
.contact-item .ic.green { background: var(--green); }
.contact-item .ic.gold { background: var(--gold); }
.contact-item .label { font-weight: 600; font-size: 0.92rem; }
.contact-item .sub { font-size: 0.82rem; color: var(--text-muted); }
.map-frame { border-radius: var(--radius); overflow: hidden; margin-top: 20px; height: 220px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.contact-form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.92rem; background: var(--cream-alt); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--maroon); background: var(--white); }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-bottom: 18px; }

/* Show/Hide toggle on password fields */
.password-field-wrap { position: relative; width: 100%; }
.password-field-wrap input { padding-right: 44px !important; }
.password-toggle-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  border-radius: 6px;
}
.password-toggle-btn:hover { background: var(--border); color: var(--maroon); }
.password-toggle-btn .icon { width: 19px; height: 19px; }

/* Footer */
.site-footer { background: var(--footer-bg); padding: 56px 0 24px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr; gap: 32px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--text-dark); }
.footer-links a:hover { color: var(--maroon); text-decoration: underline; }
.footer-bottom a { color: var(--text-muted); text-decoration: underline; }
.footer-bottom a:hover { color: var(--maroon); }

/* Photo carousel (Instagram-style — event detail page + Gallery groups) */
.event-carousel-block { margin-bottom: 8px; }
.carousel-wrap { position: relative; }
.event-photo-carousel {
  display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  border-radius: var(--radius);
}
.event-photo-carousel::-webkit-scrollbar { display: none; height: 0; }
.event-photo-carousel .carousel-item {
  flex: 0 0 100%; height: 420px; scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden; cursor: pointer; background: var(--brand-gradient);
}
.event-photo-carousel .carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.85); box-shadow: var(--shadow);
  border: none; cursor: pointer; font-size: 1.4rem; color: var(--text-dark); z-index: 2;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background 0.2s ease;
}
.carousel-arrow:hover { background: var(--white); }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
@media (max-width: 600px) {
  .event-photo-carousel .carousel-item { height: 320px; }
}

/* Lightbox — full-size photo viewer with prev/next/close */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(20,15,13,0.92);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 40px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 10px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; background: none; border: none;
  color: var(--white); font-size: 2.4rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: var(--white);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 600px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.4rem; }
}

/* Legal pages (Privacy Policy / Terms) — admin-edited rich text */
.legal-content h1, .legal-content h2 { font-size: 1.4rem; margin-top: 32px; }
.legal-content h3 { font-size: 1.15rem; margin-top: 24px; }
.legal-content p { color: var(--text-dark); }
.legal-content ul, .legal-content ol { color: var(--text-dark); margin: 0 0 1em; padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--maroon); text-decoration: underline; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-tag { color: var(--maroon); font-weight: 700; margin-top: 10px; font-size: 0.85rem; }
.footer h4 { font-size: 1rem; margin-bottom: 16px; }
.footer-grid p { font-size: 0.88rem; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-bottom { text-align: center; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px; font-size: 0.8rem; color: var(--text-muted); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; animation: alertIn 0.35s ease; }
.alert-success { background: #e5f3e8; color: var(--green-dark); border: 1px solid #bfe2c6; }
.alert-error { background: #fbe6e6; color: #8a1f1f; border: 1px solid #f3c2c2; }
@keyframes alertIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .alert { animation: none; }
}

/* Page hero (non-home pages) */
.page-hero { background: var(--cream-alt); padding: 60px 0 40px; text-align: center; }
.page-hero.wave { position: relative; background: linear-gradient(180deg, #eadfe0, var(--cream)); }
.page-hero.has-photo {
  position: relative;
  background: var(--brand-gradient);
  background-size: cover;
  background-position: center;
  padding: 90px 0 70px;
}
.page-hero.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,35,32,0.5), rgba(43,35,32,0.72));
}
.page-hero.has-photo .container { position: relative; z-index: 1; }
.page-hero .container > * { animation: heroFadeUp 0.4s ease both; }
.page-hero .container > *:nth-child(1) { animation-delay: 0.03s; }
.page-hero .container > *:nth-child(2) { animation-delay: 0.08s; }
.page-hero .container > *:nth-child(3) { animation-delay: 0.13s; }
@media (prefers-reduced-motion: reduce) {
  .page-hero .container > * { animation: none; }
}
.page-hero.has-photo h1, .page-hero.has-photo p { color: var(--white); }
.page-hero.has-photo .badge-pill { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.35); color: var(--white); }


/* Timeline (About page) */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border);
  transform: translateX(-50%) scaleY(0); transform-origin: top;
  transition: transform 1.4s ease;
}
.timeline.in-view::before { transform: translateX(-50%) scaleY(1); }
.t-row { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; margin-bottom: 24px; }
.t-card { background: var(--white); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.t-card.jubilee { background: var(--maroon); color: var(--white); }
.t-card .yr { color: var(--maroon); font-family: 'Playfair Display', serif; font-weight: 700; }
.t-card.jubilee .yr { color: var(--gold-light); }
.t-dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--gold); margin: 0 auto;
  border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--gold);
  transform: scale(0); transition: transform 0.4s ease;
  animation: tDotPulse 2.4s ease-in-out infinite;
}
.t-row.in-view .t-dot { transform: scale(1); }
@keyframes tDotPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold), 0 0 0 2px rgba(184,137,47,0.4); }
  50% { box-shadow: 0 0 0 2px var(--gold), 0 0 0 8px rgba(184,137,47,0); }
}
.t-row .empty { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .timeline::before { transition: none; transform: translateX(-50%) scaleY(1); }
  .t-dot { animation: none; transition: none; transform: scale(1); }
}

/* Responsive */
@media (max-width: 960px) {
  .site-header .container { position: relative; }
  .btn { white-space: nowrap; }
  .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  }
  .main-nav.open {
    max-height: 500px;
    opacity: 1;
    padding: 12px 24px 18px;
    pointer-events: auto;
  }
  @media (prefers-reduced-motion: reduce) {
    .main-nav { transition: none; }
  }
  .main-nav a { padding: 10px 8px; border-bottom: none; border-radius: 8px; }
  .main-nav a.active, .main-nav a:hover { background: var(--cream-alt); }
  .nav-toggle { display: block; }
  .quick-links, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-split, .feature-split.ratio-wide, .blog-layout, .contact-layout, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .committee-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { column-count: 2; }
  .timeline::before { left: 20px; }
  .t-row { grid-template-columns: 40px 1fr; }
  .t-row .empty { display: none; }
  .t-dot { margin: 0 auto; grid-column: 1; }
  .t-card { grid-column: 2; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured img { height: 220px; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .quick-links, .grid-3, .blog-grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 1; }
  /* Office bearers keep 2-per-row even on phones — photo tiles are compact
     enough that a single column just wastes space and forces more scrolling. */
  .committee-grid, .grid-3.exec-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 380px) {
  .exec-card .card-photo { height: 160px; }
  .committee-card .member-photo { height: 130px; }
}
@media (max-width: 480px) {
  .brand-tagline { display: none; }
  .brand img { width: 36px; height: 36px; }
  .site-header .btn-sm { padding: 8px 12px; font-size: 0.78rem; }
}
