/* ─────────────────────────────────────────────────────────────────────────────
   EBJohn Theme — Main Stylesheet
   Colors: Deep Navy #1a2744 | Gold #c8a456 | White/Light Gray content surfaces
   Typography: Playfair Display (headings) | Inter (body)
───────────────────────────────────────────────────────────────────────────── */

/* ─── CSS Variables ──────────────────────────────────────────────────────────── */
:root {
  --navy:        #1a2744;
  --navy-dark:   #111b33;
  --navy-mid:    #2d3f6a;
  --navy-light:  #3d5080;
  --gold:        #c8a456;
  --gold-dark:   #a07a30;
  --gold-light:  #dfc07a;
  --white:       #ffffff;
  --off-white:   #f8f9fa;
  --light-gray:  #f0f2f5;
  --mid-gray:    #aab4c8;
  --dark-gray:   #4a5568;
  --text:        #1a2744;
  --text-muted:  #6b7a96;

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius:      6px;
  --radius-lg:   12px;
  --shadow:      0 2px 12px rgba(26,39,68,0.10);
  --shadow-lg:   0 8px 40px rgba(26,39,68,0.18);
  --transition:  0.25s ease;

  --container:   1200px;
  --header-h:    80px;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

/* ─── Container ──────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px)  { .container { padding: 0 40px; } }
@media (min-width: 1200px) { .container { padding: 0 48px; } }

.section-padded { padding: 80px 0; }
@media (max-width: 768px) { .section-padded { padding: 48px 0; } }

/* ─── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 48px;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 12px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }

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

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

.btn--sm { padding: 10px 20px; font-size: 0.8rem; }
.btn--full { width: 100%; justify-content: center; }

/* ─── SITE HEADER ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  height: var(--header-h);
  transition: height var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.site-header.is-scrolled {
  height: 64px;
  background: rgba(26,39,68,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) { .header-inner { padding: 0 40px; } }

/* Logo */
.site-logo-link { display: flex; align-items: center; }
.logo-svg { height: 50px; width: auto; }
.site-header.is-scrolled .logo-svg { height: 40px; }
.site-logo-text { display: flex; align-items: center; }

.custom-logo { height: 60px; width: auto; }
.site-header.is-scrolled .custom-logo { height: 48px; }

/* Nav */
.main-navigation { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-menu li { position: relative; }
.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--gold);
  background: rgba(200,164,86,0.12);
}
.nav-menu:focus-visible { outline: 2px solid var(--gold); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: var(--radius);
  color: var(--white);
  transition: background var(--transition);
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }
.menu-toggle:focus-visible { outline: 2px solid var(--gold); }
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.is-active .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-active .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO / BANNER CAROUSEL ─────────────────────────────────────────────────── */
.hero-banner {
  position: relative;
  min-height: 70vh;
  margin-top: var(--header-h);
}
.hero-swiper { width: 100%; height: 100%; min-height: 70vh; }
.hero-slide {
  position: relative;
  min-height: 70vh;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17,27,51,0.82) 0%,
    rgba(26,39,68,0.65) 60%,
    rgba(26,39,68,0.40) 100%
  );
}
.hero-slide__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 40px 24px;
  color: var(--white);
}
.hero-slide__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  line-height: 1.15;
}
.hero-slide__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  font-weight: 300;
  letter-spacing: 0.01em;
}
.hero-slide__cta { margin: 0 auto; }

/* Swiper customization */
.swiper-button-prev,
.swiper-button-next {
  color: var(--gold) !important;
  background: rgba(26,39,68,0.6);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  transition: all var(--transition);
}
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 18px !important; font-weight: 700; }
.swiper-button-prev:hover,
.swiper-button-next:hover { background: var(--gold); color: var(--navy) !important; }

.swiper-pagination-bullet { background: rgba(255,255,255,0.5) !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: var(--gold) !important; transform: scale(1.3); }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}
.hero-scroll-indicator svg { width: 40px; height: 40px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── INTRO SECTION ─────────────────────────────────────────────────────────── */
.section-intro {
  padding: 80px 0;
  background: var(--white);
}
.intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .intro-inner { grid-template-columns: 1fr; gap: 40px; } }

