/*
Theme Name: Connection Church
Theme URI: https://connectcorona.com
Author: Connection Church
Author URI: https://connectcorona.com
Description: Custom WordPress theme for Connection Church - Corona, CA. A bold, dark aesthetic with uppercase typography and ghost button styling.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: connection-church
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Primary */
  --color-black: #000000;
  --color-white: #FFFFFF;

  /* Backgrounds */
  --bg-dark: #000000;
  --bg-light: #f5f5f0;
  --bg-gray: #f5f5f0;
  --bg-sage: #C8D6C8;

  /* Accents */
  --color-teal-dark: #0C2829;
  --color-amber: #9A4C1C;
  --color-amber-light: #D78B4D;

  /* Text */
  --text-on-dark: #FFFFFF;
  --text-on-light: #000000;
  --text-muted: #888888;

  /* Borders */
  --border-light: rgba(255, 255, 255, 0.3);
  --border-dark: rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--color-white);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--color-black);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  display: inline-block;
  border: 2px solid var(--color-white);
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
  white-space: nowrap;
}

.site-logo:hover {
  opacity: 1;
}

.main-navigation {
  display: none;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-navigation a {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
}

.main-navigation a:hover {
  opacity: 0.7;
}

.nav-visit-btn {
  border: 1px solid var(--color-white);
  padding: 8px 20px;
  border-radius: 3px;
}

.nav-visit-btn:hover {
  background: var(--color-white);
  color: var(--color-black);
  opacity: 1;
}

/* Live / Watch Online button */
.nav-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 25px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.2s;
  margin-right: 8px;
}
.nav-live-btn i {
  font-size: 0.6rem;
}
.nav-live-btn:hover {
  background: rgba(255,255,255,0.1);
  opacity: 1;
}
.nav-live-btn.is-live {
  border-color: #e53e3e;
  background: rgba(229, 62, 62, 0.15);
  color: #fff;
}
.nav-live-btn.is-live:hover {
  background: rgba(229, 62, 62, 0.3);
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #e53e3e;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.6); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(229, 62, 62, 0); }
}

/* Mobile live button */
.mobile-live-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-decoration: none;
  margin-top: 10px;
}
.mobile-live-btn.is-live {
  border-color: #e53e3e;
  background: rgba(229, 62, 62, 0.15);
}
.mobile-live-btn .live-dot {
  width: 10px;
  height: 10px;
}
.offline-dot {
  background: rgba(255, 255, 255, 0.5);
  animation: none;
}

/* Dropdown */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-black);
  min-width: 220px;
  padding: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item-has-children:hover .sub-menu {
  display: block;
}

.sub-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background: var(--color-black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px 20px 60px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
}

.mobile-menu .sub-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.mobile-menu .sub-menu a {
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .main-navigation {
    display: block;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero-home {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: 60px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.1) 100%);
}

/* Lower-left content box — Pursuit NW style */
.hero-home-content {
  position: absolute;
  bottom: 160px;
  left: 40px;
  z-index: 5;
  max-width: 700px;
}

.hero-home-box {
  padding: 28px 32px;
}

.hero-home-title {
  font-size: 2.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  line-height: 1.1;
}

.hero-mission {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 18px;
}

.hero-mission em {
  font-style: italic;
  font-weight: 400;
}

.btn-ghost {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  color: var(--color-white);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn-ghost:hover {
  background: var(--color-white);
  color: var(--color-black);
  opacity: 1;
}

.hero-home-box .btn-group {
  gap: 10px;
}

/* Decorative script watermark — large, bottom, bleeds off screen */
.hero-watermark {
  position: absolute;
  bottom: -30px;
  left: 40px;
  z-index: 4;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 12rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  text-transform: none;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero-watermark {
    font-size: 16rem;
    bottom: -50px;
  }
}

@media (min-width: 1200px) {
  .hero-watermark {
    font-size: 20rem;
    bottom: -60px;
  }
}

@media (max-width: 767px) {
  .hero-home-content {
    bottom: 100px;
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .hero-home-box {
    padding: 20px;
  }

  .hero-mission {
    font-size: 0.75rem;
  }

  .hero-watermark {
    font-size: 5rem;
    left: 16px;
    bottom: -15px;
  }
}

/* ============================================
   LEAD PASTORS BLOCK
   ============================================ */
.pastors-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .pastors-block {
    grid-template-columns: 1fr 1fr;
  }
}

.pastors-image {
  display: flex;
  justify-content: center;
}

.pastors-image img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
}

