/* ===== PATIENT EDUCATION PAGES ===== */

/* --- Page hero --- */
.edu-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-500) 100%);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
}

.edu-hero-compact { padding: 3.5rem 0 2.75rem; }

.edu-hero h1 { margin-bottom: 0.75rem; }

.edu-hero-sub {
  max-width: 640px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.edu-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.edu-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.edu-breadcrumb a:hover { color: var(--white); border-bottom-color: var(--white); }

/* --- Library listing --- */
.edu-library { padding: 3rem 0 1rem; }

.edu-category { padding: 0 0 2.75rem; }

.edu-category h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--blue-900);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.edu-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.18s ease;
}

.edu-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue-200);
}

.edu-card h3 {
  color: var(--blue-900);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.edu-card p {
  font-size: 0.925rem;
  color: var(--gray-700);
}

.edu-card-note {
  margin-top: 0.5rem;
  font-size: 0.8rem !important;
  font-style: italic;
  color: var(--gray-500) !important;
}

.edu-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
}

.edu-card-chapters {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.edu-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-700);
}

/* --- Disclaimer --- */
.edu-disclaimer {
  margin: 1.5rem 0 3rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.edu-disclaimer a { color: var(--blue-700); font-weight: 600; }

/* --- Player page --- */
.edu-now-playing {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  background: var(--blue-900);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.25rem;
}

.edu-np-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.edu-np-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.edu-np-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.edu-np-title {
  font-size: 0.925rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edu-np-controls { display: flex; gap: 0.5rem; flex-shrink: 0; }

.edu-np-btn {
  font: inherit;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: none;
  background: var(--white);
  color: var(--blue-900);
  cursor: pointer;
}
.edu-np-btn:hover { background: var(--blue-50); }

.edu-np-btn-quiet {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.edu-np-btn-quiet:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.edu-np-next {
  font: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* --- Chapter cards --- */
.edu-chapters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.edu-chapter {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.edu-chapter.is-active {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.edu-chapter-play {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.4rem;
  font: inherit;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.edu-chapter-play:hover .edu-chapter-btn { background: var(--blue-800); }

.edu-chapter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  flex-shrink: 0;
  transition: background 0.18s ease;
}
.edu-chapter-btn svg { margin-left: 2px; }

.edu-chapter-head { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.edu-chapter-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.675rem;
  font-weight: 600;
  color: var(--gray-500);
}

.edu-chapter-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.35;
}

.edu-chapter-transcript { border-top: 1px solid var(--gray-100); }

.edu-chapter-transcript summary {
  padding: 0.8rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-700);
  cursor: pointer;
  user-select: none;
}
.edu-chapter-transcript summary:hover { background: var(--gray-50); }

.edu-chapter-text { padding: 0.25rem 1.4rem 1.4rem; }

.edu-chapter-text p {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 0.9rem;
}
.edu-chapter-text p:last-child { margin-bottom: 0; }

.edu-voice-note {
  font-size: 0.825rem;
  color: var(--gray-500);
  font-style: italic;
  margin: 0.5rem 0 1.5rem;
}

/* --- Home page band --- */
#education-band {
  background: var(--blue-50);
  border-top: 1px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
  padding: 3.5rem 0;
}

.edu-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.edu-band-text { max-width: 620px; }

.edu-band-text h2 { color: var(--blue-900); margin-bottom: 0.6rem; }

.edu-band-text p { color: var(--gray-700); }

@media (max-width: 640px) {
  .edu-now-playing { flex-wrap: wrap; }
  .edu-np-controls { width: 100%; justify-content: flex-end; }
}