.intro-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 16px;
}
.intro-bio {
  font-size: 1.05rem;
  color: var(--dark-gray);
  margin-bottom: 28px;
  line-height: 1.8;
}

/* Credentials Strip */
.credentials-strip {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
}
.credentials-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 20px;
}
.credentials-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.badge--gold    { background: var(--gold); color: var(--navy); }
.badge--navy    { background: var(--navy-mid); color: var(--white); border: 1px solid var(--navy-light); }
.badge--outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }

.credentials-labels { font-size: 0.8rem; color: var(--mid-gray); line-height: 1.9; }

/* ─── STATS BAR ─────────────────────────────────────────────────────────────── */
.section-stats {
  background: var(--navy);
  padding: 56px 0;
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px)  { .stats-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .stats-bar { grid-template-columns: 1fr; } }

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  transition: background var(--transition);
}
.stat-item:hover { background: rgba(200,164,86,0.1); }
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 160px;
  line-height: 1.4;
}

/* ─── FEATURES GRID ─────────────────────────────────────────────────────────── */
.section-features {
  padding: 80px 0;
  background: var(--light-gray);
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .section-title::after { margin: 12px auto 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border-top: 4px solid var(--navy);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.feature-card--gold { border-top-color: var(--gold); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.feature-card__icon {
  width: 52px;
  height: 52px;
  color: var(--navy);
  margin-bottom: 20px;
}
.feature-card--gold .feature-card__icon { color: var(--gold-dark); }
.feature-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.feature-card__desc {
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}
.feature-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
  margin-top: auto;
}
.feature-card__link:hover { color: var(--gold-dark); }

/* ─── PHILOSOPHY SECTION ─────────────────────────────────────────────────────── */
.section-philosophy {
  background: var(--navy);
  padding: 80px 0;
}
.philosophy-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.philosophy-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.55;
}
.philosophy-cite {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ─── PAGE HERO ──────────────────────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 100px 0 60px;
  margin-top: var(--header-h);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.page-hero__tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── ABOUT PAGE ─────────────────────────────────────────────────────────────── */
.about-bio__inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1000px) { .about-bio__inner { grid-template-columns: 1fr; gap: 40px; } }

.about-headshot,
.about-headshot-placeholder svg {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-bio__badge-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}
.fellowship-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 2px solid var(--gold);
}
.fellowship-badge--alt { background: var(--gold); color: var(--navy); }

.about-bio__name-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.about-bio__credentials {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.about-bio__role { font-size: 0.95rem; color: var(--dark-gray); margin-bottom: 2px; }
.about-bio__institution { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }

/* Timeline */
.about-timeline--alt { background: var(--light-gray); }
.timeline { position: relative; max-width: 800px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--navy));
}
.timeline-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(26,39,68,0.08);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-marker {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  border: 3px solid var(--gold);
}
.timeline-degree {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.timeline-abbr {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.timeline-detail { font-size: 0.9rem; color: var(--dark-gray); }

/* Accomplishments */
.accomplishments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 700px) { .accomplishments-grid { grid-template-columns: 1fr; } }

.accomplishment-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border-left: 5px solid var(--navy);
  box-shadow: var(--shadow);
}
.accomplishment-card--gold { border-left-color: var(--gold); }
.accomplishment-card__amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.accomplishment-card--gold .accomplishment-card__amount { color: var(--gold-dark); }
.accomplishment-card__source {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.accomplishment-card__desc { font-size: 0.9rem; color: var(--dark-gray); }

/* Philosophy pillars */
.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 800px) { .philosophy-inner { grid-template-columns: 1fr; gap: 40px; } }

.philosophy-body { font-size: 1rem; color: var(--dark-gray); line-height: 1.8; }
.philosophy-pillars { display: flex; flex-direction: column; gap: 16px; }
.pillar-card {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--gold);
}
.pillar-icon { color: var(--gold); font-size: 1rem; margin-bottom: 8px; }
.pillar-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }

