/* ==========================================================================
   Podcast Page Styles
   Mirrors faq.css 1-to-1 in design language and accordion mechanics.
   Uses CSS max-height transition so episode text stays in the DOM.
   ========================================================================== */

/* ---------- Page-level title suppression ---------- */
body.view-podcast #block-lifetime11-page-title,
body.view-podcast .block-page-title-block,
body.view-podcast h1.page-title,
body.view-podcast .region-content > h1:first-child {
  display: none !important;
}

body.view-podcast,
body.view-podcast #field,
body.view-podcast #white-wrap,
body.view-podcast #white-wrap2,
body.view-podcast #white,
body.view-podcast #page,
body.view-podcast .container,
body.view-podcast .wrap-columns,
body.view-podcast .content-column,
body.view-podcast .main,
body.view-podcast .region-content,
body.view-podcast #block-lifetime11-content,
body.view-podcast #block-lifetime11-content .block-inner,
body.view-podcast .views-element-container {
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

body.view-podcast,
body.view-podcast #field,
body.view-podcast #white-wrap,
body.view-podcast #white-wrap2,
body.view-podcast #white,
body.view-podcast #page,
body.view-podcast .region-content,
body.view-podcast #block-lifetime11-content,
body.view-podcast #block-lifetime11-content .block-inner,
body.view-podcast .views-element-container {
  overflow-x: clip;
}

/* ---------- Hero — parallax full-width background (estilo review-us) ---------- */
.podcast-hero {
  position: relative;
  background-image: url("https://lifetimemontessorischool.com/sites/default/files/styles/slideshow1200x600/public/Lifetime%20Montessori%20School%20-%20The%20Montessori%20Podcast.jpeg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center 25%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 0;
}

/* Overlay ligero solo sobre la imagen */
.podcast-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 45, 60, 0.22);
  pointer-events: none;
}

/* Info card al fondo, span completo — igual que .feedback en review-us */
.podcast-hero-info {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  padding: 1.4rem 2.5rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.podcast-hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #22aae0;
  margin: 0;
  padding: 0;
  line-height: 1.25;
  flex-shrink: 0;
}

/* Bloque título + subtítulo juntos */
.podcast-hero-text {
  flex-shrink: 0;
  min-width: 220px;
}

.podcast-hero-welcome {
  font-size: 1rem;
  font-weight: 600;
  color: #3a5a6a;
  margin: 0;
}

.podcast-hero-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #69797f;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.podcast-hero-title,
.podcast-hero-welcome,
.podcast-hero-desc,
.podcast-title-text,
.podcast-question-text,
.podcast-excerpt,
.podcast-firstory-link {
  overflow-wrap: anywhere;
}

.podcast-hero-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.podcast-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 6px;
  padding: 0.4rem 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition:
    opacity 0.2s,
    transform 0.15s;
}

.podcast-badge-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.podcast-badge-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.podcast-badge-apple {
  background: #22aae0;
}

.podcast-badge-spotify {
  background: #1db954;
}

