/* Professional program detail — Udemy-inspired layout */

.pd-page {
  padding: 0 0 2.5rem;
  background: #fff;
}

.pd-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5b4d6e;
}

.pd-topbar__back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  color: #0B1426;
  text-decoration: none;
}

.pd-hero-band {
  background: linear-gradient(135deg, #070D18 0%, #070D18 45%, #0B1426 100%);
  color: #fff;
  padding: 28px 20px 32px;
}

.pd-hero-band__inner {
  max-width: 1140px;
  margin: 0 auto;
}

.pd-hero-band__crumb {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 0.85;
}

.pd-hero-band h1 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.25;
  max-width: 760px;
}

.pd-hero-band__lead {
  margin: 0 0 14px;
  max-width: 720px;
  line-height: 1.65;
  font-size: 0.95rem;
  opacity: 0.92;
}

.pd-hero-band__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-hero-band__meta span {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Course detail — full-width cover hero */
.pd-page--course .pd-hero-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 52vw, 460px);
  color: #fff;
  overflow: hidden;
  margin-bottom: 0;
}

.pd-page--course .pd-hero-cover__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pd-page--course .pd-hero-cover__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.pd-page--course .pd-hero-cover__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 8, 28, 0.35) 0%, rgba(15, 8, 28, 0.15) 38%, rgba(26, 16, 48, 0.82) 72%, rgba(26, 16, 48, 0.96) 100%),
    linear-gradient(135deg, rgba(11, 20, 38, 0.28) 0%, transparent 55%);
}

.pd-page--course .pd-hero-cover__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 20px 36px;
}

.pd-page--course .pd-hero-cover h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 4.5vw, 2.15rem);
  line-height: 1.25;
  max-width: 820px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.pd-page--course .pd-hero-cover .pd-hero-band__lead {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

@media (max-width: 480px) {
  .pd-page--course .pd-hero-cover {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    min-height: clamp(340px, 58vw, 420px);
  }
}

@media (max-width: 480px) {
  .pd-page--course .pd-hero-cover__inner {
    padding: 88px 18px 32px;
  }
}

html.edu-view-web .edu-web-content .pd-page--course .pd-hero-cover {
  width: 100%;
  max-width: 100%;
  border-radius: 0 0 24px 24px;
}

html.edu-view-web .edu-web-content .pd-page--course .pd-hero-cover__inner {
  padding: 96px 24px 48px;
}

@media (min-width: 960px) {
  .pd-page--course .pd-hero-cover {
    min-height: clamp(360px, 38vw, 480px);
  }

  .pd-page--course .pd-layout {
    margin-top: -52px;
  }
}

.pd-page--course .pd-card__media:not(.pd-card__media--video) {
  display: none;
}

.pd-layout {
  max-width: 1140px;
  margin: -20px auto 0;
  padding: 0 16px;
  display: grid;
  gap: 24px;
  align-items: start;
}

.pd-main {
  display: grid;
  gap: 18px;
}

.pd-panel {
  background: #fff;
  border: 1px solid #e8deff;
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 8px 28px rgba(11, 20, 38, 0.06);
}

.pd-panel h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #070D18;
}

.pd-panel p {
  margin: 0;
  color: #4a3d5c;
  line-height: 1.7;
  font-size: 0.92rem;
}

.pd-learn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pd-learn-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
}

.pd-learn-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f3ecff;
  color: #0B1426;
  font-size: 0.72rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.pd-cert-box {
  padding: 14px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  margin-top: 12px;
}

.pd-cert-box strong {
  display: block;
  color: #92400e;
  margin-bottom: 6px;
}

.pd-cert-box p {
  font-size: 0.86rem !important;
  color: #78350f !important;
}

.pd-sidebar {
  display: grid;
  gap: 0;
}

.pd-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
}

.pd-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
}

.pd-card__media img,
.pd-card__media iframe,
.pd-card__media .edu-lite-player {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pd-card__media img {
  object-fit: cover;
}

.pd-card__media--video {
  background: #000;
}

.pd-card__body {
  padding: 18px 16px 16px;
}

.pd-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.pd-card__price strong {
  font-size: 1.5rem;
  color: #1e293b;
}

.pd-card__price del {
  color: #94a3b8;
  font-size: 0.95rem;
}

.pd-card__note {
  margin: 0 0 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #64748b;
}

.pd-card__coupon {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #D8DEE8;
  background: #F3F2EF;
}

.pd-card__coupon-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0B1426;
}

.pd-card__coupon-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.pd-card__coupon-input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d1d7dc;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}

.pd-card__coupon-input:focus {
  outline: none;
  border-color: #0B1426;
  box-shadow: 0 0 0 1px #0B1426;
}

.pd-card__coupon-btn {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #0B1426;
  border-radius: 10px;
  background: #0B1426;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pd-card__coupon-btn:hover {
  background: #152238;
}

.pd-card__coupon-msg {
  margin: 8px 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.pd-card__coupon-msg.is-ok {
  color: #047857;
}

.pd-card__coupon-msg.is-err {
  color: #b91c1c;
}

.pd-card__actions {
  display: grid;
  gap: 8px;
}

.pd-card__actions .edu-btn {
  width: 100%;
}

.pd-card__enrolled {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
  font-size: 0.9rem;
}

.pd-trust {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.pd-trust div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #475569;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
}

.pd-related {
  display: grid;
  gap: 10px;
}

.pd-related a {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #e8deff;
  background: #faf7ff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pd-related a:hover {
  border-color: #C7C7C7;
  box-shadow: 0 6px 18px rgba(11, 20, 38, 0.08);
}

.pd-related img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.pd-related strong {
  display: block;
  font-size: 0.86rem;
  color: #070D18;
}

.pd-related small {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  color: #6b5b7b;
}

.pd-sim-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #fcd34d;
  background: linear-gradient(135deg, #fffbeb, #fff);
}

.pd-sim-link strong {
  display: block;
  font-size: 0.9rem;
}

.pd-sim-link small {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: #6b5b7b;
}

/* Mobile: sidebar below hero content */
@media (max-width: 959px) {
  .pd-layout {
    margin-top: 16px;
  }

  .pd-sidebar {
    order: -1;
  }
}

/* Desktop: Udemy 2-column */
@media (min-width: 960px) {
  .pd-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    margin-top: -48px;
    padding-bottom: 24px;
  }

  .pd-sidebar {
    position: sticky;
    top: 96px;
  }

  .pd-hero-band {
    padding: 36px 24px 56px;
  }
}

html.edu-view-web .edu-web-content .pd-page {
  max-width: none;
  padding: 0;
  background: transparent !important;
}