/* Honors */
.about-honors { background: var(--navy); }
.about-honors .section-title { color: var(--white); }
.about-honors .section-title::after { background: var(--gold); }
.honors-content { color: rgba(255,255,255,0.85); }
.honors-content ul { padding-left: 20px; }
.honors-content li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.honors-content li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 10px;
}

/* Consult CTA */
.consult-cta-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
@media (max-width: 700px) { .consult-cta-card { flex-direction: column; text-align: center; } }
.consult-cta-card h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 12px; }
.consult-cta-card p  { color: rgba(255,255,255,0.75); max-width: 480px; }

/* ─── ARCHIVE / BLOG ──────────────────────────────────────────────────────────── */
.archive-container {
  padding-top: 60px;
  padding-bottom: 60px;
}

.archive-hero-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 56px;
  background: var(--white);
}
@media (max-width: 800px) { .archive-hero-post { grid-template-columns: 1fr; } }

.archive-hero-post__link { display: block; }
.archive-hero-post__img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.archive-hero-post__img-placeholder { background: var(--navy); min-height: 300px; }
.archive-hero-post__content { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.archive-hero-post__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}
.archive-hero-post__title a { color: inherit; }
.archive-hero-post__title a:hover { color: var(--gold-dark); }
.archive-hero-post__excerpt { color: var(--dark-gray); margin-bottom: 28px; font-size: 0.95rem; }

/* Post Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }
.posts-grid--3 { grid-template-columns: repeat(3, 1fr); }

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__thumb { overflow: hidden; position: relative; }
.post-card__thumbnail { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s ease; }
.post-card__thumb-placeholder { width: 100%; height: 200px; }
.post-card:hover .post-card__thumbnail { transform: scale(1.04); }
.post-card__body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.post-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.post-card__cat a { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-dark); font-weight: 700; }
.post-card__date { font-size: 0.78rem; color: var(--text-muted); }
.post-card__title { font-size: 1.05rem; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--gold-dark); }
.post-card__excerpt { font-size: 0.87rem; color: var(--dark-gray); flex-grow: 1; margin-bottom: 16px; }
.post-card__read-more { font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-top: auto; }
.post-card__read-more:hover { color: var(--gold-dark); }

/* Post Meta */
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.post-meta__cat a { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-dark); font-weight: 700; }
.post-meta__date { font-size: 0.82rem; color: var(--text-muted); }

/* ─── SINGLE POST ─────────────────────────────────────────────────────────────── */
.single-container {
  padding-top: 0;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
  margin-top: var(--header-h);
}
@media (max-width: 1000px) { .single-container { grid-template-columns: 1fr; } }

.post-header { padding: 60px 0 32px; }
.post-header__cats { margin-bottom: 14px; }
.post-header__title { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--navy); margin-bottom: 20px; }
.post-header__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-meta__sep { color: var(--mid-gray); }
.post-meta__author, .post-meta__read-time { font-size: 0.85rem; color: var(--text-muted); }

.post-featured-image { margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden; }
.post-featured-img { width: 100%; max-height: 500px; object-fit: cover; }

/* Entry Content (shared) */
.entry-content { font-size: 1.025rem; line-height: 1.8; color: var(--dark-gray); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--navy); margin: 2em 0 0.75em; }
.entry-content ul, .entry-content ol { padding-left: 1.75em; margin-bottom: 1.2rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content li > ul { list-style: circle; margin-top: 0.3rem; margin-bottom: 0.3rem; }
/* Tables */
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.95rem; overflow-x: auto; display: block; }
.entry-content table th,
.entry-content table td { border: 1px solid var(--light-gray); padding: 10px 14px; text-align: left; vertical-align: top; }
.entry-content table thead th { background: var(--navy); color: var(--white); font-weight: 600; border-color: var(--navy-mid); }
.entry-content table tbody tr:nth-child(even) { background: rgba(26,39,68,0.04); }
.entry-content table tbody tr:hover { background: rgba(200,164,86,0.08); }
.entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 2rem 0;
  background: var(--light-gray);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.entry-content a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.entry-content a:hover { color: var(--gold-dark); }
