/* ============================
   SERMONS PAGE - MOBILE FIRST CSS
   Base = Mobile, scale UP with min-width

   Note: Uses global CSS variables from lbc-tokens.css
   - Colors: --color-navy, --color-cream, --color-accent, etc.
   - Typography: --font-heading, --font-body
   - Spacing: --radius-lg, --radius-md
   ============================ */

/* ============================
   BUTTONS - Mobile Base
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.6rem 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #d0a75f, #facc6b);
  color: var(--lbc-navy);
  box-shadow: 0 4px 12px rgba(208, 167, 95, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(208, 167, 95, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--lbc-navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--lbc-navy);
  border-color: var(--lbc-navy);
  color: #fff;
}

/* ============================
   1. HERO SECTION - Matches History/Beliefs/Pastors
   ============================ */
.sermons-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0b1021 0%, #1e293b 50%, #0b1021 100%);
  min-height: 400px;
  padding: var(--space-12, 3rem) 0;
}

.sermons-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 33, 0.85);
  z-index: 1;
}

.sermons-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
}

.sermons-hero .hero-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lbc-gold);
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(208, 167, 95, 0.4);
  border-radius: 999px;
}

.sermons-hero .hero-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.15;
  color: #fff;
}

.sermons-hero .hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e5e7eb;
  margin: 0 0 1.5rem;
}

.sermons-hero .hero-verse {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  padding: 0;
  border: none;
  background: transparent;
}

.sermons-hero .hero-verse p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--lbc-gold);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.sermons-hero .hero-verse cite {
  font-size: 0.85rem;
  font-style: normal;
  color: #94a3b8;
}

.sermons-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero btn-outline - Override for dark background */
.sermons-hero .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.sermons-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Tablet+ */
@media (min-width: 768px) {
  .sermons-hero {
    min-height: 450px;
    padding: var(--space-16, 4rem) 0;
  }

  .sermons-hero .hero-title {
    font-size: 2.5rem;
  }

  .sermons-hero .hero-lead {
    font-size: 1.1rem;
  }

  .sermons-hero .hero-verse p {
    font-size: 1.2rem;
  }
}

/* Desktop+ */
@media (min-width: 1024px) {
  .sermons-hero {
    min-height: 500px;
    padding: var(--space-20, 5rem) 0;
  }

  .sermons-hero .hero-title {
    font-size: 3rem;
  }

  .sermons-hero .hero-actions {
    gap: 1rem;
  }
}

/* ============================
   ARCHIVE PAGE WRAPPER
   ============================ */
.sermons-archive-page {
  background: var(--lbc-sand, #f8f5f0);
}

/* ============================
   VIDEO WRAPPER - Used on Single Sermon Page
   ============================ */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  background: #000;
  border-radius: var(--radius-lg, 1.25rem);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #64748b;
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.video-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

/* Meta Items - Shared between archive and single */
.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.meta-item svg {
  flex-shrink: 0;
}

/* ============================
   2. ARCHIVE SECTION - Mobile First
   ============================ */
.sermons-archive {
  padding: 2.5rem 0;
  background: var(--lbc-cream);
}

/* Archive Header */
.archive-header {
  margin-bottom: 2rem;
}

.archive-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.archive-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0;
  color: var(--lbc-navy);
}

.sermon-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

/* Filter Form - Mobile: Stacked */
.filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 3rem;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--lbc-gold);
  box-shadow: 0 0 0 3px rgba(208, 167, 95, 0.15);
}

.search-input::placeholder {
  color: #94a3b8;
}

.clear-search {
  position: absolute;
  right: 1rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 116, 139, 0.15);
  border-radius: 50%;
  color: #64748b;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.2s;
}

.clear-search:hover {
  background: rgba(100, 116, 139, 0.25);
  color: var(--lbc-navy);
}

