/* ============================================================
   Pastor Web CV — Master Stylesheet (v3 - Advanced)
   ============================================================ */
:root {
  --navy: #1d3341;
  --navy2: #264356;
  --gold: #b8952f;
  --gold-light: #eadfc0;
  /* Brand palette (Nov 2026) */
  --blue: #2d6598;
  --blue-dark: #24527c;
  --red: #961d1d;
  --aqua: #26dee0;
  --mist: #edf0f5;
  --aqua-mist: #d2e1e4;
  --cream: #e4d9c6;
  --peach: #f3ae7b;
  --ink: #1a1a1a;
  --muted: #505c68;
  --paper: #f8f8f6;
  --line: #e3e3e0;
  --white: #fff;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --radius: 8px;
  --shadow-sm: 0 2px 8px rgba(29, 51, 65, 0.06);
  --shadow-md: 0 8px 24px rgba(29, 51, 65, 0.10);
  --shadow-lg: 0 16px 48px rgba(29, 51, 65, 0.15);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.container.narrow { max-width: 780px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  height: 84px;
  background: rgba(29, 51, 65, 0.98);
  color: white;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(184, 149, 47, 0.25);
  backdrop-filter: blur(10px);
}
.nav-wrap, .nav-links, .brand { display: flex; align-items: center; }
.nav-wrap { justify-content: space-between; gap: 25px; }
.brand { gap: 11px; font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.25; }
.brand-symbol {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 21px;
}
.brand small { display: block; font: 9px var(--sans); letter-spacing: 2px; color: #b8c1cd; margin-top: 5px; }
.nav-links { gap: 20px; font-size: 12px; color: #e4e8ee; }
.nav-links a:hover { color: var(--gold); }
.nav-contact { padding: 9px 15px; border: 1px solid var(--gold); color: var(--gold); }
.menu-toggle { display: none; background: none; border: 0; color: white; font-size: 25px; cursor: pointer; }
.theme-toggle { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 16px; padding: 0 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--navy); color: white; padding: 83px 0 0; }
.hero-glow {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  right: -200px;
  top: -300px;
  background: radial-gradient(circle, rgba(184, 149, 47, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 65px; align-items: center; position: relative; z-index: 1; }
.hero-copy { padding: 0 0 65px; }
.eyebrow { display: block; color: #8f7020; font-size: 10px; letter-spacing: 2.5px; font-weight: 700; }
.eyebrow.gold { color: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(40px, 5.2vw, 66px); letter-spacing: -1.5px; margin: 18px 0 22px; max-width: 690px; }
h2 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.7px; margin: 14px 0 23px; }
h2 em { color: #8f7020; font-weight: 500; }
.hero-intro { max-width: 590px; color: #c4ced5; font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 28px; }

/* Hero stats */
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; margin: 25px 0 0; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.hero-stat b { display: block; font: 700 32px var(--serif); color: var(--gold); line-height: 1; }
.hero-stat span { display: block; font-size: 11px; color: #b9c4cc; letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--sans);
}
.button-gold { background: var(--blue); color: #fff; }
.button-gold:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.button-outline { border: 1px solid #5f6c77; color: white; background: transparent; }
.button-outline:hover { border-color: var(--gold); color: var(--gold); }

.hero-details { display: flex; gap: 22px; flex-wrap: wrap; font-size: 11px; color: #b9c4cc; }
.hero-portrait-wrap { position: relative; max-width: 390px; margin: 0 auto 50px; width: 100%; }
.portrait-frame { border: 1px solid rgba(184, 149, 47, 0.6); padding: 12px; position: relative; }
.portrait-frame:before {
  content: '';
  position: absolute;
  inset: 22px -10px -10px 22px;
  border: 1px solid rgba(184, 149, 47, 0.25);
  z-index: 0;
}
.portrait-placeholder {
  position: relative;
  z-index: 1;
  min-height: 430px;
  background: linear-gradient(145deg, #34556a, #223b4b 60%, #2b4a5e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.portrait-placeholder > span {
  font: 76px var(--serif);
  border: 1px solid rgba(184, 149, 47, 0.65);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.portrait-placeholder small { letter-spacing: 3px; font-size: 9px; margin-top: 20px; color: #c3cbd5; }
.portrait-placeholder img { width: 100%; height: 430px; object-fit: cover; }
.portrait-caption {
  position: absolute;
  right: -24px;
  bottom: 22px;
  background: #fff;
  color: var(--ink);
  padding: 15px 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  line-height: 1.7;
  box-shadow: 0 12px 35px #0002;
  z-index: 2;
}
.caption-star { font-size: 27px; color: #8f7020; }
.portrait-caption b { font-weight: 700; }
.hero-bottom {
  border-top: 1px solid #ffffff20;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: #b5bfcd;
  letter-spacing: 2px;
  font-size: 9px;
}
.hero-bottom i { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 85px 0; }
.about-section { background: #fff; }
.about-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; align-items: start; }
.scripture-card {
  background: #f5f1e8;
  padding: 22px 25px;
  border-left: 3px solid var(--gold);
  position: relative;
  margin-top: 36px;
}
.scripture-card > span { font: 45px var(--serif); color: #a8862c; line-height: 1; }
.scripture-card p { font: italic 14px/1.8 var(--serif); margin: 0; }
.about-copy { padding-top: 25px; color: #626d7b; }
.about-copy .lead { font-size: 18px; color: var(--ink); line-height: 1.9; }
.value-list { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.value-list span {
  display: flex;
  gap: 22px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #8f7020;
  letter-spacing: 1px;
}
.value-list b { font-size: 13px; color: var(--ink); letter-spacing: 0; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 14px; }
.heading-line { display: block; width: 50px; height: 2px; background: var(--red); }

/* Cards grid */
.item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.portfolio-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 25px 24px;
  min-height: 225px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  border-radius: var(--radius);
  position: relative;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: #cdb36b;
  box-shadow: var(--shadow-md);
}
.card-mark { font-size: 23px; color: #a8862c; margin-bottom: 17px; }
.item-meta {
  font-size: 10px;
  color: #8f7020;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.portfolio-card h3 { font: 600 20px/1.35 var(--serif); margin-bottom: 6px; }
.item-org { font-size: 12px; font-weight: 700; color: #5f6c77; margin-bottom: 10px; }
.portfolio-card p:not(.item-org) { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 0; }
.text-link { display: inline-block; margin-top: 15px; font-size: 12px; color: #8f7020; font-weight: 700; }
.text-link:hover { color: var(--gold); }
.section:nth-of-type(even) { background: #f5f3ee; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--navy); color: white; }
.contact-layout { display: grid; grid-template-columns: 1fr 0.8fr; gap: 80px; align-items: center; }
.contact-layout h2 { font-size: clamp(40px, 4vw, 53px); }
.contact-layout p { color: #bdc7d4; max-width: 440px; }
.contact-panel { border: 1px solid #ffffff2a; padding: 10px 25px; border-radius: var(--radius); }
.contact-panel > a,
.contact-panel > div:not(.social-links) {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid #ffffff20;
}
.contact-panel span { font-size: 11px; color: #b9c4cc; }
.contact-panel b { font-size: 12px; font-weight: 600; text-align: right; }
.social-links { display: flex; flex-wrap: wrap; gap: 18px; padding: 17px 0; }
.social-links a { font-size: 11px; color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #14242f; color: #b9c4cc; padding: 25px 0; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { color: white; font-size: 14px; }
.footer-brand .brand-symbol { width: 31px; height: 31px; }
.footer-wrap p, .footer-wrap > span { font-size: 10px; margin: 0; }
.footer-links { display: flex; gap: 15px; font-size: 11px; }
.footer-links a { color: #77869a; }
.admin-link { font-size: 10px; color: #77869a; }
.empty-note { color: var(--muted); }

/* ============================================================
   GLOBAL COMPONENTS
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 100; transition: width 0.1s linear; }
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

.flash-banner {
  padding: 12px 20px;
  margin: 15px auto;
  max-width: 1120px;
  background: #e9f7ef;
  border: 1px solid #bce5cc;
  color: #21663a;
  border-radius: 6px;
  animation: slideDown 0.3s ease;
}
.flash-banner.error { background: #fff0f0; border-color: #f0caca; color: #961d1d; }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================================================
   DARK MODE
   ============================================================ */
html[data-dark="on"] {
  --paper: #172b38;
  --ink: #e6eaee;
  --muted: #a3afb8;
  --line: #34556a;
  --white: #223b4b;
}
html[data-dark="on"] body { background: #172b38; color: #e6eaee; }
html[data-dark="on"] .site-header { background: #14242f; }
html[data-dark="on"] .portfolio-card { background: #223b4b; color: #e6eaee; }
html[data-dark="on"] .portfolio-card h3 { color: #e6eaee; }
html[data-dark="on"] .about-section { background: #172b38; }
html[data-dark="on"] .about-copy { color: #a3afb8; }
html[data-dark="on"] .scripture-card { background: #223b4b; }
html[data-dark="on"] .section:nth-of-type(even) { background: #14242f; }
html[data-dark="on"] .field input,
html[data-dark="on"] .field textarea,
html[data-dark="on"] .field select {
  background: #223b4b;
  color: #e6eaee;
  border-color: #34556a;
}
html[data-dark="on"] .admin-card { background: #223b4b; border-color: #34556a; color: #e6eaee; }
html[data-dark="on"] .admin-card h1,
html[data-dark="on"] .admin-card h2 { color: #e6eaee; }
html[data-dark="on"] .admin-table th,
html[data-dark="on"] .admin-table td { border-color: #34556a; }
html[data-dark="on"] .admin-table th { color: #b8c1cd; }
html[data-dark="on"] .flash-banner { background: #16301e; border-color: #2f6a3f; color: #a7e5b7; }
html[data-dark="on"] .flash-banner.error { background: #3a1a1a; border-color: #6a2f2f; color: #e5a7a7; }
html[data-dark="on"] .verification-card { background: #223b4b; color: #e6eaee; }
html[data-dark="on"] .portfolio-card p,
html[data-dark="on"] .item-org { color: #a3afb8; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { list-style: none; padding: 0; position: relative; margin: 0; }
.timeline:before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--gold); opacity: 0.3; }
.timeline-item { position: relative; padding: 0 0 30px 40px; }
.timeline-item:before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--paper);
}
.timeline-item[data-category="calling"]:before { background: #b8952f; }
.timeline-item[data-category="education"]:before { background: #7ba3d5; }
.timeline-item[data-category="appointment"]:before { background: #b8952f; }
.timeline-item[data-category="publication"]:before { background: #8f7020; }
.timeline-item[data-category="outreach"]:before { background: #6ba587; }
.timeline-item[data-category="personal"]:before { background: #a87ba5; }
.timeline-item time { font-size: 11px; color: #8f7020; letter-spacing: 1px; text-transform: uppercase; }
.timeline-item h3 { margin: 5px 0 8px; font: 600 20px var(--serif); }
.timeline-full .timeline-item { padding-bottom: 40px; }

/* ============================================================
   ANALYTICS / CHARTS
   ============================================================ */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 15px 0; }
.bar { flex: 1; background: var(--gold); border-radius: 3px 3px 0 0; position: relative; min-height: 4px; transition: opacity 0.2s; }
.bar:hover { opacity: 0.8; }
.bar span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); }
.progress-bar { height: 8px; background: #e7ebf0; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.progress-bar span { display: block; height: 100%; background: var(--gold); transition: width 0.4s; }
.stat-card { text-align: center; padding: 20px; }
.stat-value { font: 700 32px var(--sans); color: var(--navy); }
.stat-label { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 5px; }

/* ============================================================
   PAGINATION / BREADCRUMBS
   ============================================================ */
.pagination { display: flex; gap: 8px; margin-top: 30px; justify-content: center; flex-wrap: wrap; }
.pagination a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
  transition: 0.2s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination a.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.breadcrumbs { font-size: 12px; color: var(--muted); margin-bottom: 15px; }
.breadcrumbs a { color: #8f7020; }

/* ============================================================
   SERMONS
   ============================================================ */
.sermon-audio { width: 100%; margin: 20px 0; }
.sermon-video { position: relative; padding-top: 56.25%; margin: 20px 0; border-radius: var(--radius); overflow: hidden; }
.sermon-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sermon-manuscript { font-size: 16px; line-height: 1.9; margin: 25px 0; }
.sermon-transcript { margin: 20px 0; border: 1px solid var(--line); padding: 15px; border-radius: 6px; }
.sermon-transcript summary { cursor: pointer; font-weight: 600; }
.sermon-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0; }
.sermon-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.sermon-filters input,
.sermon-filters select {
  flex: 1;
  min-width: 160px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  font-family: var(--sans);
}
.featured-sermon { background: #f5f1e8; padding: 35px; border-left: 3px solid var(--gold); border-radius: var(--radius); }
.sermon-series-badge { display: inline-block; background: var(--gold); color: var(--navy); padding: 3px 10px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; border-radius: 3px; margin-bottom: 10px; font-weight: 700; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card { font-family: var(--serif); position: relative; }
.testimonial-card p { font-style: italic; }
.testimonial-card footer { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.testimonial-card footer b { font-family: var(--sans); }
.testimonial-card:before {
  content: '"';
  position: absolute;
  top: -5px;
  right: 20px;
  font-size: 80px;
  color: var(--gold);
  opacity: 0.3;
  font-family: var(--serif);
  line-height: 1;
}

/* ============================================================
   CREDENTIALS / VERIFICATION
   ============================================================ */
.verification-card { background: #fff; border: 1px solid var(--line); padding: 35px; border-radius: 10px; }
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.badge-verified { background: #e6f5ea; color: #1e6b3a; }
.badge-pending { background: #fdf6e3; color: #8f7020; }
.badge-unverified { background: #f2f2f2; color: #666; }
.verification-card dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px; margin: 20px 0; }
.verification-card dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-box {
  background: var(--navy);
  color: white;
  padding: 45px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #ffffff30;
  background: #ffffff10;
  color: white;
  font-family: var(--sans);
}
.newsletter-form input::placeholder { color: #ffffff80; }
.newsletter-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

/* ============================================================
   PRAYER REQUESTS
   ============================================================ */
.prayer-card { position: relative; }
.prayer-card.prayer-answered { border-color: #6ba587; background: #f0f8f4; }
.prayer-card.prayer-answered:after {
  content: '🙌 Answered';
  position: absolute;
  top: 15px;
  right: 15px;
  background: #6ba587;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}
.prayer-count { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; font-size: 12px; }
.prayer-btn { background: var(--gold); color: var(--navy); border: 0; padding: 8px 16px; border-radius: 5px; cursor: pointer; font-weight: 700; font-family: var(--sans); transition: 0.2s; }
.prayer-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ============================================================
   EVENTS
   ============================================================ */
.event-card { position: relative; }
.event-date-block {
  background: var(--navy);
  color: var(--gold);
  padding: 12px 18px;
  display: inline-block;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 15px;
  min-width: 70px;
}
.event-date-block .day { display: block; font: 700 28px var(--serif); line-height: 1; }
.event-date-block .month { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-top: 5px; }
.event-past { opacity: 0.65; }
.event-past:hover { opacity: 1; }
.event-badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: 10px; padding: 3px 10px; border-radius: 3px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-card { position: relative; }
.blog-category { display: inline-block; background: #f1ecdd; color: #8f7020; padding: 3px 12px; border-radius: 20px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.blog-meta { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.post-content { font-size: 16px; line-height: 1.9; margin: 25px 0; }
.post-content h2 { font-size: 28px; margin: 30px 0 15px; }
.post-content h3 { font-size: 22px; margin: 25px 0 12px; }
.post-content blockquote { border-left: 3px solid var(--gold); padding-left: 20px; margin: 20px 0; font-style: italic; color: var(--muted); }
.post-content img { border-radius: 6px; margin: 20px 0; }
.post-content code { background: #f5f3ee; padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  z-index: 1000;
  width: 0;
  transition: width 0.1s linear;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(184, 149, 47, 0.5);
}

/* ============================================================
   ADMIN — LAYOUT
   ============================================================ */
.admin-body { background: #edf0f5; min-height: 100vh; margin: 0; }

/* Admin sidebar */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 250px;
  background: #14242f;
  color: #b9c4cc;
  overflow-y: auto;
  z-index: 100;
  padding: 20px 0;
  transition: transform 0.3s;
}
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: #264356; border-radius: 3px; }
.admin-sidebar .brand {
  display: block;
  padding: 0 20px 20px;
  color: #fff;
  border-bottom: 1px solid #264356;
  margin-bottom: 15px;
  text-decoration: none;
}
.admin-sidebar .brand b { display: block; font-size: 16px; font-family: var(--serif); }
.admin-sidebar .brand small { font-size: 9px; letter-spacing: 2px; color: var(--gold); }

.admin-nav-vertical a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #b9c4cc;
  font-size: 13px;
  text-decoration: none;
  position: relative;
  transition: 0.15s;
  border-left: 3px solid transparent;
}
.admin-nav-vertical a:hover { background: #223b4b; color: #fff; }
.admin-nav-vertical a.active {
  background: #2b4a5e;
  color: var(--gold);
  border-left-color: var(--gold);
}
.admin-nav-vertical a span:first-child { font-size: 16px; width: 20px; text-align: center; }
.admin-nav-vertical .badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: auto;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.admin-main-area {
  margin-left: 250px;
  min-height: 100vh;
  background: #edf0f5;
  padding: 30px;
  transition: margin-left 0.3s;
}

.admin-topbar {
  background: #fff;
  padding: 12px 30px;
  margin: -30px -30px 25px;
  border-bottom: 1px solid #e3e7ec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar .greeting {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  font-weight: 500;
}
.admin-topbar .user-menu { display: flex; gap: 15px; align-items: center; font-size: 12px; }
.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.admin-avatar:hover { transform: scale(1.05); }
.sidebar-toggle {
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
  padding: 0 10px;
  display: none;
}

/* Admin cards */
.admin-card {
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(23, 41, 65, 0.03);
}
.admin-card h1,
.admin-card h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 15px;
}
.admin-card h2 { font-size: 18px; margin-top: 10px; }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 12px; font-weight: 700; color: #3a4650; }
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d8dee7;
  border-radius: 6px;
  padding: 11px 12px;
  font: 14px var(--sans);
  color: #1a1a1a;
  background: white;
  transition: 0.15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(184, 149, 47, 0.4);
  border-color: #a8862c;
}

.admin-button {
  border: 0;
  border-radius: 5px;
  padding: 11px 16px;
  background: var(--navy);
  color: white;
  font: 600 12px var(--sans);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: 0.15s;
}
.admin-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.admin-button.gold { background: #b8952f; color: #223b4b; }
.admin-button.danger { background: #a83c3c; }
.admin-button.secondary { background: #e6eaee; color: #2b4a5e; }
.admin-button.small { padding: 6px 10px; font-size: 11px; }

.flash {
  padding: 12px 15px;
  background: #e9f7ef;
  border: 1px solid #bce5cc;
  color: #21663a;
  border-radius: 6px;
  margin-bottom: 18px;
}
.flash.error { background: #fff0f0; border-color: #f0caca; color: #961d1d; }

/* Admin tables */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e7ebf0;
  vertical-align: top;
}
.admin-table th {
  color: #59677a;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #f9fafb;
}
.admin-table a { color: #8f7020; font-weight: 700; }
.admin-table a:hover { color: var(--gold); }
.admin-table tr:hover td { background: #fafbfc; }

/* Login page */
.login-wrap { max-width: 460px; margin: 8vh auto; padding: 0 20px; }
.login-wrap .admin-card { padding: 32px; }
.admin-muted { color: #738094; font-size: 12px; }
.notice { font-size: 12px; color: #6b7788; line-height: 1.7; }
.checkbox-line { display: flex; align-items: center; gap: 9px; font-size: 12px; margin-bottom: 15px; }

/* Admin filters */
.admin-filters { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.admin-filters input,
.admin-filters select { padding: 9px; border: 1px solid #d8dee7; border-radius: 5px; font-family: var(--sans); }

/* Permission toggles */
.perm-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 0;
}
.perm-toggle input[type="checkbox"] {
  width: auto;
  accent-color: var(--gold);
  transform: scale(1.2);
  cursor: pointer;
}

/* Sortable menu */
#menuList { list-style: none; padding: 0; margin: 15px 0; }
#menuList li {
  padding: 12px 15px;
  border: 1px solid #e3e7ec;
  border-radius: 6px;
  margin-bottom: 6px;
  background: #fff;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: grab;
  transition: 0.15s;
}
#menuList li:hover { border-color: var(--gold); }
#menuList li.sortable-ghost { opacity: 0.4; background: #f0f8ff; }
#menuList li .drag-handle { color: #999; font-size: 16px; cursor: grab; }

/* Feature toggles grid */
.feature-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}
.feature-toggle-item {
  padding: 15px;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.15s;
}
.feature-toggle-item:hover { border-color: var(--gold); }
.feature-toggle-item.on { background: #fafaf8; border-color: var(--gold); }

/* User card */
.user-card {
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  background: #fff;
  transition: 0.15s;
}
.user-card:hover { border-color: var(--gold); }
.user-role-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.user-role-superadmin { background: #1d3341; color: var(--gold); }
.user-role-pastor { background: #f1ecdd; color: #8f7020; }
.user-role-it { background: #e0eef5; color: #2c5c7a; }

/* Pending registration card */
.pending-registration {
  border: 2px dashed #e2cf96;
  background: #fafaf8;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
}

/* Reset password inline form */
.reset-password-form { display: flex; gap: 6px; margin-top: 8px; }
.reset-password-form input {
  padding: 6px 10px;
  border: 1px solid #d8dee7;
  border-radius: 4px;
  width: 140px;
  font-size: 12px;
}

/* Inbox message */
.message-card {
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  background: #fff;
  transition: 0.15s;
}
.message-card.unread { border-left: 4px solid var(--gold); background: #fafaf8; }
.message-body {
  margin-top: 15px;
  padding: 15px;
  background: #fafafa;
  border-radius: 6px;
  line-height: 1.7;
}

/* Prayer card */
.prayer-request-card {
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  background: #fff;
  transition: 0.15s;
}
.prayer-request-card.answered {
  border-left: 4px solid #6ba587;
  background: #f8fdf9;
}
.prayer-request-card.pending {
  border-left: 4px solid #b8952f;
  background: #fffdf7;
}
.prayer-request-body {
  margin-top: 12px;
  padding: 15px;
  background: #fafafa;
  border-radius: 6px;
  font-style: italic;
}

/* ============================================================
   SHARE CARDS / OG IMAGE PREVIEW
   ============================================================ */
.og-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 15px 0;
}
.og-preview img { width: 100%; height: auto; }
.og-preview-meta { padding: 15px; background: #fafafa; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .scroll-progress,
  .reading-progress-bar,
  .sermon-actions,
  .hero-actions,
  .nav-links,
  .flash-banner,
  .newsletter-section,
  .newsletter-box { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  a { color: black; text-decoration: underline; }
  .portfolio-card { break-inside: avoid; page-break-inside: avoid; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .admin-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { gap: 12px; font-size: 11px; }
  .hero-layout { gap: 35px; }
  .portrait-placeholder { min-height: 360px; }
  .portrait-placeholder img { height: 360px; }
  .about-layout { gap: 45px; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { gap: 40px; }

  /* Admin sidebar collapses */
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main-area { margin-left: 0; padding: 15px; }
  .admin-topbar { margin: -15px -15px 15px; padding: 12px 15px; }
  .sidebar-toggle { display: block; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 32px, 560px); }
  .site-header { height: 72px; }
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 18px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #ffffff20;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; }
  .nav-contact { margin-top: 8px; text-align: center; }

  .hero { padding-top: 55px; }
  .hero-layout { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 10px; }
  .hero h1 { font-size: 40px; }
  .hero-intro { font-size: 14px; }
  .hero-stats { gap: 15px; }
  .hero-stat b { font-size: 24px; }
  .hero-portrait-wrap { width: min(86%, 340px); margin: 15px auto 48px; }
  .portrait-placeholder { min-height: 320px; }
  .portrait-placeholder img { height: 320px; }
  .portrait-caption { right: -10px; }
  .hero-bottom { font-size: 8px; letter-spacing: 1px; gap: 8px; }

  .section { padding: 60px 0; }
  .about-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .about-copy { padding-top: 0; }
  .scripture-card { margin-top: 25px; }
  .item-grid { grid-template-columns: 1fr; }
  .portfolio-card { min-height: 0; }
  .contact-panel { padding: 8px 16px; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }

  .admin-grid { grid-template-columns: 1fr; }
  .admin-grid-3 { grid-template-columns: 1fr; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
  .admin-card { padding: 18px; }

  .newsletter-box { grid-template-columns: 1fr; padding: 25px; }
  .verification-card { padding: 20px; }
  .verification-card dl { grid-template-columns: 1fr; }
  .verification-card dt { margin-top: 8px; }

  .hero-actions { flex-direction: column; }
  .button { justify-content: center; width: 100%; }

  .feature-toggle-grid { grid-template-columns: 1fr; }
  .reset-password-form { flex-direction: column; }
  .reset-password-form input { width: 100%; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.wrap { flex-wrap: wrap; }

/* Dynamic section responsive visibility */
.hide-desktop { display: block; }
@media (min-width: 901px) { .hide-desktop { display: none !important; } }
@media (max-width: 900px) { .hide-tablet { display: none !important; } }
@media (max-width: 640px) { .hide-mobile { display: none !important; } }

/* WhatsApp float */
.wa-float{position:fixed;bottom:90px;right:25px;width:60px;height:60px;background:#25d366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(37,211,102,.4);z-index:90;text-decoration:none;transition:all .2s;animation:wa-pulse 2s infinite}
.wa-float:hover{transform:scale(1.08);box-shadow:0 8px 28px rgba(37,211,102,.6)}
.wa-float svg{width:32px;height:32px;fill:#fff}
@keyframes wa-pulse{0%,100%{box-shadow:0 6px 20px rgba(37,211,102,.4)}50%{box-shadow:0 6px 30px rgba(37,211,102,.8)}}
.wa-tooltip{position:absolute;right:70px;top:50%;transform:translateY(-50%);background:#1d3341;color:#fff;padding:8px 14px;border-radius:6px;font-size:12px;white-space:nowrap;opacity:0;pointer-events:none;transition:.2s;font-weight:600}
.wa-float:hover .wa-tooltip{opacity:1}

/* ============================================================
   Brand layer (Nov 2026): soft gradient band used for giving,
   inspired by the aqua / cream / peach reference
   ============================================================ */
.band-soft {
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(243,174,123,0.55) 0%, rgba(243,174,123,0) 60%),
    linear-gradient(160deg, var(--aqua-mist) 0%, var(--cream) 70%, #ead2bb 100%);
  color: var(--ink);
}
.band-soft .eyebrow { color: var(--gold); }
.band-soft h2 { color: var(--ink); }
.band-soft p { color: #3a4650; }