/* ---------- Container ---------- */
.podcast-page {
  margin: 0 auto;
  padding: 0px 20px 60px;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

.podcast-container {
  background: #fff;
  padding: 50px;
  border-radius: 4px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ---------- Search Bar ---------- */
.podcast-search-wrapper {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.podcast-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #86b830;
  pointer-events: none;
}

.podcast-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  color: #333;
  border: 2px solid #dce9ec;
  border-radius: 4px;
  background: #f9fcfe;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.podcast-search-input:focus {
  border-color: #109bd2;
  box-shadow: 0 0 0 3px rgba(16, 155, 210, 0.12);
  background: #fff;
}

.podcast-search-input::placeholder {
  color: #9ab0b8;
  font-style: italic;
}

/* ---------- Topic Filter Buttons (identical to FAQ category buttons) ---------- */
.podcast-filters {
  margin-bottom: 30px;
  text-align: center;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.podcast-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}

.podcast-filter-btn {
  display: inline-block;
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 20px;
  border: none;
  background-color: #86b830;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
  min-width: fit-content;
  line-height: 1.3rem;
}

.podcast-filter-btn:hover {
  background-color: #6f9a26;
  color: white;
}

.podcast-filter-btn.active {
  background-color: #109bd2;
  color: white;
}

/* ---------- Footer Quote (identical to FAQ) ---------- */
.podcast-footer-quote {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #eaf1f1;
}

.podcast-footer-quote blockquote {
  max-width: 580px;
  margin: 0;
  padding: 16px 24px;
  border-left: 4px solid #8cba2d;
  background: #f7fbf3;
  border-radius: 0 4px 4px 0;
}

.podcast-footer-quote blockquote p {
  font-size: 1.1rem;
  font-style: italic;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

.podcast-footer-quote blockquote footer {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #109bd2;
  font-style: normal;
}

.podcast-footer-quote blockquote footer::before {
  content: "— ";
}

/* ---------- Season title (hidden; grouping handled by JS filters) ---------- */
.podcast-season-title {
  display: none;
}

/* ---------- Filter states ---------- */
.podcast-item.hidden-filter {
  display: none;
}

.podcast-item.show-filter {
  display: block;
}

/* ---------- Podcast List ---------- */
.podcast-list {
  margin-bottom: 0;
}

/* ---------- Single episode item ---------- */
.podcast-item {
  border-bottom: 1px solid #eaf1f1;
}

.podcast-item:last-child {
  border-bottom: none;
}

/* ---------- Question button (collapsed state) ---------- */
.podcast-question {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 20px 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: background-color 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
  min-width: 0;
}

.podcast-question:hover {
  background-color: #f7fbf3;
}

.podcast-question:focus-visible {
  outline: 2px solid #109bd2;
  outline-offset: -2px;
  border-radius: 4px;
}

.podcast-dot {
  display: block;
  min-width: 34px;
  height: 34px;
  background: #109bd2;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Inner container for all collapsed text */
.podcast-question-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Episode + duration badges row */
.podcast-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.podcast-ep-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: #109bd2;
  border-radius: 3px;
  padding: 2px 8px;
  line-height: 1.5;
}

.podcast-duration-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #69797f;
  background: #eaf1f1;
  border-radius: 3px;
  padding: 2px 8px;
  line-height: 1.5;
}

/* Episode title */
.podcast-title-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

/* Editorial question (italic, secondary color) */
.podcast-question-text {
  font-size: 0.95rem;
  font-style: italic;
  color: #109bd2;
  line-height: 1.4;
}

/* Short excerpt (muted) */
.podcast-excerpt {
  font-size: 0.9rem;
  color: #69797f;
  line-height: 1.5;
}

/* Toggle icon */
.podcast-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #8cba2d;
  transition: transform 0.3s ease;
  margin-top: 2px;
  min-width: 0;
}

.podcast-toggle svg {
  display: block;
}

/* Plus → minus animation */
.podcast-icon-h {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

.podcast-question[aria-expanded="true"] .podcast-icon-h {
  transform: rotate(90deg);
  opacity: 0;
}

/* ---------- Answer (expanded content) ---------- */
.podcast-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s ease;
}

.podcast-answer-inner {
  padding: 0 8px 0 58px;
  font-size: 1rem;
  line-height: 1.8;
  color: #69797f;
}

/* Expanded state */
.podcast-item.podcast-open .podcast-answer {
  max-height: 3000px;
  transition:
    max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s ease;
}

.podcast-item.podcast-open .podcast-answer-inner {
  padding: 0 8px 24px 58px;
}

/* Full description body */
.podcast-body {
  margin-bottom: 20px;
}

.podcast-body p {
  margin: 0 0 14px;
}

.podcast-body p:last-child {
  margin-bottom: 0;
}

.podcast-body a {
  color: #109bd2;
  text-decoration: underline;
}

.podcast-body a:hover {
  color: #0c7aa8;
}

/* Audio player */
audio.podcast-player {
  display: block;
  width: 100%;
  margin: 16px 0;
  border-radius: 4px;
  accent-color: #109bd2;
}

/* Topic pills */
.podcast-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.podcast-topic-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: #86b830;
  border-radius: 20px;
  padding: 3px 12px;
  line-height: 1.5;
}

/* Firstory link */
.podcast-firstory-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #109bd2;
  text-decoration: none;
}

.podcast-firstory-link:hover {
  color: #0c7aa8;
  text-decoration: underline;
}

/* Body field Drupal wrappers */
.podcast-answer-inner .field__item,
.podcast-answer-inner .field {
  margin: 0;
  padding: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .podcast-hero {
    min-height: 320px;
    background-position: center 18%;
  }

  .podcast-hero-info {
    padding: 1.25rem 1.75rem;
    gap: 1.25rem;
  }

  .podcast-container {
    padding: 40px 32px;
  }
}

