/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --navy:       #1f2f80;
  --navy-dark:  #151f55;
  --lavender:   #8b8cc7;
  --lavender-lt:#b8b9df;
  --crimson:    #c01854;
  --bg:         #ffffff;
  --bg-alt:     #f2f1f9;
  --bg-navy:    #1f2f80;
  --text:       #1a1a3e;
  --text-muted: #6b6b8f;
  --border:     rgba(139, 140, 199, 0.2);
  --shadow:     0 2px 16px rgba(31, 47, 128, 0.08);
  --shadow-lg:  0 8px 40px rgba(31, 47, 128, 0.14);
}

/* ─── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  padding-top: 72px;
  margin: 0;
}

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

a { color: var(--navy); }
a:hover { color: var(--crimson); text-decoration: none; }

/* ─── Container ─────────────────────────────────────────────────────────── */
.npe-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── Topbar ────────────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
}

.topbar-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.topbar-logo-img {
  height: 52px;
  width: auto;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topbar-link {
  color: var(--text-muted);
  font-family: Lato, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.topbar-link:hover {
  color: var(--navy);
  background: var(--bg-alt);
}

.topbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.topbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ─── About / hero split ────────────────────────────────────────────────── */
.about-split {
  display: flex;
  align-items: stretch;
  min-height: 560px;
  border-bottom: 1px solid var(--border);
}

.about-image-panel {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}

.about-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-text-panel {
  flex: 1;
  background: var(--bg);
  padding: 72px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-eyebrow {
  font-family: Lato, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 18px 0;
}

.about-text-panel p {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: #3a3a5c;
  margin: 0 0 16px 0;
}

.about-text-panel a { color: var(--navy); font-weight: 600; }
.about-text-panel a:hover { color: var(--crimson); }

.cta-link {
  display: inline-block;
  margin-top: 10px;
  font-family: Lato, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--navy);
  padding: 13px 26px;
  border-radius: 6px;
  transition: background 0.2s;
  align-self: flex-start;
}
.cta-link:hover { background: var(--navy-dark); color: #fff; }

/* ─── Generic section ────────────────────────────────────────────────────── */
.npe-section { padding: 72px 0; }
.npe-section-alt { background: var(--bg-alt); }
.npe-section-navy {
  background: var(--bg-navy);
  color: #fff;
}

.npe-section-title {
  font-family: Lato, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lavender);
  margin: 0 0 8px 0;
}
.npe-section-navy .npe-section-title { color: var(--lavender-lt); }

.npe-section-heading {
  font-family: Lato, sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--navy);
  margin: 0 0 36px 0;
  letter-spacing: -0.3px;
}
.npe-section-navy .npe-section-heading { color: #fff; }

/* ─── Episodes section ───────────────────────────────────────────────────── */
.ep-slider-shell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 120px;
}

.ep-slide {
  display: none;
  flex-direction: column;
}
.ep-slide.active { display: flex; }

.ep-slide-meta {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.ep-slide-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.ep-slide-player {
  /* Buzzsprout embed renders here — no extra padding needed */
}

.ep-slider-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.ep-counter {
  font-family: Lato, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  min-width: 40px;
  text-align: center;
}

/* carousel below the main player */
.carousel-shell {
  position: relative;
  margin: 0 -8px;
}

.carousel-shell::before,
.carousel-shell::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.carousel-shell::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt), transparent);
}
.carousel-shell::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt), transparent);
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 8px 16px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.carousel-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.carousel-btn:hover {
  background: var(--bg-alt);
  border-color: var(--lavender);
  box-shadow: var(--shadow-lg);
}
.carousel-btn:disabled { opacity: 0.25; cursor: default; box-shadow: none; }

/* ─── Episode card ───────────────────────────────────────────────────────── */
.ep-card {
  flex: 0 0 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--lavender);
  border-radius: 10px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}
.ep-card:hover {
  box-shadow: var(--shadow-lg);
  border-top-color: var(--navy);
  transform: translateY(-2px);
}

.ep-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ep-badge {
  font-family: Lato, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--bg-alt);
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.ep-date {
  font-family: Lato, sans-serif;
  font-size: 10px;
  color: var(--text-muted);
}

.ep-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}

/* loading / error */
.ep-loading, .ep-error {
  font-family: Lato, sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
  width: 100%;
}
.ep-error a { color: var(--navy); font-weight: 600; }

.view-all-row { margin-top: 28px; }
.view-all-link {
  font-family: Lato, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
  display: inline-block;
  transition: background 0.15s, border-color 0.15s;
}
.view-all-link:hover {
  background: var(--bg-alt);
  border-color: var(--lavender);
  color: var(--navy);
}

/* ─── Platform / Listen grid ─────────────────────────────────────────────── */
.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 22px;
  min-width: 190px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.platform-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--lavender);
}
.platform-item img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.platform-name {
  font-family: Lato, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}

/* ─── Support ────────────────────────────────────────────────────────────── */
.support-block a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.support-block a:hover { box-shadow: var(--shadow-lg); border-color: var(--lavender); }
.support-block img { width: 38px; height: 38px; object-fit: contain; }

/* ─── Resources ──────────────────────────────────────────────────────────── */
.resource-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.resource-list li {
  border-bottom: 1px solid var(--border);
}
.resource-list li a {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 14px 4px;
  transition: color 0.15s, padding-left 0.15s;
}
.resource-list li a:hover {
  color: var(--navy);
  padding-left: 10px;
}

.resource-disclaimer {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
}

/* ─── Placeholder ────────────────────────────────────────────────────────── */
.placeholder-inner {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 56px 32px;
  text-align: center;
}
.placeholder-inner p {
  font-family: Lato, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--lavender);
  margin: 0;
}

/* ─── Episode list page ──────────────────────────────────────────────────── */
.ep-list-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ep-list-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ep-list-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 200px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.npe-footer {
  background: var(--navy);
  padding: 48px 40px;
  text-align: center;
}
.npe-footer img {
  height: 56px;
  width: auto;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 0 auto 16px;
}
.npe-footer p {
  font-family: Lato, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  margin: 0;
  text-transform: uppercase;
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { padding-top: 64px; }
  .topbar { height: 64px; }
  .topbar-inner, .npe-container { padding: 0 20px; }

  .topbar-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .topbar-nav.open { display: flex; }
  .topbar-link { padding: 13px 24px; width: 100%; border-radius: 0; font-size: 12px; }
  .topbar-hamburger { display: flex; }

  .about-split { flex-direction: column; }
  .about-image-panel { flex: none; height: 260px; }
  .about-text-panel { padding: 36px 24px; }
  .about-text-panel p { font-size: 15px; }

  .npe-section { padding: 48px 0; }

  .ep-card { flex: 0 0 200px; }
  .platform-grid { gap: 10px; }
  .platform-item { min-width: 150px; }
}