.entry-content img { border-radius: var(--radius); }

/* Post Footer */
.post-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--light-gray); }
.post-tags { margin-bottom: 16px; font-size: 0.875rem; color: var(--dark-gray); }
.post-tags__label { font-weight: 600; margin-right: 6px; }
.post-tags a { color: var(--navy); }
.post-tags a:hover { color: var(--gold-dark); text-decoration: underline; }
.post-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-share__label { font-size: 0.875rem; font-weight: 600; color: var(--dark-gray); }
.share-link {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition);
}
.share-link--twitter  { background: #000; color: #fff; }
.share-link--linkedin { background: #0077b5; color: #fff; }
.share-link--facebook { background: #1877f2; color: #fff; }
.share-link:hover { opacity: 0.85; transform: translateY(-1px); }

/* Author Box */
.author-box {
  display: flex;
  gap: 24px;
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
}
@media (max-width: 600px) { .author-box { flex-direction: column; } }
.author-box__avatar img { border-radius: 50%; width: 80px; height: 80px; object-fit: cover; flex-shrink: 0; }
.author-box__name { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.author-box__bio { font-size: 0.9rem; color: var(--dark-gray); }

/* Post Navigation */
.post-navigation { margin: 32px 0; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; }
.post-navigation .nav-previous,
.post-navigation .nav-next { max-width: 50%; }
.post-navigation .nav-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.post-navigation .nav-title { font-family: var(--font-serif); color: var(--navy); font-size: 0.95rem; }
.post-navigation a:hover .nav-title { color: var(--gold-dark); }
.post-navigation .nav-next { text-align: right; margin-left: auto; }

/* Related Posts */
.related-posts__title { font-size: 1.5rem; margin-bottom: 28px; }

/* ─── SIDEBAR ─────────────────────────────────────────────────────────────────── */
.sidebar { padding-top: 120px; }
.widget { margin-bottom: 36px; }
.widget-title {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 16px;
}
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--light-gray); font-size: 0.9rem; }
.widget ul li a { color: var(--dark-gray); }
.widget ul li a:hover { color: var(--navy); }

/* ─── GALLERY PAGE ────────────────────────────────────────────────────────────── */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.gallery-filter__btn {
  padding: 9px 22px;
  border: 2px solid var(--navy);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
  background: transparent;
}
.gallery-filter__btn:hover,
.gallery-filter__btn.is-active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}
.gallery-filter__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.gallery-grid {
  columns: 3 220px;
  gap: 16px;
  padding-bottom: 60px;
}
@media (max-width: 600px) { .gallery-grid { columns: 2 140px; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.gallery-item.is-hidden { display: none; }
.gallery-item__link { display: block; position: relative; }
.gallery-item__img { width: 100%; display: block; border-radius: var(--radius); }
.gallery-item__img--ph { width: 100%; display: block; }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,39,68,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius);
}
.gallery-item__overlay svg { width: 36px; height: 36px; }
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-placeholder-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 32px; padding: 20px; background: var(--light-gray); border-radius: var(--radius); }

/* ─── PODCASTS PAGE ───────────────────────────────────────────────────────────── */
.podcasts-container { padding-top: 60px; padding-bottom: 60px; }
.podcasts-intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }

.podcasts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
@media (max-width: 800px) { .podcasts-grid { grid-template-columns: 1fr; } }

.episode-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 140px 1fr;
  transition: all var(--transition);
}
@media (max-width: 600px) { .episode-card { grid-template-columns: 1fr; } }
.episode-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.episode-card__thumbnail {
  position: relative;
  background: var(--navy);
}
.episode-thumb { width: 100%; height: 100%; object-fit: cover; }
.episode-thumb-placeholder { width: 100%; height: 100%; min-height: 140px; }
.episode-thumb-placeholder svg { width: 100%; height: 100%; }

.episode-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}
.episode-play-btn svg { width: 50px; height: 50px; }