@media (max-width: 768px) {
  .podcast-page {
    padding: 0 16px 48px;
  }

  .podcast-hero {
    background-attachment: scroll;
    min-height: 280px;
    background-position: center 20%;
  }

  .podcast-hero-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem;
    flex-wrap: nowrap;
  }

  .podcast-hero-text,
  .podcast-hero-desc {
    min-width: 0;
    width: 100%;
  }

  .podcast-hero-title {
    font-size: 1.2rem;
  }

  .podcast-hero-welcome {
    font-size: 0.95rem;
  }

  .podcast-hero-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    flex: none;
  }

  .podcast-hero-badges {
    width: 100%;
    margin-top: 0.1rem;
  }

  .podcast-badge-link {
    flex: 1 1 220px;
    justify-content: center;
  }

  .podcast-container {
    padding: 30px 20px;
  }

  .podcast-search-wrapper {
    margin-bottom: 20px;
  }

  .podcast-search-input {
    font-size: 0.95rem;
    padding: 11px 14px 11px 42px;
  }

  .podcast-filters {
    margin-bottom: 24px;
  }

  .podcast-filter-buttons {
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
  }

  .podcast-filter-btn {
    font-size: 13px;
    padding: 8px 14px;
  }

  .podcast-question {
    padding: 16px 0;
    gap: 12px;
  }

  .podcast-dot {
    min-width: 28px;
    width: 28px;
    height: 28px;
  }

  .podcast-toggle {
    width: 28px;
    height: 28px;
  }

  .podcast-title-text {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .podcast-question-text {
    font-size: 0.9rem;
  }

  .podcast-excerpt {
    font-size: 0.88rem;
  }

  .podcast-answer-inner {
    padding: 0 0 0 40px;
    font-size: 0.97rem;
    line-height: 1.7;
  }

  .podcast-item.podcast-open .podcast-answer-inner {
    padding: 0 0 20px 40px;
  }

  .podcast-footer-quote blockquote {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .podcast-hero {
    min-height: 0;
    background-position: center 24%;
  }

  .podcast-hero-info {
    padding: 1rem;
    gap: 0.75rem;
  }

  .podcast-hero-title {
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .podcast-hero-welcome {
    margin-top: 0.2rem;
  }

  .podcast-hero-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .podcast-badge-link {
    flex: 1 1 100%;
    padding: 0.7rem 0.9rem;
  }

  .podcast-filters {
    overflow: visible;
    padding-bottom: 4px;
  }

  .podcast-filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .podcast-filter-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .podcast-question {
    align-items: stretch;
    padding: 14px 0;
  }

  .podcast-meta-top {
    gap: 6px;
  }

  .podcast-question-inner {
    gap: 5px;
  }

  .podcast-answer-inner {
    padding-left: 0;
  }

  .podcast-item.podcast-open .podcast-answer-inner {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .podcast-page {
    padding: 0 10px 36px;
  }

  .podcast-hero {
    background-position: center 26%;
  }

  .podcast-container {
    padding: 22px 14px;
  }

  .podcast-hero-info {
    padding: 0.9rem 0.85rem;
  }

  .podcast-hero-title {
    font-size: 1rem;
  }

  .podcast-hero-welcome {
    font-size: 0.88rem;
  }

  .podcast-hero-desc {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .podcast-hero-badges {
    gap: 0.45rem;
  }

  .podcast-badge-link {
    min-height: 38px;
    font-size: 0.78rem;
    padding: 0.65rem 0.75rem;
  }

  .podcast-badge-link img {
    width: 18px;
    height: 18px;
  }

  .podcast-search-icon {
    left: 12px;
  }

  .podcast-search-input {
    font-size: 0.88rem;
    padding-left: 40px;
  }

  .podcast-search-input::placeholder {
    font-size: 0.74rem;
  }

  .podcast-filters {
    overflow: visible;
    padding-bottom: 0;
  }

  .podcast-filter-buttons {
    grid-template-columns: 1fr;
  }

  .podcast-filter-btn {
    font-size: 12px;
    padding: 9px 10px;
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .podcast-question {
    gap: 10px;
  }

  .podcast-title-text {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .podcast-question-text,
  .podcast-excerpt,
  .podcast-answer-inner,
  .podcast-firstory-link {
    font-size: 0.9rem;
  }

  .podcast-dot {
    min-width: 22px;
    width: 22px;
    height: 22px;
    margin-top: 4px;
  }

  .podcast-toggle {
    width: 24px;
    height: 24px;
  }

  .podcast-toggle svg {
    width: 16px;
    height: 16px;
  }

  .podcast-ep-badge,
  .podcast-duration-badge {
    padding: 2px 6px;
  }

  .podcast-footer-quote blockquote {
    padding: 14px 16px;
  }

  .podcast-footer-quote blockquote p {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .podcast-hero-welcome,
  .podcast-hero-desc {
    font-size: 0.84rem;
  }

  .podcast-badge-link {
    font-size: 0.8rem;
  }

  .podcast-ep-badge,
  .podcast-duration-badge {
    font-size: 0.72rem;
  }
}

