/* =========================================================
   Grace Prayer Ministry — Design System
   Palette: deep navy, royal purple, antique gold, warm cream
   Display: Playfair Display | Body: Mulish
   ========================================================= */

:root {
  /* Colors */
  --navy: #1F3A5F;
  --navy-deep: #12253D;
  --navy-soft: #345277;
  --purple: #5B4B8A;
  --purple-light: #8471B8;
  --gold: #C9A227;
  --gold-light: #E7C766;
  --gold-soft: #F3E3B3;
  --cream: #FBF8F1;
  --mist: #EEF1F8;
  --white: #FFFFFF;
  --ink: #262631;
  --ink-soft: #5C5C70;
  --ink-faint: #8B8BA0;
  --line: #E4E1D6;
  --success: #2F7A4F;
  --success-bg: #EAF6EE;
  --danger: #B4433C;
  --danger-bg: #FBEBEA;

  /* Gradients */
  --gradient-hero: linear-gradient(160deg, #12253D 0%, #1F3A5F 45%, #5B4B8A 100%);
  --gradient-gold: linear-gradient(120deg, #C9A227 0%, #E7C766 100%);
  --gradient-card: linear-gradient(160deg, #ffffff 0%, #FBF8F1 100%);

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shape & shadow */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-soft: 0 10px 30px -12px rgba(31, 58, 95, 0.18);
  --shadow-card: 0 14px 40px -16px rgba(31, 58, 95, 0.22);
  --shadow-gold: 0 10px 26px -10px rgba(201, 162, 39, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; color: var(--navy-deep); line-height: 1.2; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

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

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* =========================================================
   Eyebrow / section labels — illuminated hairline divider
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--gradient-gold);
  display: inline-block;
  border-radius: 2px;
}

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--ink-soft); font-size: 17px; }

section { padding: 88px 0; }
.section-alt { background: var(--mist); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15.5px;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gradient-gold);
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -10px rgba(201,162,39,.55); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-3px); }
.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(31,58,95,.55);
}
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #97362f; }
.btn-ghost { background: var(--mist); color: var(--navy); }
.btn-ghost:hover { background: #dfe4f2; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 248, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  box-shadow: var(--shadow-soft);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--navy-deep); }
.brand-tagline { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); font-weight: 700; }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: inline-block;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-radius: 100px;
  transition: all .2s ease;
}
.main-nav a:hover { color: var(--navy); background: var(--mist); }
.main-nav a.active { color: var(--navy-deep); background: var(--gold-soft); }
.nav-admin-link { background: var(--navy); color: #fff !important; }
.nav-admin-link:hover { background: var(--navy-deep) !important; }
.nav-admin-link.active { background: var(--purple); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  width: 40px; height: 40px;
}
.nav-toggle span { width: 100%; height: 2.5px; background: var(--navy-deep); border-radius: 2px; transition: all .25s ease; }

/* =========================================================
   Flash messages
   ========================================================= */
.flash-message { padding: 14px 0; font-weight: 700; }
.flash-message .container { display: flex; align-items: center; gap: 10px; }
.flash-success { background: var(--success-bg); color: var(--success); }
.flash-error { background: var(--danger-bg); color: var(--danger); }

/* =========================================================
   HERO — signature: radiant gold dawn-light behind a still cross
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #fff;
  padding: 88px 0 150px;
  text-align: center;
}
.hero::before {
  /* radiant dawn glow */
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(231,199,102,0.35) 0%, rgba(231,199,102,0.08) 42%, transparent 70%);
  animation: glowPulse 8s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 90px);
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
.hero-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.hero-cross {
  width: 56px; height: 56px;
  margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-size: 30px;
  opacity: 0.95;
}
.hero-eyebrow {
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero-verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 22px);
  color: rgba(255,255,255,0.92);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
  position: relative;
  padding: 0 10px;
}
.hero-verse cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 14px;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; width: 100%;
  line-height: 0;
  z-index: 2;
}

/* =========================================================
   Stat strip
   ========================================================= */
