/*
Theme Name: Church of the Harvest
Theme URI: https://churchoftheharvest.ca
Author: Church of the Harvest
Author URI: https://churchoftheharvest.ca
Description: Modern responsive bilingual theme for Church of the Harvest.
Version: 1.0.0
Text Domain: church-harvest
Tags: custom-logo, custom-menu, accessibility-ready, translation-ready, rtl-language-support
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --brand-navy: #000066;
  --brand-blue: #001247;
  --brand-teal: #001247;
  --brand-red: #660000;
  --brand-gold: #666600;
  --brand-mist: #ffffff;
  --bg-base: #ffffff;
  --bg-elevated: #ffffff;
  --bg-panel: #ffffff;
  --bg-panel-strong: #660000;
  --bg-soft: #ffffff;
  --text-main: #1a1a3a;
  --text-muted: rgba(26, 26, 58, 0.88);
  --text-soft: rgba(26, 26, 58, 0.72);
  --line: rgba(0, 0, 102, 0.14);
  --line-strong: rgba(var(--accent-rgb), 0.32);
  --accent: #660000;
  --accent-strong: #880000;
  --accent-dark: #470000;
  --accent-rgb: 102, 0, 0;
  --text-main-rgb: 26, 26, 58;
  --accent-deep: #000066;
  --shadow-dark: 0 14px 30px rgba(0, 18, 71, 0.12);
}

html {
  background-color: var(--bg-base);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: #ffffff;
  background: #ffffff;
}

body,
.home-main,
.site-main,
.page-about,
.page-contact,
.page-sermons,
.page-sermon,
.page-events,
.page-event,
.page-give,
.page-ministries,
.entry {
  color: var(--text-main);
}

.home-main,
.site-main,
.page-about,
.page-contact,
.page-sermons,
.page-sermon,
.page-events,
.page-event,
.page-give,
.page-ministries,
.entry {
  position: relative;
  background: #ffffff;
}

.site-main,
.page-about,
.page-contact,
.page-sermons,
.page-sermon,
.page-events,
.page-event,
.page-give,
.page-ministries,
.entry {
  padding-top: 2.25rem;
  padding-bottom: 2.5rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 18, 71, 0.12);
}

.utility-bar {
  background: var(--text-main);
  color: var(--brand-mist);
  font-size: 0.9rem;
}

.utility-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.utility-content a {
  color: #f5f8ff;
  font-weight: 700;
}

/* Right-hand group: social icons + Plan a Visit */
.utility-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Social icons in the utility bar — light icons that blend with the blue bar */
.utility-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.utility-social__icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.utility-social__icon:hover,
.utility-social__icon:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.header {
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 78px;
}

.site-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.2px;
}

.site-title a {
  color: var(--brand-navy);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  height: 100%;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  height: 100%;
}

.site-logo img,
.custom-logo-link img {
  height: 100px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-navigation li { margin: 0; }

.main-navigation a {
  font-weight: 700;
  color: var(--brand-navy);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: rgba(0, 0, 102, 0.12);
  color: var(--brand-navy);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 102, 0.1);
  color: var(--brand-navy);
  border-radius: 999px;
  padding: 0.2rem 0.3rem;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
}

/* Polylang renders bare <li> elements inside .lang-switcher (no parent <ul>).
   Remove browser-default bullet points and make them flex children. */
.lang-switcher li.lang-item {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

/* Apply the same circular button style to Polylang-generated <a> tags */
.lang-switcher li.lang-item > a {
  width: 22px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 102, 0.22);
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lang-switcher li.lang-item > a:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 102, 0.42);
  box-shadow: 0 6px 12px rgba(0, 18, 71, 0.14);
}

.lang-switcher li.current-lang > a {
  border-color: rgba(var(--accent-rgb), 0.56);
  box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), 0.18);
}

.lang-switcher .lang-option {q  
  width: 22px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 102, 0.22);
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lang-switcher .lang-option:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 102, 0.42);
  box-shadow: 0 6px 12px rgba(0, 18, 71, 0.14);
}

.lang-switcher .lang-option.is-active {
  border-color: rgba(var(--accent-rgb), 0.56);
  box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), 0.18);
}

.lang-switcher .lang-flag {
  font-size: 0.9rem;
  line-height: 1;
}

.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 132px 0 110px;
  text-align: center;
}
.hero-overlay {
  position: absolute; inset:0;
  background: linear-gradient(140deg, rgba(0, 18, 71, 0.72), rgba(0, 0, 102, 0.5), rgba(0, 18, 71, 0.62));
}
.hero-content { position: relative; z-index: 1; }
.hero-content .subtitle {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 1rem 0;
}

.hero-content p { font-size: 1.1rem; max-width: 720px; margin: 1rem auto 1.4rem; }
.hero-cta .btn { margin: 0.25rem; }

.highlights,
.sermon-preview,
.events-preview {
  padding: 70px 0;
}

