/* -------------------------------
   PODCAST PAGE STYLES (scoped)
----------------------------------*/

/* Scope everything to podcast pages */
#podcast-page, 
#podcast-page * {
  box-sizing: border-box;
  max-width: 100%;
}
#podcast-page {
  overflow-x: hidden;
  padding: 0;
  background-color: #f9f9f9;
}

/* ============================
   HEADER – scoped, conflict-free
============================ */
/* Remove all unintended margins */
html, body {
  margin: 0;
  padding: 0;
}

/* HEADER CONTAINER */
#podcast-page .podcast-header {
  background: #333;
  color: #fff;
  width: 100%;
}

/* FLEX for logo + text */
#podcast-page .podcast-header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;   /* center the combined block */
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;             /* center within page */
  padding: 5px 0;            /* vertical padding only */
  box-sizing: border-box;
}

/* LOGO */
#podcast-page .podcast-logo {
  width: 150px;
  height: auto;
  border-radius: 50%;
  border: 2px solid #ccc;
}

/* TITLE + TAGLINE */
#podcast-page .podcast-title-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#podcast-page .podcast-title-text h1 {
  font-size: 2rem;
  margin: 0;
}

#podcast-page .podcast-tagline {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 5px;
}

/* MOBILE STACK */
@media (max-width: 768px) {
  #podcast-page .podcast-header-content {
    flex-direction: column;
    text-align: center;
  }
  #podcast-page .podcast-title-text {
    text-align: center;
  }
}

/* Mobile: stack and center */
@media (max-width: 768px) {
  #podcast-page .podcast-header-content {
    flex-direction: column;
    text-align: center;
  }
  #podcast-page .podcast-logo {
    width: 110px;
    height: 110px;
    flex: 0 0 auto;
  }
  #podcast-page .podcast-title-text {
    text-align: center;
    flex: 0 1 auto;
  }
  #podcast-page .podcast-title-text h1 {
    text-align: center;
  }
}

/* ============================
   PODCAST SUBNAV (under header)
============================ */
#podcast-page .podcast-subnav {
  margin-top: 6px;
  width: 100%;
}

#podcast-page .podcast-subnav ul {
  list-style: none;
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;              /* wrap nicely on small screens */
}

#podcast-page .podcast-subnav a {
  display: inline-block;
  padding: 10px 4px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease, opacity .15s ease;
  opacity: 0.9;
}

#podcast-page .podcast-subnav a:hover,
#podcast-page .podcast-subnav a:focus {
  opacity: 1;
  border-bottom-color: #f39c12; /* accent underline on hover */
  outline: none;
}

/* Active state */
#podcast-page .podcast-subnav a.active {
  border-bottom-color: #fff;
  opacity: 1;
}

/* Mobile: allow horizontal scroll if cramped */
@media (max-width: 560px) {
  #podcast-page .podcast-subnav ul {
    justify-content: center;
    overflow-x: auto;
    white-space: nowrap;
    gap: 16px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
}

#podcast-page .podcast-subnav {
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ============================
   PLATFORM LINKS
============================ */
#podcast-page .podcast-platforms {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 30px 0;
  flex-wrap: wrap;
}
#podcast-page .podcast-platforms a img {
  height: 40px;
  transition: transform 0.2s ease;
}
#podcast-page .podcast-platforms a img:hover { transform: scale(1.1); }

/* ============================
   ABOUT / INTRO
============================ */
#podcast-page .about-title {   /* your H2 under platform links */
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  margin: 40px 0 20px;
  color: #111;
}

#podcast-page .podcast-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  text-align: center;
}
#podcast-page .podcast-intro strong { color: #000; }
#podcast-page .podcast-intro em { color: #666; }

/* Section heading (“LATEST EPISODES”) */
#podcast-page .section-heading {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin: 30px 0 10px;
}

/* ============================
   EPISODES
============================ */
#podcast-page #episodeContainer {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

#podcast-page .episode {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

#podcast-page .episode h3 { margin: 0 0 8px; overflow-wrap: anywhere; }

/* audio + image row */
#podcast-page .episode-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
#podcast-page .episode-top audio {
  flex: 1 1 auto;
  max-width: 75%;
  height: 32px;
}

/* episode artwork */
#podcast-page .episode-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10%;
}

#podcast-page .meta {
  color: #777;
  font-size: 0.85em;
  margin-bottom: 8px;
}
#podcast-page .episode p { margin: 0; text-align: left; }

/* Mobile episode tweaks */
@media (max-width: 600px) {
  #podcast-page .episode-top { flex-direction: column; align-items: center; }
  #podcast-page .episode-top audio { width: 100%; max-width: 100%; }
  #podcast-page .episode-image { width: 100px; height: 100px; }
  #podcast-page .episode p { text-align: center; }
}

/* Description toggle on All Episodes */
#podcast-page .episode-actions {
  margin-top: 8px;
  text-align: left;
}

#podcast-page .toggle-desc {
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

#podcast-page .toggle-desc[aria-expanded="true"] {
  background: #333;
}

#podcast-page .episode-description {
  display: none;
  margin-top: 10px;
}

#podcast-page .episode-description.is-open {
  display: block;
}

/* ============================
   BUTTONS
============================ */
#podcast-page .see-all-container { text-align: center; margin-top: 20px; }
#podcast-page .see-all-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s ease;
}
#podcast-page .see-all-btn:hover { background: #333; }

/* ============================
   FOOTER (since style.css is removed)
============================ */
#podcast-page .podcast-footer {
  text-align: center;
  padding: 20px 0;
  background: #333;
  color: #fff;
  margin-top: 30px;
}