.stat-strip {
  background: var(--navy-deep);
  padding: 0;
  position: relative;
  z-index: 3;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -60px;
  position: relative;
  z-index: 5;
}
.stat-card {
  background: var(--white);
  padding: 30px 20px;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin: 0 10px;
}
.stat-card i { color: var(--gold); font-size: 24px; margin-bottom: 10px; }
.stat-card .stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--navy-deep); }
.stat-card .stat-label { font-size: 13px; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

/* =========================================================
   Home — About preview / mission cards
   ========================================================= */
.about-preview { padding-top: 150px; }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.mission-card {
  background: var(--gradient-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.mission-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.mission-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--gradient-hero);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.mission-card h3 { font-size: 20px; }
.mission-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--purple) 0%, var(--navy) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '\201C';
  position: absolute;
  font-family: var(--font-display);
  font-size: 260px;
  color: rgba(255,255,255,0.06);
  top: -60px; left: 10px;
  line-height: 1;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto 26px; }

/* =========================================================
   Cards — general
   ========================================================= */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   Testimonies
   ========================================================= */
.testimony-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimony-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--gold);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.testimony-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.testimony-quote-icon { color: var(--gold-soft); font-size: 30px; margin-bottom: 12px; }
.testimony-card h3 { font-size: 19px; margin-bottom: 10px; }
.testimony-card p.testimony-message { color: var(--ink-soft); font-size: 15px; flex: 1; }
.testimony-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.testimony-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.testimony-person { font-weight: 800; font-size: 14.5px; color: var(--navy-deep); }
.testimony-date { font-size: 12.5px; color: var(--ink-faint); }
.featured-badge {
  position: absolute;
  top: -12px; right: 22px;
  background: var(--gradient-gold);
  color: var(--navy-deep);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 100px;
  box-shadow: var(--shadow-gold);
}

/* =========================================================
   Page header (inner pages)
   ========================================================= */
.page-header {
  background: var(--gradient-hero);
  color: #fff;
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(231,199,102,0.28) 0%, transparent 70%);
}
.page-header h1 { color: #fff; font-size: clamp(30px, 5vw, 46px); position: relative; z-index: 2; }
.page-header p { color: rgba(255,255,255,.85); max-width: 560px; margin: 12px auto 0; position: relative; z-index: 2; }
.breadcrumb { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-light); font-weight: 700; position: relative; z-index: 2; }

/* =========================================================
   Forms
   ========================================================= */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 44px;
  border: 1px solid var(--line);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-group { margin-bottom: 22px; }
.form-group.full { grid-column: 1 / -1; }
label {
  display: block;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--navy-deep);
  margin-bottom: 8px;
  letter-spacing: .3px;
}
label .req { color: var(--danger); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time],
input[type=password], select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201,162,39,0.15);
}
textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }
.form-error { font-size: 12.5px; color: var(--danger); margin-top: 6px; font-weight: 700; }
.input-error { border-color: var(--danger) !important; background: var(--danger-bg) !important; }

/* =========================================================
   Calendar
   ========================================================= */
.calendar-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 30px;
  align-items: start;
}
.calendar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
  border: 1px solid var(--line);
}
.calendar-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.calendar-nav h3 { margin: 0; font-size: 20px; }
.calendar-nav-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: all .2s ease;
}
.calendar-nav-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.calendar-grid .dow { font-size: 11.5px; font-weight: 800; color: var(--ink-faint); text-transform: uppercase; padding: 6px 0; }
.calendar-day {
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  border: 1.5px solid transparent;
  background: var(--cream);
  transition: all .18s ease;
  position: relative;
}
.calendar-day:hover { border-color: var(--gold); }
.calendar-day.empty { background: transparent; cursor: default; }
.calendar-day.has-event::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  bottom: 6px;
}
.calendar-day.today { background: var(--mist); border-color: var(--navy-soft); color: var(--navy-deep); }
.calendar-day.selected { background: var(--gradient-hero); color: #fff; border-color: var(--navy); }
.calendar-day.selected::after { background: var(--gold-light); }

.calendar-legend { margin-top: 20px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.activities-panel h3 { font-size: 22px; margin-bottom: 4px; }
.activities-panel .selected-date-label { color: var(--purple); font-weight: 700; margin-bottom: 24px; }
.activity-item {
  display: flex;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease;
}
.activity-item:hover { transform: translateX(4px); }
.activity-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient-hero);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.activity-details h4 { margin: 0 0 6px; font-size: 17px; }
.activity-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-soft); font-weight: 700; margin-bottom: 8px; }
.activity-meta span { display: inline-flex; align-items: center; gap: 6px; }
.activity-type-tag {
  display: inline-block;
  background: var(--gold-soft);
  color: #7a5f10;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 100px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.activity-details p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--ink-faint);
}
.empty-state i { font-size: 40px; color: var(--gold-soft); margin-bottom: 14px; }

