/* =========================================
   PROGRAM DETAIL — topic landing page
========================================= */

.program-detail-page {
  padding-bottom: 88px;
}

.pd-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.pd-btn--primary {
  background: var(--primary-700);
  color: #ffffff;
  border: 1.5px solid var(--primary-700);
}

.pd-btn--primary:hover {
  background: var(--primary-800);
  border-color: var(--primary-800);
  color: #ffffff;
  transform: translateY(-1px);
}

.pd-btn--secondary {
  background: transparent;
  color: var(--primary-800);
  border: 1.5px solid rgba(15, 118, 110, 0.28);
}

.pd-btn--secondary:hover {
  background: rgba(15, 118, 110, 0.06);
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-700);
}

.pd-text-link svg,
.pd-text-link i {
  width: 16px;
  height: 16px;
}

.pd-intro {
  max-width: 620px;
  margin: 0 auto 36px;
  text-align: center;
}

.pd-intro h2,
.pd-split h2,
.pd-expert-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 400;
  color: var(--primary-800);
}

.pd-intro p,
.pd-split p,
.pd-expert-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.pd-section {
  padding: clamp(48px, 6vw, 80px) 0;
  background: #ffffff;
}

.pd-section--soft {
  background: #f8fafc;
}

.pd-split {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

/* Hero */
.pd-hero {
  padding: clamp(32px, 5vw, 56px) 0;
  background:
    radial-gradient(ellipse 50% 55% at 0% 0%, rgba(204, 251, 241, 0.55), transparent 60%),
    #ffffff;
}

.pd-hero-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-700);
}

.pd-back svg,
.pd-back i {
  width: 16px;
  height: 16px;
}

.pd-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--primary-800);
}

.pd-hero-copy > p {
  margin: 0 0 20px;
  max-width: 48ch;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.pd-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.pd-hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 650;
  color: var(--text-primary);
}

.pd-hero-facts svg,
.pd-hero-facts i {
  width: 16px;
  height: 16px;
  color: var(--primary-700);
}

.pd-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(145deg, #ccfbf1, #99f6e4);
  box-shadow: var(--shadow-md);
}

.pd-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-side-card,
.pd-expert-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: var(--shadow-sm);
}

.pd-side-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.pd-side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.pd-side-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-family: var(--font-body);
  font-size: 14px;
}

.pd-side-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pd-side-card strong {
  color: var(--text-light);
  font-weight: 650;
}

.pd-side-card span {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
}

.pd-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pd-chip-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  background: #f0fdfa;
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.pd-chip-card svg,
.pd-chip-card i {
  width: 18px;
  height: 18px;
  color: var(--primary-700);
  flex-shrink: 0;
}

.pd-chip-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.pd-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.pd-list li {
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
}

.pd-list--checks li {
  position: relative;
  padding-left: 42px;
}

.pd-list--checks li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--primary-700);
  font-weight: 800;
}

.pd-agenda {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 760px;
  margin-inline: auto;
}

.pd-agenda li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.pd-agenda span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-700);
}

.pd-agenda p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
}

.pd-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pd-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  min-height: 180px;
  background: #f0fdfa;
}

.pd-gallery figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.pd-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pd-testimonial-grid blockquote {
  margin: 0;
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.pd-testimonial-grid p {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-primary);
}

.pd-testimonial-grid footer {
  display: grid;
  gap: 2px;
}

.pd-testimonial-grid strong {
  font-family: var(--font-body);
  font-size: 14px;
}

.pd-testimonial-grid span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-light);
}

.pd-faq-shell {
  max-width: 800px;
}

.pd-faq-list {
  display: grid;
  gap: 12px;
}

.pd-faq-list details {
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  padding: 4px 0;
}

.pd-faq-list summary {
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.pd-faq-list p {
  margin: 0;
  padding: 0 18px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pd-related-grid article {
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.pd-related-grid h3 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
}

.pd-related-grid p {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.pd-cta {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--background);
}

.pd-cta-panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.pd-cta-panel h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 400;
  color: var(--text-primary);
}

.pd-cta-panel > p {
  margin: 0 auto 24px;
  max-width: 48ch;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.pd-cta .pd-actions {
  justify-content: center;
}

.pd-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 12px var(--container-pad);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(15, 118, 110, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
}

.pd-sticky-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pd-sticky-inner strong {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
}

.pd-sticky-inner span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
}

.pd-cta + .pd-sticky + .footer,
.pd-cta ~ .footer {
  margin-top: 0;
}

@media (max-width: 1000px) {
  .pd-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-gallery figure:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 900px) {
  .pd-hero-shell,
  .pd-split,
  .pd-chip-grid,
  .pd-testimonial-grid,
  .pd-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .program-detail-page {
    padding-bottom: 96px;
  }

  .pd-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-btn {
    width: 100%;
  }

  .pd-gallery {
    grid-template-columns: 1fr;
  }

  .pd-gallery figure:first-child {
    grid-column: span 1;
  }

  .pd-sticky-inner span {
    display: none;
  }
}