.service-schedule,
.contact-summary,
.deferred-features,
.highlights,
.sermon-preview,
.events-preview,
.connect-rail {
  background: linear-gradient(180deg, rgba(0, 0, 102, 0.06), rgba(0, 18, 71, 0.02));
}

.service-schedule,
.highlights,
.events-preview,
.deferred-features {
  border-top: 1px solid rgba(0, 0, 102, 0.08);
  border-bottom: 1px solid rgba(0, 0, 102, 0.08);
}
.section-heading {
  text-align: center;
  margin-bottom: 1.35rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  color: var(--brand-gold);
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.highlights h2, .sermon-preview h2, .events-preview h2 { margin: 0; }
.grid-3 { display:grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 1rem; }
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding:1.1rem;
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(2px);
}
.card h3 { margin-top: 0.6rem; }
.card h2,
.card h3 { color: var(--text-main); }
.card p { color: var(--text-muted); }
.card .more { color: var(--accent-strong); font-weight:600; }
.card-media {
  position: relative;
  min-height: 180px;
  margin: -1.1rem -1.1rem 1rem;
  border-radius: 16px 16px 14px 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 18, 71, 0.08), rgba(0, 18, 71, 0.5));
}

.card-media--compact {
  min-height: 150px;
}

.card-media__badge {
  position: absolute;
  left: 1rem;
  bottom: 12rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(232, 228, 220, 0.92);
  color: var(--brand-navy);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.card-media__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
}
.section-cta { text-align:center; margin-top: 1.25rem; }
.section-cta .btn { display: inline-block; margin: 0.25rem 0; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color:#ffffff; box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.35); }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: #ffffff; }

.btn-secondary { background: rgba(0, 0, 102, 0.08); color:var(--brand-navy); border: 1px solid rgba(0, 0, 102, 0.24); }
.btn-secondary:hover { background: rgba(0, 0, 102, 0.14); }

/* Standard search form styling */
.search-form,
.wp-block-search,
.searchform {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 520px;
}

.search-form label {
  flex: 1;
  margin: 0;
}

.search-form input[type="search"],
.search-form .search-field,
.wp-block-search__input,
.searchform input[type="search"],
.searchform input[type="text"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(0, 0, 102, 0.24);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  background: #ffffff;
  color: var(--brand-navy);
  box-sizing: border-box;
}

.search-form input[type="search"]::placeholder,
.search-form .search-field::placeholder,
.wp-block-search__input::placeholder,
.searchform input[type="search"]::placeholder,
.searchform input[type="text"]::placeholder {
  color: var(--text-soft);
}

.search-form input[type="search"]:focus,
.search-form .search-field:focus,
.wp-block-search__input:focus,
.searchform input[type="search"]:focus,
.searchform input[type="text"]:focus {
  outline: 2px solid rgba(0, 0, 102, 0.22);
  outline-offset: 1px;
  border-color: rgba(0, 0, 102, 0.4);
}

.search-form .search-submit,
.wp-block-search__button,
.searchform input[type="submit"],
.searchform button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.search-form .search-submit:hover,
.wp-block-search__button:hover,
.searchform input[type="submit"]:hover,
.searchform button:hover {
  background: linear-gradient(135deg, #000099, var(--brand-blue));
}

/* Standard rounded form controls (text + calendar/date) */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="month"],
input[type="datetime-local"],
select,
textarea {
  border-radius: 12px;
}

input[type="date"],
input[type="time"],
input[type="month"],
input[type="datetime-local"],
select {
  min-height: 42px;
  border: 1px solid rgba(0, 0, 102, 0.24);
  padding: 0.6rem 0.85rem;
  background: #ffffff;
  color: var(--brand-navy);
}

input[type="date"]:focus,
input[type="time"]:focus,
input[type="month"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="number"]:focus {
  outline: 2px solid rgba(0, 0, 102, 0.22);
  outline-offset: 1px;
  border-color: rgba(0, 0, 102, 0.4);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  background: rgba(0, 0, 102, 0.1);
  border-radius: 999px;
  padding: 0.2rem;
  cursor: pointer;
}

.page-contact,
.page-sermons,
.page-sermon,
.page-events,
.page-event,
.page-about,
.page-give,
.page-ministries {
  color: var(--text-main);
}

.entry h1,
.entry h2,
.entry h3,
.entry p,
.entry li {
  color: inherit;
}

.page-contact h1,
.page-sermons h1,
.page-sermon h1,
.page-events h1,
.page-event h1,
.page-about h1,
.page-give h1,
.page-ministries h1,
.page-contact h2,
.page-sermons h2,
.page-sermon h2,
.page-events h2,
.page-event h2,
.page-about h2,
.page-give h2,
.page-ministries h2,
.page-contact h3,
.page-sermons h3,
.page-sermon h3,
.page-events h3,
.page-event h3,
.page-about h3,
.page-give h3,
.page-ministries h3 {
  color: var(--text-main);
}

.page-contact p,
.page-sermons p,
.page-sermon p,
.page-events p,
.page-event p,
.page-about p,
.page-give p,
.page-ministries p,
.page-contact li,
.page-sermons li,
.page-sermon li,
.page-events li,
.page-event li,
.page-about li,
.page-give li,
.page-ministries li {
  color: var(--text-muted);
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(0, 0, 102, 0.14));
  color: var(--brand-navy);
}