/* =========================================================
   About page
   ========================================================= */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.value-card i { font-size: 26px; color: var(--gold); margin-bottom: 14px; }
.value-card h4 { font-size: 16px; margin-bottom: 6px; }
.value-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split-block img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.split-text .eyebrow { margin-bottom: 12px; }
.split-text p { color: var(--ink-soft); }
.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.leader-card { text-align: center; }
.leader-photo {
  width: 130px; height: 130px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-size: 42px;
  box-shadow: var(--shadow-soft);
  border: 4px solid #fff;
  outline: 1px solid var(--line);
}
.leader-card h4 { margin-bottom: 2px; font-size: 18px; }
.leader-role { color: var(--purple); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: var(--gradient-hero);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,.8); }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-detail i {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.contact-detail span, .contact-detail div { font-size: 14px; color: rgba(255,255,255,.85); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; margin-top: 24px; border: 1px solid rgba(255,255,255,.2); }

/* =========================================================
   Prayer categories (form)
   ========================================================= */
.category-note {
  background: var(--mist);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 30px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.category-note i { color: var(--purple); font-size: 20px; margin-top: 2px; }
.category-note p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* =========================================================
   Photo Gallery
   ========================================================= */
.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.gallery-search {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}
.gallery-search i {
  position: absolute; top: 50%; left: 16px; transform: translateY(-50%);
  color: var(--ink-faint); font-size: 14px;
}
.gallery-search input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--white);
  color: var(--ink);
}
.gallery-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,0.15); }
.gallery-filter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.gallery-filter-form select {
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  background: var(--white);
  color: var(--navy-deep);
  min-width: 170px;
}

.gallery-event { margin-bottom: 56px; }
.gallery-event:last-child { margin-bottom: 0; }
.gallery-event-head { margin-bottom: 20px; }
.gallery-event-head h3 { font-size: 22px; margin-bottom: 8px; }
.gallery-event-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); font-weight: 700; }
.gallery-event-meta i { color: var(--gold); margin-right: 5px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px;
  background: rgba(18,37,61,0.35);
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery-thumb:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(10,16,26,0.94);
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 88vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption {
  position: absolute;
  bottom: 30px; left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: 14.5px;
  padding: 0 20px;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   Admin styles
   ========================================================= */
.admin-body { background: var(--mist); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 264px;
  flex-shrink: 0;
  background: var(--gradient-hero);
  color: #fff;
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; padding: 0 6px; }
.admin-brand .brand-mark { background: rgba(255,255,255,.12); }
.admin-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  color: rgba(255,255,255,.75);
  margin-bottom: 4px;
  transition: all .2s ease;
}
.admin-nav a i { width: 18px; text-align: center; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.active { background: var(--gold); color: var(--navy-deep); }
.admin-nav-divider { height: 1px; background: rgba(255,255,255,.12); margin: 18px 0; }
.admin-main { flex: 1; padding: 34px 40px; max-width: 100%; overflow-x: auto; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 14px; }
.admin-topbar h1 { font-size: 26px; margin: 0; }
.admin-topbar p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }

.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 34px; }
.admin-stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
}
.admin-stat-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.admin-stat-card .num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--navy-deep); }
.admin-stat-card .label { font-size: 13px; color: var(--ink-soft); font-weight: 700; }