/* Filter Group - Mobile: Stacked */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-select {
  width: 100%;
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.filter-select:focus {
  border-color: var(--lbc-gold);
  box-shadow: 0 0 0 3px rgba(208, 167, 95, 0.15);
}

.filter-group .btn {
  width: 100%;
}

/* Archive - Tablet */
@media (min-width: 640px) {
  .sermons-archive {
    padding: 4rem 0;
  }
  
  .archive-title-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .archive-title {
    font-size: 1.75rem;
  }
  
  .filter-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .filter-select {
    width: auto;
    min-width: 140px;
  }
  
  .filter-group .btn {
    width: auto;
  }
}

/* Archive - Desktop */
@media (min-width: 1024px) {
  .sermons-archive {
    padding: 5rem 0;
  }
  
  .archive-header {
    margin-bottom: 2.5rem;
  }
  
  .archive-title {
    font-size: 2rem;
  }
  
  .filter-form {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  
  .search-box {
    flex: 1;
    max-width: 400px;
  }
  
  .filter-group {
    flex-wrap: nowrap;
  }
}

/* ============================
   3. SERMON CARDS GRID - Mobile First
   ============================ */

/* Mobile: Single column */
.sermons-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ============================
   SERMON CARDS - Fixed Layout
   ============================ */

.sermon-card {
  background: #fff;
  border-radius: var(--radius-lg, 1.25rem);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: all 0.25s ease;
  
  /* Fixed card structure */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sermon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Card Thumbnail */
.card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--lbc-navy-soft, #1e293b);
  overflow: hidden;
  flex-shrink: 0; /* Don't compress */
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sermon-card:hover .card-thumb img {
  transform: scale(1.05);
}

.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #64748b;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 16, 33, 0.4);
  opacity: 0;
  transition: opacity 0.25s;
}

.sermon-card:hover .play-overlay {
  opacity: 1;
}

.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lbc-gold, #d0a75f);
  color: var(--lbc-navy, #0b1021);
  box-shadow: 0 4px 12px rgba(208, 167, 95, 0.4);
  transition: transform 0.2s;
}

.sermon-card:hover .play-btn {
  transform: scale(1.1);
}

/* Card Body - Grows to fill space */
.card-body {
  padding: 1.25rem;
  flex: 1; /* Takes available space */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Series Badge */
.card-series {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(208, 167, 95, 0.15);
  color: var(--lbc-gold-hover, #b48e4d);
  width: fit-content;
}

/* Card Title */
.card-title {
  font-family: var(--font-heading, "Montserrat"), sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
  color: var(--lbc-navy, #0b1021);
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: var(--lbc-gold, #d0a75f);
}

/* Card Date */
.card-date {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  margin-top: auto; /* Pushes to bottom of card-body */
}

/* Card Footer - Fixed at bottom */
.card-footer {
  padding: 1.25rem;
  padding-top: 0;
  flex-shrink: 0; /* Don't compress */
}

.card-footer .btn {
  width: 100%;
  justify-content: center;
}

/* ============================
   RESPONSIVE ADJUSTMENTS
   ============================ */

@media (min-width: 640px) {
  .card-body {
    padding: 1.5rem;
  }
  
  .card-footer {
    padding: 1.5rem;
    padding-top: 0;
  }
  
  .card-title {
    font-size: 1.15rem;
  }
}

/* Grid - Tablet: 2 columns */
@media (min-width: 640px) {
  .sermons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* Grid - Desktop: 3 columns */
@media (min-width: 1024px) {
  .sermons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .card-title {
    font-size: 1.15rem;
  }
}
/* ============================
   ENHANCED SERMON CARDS - Hover Effects
   ============================ */

.sermon-card {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sermon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card-thumb {
    cursor: pointer;
    overflow: hidden;
}

.card-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.sermon-card:hover .card-thumb img {
    transform: scale(1.05);
}

.play-overlay {
    transition: opacity 0.3s ease;
}

.sermon-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    box-shadow: 0 4px 12px rgba(208, 167, 95, 0.4);
    transition: transform 0.2s ease;
}

.sermon-card:hover .play-btn {
    transform: scale(1.1);
}

/* ============================
   4. PAGINATION
   ============================ */
.sermon-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-list li {
  margin: 0;
}

.pagination-list a,
.pagination-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: #fff;
  color: var(--lbc-text);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-list a:hover {
  background: var(--lbc-gold);
  color: var(--lbc-navy);
  border-color: var(--lbc-gold);
  transform: translateY(-1px);
}

.pagination-list .current {
  background: var(--lbc-gold);
  color: var(--lbc-navy);
  border-color: var(--lbc-gold);
}

.pagination-list .dots {
  border: none;
  background: transparent;
  pointer-events: none;
}

/* ============================
   5. EMPTY STATE
   ============================ */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.4);
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lbc-navy);
  margin: 0 0 0.5rem;
}

.empty-state p {
  color: #64748b;
  margin: 0 0 1.25rem;
}

/* ============================
   6. CTA SECTION - Mobile First
   ============================ */
.sermons-cta {
  padding: 3.5rem 0 4rem;
  background: var(--lbc-cream);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.sermons-cta .container {
  max-width: 650px;
}

.sermons-cta .cta-content {
  text-align: center;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.scripture-quote {
  margin: 0 0 2rem;
  padding: 0;
  border: none;
}

.scripture-quote p {
 font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: #1f2933;      /* ← Dark text for cream background */
  font-weight: 500;    /* ← ADD THIS */
  margin: 0 0 0.75rem;
  max-width: 700px;
  margin-inline: auto;
}

.scripture-quote cite {
  display: block;
  font-size: 0.9rem;
  color: #b48e4d;
  font-style: normal;
  font-weight: 600;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.cta-actions .btn {
  width: 100%;
  max-width: 280px;
}

.cta-actions .btn-outline {
  border-color: #0b1021;     /* ← Dark border */
  color: #0b1021;            /* ← Dark text */
  background: transparent;
}

.cta-actions .btn-outline:hover {
  background: #0b1021;       /* ← Dark background on hover */
  border-color: #0b1021;
  color: #fff;               /* ← White text on hover */
}
/* CTA Buttons with Icons */
.cta-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-actions .btn svg {
  flex-shrink: 0;
}

/* CTA - Tablet */
@media (min-width: 640px) {
  .sermons-cta {
    padding: 4rem 0;
  }
  
  .scripture-quote p {
    font-size: 1.25rem;
  }
  
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .cta-actions .btn {
    width: auto;
  }
}

/* CTA - Desktop */
@media (min-width: 1024px) {
  .sermons-cta {
    padding: 5rem 0;
  }
  
  .scripture-quote p {
    font-size: 1.35rem;
  }
}

/* ============================
   7. SINGLE SERMON PAGE
   ============================ */

/* Single Sermon Hero - Padding controlled by Customizer */
.single-sermon-hero {
  background: var(--lbc-navy);
  color: #fff;
  /* padding controlled by Customizer → Hero Spacing */
}

.back-to-sermons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 1.5rem;
}

.back-to-sermons:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--lbc-gold);
  color: var(--lbc-gold);
  transform: translateX(-2px);
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.meta-separator {
  color: rgba(255, 255, 255, 0.3);
}

/* Sermon Player Section */
.sermon-player-section {
  padding: 2rem 0 3rem;
  background: var(--lbc-cream);
}

.player-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Video Column */
.player-video {
  width: 100%;
}

/* Content Panel */
.player-content {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content-scroll {
  padding: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
}

.content-scroll::-webkit-scrollbar {
  width: 6px;
}

.content-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}

.content-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.content-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

.content-series {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(208, 167, 95, 0.15);
  color: var(--lbc-gold-hover);
  margin-bottom: 0.75rem;
}

.content-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--lbc-navy);
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.content-section {
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lbc-navy);
  margin: 0 0 0.5rem;
}

.scripture-text {
  font-style: italic;
  color: var(--lbc-gold);
  margin: 0;
}

.sermon-transcript {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--lbc-text);
}

.sermon-transcript p {
  margin: 0 0 1rem;
}

.sermon-transcript h2,
.sermon-transcript h3,
.sermon-transcript h4 {
  font-family: var(--font-heading);
  color: var(--lbc-navy);
  margin: 1.5rem 0 0.75rem;
}

/* Content Actions */
.content-actions {
  padding: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(253, 248, 238, 0.5);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.action-buttons .btn {
  flex: 1;
  min-width: 0;
  font-size: 0.7rem;
  padding: 0.6rem 0.875rem;
}

.cta-row {
  display: flex;
  gap: 0.5rem;
}

.cta-row .btn {
  flex: 1;
}
/* Single Sermon - Button Styling */
.content-actions .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.content-actions .action-buttons .btn {
  width: 100%;
  justify-content: center;
}

/* Desktop: Horizontal layout */
@media (min-width: 640px) {
  .content-actions .action-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .content-actions .action-buttons .btn {
    flex: 1;
    min-width: 0;
  }
}

/* Single Sermon - Tablet */
@media (min-width: 640px) {
  .single-sermon-hero {
    /* padding controlled by Customizer */
  }

  .hero-title {
    font-size: 2.25rem;
  }
  
  .sermon-player-section {
    padding: 3rem 0 4rem;
  }
  
  .content-scroll {
    padding: 2rem;
  }
  
  .content-title {
    font-size: 1.5rem;
  }
  
  .action-buttons .btn {
    flex: 0 1 auto;
  }
}

/* Single Sermon - Desktop */
@media (min-width: 1024px) {
  .single-sermon-hero {
    /* padding controlled by Customizer */
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .player-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
  }
  
  .player-content {
    position: sticky;
    top: calc(var(--lbc-header-h, 96px) + 2rem);
    max-height: calc(100vh - var(--lbc-header-h, 96px) - 4rem);
    display: flex;
    flex-direction: column;
  }
  
  .content-scroll {
    flex: 1;
    overflow-y: auto;
    max-height: none;
  }
  
  .content-actions {
    flex-shrink: 0;
  }
}

/* ============================
   CONTAINER (if not in global)
   ============================ */
.container {
  width: 100%;
  padding-inline: 1rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    padding-inline: 0;
  }
}
/* HERO SPACING MOVED TO lbc-overrides.css
   @see lbc-overrides.css for consolidated hero spacing rules */

body.post-type-archive-sermon .site-header,
body.single-sermon .site-header {
    margin-bottom: 0;
}
/* ============================
   SEARCH & FILTER BAR - Consistent Square Design
   ============================ */

/* Search Input - Square with subtle rounding */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  pointer-events: none;
}

.sermons-archive .search-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 3rem;
  border: 2px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px; /* Square with subtle rounding */
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: #1f2933;
  outline: none;
  transition: all 0.2s ease;
}