.pastors-text h4 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  opacity: 0.6;
  margin-bottom: 12px;
}

.pastors-text h2 {
  margin-bottom: 20px;
}

.pastors-text p {
  opacity: 0.85;
  line-height: 1.8;
}

/* ============================================
   MESSAGES HORIZONTAL SCROLL
   ============================================ */
.messages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.messages-header h2 {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .messages-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .messages-header h2 {
    font-size: 1.4rem;
    flex: 1;
    min-width: 0;
  }
  .messages-header .btn-primary {
    padding: 8px 18px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

.messages-scroll-wrapper {
  overflow: hidden;
  padding: 0 0 20px;
}

.messages-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 20px 16px;
}

.messages-scroll::-webkit-scrollbar {
  height: 6px;
}

.messages-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.messages-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

.no-sermons-placeholder {
  display: flex;
  gap: 24px;
}

.message-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--color-black);
  transition: transform 0.3s ease;
}

.message-card:hover {
  transform: translateY(-4px);
  opacity: 1;
}

.message-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  background: #ddd;
}

.message-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.message-card:hover .message-card-play {
  opacity: 1;
}

.message-card h4 {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.message-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   WAYS TO CONNECT SECTION
   ============================================ */
.connect-section {
  position: relative;
  overflow: hidden;
}

.connect-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 12rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
  text-transform: none;
}

.connect-subtitle {
  font-size: 1rem;
  opacity: 0.7;
  max-width: 500px;
  margin: 0 auto;
}

.connect-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/5;
}

.connect-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.connect-card:hover img {
  transform: scale(1.05);
}

.connect-card:hover {
  opacity: 1;
}

.connect-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.connect-card-overlay h3 {
  color: white;
  font-size: 1.25rem;
}

/* ============================================
   GOOGLE MAP SECTION
   ============================================ */
.map-section {
  width: 100%;
  line-height: 0;
}

.map-section iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

@media (max-width: 767px) {
  .map-section iframe {
    height: 300px;
  }

  .connect-watermark {
    font-size: 6rem;
  }
}

/* Sub-page Hero */
.hero-banner {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 60px;
  overflow: hidden;
}

.hero-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-banner-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.hero-banner h1 {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  padding: 0 20px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-dark {
  background: var(--color-black);
  color: var(--color-white);
  padding: 80px 0;
}

.section-dark h2 {
  color: var(--color-white);
  margin-bottom: 40px;
}

.section-light {
  background: var(--bg-light);
  color: var(--color-black);
  padding: 80px 0;
}

.section-light h2 {
  color: var(--color-black);
  margin-bottom: 40px;
}

.section-sage {
  background: var(--bg-sage);
  color: var(--color-black);
  padding: 80px 0;
}

.section-sage h2 {
  color: var(--color-black);
  margin-bottom: 40px;
}

.section-white {
  background: var(--color-white);
  color: var(--color-black);
  padding: 80px 0;
}

.section-white h2 {
  color: var(--color-black);
  margin-bottom: 40px;
}

.section-center {
  text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--color-white);
  border-radius: 25px;
  color: var(--color-white);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--color-white);
  color: var(--color-black);
  opacity: 1;
}

.section-light .btn-primary,
.section-sage .btn-primary,
.section-white .btn-primary {
  border-color: var(--color-black);
  color: var(--color-black);
}

.section-light .btn-primary:hover,
.section-sage .btn-primary:hover,
.section-white .btn-primary:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
}