.footer {
  background: #ffffff;
  color: var(--brand-navy);
  padding: 2.2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(0, 0, 102, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.footer h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  color: var(--brand-navy);
}

.footer a {
  color: var(--brand-gold);
  font-weight: 600;
}

.footer p { margin: 0.35rem 0; }

.social-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--brand-navy);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  background: rgba(var(--accent-rgb), 0.2);
  border-color: rgba(var(--accent-rgb), 0.55);
  transform: translateY(-1px);
  outline: none;
}

.social-icon svg {
  display: block;
}

.copyright {
  border-top: 1px solid rgba(0, 0, 102, 0.2);
  margin-top: 1rem;
  padding-top: 1rem;
  text-align: center;
  opacity: 0.88;
}

/* ── Hamburger button (hidden on desktop) ─────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X when open */
.nav-open .nav-toggle .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .utility-bar { display: none; }
  .header { padding: 0.75rem 0; }

  /* Row: logo left, hamburger right */
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    height: auto;
  }

  .nav-toggle { display: flex; }

  /* Nav panel hidden by default — slides down when open */
  .header-right {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid rgba(var(--accent-rgb), 0.18);
  }

  .nav-open .header-right { display: flex; }

  /* Vertical stacked links */
  .main-navigation { width: 100%; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-navigation li { width: 100%; }
  .main-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
  }

  .lang-switcher {
    align-self: flex-start;
    margin-top: 0.5rem;
    margin-left: 0.25rem;
  }

  .site-title { font-size: 1.35rem; }
  .hero-section { padding: 86px 0 66px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; margin-bottom: 1rem; }
  .hero-cta { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
  .hero-cta .btn { width: min(290px, 100%); margin: 0; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .site-title { font-size: 1.2rem; }
  .hero-content .subtitle { font-size: 0.66rem; letter-spacing: 1px; }
  .hero-content h1 { font-size: 1.68rem; }
  .hero-section { padding: 78px 0 58px; }
  .btn { padding: 0.75rem 1.2rem; }
}

/* ═══════════════════════════════════════════════════
   LIVE BANNER & NAV BADGE
   ═══════════════════════════════════════════════════ */

/* Slide-in animation */
@keyframes liveBannerIn {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* Pulsing red dot */
@keyframes livePulse {
  0%, 100% { transform: scale(1);   opacity: 1;    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  50%       { transform: scale(1.2); opacity: 0.85; box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

/* ── Top bar ── */
.live-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: linear-gradient(90deg, #8b0000 0%, var(--accent, #660000) 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: liveBannerIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.live-banner__inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Pulsing dot */
.live-banner__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4444;
  flex-shrink: 0;
  animation: livePulse 1.4s ease-in-out infinite;
}

.live-banner__label {
  color: #fff;
}

/* "Watch Now" CTA */
.live-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.live-banner__cta:hover,
.live-banner__cta:focus {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  text-decoration: none;
}

/* ✕ dismiss button */
.live-banner__close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.live-banner__close:hover,
.live-banner__close:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

/* Push page content down while banner is visible */
body:has(#live-banner) .site-header {
  margin-top: 38px; /* matches banner height */
}

/* ── Nav badge ── */
@keyframes navLivePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.main-navigation a.has-live-badge {
  position: relative;
}

.main-navigation a.has-live-badge::after {
  content: 'LIVE';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: #cc0000;
  border-radius: 999px;
  padding: 0.1rem 0.36rem;
  margin-left: 0.35rem;
  vertical-align: middle;
  line-height: 1.4;
  animation: navLivePulse 1.4s ease-in-out infinite;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .live-banner {
    font-size: 0.78rem;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    flex-direction: column;
    gap: 0.35rem;
  }

  .live-banner__inner {
    gap: 0.4rem;
  }

  .live-banner__label strong {
    display: none; /* hide video title on small screens */
  }

  body:has(#live-banner) .site-header {
    margin-top: 52px;
  }
}


/* ──────────────────────────────────────────────
 * Pastor Profile — floated family photo
 * ────────────────────────────────────────────── */
.pastor-photo-float {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 340px;
  width: 100%;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .pastor-photo-float {
    float: none;
    display: block;
    max-width: 100%;
    margin: 0 0 1.5rem;
  }
}

/* Pastor hero carousel — full-width above page content */
.pastor-hero-carousel {
  margin-bottom: 0;
}