.sermons-archive .search-input:hover {
  border-color: rgba(148, 163, 184, 0.4);
}

.sermons-archive .search-input:focus {
  border-color: #d0a75f;
  box-shadow: 0 0 0 3px rgba(208, 167, 95, 0.15);
  background: #fff;
}

.sermons-archive .search-input::placeholder {
  color: #94a3b8;
}

.clear-search {
  position: absolute;
  right: 1rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 116, 139, 0.15);
  border-radius: 50%;
  color: #64748b;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.2s;
}

.clear-search:hover {
  background: rgba(100, 116, 139, 0.25);
  color: #1f2933;
}

/* Dropdown Selects - Square matching search bar */
.sermons-archive .filter-form select.filter-select {
  /* Square with subtle rounding - matches search */
  border-radius: 12px;

  /* Spacing */
  padding: 0.875rem 2.5rem 0.875rem 1rem;

  /* Border & Background */
  border: 2px solid rgba(148, 163, 184, 0.25);
  background-color: #fff;

  /* Typography */
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2933;

  /* Custom dropdown arrow (gold) */
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23d0a75f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;

  /* Remove native arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Interaction */
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Dropdown Hover */
.sermons-archive .filter-form select.filter-select:hover {
  border-color: rgba(148, 163, 184, 0.4);
  background-color: #fdfaf3;
}

/* Dropdown Focus */
.sermons-archive .filter-form select.filter-select:focus {
  outline: none;
  border-color: #d0a75f;
  box-shadow: 0 0 0 3px rgba(208, 167, 95, 0.15);
  background-color: #fff;
}


/* APPLY Button - Keep as standout rounded pill */
.sermons-archive .filter-form .btn-primary {
  /* Already styled as rounded pill - no changes needed */
  border-radius: 999px;
  background: linear-gradient(135deg, #d0a75f, #facc6b);
  color: #0b1021;
  box-shadow: 0 4px 12px rgba(208, 167, 95, 0.3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.875rem 1.75rem;
  transition: all 0.2s ease;
}

.sermons-archive .filter-form .btn-primary:hover {
  box-shadow: 0 6px 18px rgba(208, 167, 95, 0.4);
  transform: translateY(-2px);
}

.sermons-archive .filter-form .btn-primary:active {
  transform: translateY(0);
}

/* Transcript collapse — fade-out + expand button (P1 fix Apr 2026) */
.transcript-collapse {
  position: relative;
  max-height: 600px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.transcript-collapse.is-expanded {
  max-height: 20000px;
}

.transcript-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 96px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--lbc-white) 100%);
  pointer-events: none;
}

.transcript-collapse.is-expanded .transcript-fade {
  display: none;
}

.transcript-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: var(--lbc-navy);
  border: 1.5px solid var(--lbc-navy);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.transcript-toggle:hover,
.transcript-toggle:focus-visible {
  background: var(--lbc-navy);
  color: var(--lbc-cream, #f5f0e6);
}

.transcript-toggle:focus-visible {
  outline: 2px solid var(--lbc-gold, #d0a75f);
  outline-offset: 2px;
}

.transcript-toggle svg {
  transition: transform 0.3s ease;
}

.transcript-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.transcript-toggle .transcript-toggle__label-less {
  display: none;
}

.transcript-toggle[aria-expanded="true"] .transcript-toggle__label-less {
  display: inline;
}

.transcript-toggle[aria-expanded="true"] .transcript-toggle__label-more {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .transcript-collapse,
  .transcript-toggle svg {
    transition: none;
  }
}