.card h3 {
  margin-top: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.card .btn-primary {
  margin-top: 12px;
}

/* ============================================
   ICON BLOCKS
   ============================================ */
.icon-block {
  text-align: center;
  padding: 20px;
}

.icon-block-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.section-light .icon-block-icon,
.section-sage .icon-block-icon {
  background: rgba(0, 0, 0, 0.08);
}

.icon-block h4 {
  margin-bottom: 8px;
}

.icon-block p {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ============================================
   STAFF / LEADERSHIP GRID
   ============================================ */
.staff-card {
  text-align: center;
}

.staff-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}

.staff-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.staff-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   EVENTS
   ============================================ */
.event-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-dark);
}

.event-date {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.event-title {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}

.event-meta {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 4px;
}

.event-nav {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── This Week Event Cards ── */
.events-week-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.event-week-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 20px 24px;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.event-week-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.event-week-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  min-width: 100px;
  padding-right: 20px;
  border-right: 2px solid var(--sage);
}

.event-week-day {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.event-week-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sage);
}

.event-week-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.event-week-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.event-week-meta span {
  white-space: nowrap;
}

.event-week-meta i {
  width: 14px;
  text-align: center;
  margin-right: 5px;
  font-size: 0.8rem;
}

/* ── Event Calendar ── */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.cal-nav-btn {
  background: transparent;
  color: var(--sage);
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.cal-nav-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.cal-month-label {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  min-width: 200px;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}

.cal-header {
  background: rgba(255,255,255,0.08);
  padding: 10px 4px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
}

.cal-cell {
  background: var(--dark-bg);
  min-height: 90px;
  padding: 6px 8px;
  position: relative;
}

.cal-cell.cal-empty {
  background: rgba(0,0,0,0.15);
  min-height: 90px;
}

.cal-day-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.cal-cell.cal-today .cal-day-num {
  color: var(--sage);
  font-weight: 800;
}

.cal-cell.cal-today {
  background: rgba(163,177,138,0.12);
  box-shadow: inset 0 0 0 2px var(--sage);
}

.cal-cell.cal-has-event {
  background: rgba(163,177,138,0.06);
}

.cal-event-dot {
  display: block;
  font-size: 0.65rem;
  line-height: 1.3;
  padding: 2px 4px;
  margin-bottom: 2px;
  border-radius: 3px;
  background: var(--sage);
  color: var(--dark-bg);
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.2s;
}

.cal-event-dot:hover {
  background: #c5d4a8;
}

.cal-event-time {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.8;
}

/* Calendar responsive */
@media (max-width: 768px) {
  .cal-cell {
    min-height: 60px;
    padding: 4px;
  }

  .cal-day-num {
    font-size: 0.75rem;
  }

  .cal-event-dot {
    font-size: 0.55rem;
    padding: 1px 3px;
  }

  .cal-event-time {
    display: none;
  }

  .cal-header {
    font-size: 0.6rem;
    padding: 6px 2px;
  }

  .event-week-card {
    flex-direction: row;
    text-align: left;
    gap: 16px;
    padding: 16px;
  }

  .event-week-date {
    width: 70px;
    min-width: 70px;
    padding-right: 12px;
    border-right: 2px solid var(--sage);
    border-bottom: none;
    flex-direction: column;
    gap: 2px;
  }

  .event-week-num {
    font-size: 1.1rem;
  }

  .event-week-info h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .event-week-meta {
    flex-direction: column;
    gap: 4px;
  }

  .events-week-grid {
    max-width: 100%;
  }
}

/* ============================================
   VIDEO CONTAINER
   ============================================ */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   GIVE PAGE SPLIT
   ============================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 400px;
}

.split-section .split-text {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-section .split-image {
  min-height: 300px;
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 4px;
}

.section-light .form-group input,
.section-light .form-group textarea {
  background: var(--color-white);
  border-color: var(--border-dark);
  color: var(--color-black);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   GOOGLE MAP
   ============================================ */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 30px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}

.footer-logo-col {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  padding: 10px 20px;
  text-decoration: none;
}

.footer-logo:hover {
  opacity: 0.7;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--color-white);
}

