/* =========================================
   Podcast Episodes ACF Block
   Matches Intact theme design language:
   - Fonts: Open Sans (body), Poppins (headings)
   - Colors: accent from theme, headings #1f1f1f, text #666
   ========================================= */

.podcast-block {
  max-width: 1170px;
  margin: 0 auto;
  padding: 80px 15px;
}

/* --- Hero Section --- */

.podcast-hero {
  background: #1f1f1f;
  margin-bottom: 60px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -80px;
  padding: 80px calc(50vw - 585px + 15px);
  border-radius: 0;
}

.podcast-hero__series-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #2199d4;
  margin-bottom: 8px;
}

.podcast-hero__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.podcast-hero__desc {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #cccccc !important;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  text-align: center;
}

.podcast-hero__featured {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  cursor: pointer;
  padding: 20px;
  border-radius: 4px;
  transition: background 0.3s;
}

.podcast-hero__featured:hover {
  background: rgba(255, 255, 255, 0.05);
}

.podcast-hero__thumb {
  flex: 0 0 55%;
  max-width: 55%;
}

.podcast-hero__thumb,
.podcast-episode__thumb {
  position: relative;
}

.podcast-hero__thumb::after,
.podcast-episode__thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25%;
  aspect-ratio: 1;
  background: url('/wp-content/uploads/2026/05/icon-play-overlay.svg') no-repeat center / contain;
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.3s;
}

.podcast-episode-trigger:hover .podcast-hero__thumb::after,
.podcast-episode-trigger:hover .podcast-episode__thumb::after {
  opacity: 1;
}

.podcast-hero__thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.podcast-hero__info {
  flex: 1;
  min-width: 0;
}

.podcast-hero__ep-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.podcast-hero h2,
.podcast-hero h3,
.podcast-hero h4,
.podcast-hero p,
.podcast-hero div {
  color: #ffffff;
}

.podcast-hero__label {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cccccc;
  margin-bottom: 8px;
}

.podcast-hero__summary {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #cccccc !important;
  line-height: 1.7;
}

/* --- Hero CTA Button (panel version) --- */

.podcast-hero__cta {
  margin-top: 30px;
  padding-left: 20px;
}

.podcast-hero__button {
  display: inline-block;
  height: 50px;
  line-height: 46px;
  padding: 0 30px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: transparent;
  border: 2px solid #2199d4;
  border-radius: 2px;
  color: #2199d4 !important;
  text-decoration: none;
  transition: all 0.3s;
}

.podcast-hero__button:hover {
  background: #2199d4;
  color: #ffffff !important;
}

/* --- Panel variant (homepage) --- */

.podcast-block--panel {
  padding: 0;
}

.podcast-block--panel .podcast-hero {
  margin-bottom: 0;
}

#podcast-homepage-panel {
  padding-bottom: 0 !important;
}

#b2b-marketing-tutorials-homepage-panel {
  padding-top: 0 !important;
}

.podcast-block--panel .podcast-hero__series-label {
  text-align: center;
  color: #1e73be;
}

.podcast-block--panel .podcast-hero__summary {
  font-size: 16px !important;
}

.podcast-block--panel .podcast-hero__ep-title {
  font-weight: 500;
  font-size: 28px;
  text-align: left;
  line-height: 2.4rem;
}

/* --- Cards Panel (homepage, light bg) --- */

.podcast-block--cards {
  padding: 0;
}

.podcast-cards-panel {
  background: #f8f8f8;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 80px calc(50vw - 585px + 15px);
}

.podcast-cards-panel__series-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1e73be;
  margin-bottom: 8px;
  text-align: center;
}

.podcast-cards-panel__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: #000000;
  margin-bottom: 40px;
  letter-spacing: -1px;
  text-align: center;
}

.podcast-cards-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.podcast-cards-panel__card {
  cursor: pointer;
  transition: opacity 0.3s;
}

.podcast-cards-panel__card:hover {
  opacity: 0.85;
}

.podcast-cards-panel__thumb {
  position: relative;
  margin-bottom: 12px;
}

.podcast-cards-panel__thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25%;
  aspect-ratio: 1;
  background: url('/wp-content/uploads/2026/05/icon-play-overlay.svg') no-repeat center / contain;
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.3s;
}

.podcast-cards-panel__card:hover .podcast-cards-panel__thumb::after {
  opacity: 1;
}

.podcast-cards-panel__thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.podcast-cards-panel__ep-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #000000;
  line-height: 1.4;
}

.podcast-cards-panel__cta {
  margin-top: 30px;
  text-align: center;
}

@media (max-width: 768px) {
  .podcast-cards-panel {
    padding: 40px 20px;
  }

  .podcast-cards-panel__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .podcast-cards-panel__title {
    font-size: 26px;
  }
}

/* --- Episode List --- */

.podcast-episodes__heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #1f1f1f;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.podcast-episode {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.3s;
}

.podcast-episode:first-child {
  border-top: 1px solid #eee;
}

.podcast-episode:hover {
  background: #f8f8f8;
}

.podcast-episode__thumb {
  flex: 0 0 320px;
}

.podcast-episode__thumb img {
  width: 320px;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.podcast-episode__info {
  flex: 1;
  min-width: 0;
}

.podcast-episode__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1f1f1f;
  margin-bottom: 6px;
}

.podcast-episode__summary {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* --- CTA Banner --- */

.podcast-cta {
  margin-top: 60px;
  padding: 50px 30px;
  text-align: center;
  border-radius: 4px;
}

.podcast-cta__heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #ffffff !important;
  margin-bottom: 20px;
  text-align: center !important;
}

.podcast-cta__copy {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  line-height: 1.6;
}

.podcast-cta__button {
  display: inline-block;
  height: 50px;
  line-height: 46px;
  padding: 0 30px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.3s;
}

.podcast-cta__button:hover {
  background: transparent;
  color: #ffffff !important;
}

/* --- Lightbox --- */

.podcast-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.podcast-lightbox-content {
  background: #fff;
  border-radius: 6px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.podcast-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.podcast-lightbox-close:hover {
  color: #ccc;
}

.podcast-lightbox-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.podcast-lightbox-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px 6px 0 0;
}

.podcast-lightbox-info {
  padding: 20px 25px 25px;
}

.podcast-lightbox-summary {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 12px;
}

.podcast-lightbox-toggle {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}

.podcast-lightbox-full {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  white-space: pre-line;
}

/* --- Empty / Fallback --- */

.podcast-empty {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #999;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .podcast-hero__featured {
    flex-direction: column;
  }

  .podcast-hero__thumb {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .podcast-episode {
    flex-direction: column;
    gap: 12px;
  }

  .podcast-hero {
    padding: 40px 20px;
  }

  .podcast-hero__title {
    font-size: 26px;
  }

  .podcast-episode__thumb {
    flex: 0 0 auto;
  }

  .podcast-episode__thumb img {
    width: 100%;
    height: auto;
  }

  .podcast-cta__heading {
    font-size: 22px;
  }

  .podcast-lightbox-content {
    max-width: 100%;
  }
}