.episode-card__content { padding: 20px 24px; }
.episode-number { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-dark); font-weight: 700; margin-bottom: 4px; }
.episode-date   { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.episode-card__title { font-size: 1rem; margin-bottom: 8px; }
.episode-card__title a { color: var(--navy); }
.episode-card__title a:hover { color: var(--gold-dark); }
.episode-card__excerpt { font-size: 0.85rem; color: var(--dark-gray); margin-bottom: 12px; }
.episode-audio-player { width: 100%; }
.episode-embed-wrap iframe { border-radius: var(--radius); }

.podcasts-placeholder {
  text-align: center;
  padding: 80px 40px;
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  max-width: 560px;
  margin: 0 auto 60px;
}
.podcasts-placeholder__icon { width: 80px; height: 80px; margin: 0 auto 24px; }
.podcasts-placeholder h2 { color: var(--navy); margin-bottom: 12px; }
.podcasts-placeholder p { color: var(--dark-gray); font-size: 0.9rem; margin-bottom: 8px; }

.podcast-subscribe { background: var(--navy); padding: 60px 0; }
.podcast-subscribe__inner { max-width: 600px; margin: 0 auto; text-align: center; }
.podcast-subscribe__title { color: var(--white); margin-bottom: 12px; }
.podcast-subscribe p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.podcast-platforms { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.platform-badge {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}
.platform-badge--spotify { background: #1db954; color: #fff; }
.platform-badge--apple   { background: #f56300; color: #fff; }
.platform-badge--google  { background: #4285f4; color: #fff; }
.platform-badge--youtube { background: #ff0000; color: #fff; }
.platform-badge:hover { opacity: 0.85; transform: translateY(-2px); }

/* ─── IN MEMORIAM ─────────────────────────────────────────────────────────────── */
.memoriam-main { background: #f5f2ec; }
.memoriam-hero {
  background: var(--navy);
  padding: 100px 0 80px;
  margin-top: var(--header-h);
  text-align: center;
}
.memoriam-ornament { font-size: 1.5rem; color: var(--gold); margin-bottom: 16px; }
.memoriam-hero__title { color: var(--white); font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.memoriam-divider {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto;
  opacity: 0.6;
}
.memoriam-hero__verse {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto;
}
.memoriam-hero__verse cite { font-style: normal; color: var(--gold); display: block; margin-top: 8px; }
.memoriam-container { max-width: 780px; text-align: center; }
.memoriam-image { margin-bottom: 40px; }
.memoriam-photo { width: 280px; max-width: 100%; border-radius: var(--radius-lg); margin: 0 auto; box-shadow: var(--shadow-lg); }
.memoriam-body { text-align: left; }
.memoriam-tribute { margin-top: 56px; text-align: center; }
.memoriam-candle { width: 60px; margin: 0 auto 16px; }
.memoriam-tribute__text { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); font-style: italic; }

/* ─── CONTACT PAGE ────────────────────────────────────────────────────────────── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; gap: 40px; } }

.contact-section__title { font-size: 1.75rem; margin-bottom: 10px; }
.contact-section__intro { color: var(--dark-gray); margin-bottom: 28px; font-size: 0.95rem; }

/* Form */
.form-row--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row--2col { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-label span { color: var(--gold-dark); }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d4d8e0;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,0.1);
}
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 140px; }
.form-group--submit { margin-top: 8px; }

.contact-message {
  margin-top: 0;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
}
.contact-message--success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.contact-message--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.contact-info-card { margin-bottom: 28px; }
.contact-info-card__title { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.contact-info-card__address, .contact-info-card p { font-size: 0.9rem; color: var(--dark-gray); line-height: 1.7; }
.contact-ext-link { color: var(--navy); font-weight: 600; }
.contact-ext-link:hover { color: var(--gold-dark); }

.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* ─── FOOTER ──────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: var(--white);
}

.footer-widgets-area { background: var(--navy); padding: 60px 0; }
.footer-widgets-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 800px) { .footer-widgets-row { grid-template-columns: 1fr; } }
.footer-widget-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 16px; }

.footer-main { padding: 64px 0; }
.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .footer-columns { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-columns { grid-template-columns: 1fr; } }

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,164,86,0.3);
}

.footer-logo-svg { height: 52px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: 0.85rem; color: var(--mid-gray); line-height: 1.6; margin-bottom: 20px; }
.footer-link { color: var(--mid-gray); font-size: 0.9rem; }
.footer-link:hover { color: var(--gold); }

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--mid-gray);
  transition: all var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--navy); }