.footer-social-heading {
  margin-top: 32px;
}

.footer-social-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-list li a i {
  width: 16px;
  text-align: center;
}

.footer-social-list li a span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-live-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 8px 18px;
  margin-top: 6px;
}
.footer-live-link.is-live {
  color: #e53e3e !important;
  border-color: #e53e3e;
}
.footer-play-icon {
  color: #e53e3e;
  font-size: 0.7em;
}

.footer-bottom {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .footer-logo-col {
    justify-content: center;
  }
  .footer-social-list li a {
    justify-content: center;
  }
  .site-footer {
    padding: 48px 0 0;
  }
  .footer-bottom {
    margin-top: 40px;
  }
}

/* ============================================
   SERMON FILTER
   ============================================ */
.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-bar select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 10px 40px 10px 20px;
  background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--border-light);
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 25px;
  cursor: pointer;
}

.filter-bar select option {
  background: #111;
  color: #fff;
}

/* Sermon search */
.sermon-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}
.sermon-search-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}
.sermon-search-input {
  width: 100%;
  padding: 10px 20px 10px 38px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border-light);
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.85rem;
  border-radius: 25px;
}
.sermon-search-input::placeholder {
  color: rgba(255,255,255,0.35);
}
.sermon-search-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.14);
}

/* ============================================
   SINGLE SERMON
   ============================================ */

/* Header */
.sermon-single-header {
  background: var(--bg-dark);
  padding: 120px 20px 40px;
  margin-top: 60px;
}
.sermon-single-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}
.sermon-series-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}
.sermon-series-badge:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.sermon-single-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.sermon-single-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tabs */
.sermon-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 32px;
  overflow-x: auto;
}
.sermon-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.45);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.sermon-tab:hover {
  color: rgba(255,255,255,0.7);
}
.sermon-tab.active {
  color: #fff;
  border-bottom-color: #fff;
}

/* Tab content */
.sermon-tab-content {
  display: none;
}
.sermon-tab-content.active {
  display: block;
}

/* Text content areas (Read / Notes / Transcript) */
.sermon-text-content {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.9;
  max-width: 700px;
}
.sermon-text-content h3 {
  color: #fff;
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: 0;
}
.sermon-text-content p {
  margin-bottom: 16px;
}
.sermon-text-content ul,
.sermon-text-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.sermon-text-content li {
  margin-bottom: 8px;
}
.sermon-text-content blockquote {
  border-left: 3px solid rgba(255,255,255,0.2);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: rgba(255,255,255,0.7);
}

/* Audio player */
.sermon-audio-player {
  text-align: center;
  padding: 50px 20px;
}
.sermon-audio-player audio {
  filter: invert(1);
}
.sermon-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.3s ease;
}
.sermon-download-link:hover {
  color: #fff;
}

/* Share / Actions */
.sermon-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sermon-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}
.sermon-share-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* Sermon card badges */
.sermon-card-thumb {
  position: relative;
  display: block;
}
.sermon-card-badges {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
}
.sermon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(0,0,0,0.75);
  color: rgba(255,255,255,0.85);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .sermon-single-header h1 {
    font-size: 1.6rem;
  }
  .sermon-tab {
    padding: 12px 16px;
    font-size: 0.75rem;
  }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.875rem;
}

.pagination .current {
  background: var(--color-white);
  color: var(--color-black);
}

/* ============================================
   404 PAGE
   ============================================ */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}

.page-404 h1 {
  font-size: 6rem;
  margin-bottom: 20px;
}

.page-404 p {
  margin-bottom: 30px;
  opacity: 0.7;
}

/* ============================================
   DIGEST CARDS (Culture section)
   ============================================ */
.digest-card {
  text-align: center;
  padding: 30px 20px;
}