.panel {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  margin-bottom: 30px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.panel-head h2 { font-size: 19px; margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left;
  padding: 12px 14px;
  background: var(--mist);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
thead th:first-child { border-radius: 10px 0 0 10px; }
thead th:last-child { border-radius: 0 10px 10px 0; }
tbody td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
tbody tr:hover { background: #fbfaf6; }
.table-actions { display: flex; gap: 8px; }

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.admin-gallery-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.admin-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-gallery-thumb-actions {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(18,37,61,0.55);
  opacity: 0;
  transition: opacity .2s ease;
}
.admin-gallery-thumb:hover .admin-gallery-thumb-actions { opacity: 1; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.badge-new { background: #FBEBEA; color: var(--danger); }
.badge-progress { background: var(--gold-soft); color: #7a5f10; }
.badge-answered { background: var(--success-bg); color: var(--success); }

.login-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-hero);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.login-shell::before {
  content: '';
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(231,199,102,0.25) 0%, transparent 70%);
}
.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 46px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  text-align: center;
}
.login-card .brand-mark { margin: 0 auto 18px; width: 60px; height: 60px; font-size: 24px; }
.login-card h1 { font-size: 24px; }
.login-card p.sub { color: var(--ink-soft); margin-bottom: 30px; font-size: 14.5px; }
.login-card form { text-align: left; }
.login-hint { margin-top: 22px; font-size: 12.5px; color: var(--ink-faint); background: var(--mist); padding: 12px 16px; border-radius: 10px; }

/* =========================================================
   Bible Reading
   ========================================================= */
.votd-card {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-card);
}
.votd-card::before {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(231,199,102,0.22) 0%, transparent 70%);
}
.votd-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  position: relative; z-index: 2;
}
.votd-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 25px);
  color: #fff;
  max-width: 720px;
  margin: 0 auto 16px;
  line-height: 1.6;
  position: relative; z-index: 2;
}
.votd-ref {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  position: relative; z-index: 2;
}
.votd-refresh {
  margin-top: 22px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  position: relative; z-index: 2;
  transition: background .25s ease, transform .25s ease;
}
.votd-refresh:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.bible-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.bible-select-group { display: flex; gap: 12px; flex-wrap: wrap; }
.bible-select {
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  background: var(--white);
  color: var(--navy-deep);
  min-width: 150px;
}
.bible-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  padding: 6px 6px 6px 18px;
  background: var(--white);
}
.bible-search i { color: var(--ink-faint); font-size: 14px; }
.bible-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.bible-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,0.15); }

.reading-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 46px;
}
.reading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.reading-head h2 { margin: 0; font-size: 26px; }
.reading-font-tools {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .5px;
}
.reading-font-tools button {
  width: 30px; height: 30px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.reading-font-tools button:hover { background: #dfe4f2; }

.reading-body { min-height: 200px; color: var(--ink); }
.verse-list { font-family: var(--font-body); }
.verse-line { margin: 0 0 1em; line-height: 1.85; }
.verse-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.7em;
  vertical-align: super;
  margin-right: 6px;
}
.reading-translation-note {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.reading-loading {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  padding: 40px 0;
  justify-content: center;
}

.reading-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1.5px solid var(--line);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-outline-navy:hover { background: var(--mist); border-color: var(--navy-soft); transform: translateY(-3px); }
.btn-outline-navy:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .mission-grid, .value-grid, .leader-grid, .testimony-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-layout, .contact-layout, .split-block { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 82%);
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 40px rgba(0,0,0,.15);
    padding: 90px 24px 30px;
    transition: right .3s ease;
    z-index: 400;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { display: block; padding: 13px 16px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .admin-main { padding: 24px 18px; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .mission-grid, .value-grid, .leader-grid, .testimony-grid, .admin-stat-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; margin-top: -40px; }
  .form-card { padding: 26px; }
  .hero { padding: 64px 0 120px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-filters { flex-direction: column; align-items: stretch; }
  .gallery-search { max-width: none; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
  .votd-card { padding: 32px 22px; }
  .bible-toolbar { flex-direction: column; align-items: stretch; }
  .bible-select-group { flex-direction: column; }
  .bible-select { min-width: 0; width: 100%; }
  .bible-search { max-width: none; }
  .reading-card { padding: 28px 22px; }
  .reading-nav { flex-direction: column; }
  .reading-nav .btn { width: 100%; justify-content: center; }
}