.footer-menu { columns: 2; column-gap: 12px; }
.footer-menu li { padding: 5px 0; break-inside: avoid; }
.footer-menu a { font-size: 0.875rem; color: var(--mid-gray); transition: color var(--transition); }
.footer-menu a:hover { color: var(--gold); }
@media (max-width: 600px) { .footer-menu { columns: 1; } }

.footer-address p { font-size: 0.875rem; color: var(--mid-gray); line-height: 1.7; margin-bottom: 12px; }
.footer-address strong { color: rgba(255,255,255,0.85); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.copyright, .footer-credit { font-size: 0.8rem; color: var(--mid-gray); }
.footer-credit { font-family: var(--font-sans); }

/* ─── 404 PAGE ────────────────────────────────────────────────────────────────── */
.error-main { margin-top: var(--header-h); }
.error-content {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 24px;
}
.error-404__number {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 800;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: -20px;
}
.error-404__title { font-size: 2rem; color: var(--navy); margin-bottom: 16px; }
.error-404__message { color: var(--dark-gray); margin-bottom: 32px; }
.error-404__actions { margin-bottom: 40px; }
.error-search p { color: var(--dark-gray); margin-bottom: 12px; font-size: 0.9rem; }

/* ─── SEARCH ─────────────────────────────────────────────────────────────────── */
.search-form-wrap { max-width: 560px; margin: 0 auto 40px; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #d4d8e0;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,39,68,0.1); }
.search-form button { padding: 12px 20px; background: var(--navy); color: var(--white); border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; }
.search-form button:hover { background: var(--navy-mid); }
.search-term { color: var(--gold-dark); }

/* ─── PAGINATION ──────────────────────────────────────────────────────────────── */
.ebjohn-pagination { margin: 40px 0; }
.ebjohn-pagination ul { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; }
.ebjohn-pagination ul li { }
.ebjohn-pagination ul li a,
.ebjohn-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid var(--light-gray);
  transition: all var(--transition);
}
.ebjohn-pagination ul li a:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.ebjohn-pagination ul li .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ─── CONTENT NONE ────────────────────────────────────────────────────────────── */
.no-results { padding: 80px 0; text-align: center; }
.content-none-inner { max-width: 480px; margin: 0 auto; }
.content-none-icon { width: 80px; height: 80px; margin: 0 auto 24px; opacity: 0.5; }
.content-none__title { color: var(--navy); margin-bottom: 12px; }
.content-none__msg { color: var(--dark-gray); margin-bottom: 28px; }

/* ─── MOBILE NAV ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  #site-navigation {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 24px;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  }
  #site-navigation.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-menu { flex-direction: column; gap: 4px; }
  .nav-menu a { padding: 12px 16px; font-size: 1rem; border-radius: var(--radius); }
}

/* ─── FOCUS STYLES ────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── SCREEN READER TEXT ──────────────────────────────────────────────────────── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ─── CONTENT AREA LAYOUT ─────────────────────────────────────────────────────── */
.content-area { flex: 1; min-width: 0; }
.archive-container,
.page-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 60px;
}
@media (max-width: 1000px) {
  .archive-container,
  .page-container { grid-template-columns: 1fr; }
  .sidebar { padding-top: 0; }
}