.digest-letter {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.digest-card h4 {
  margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .section-dark,
  .section-light,
  .section-sage,
  .section-white {
    padding: 50px 0;
  }

  .hero-banner {
    height: 40vh;
  }
}

/* YouTube Shorts Cards */
.short-card {
  display: block;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease;
}
.short-card:hover {
  transform: translateY(-4px);
}
.short-card-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 9/16;
}
.short-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.short-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.3s ease;
}
.short-card:hover .short-card-play {
  background: rgba(0,0,0,0.7);
  transform: translate(-50%, -50%) scale(1.1);
}
.short-card-play i {
  color: #fff;
  font-size: 1.25rem;
  margin-left: 3px;
}
.short-card h4 {
  margin-top: 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.short-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.shorts-grid {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Accordion (What We Believe) */
.accordion-item {
  border-bottom: 1px solid var(--border-dark);
  padding: 0;
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  text-transform: none;
  transition: color 0.3s ease;
}
.accordion-header:hover {
  color: var(--text-muted);
}
.accordion-header .chevron {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}
.accordion-item.active .accordion-header .chevron {
  transform: rotate(180deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 0;
}
.accordion-item.active .accordion-body {
  max-height: 500px;
  padding: 0 0 20px;
}
.accordion-body ul {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0;
}
.accordion-body li {
  margin-bottom: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Vision Video Section */
.vision-video-section {
  padding: 80px 0;
  background: #000;
}
.vision-video-section .container {
  max-width: 900px;
}
.vision-video-section h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

/* Give Page Enhanced */
.give-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 450px;
}
.give-split-text {
  background: #000;
  color: #fff;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.give-split-text h2 {
  color: #fff;
  margin-bottom: 20px;
}
.give-split-text p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.8;
}
.give-split-image {
  background-size: cover;
  background-position: center;
  min-height: 350px;
}
.give-scripture {
  border-left: 3px solid #000;
  padding-left: 24px;
  margin: 30px 0 0;
  text-align: left;
}
.give-scripture p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
}
.give-scripture cite {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  opacity: 0.7;
}
.give-ways {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.give-way-item {
  padding: 30px 16px;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.give-way-item i {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #000;
}
.give-way-item h4 {
  margin-bottom: 8px;
}
.give-way-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.give-ways-dark .give-way-item {
  background: rgba(255,255,255,0.05);
}
.give-ways-dark .give-way-item:hover {
  background: rgba(255,255,255,0.1);
}
.give-ways-dark .give-way-item i {
  color: #fff;
}
.give-ways-dark .give-way-item h4 {
  color: #fff;
}
.give-ways-dark .give-way-item p {
  color: rgba(255,255,255,0.6);
}
.give-way-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.give-way-link:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .give-split {
    grid-template-columns: 1fr;
  }
  .give-split-text {
    padding: 40px 24px;
  }
  .give-ways {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Ministry Image Cards (Pursuit NW style) */
.ministry-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  margin-top: 50px;
  text-transform: none;
  color: #000;
}
.ministry-section-title:first-of-type {
  margin-top: 0;
}
.ministry-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.ministry-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}
.ministry-image-card {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ministry-image-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.2);
}
.ministry-image-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ministry-image-card:hover img {
  transform: scale(1.04);
}
.ministry-image-card-info {
  background: #000;
  padding: 18px 20px 22px;
  flex-shrink: 0;
}
.ministry-image-card-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 5px;
  color: #fff;
}
.ministry-image-card-info p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 1024px) {
  .ministry-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .ministry-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ministry-section-title {
    font-size: 1.4rem;
  }
}
@media (max-width: 480px) {
  .ministry-grid-5 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 4px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.5);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form button {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #fff;
  border-radius: 25px;
  color: #fff;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact-form button:hover {
  background: #fff;
  color: #000;
}

/* WordPress defaults */
.alignleft { float: left; margin-right: 1em; }
.alignright { float: right; margin-left: 1em; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
