/* DesignPro course detail — designpro-course-detail-desktop-v2 */

.dp-detail-hero {
  background: var(--dp-bg);
  padding: 48px 0 40px;
}

.dp-detail-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.dp-detail-hero__badges span {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--dp-blue-soft);
  color: var(--dp-blue);
  font-size: 13px;
  font-weight: 700;
}

.dp-detail-hero__split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.dp-detail-hero h1 {
  margin: 0 0 16px;
  max-width: 800px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--dp-ink);
}

.dp-detail-hero__lead {
  margin: 0;
  max-width: 800px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--dp-muted);
}

.dp-detail-hero__meta {
  text-align: right;
  font-size: 14px;
  color: var(--dp-muted);
  white-space: nowrap;
}

.dp-detail-hero__meta strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--dp-ink);
  margin-bottom: 6px;
}

.dp-detail-main {
  padding: 48px 0 64px;
  background: #fff;
}

.dp-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
}

.dp-detail-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.dp-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--dp-radius);
  overflow: hidden;
  background: #0f172a;
}

.dp-player img,
.dp-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dp-player__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.45));
}

.dp-player__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--dp-blue);
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(59, 95, 229, 0.35);
  text-decoration: none;
}

.dp-player__play svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.dp-player__locked {
  position: absolute;
  inset: auto 20px 20px 20px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.dp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--dp-line);
  padding-bottom: 0;
}

.dp-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 24px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--dp-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.dp-tabs button.is-active {
  color: var(--dp-blue);
  border-bottom-color: var(--dp-blue);
}

.dp-tab-panel[hidden] {
  display: none;
}

.dp-detail-block h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 800;
  color: var(--dp-ink);
}

.dp-detail-block p,
.dp-detail-block .dp-detail-html {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dp-muted);
}

.dp-detail-html > *:last-child {
  margin-bottom: 0;
}

.dp-learn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.dp-learn-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
  color: var(--dp-ink);
}

.dp-learn-list img,
.dp-learn-list .dp-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.dp-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--dp-blue-soft);
  color: var(--dp-blue);
  font-weight: 800;
  font-size: 14px;
}

.dp-detail-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 100px;
}

.dp-price-card,
.dp-syllabus,
.dp-support {
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius);
  background: #fff;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.dp-price-card__label {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--dp-muted);
}

.dp-price-card__price {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  color: var(--dp-ink);
  line-height: 1.1;
}

.dp-price-card__note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--dp-muted);
}

.dp-price-card__divider {
  height: 1px;
  margin: 24px 0;
  background: var(--dp-line);
}

.dp-price-card__perks {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.dp-price-card__perks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--dp-ink);
}

.dp-price-card__perks svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--dp-blue);
}

.dp-syllabus h3,
.dp-support h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 800;
}

.dp-modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-height: 380px;
  overflow: auto;
}

.dp-modules a,
.dp-modules span.dp-module {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--dp-bg);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dp-modules a:hover {
  border-color: rgba(59, 95, 229, 0.35);
  background: var(--dp-blue-soft);
}

.dp-modules__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--dp-line);
  font-size: 12px;
  font-weight: 700;
  color: var(--dp-blue);
  flex-shrink: 0;
}

.dp-modules__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--dp-ink);
  line-height: 1.35;
}

.dp-support {
  background: var(--dp-blue-soft);
  border-color: transparent;
}

.dp-support p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dp-muted);
}

.dp-related {
  padding: 64px 0;
  background: var(--dp-bg);
}

.dp-related__kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dp-blue);
}

.dp-related h2 {
  margin: 0 0 32px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
}

.dp-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dp-alert {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.dp-alert--ok {
  background: #ecfdf5;
  color: #065f46;
}

.dp-alert--info {
  background: var(--dp-blue-soft);
  color: var(--dp-blue);
}

.dp-reviews {
  display: grid;
  gap: 16px;
}

.dp-review-item {
  padding: 20px;
  border: 1px solid var(--dp-line);
  border-radius: 16px;
  background: var(--dp-bg);
}

.dp-review-item__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.dp-review-item p {
  margin: 0;
  color: var(--dp-muted);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .dp-detail-grid {
    grid-template-columns: 1fr;
  }

  .dp-detail-side {
    position: static;
  }

  .dp-detail-hero__split {
    grid-template-columns: 1fr;
  }

  .dp-detail-hero__meta {
    text-align: left;
  }

  .dp-related__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .dp-related__grid {
    grid-template-columns: 1fr;
  }
}