/* ─── PAGE.PHP ────────────────────────────────────────────────────────────────── */
.page-main { margin-top: var(--header-h); }
.page-article { padding: 0; }
.page-featured-image { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.page-featured-img { width: 100%; max-height: 400px; object-fit: cover; }
.page-content { font-size: 1rem; line-height: 1.8; }
.page-links { margin-top: 20px; }

/* ─── GALLERY PAGE CONTENT ────────────────────────────────────────────────────── */
.gallery-page-content { padding: 60px 0; }

/* ─── MISC ────────────────────────────────────────────────────────────────────── */
.site-main { min-height: 60vh; }
.archive-pagination { text-align: center; }

/* Page main for archive/single gets header push */
.archive-main, .search-main { margin-top: 0; }

/* Printing */
@media print {
  .site-header, .site-footer, .sidebar, .post-navigation { display: none; }
  .single-container { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   NAV DROPDOWN SUBMENU
   ═══════════════════════════════════════════════════════════════ */
.nav-menu .menu-item-has-children > a::after {
  content: '▾';
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7em;
  vertical-align: middle;
  transition: transform var(--transition);
}
.nav-menu .menu-item-has-children.is-open > a::after,
.nav-menu .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 190px;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  list-style: none;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.nav-menu .menu-item-has-children:hover > .sub-menu,
.nav-menu .menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .sub-menu li { position: relative; }
.nav-menu .sub-menu a {
  display: block;
  padding: 10px 18px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  border-radius: 0;
  white-space: nowrap;
}
.nav-menu .sub-menu a:hover { color: var(--gold); background: rgba(200,164,86,0.12); }

/* Mobile: submenu stacked below parent */
@media (max-width: 768px) {
  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--gold);
    border-radius: 0;
    padding: 0;
    display: none;
  }
  .nav-menu .menu-item-has-children.is-open > .sub-menu { display: block; }
  .nav-menu .sub-menu a { padding: 8px 18px 8px 28px; font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO PODCASTS PAGE
   ═══════════════════════════════════════════════════════════════ */
.page-hero--video-podcasts { background: linear-gradient(135deg, var(--navy) 0%, #2a3f6f 100%); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 36px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Responsive 16:9 embed wrapper */
.video-card__embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #111; }
.video-card__embed iframe,
.video-card__embed object,
.video-card__embed embed {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-card__no-embed,
.video-card__placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  flex-direction: column;
  gap: 10px;
}
.video-card__play-icon { font-size: 2.5rem; }
.video-card__ext-link { color: var(--gold); text-decoration: none; text-align: center; }
.video-card__body { padding: 20px 24px 24px; }
.video-card__title { font-size: 1.05rem; margin-bottom: 8px; }
.video-card__title a { color: var(--navy); text-decoration: none; }
.video-card__title a:hover { color: var(--gold-dark); }
.video-card__meta { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.video-card__platform {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.video-card__platform--youtube { background: #ff0000; color: #fff; }
.video-card__platform--vimeo   { background: #1ab7ea; color: #fff; }
.video-card__excerpt { font-size: 0.88rem; color: var(--dark-gray); line-height: 1.6; }

/* Empty state */
.video-empty-state {
  text-align: center;
  padding: 80px 20px;
  max-width: 520px;
  margin: 0 auto;
}
.video-empty-icon { font-size: 3.5rem; margin-bottom: 20px; }
.video-empty-state h2 { color: var(--navy); margin-bottom: 14px; }
.video-empty-state p { color: var(--dark-gray); margin-bottom: 28px; line-height: 1.7; }

/* ── Honeypot (spam protection) ──────────────────────────────────────────── */
.ebjohn-hp-wrap {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH — toggle button, overlay, form
   ═══════════════════════════════════════════════════════════ */

/* Search toggle button in header */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light, #fff);
  padding: 8px;
  margin-left: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.search-toggle:hover,
.search-toggle:focus-visible {
  background: rgba(200,164,86,.15);
  color: var(--gold);
  outline: none;
}
.search-toggle .close-icon { display: none; }
.search-toggle[aria-expanded="true"] .search-icon { display: none; }
.search-toggle[aria-expanded="true"] .close-icon  { display: block; }

/* Search overlay — slides down from header */
.header-search-overlay {
  background: var(--navy, #1a2744);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-top: 0 solid rgba(200,164,86,.25);
  transition: max-height .35s ease, opacity .3s ease, padding .35s ease, border-top-width .35s ease;
  padding: 0;
}
.header-search-overlay.is-open {
  max-height: 120px;
  opacity: 1;
  padding: 20px 0;
  border-top-width: 1px;
}

/* Search form */
.search-form { width: 100%; }
.search-form__inner {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(200,164,86,.4);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s;
}
.search-form__inner:focus-within {
  border-color: var(--gold, #c8a456);
}
.search-form__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
}
.search-form__input::placeholder { color: rgba(255,255,255,.45); }
.search-form__input::-webkit-search-cancel-button { display: none; }
.search-form__btn {
  background: none;
  border: none;
  border-left: 1px solid rgba(200,164,86,.3);
  color: var(--gold, #c8a456);
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .2s, color .2s;
}
.search-form__btn:hover { background: var(--gold, #c8a456); color: var(--navy, #1a2744); }

/* Search results page */
.search-main .search-form-wrap {
  margin-bottom: 2.5rem;
}
.search-main .search-form__inner {
  border-color: rgba(26,39,68,.3);
  background: #f9f9f9;
}
.search-main .search-form__input { color: #1a2744; }
.search-main .search-form__input::placeholder { color: #888; }
.search-main .search-form__btn {
  border-left-color: rgba(26,39,68,.15);
  color: var(--navy, #1a2744);
}
.search-main .search-form__btn:hover { background: var(--navy, #1a2744); color: #fff; }
.search-term { color: var(--gold, #c8a456); }

/* Mobile: search-toggle placement */
@media (max-width: 768px) {
  .search-toggle { margin-left: 4px; }
}

/* Search result type badge */
.post-card__type-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy, #1a2744);
  background: rgba(200,164,86,.18);
  border: 1px solid rgba(200,164,86,.4);
  border-radius: 3px;
  padding: 2px 7px;
  margin-right: 6px;
}

/* ═══════════════════════════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy, #1a2744);
  color: var(--gold, #c8a456);
  border: 2px solid var(--gold, #c8a456);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease,
              background .2s ease, color .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--gold, #c8a456);
  color: var(--navy, #1a2744);
  outline: none;
}
@media (max-width: 600px) {
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ═══════════════════════════════════════════════════════════
   SEARCH RESULTS — Option B list rows
   ═══════════════════════════════════════════════════════════ */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.5rem;
}

.search-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #e8e4dd;
  transition: background .15s;
}
.search-row:first-child { border-top: 1px solid #e8e4dd; }
.search-row:hover { background: #faf8f5; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }

/* Thumbnail */
.search-row__thumb-link {
  flex-shrink: 0;
  width: 110px;
  height: 78px;
  border-radius: 5px;
  overflow: hidden;
  display: block;
  background: #e8e4dd;
}
.search-row__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.search-row:hover .search-row__thumb { transform: scale(1.04); }
.search-row__thumb-link--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy, #1a2744);
}
.search-row__thumb-placeholder {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold, #c8a456);
}

/* Body */
.search-row__body { flex: 1; min-width: 0; }

.search-row__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.search-row__date {
  font-size: 0.75rem;
  color: #888;
}

.search-row__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--navy, #1a2744);
}
.search-row__title a { color: inherit; text-decoration: none; }
.search-row__title a:hover { color: var(--gold-dark, #a07c2e); text-decoration: underline; }

.search-row__excerpt {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-row__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark, #a07c2e);
  text-decoration: none;
  letter-spacing: .03em;
}
.search-row__link:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 500px) {
  .search-row__thumb-link { width: 80px; height: 60px; }
  .search-row__title { font-size: 1rem; }
  .search-row:hover { margin: 0; padding-left: 0; padding-right: 0; }
}

/* Blog archive page — push grid below fixed header */
.blog-archive-wrap {
  padding-top: calc(var(--header-h, 72px) + 48px);
  padding-bottom: 64px;
}
@media (max-width: 768px) {
  .blog-archive-wrap { padding-top: calc(var(--header-h, 72px) + 32px); }
}

/* ═══════════════════════════════════════════════════════════
   WP ADMIN BAR — offset fixed header so it sits below the bar
   ═══════════════════════════════════════════════════════════ */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  /* WP admin bar collapses to 46px on small screens */
  .admin-bar .site-header {
    top: 46px;
  }
}
