/* Course detail */
.detail-container {
  max-width: 1200px;
}

.course-detail-page .detail-page {
  padding: 0 0 80px;
  background: #f5f7f9;
}

.course-detail-page .detail-page > .container {
  max-width: none;
  padding: 0;
}

.course-detail-page .breadcrumb {
  background: #fff;
}

.course-detail {
  --course-accent: #15957f;
  --course-accent-dark: #0d6f60;
  --course-soft: #e9f7f3;
  background: #fff;
}

.course-theme-coral {
  --course-accent: #df6c54;
  --course-accent-dark: #a84432;
  --course-soft: #fff0ec;
}

.course-theme-amber {
  --course-accent: #c78a18;
  --course-accent-dark: #8e5d08;
  --course-soft: #fff6df;
}

.course-theme-blue {
  --course-accent: #2368a2;
  --course-accent-dark: #174a77;
  --course-soft: #eaf3fb;
}

.course-hero {
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background-image: var(--course-image);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.course-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 24, 40, 0.9) 0%, rgba(7, 24, 40, 0.72) 48%, rgba(7, 24, 40, 0.18) 100%);
}

.course-hero__content {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 72px 24px 80px;
}

.course-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 56px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.course-back:hover {
  color: #fff;
}

.course-back svg,
.course-eyebrow svg,
.course-button svg {
  width: 18px;
  height: 18px;
}

.course-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.course-eyebrow svg {
  color: #ffd28a;
}

.course-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: #fff;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
}

.course-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.9;
}

.course-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.course-button {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
}

.course-button--primary {
  background: var(--course-accent);
  color: #fff;
}

.course-button--primary:hover {
  background: var(--course-accent-dark);
  color: #fff;
}

.course-button--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.course-button--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.course-facts {
  width: min(1200px, calc(100% - 48px));
  min-height: 118px;
  margin: -24px auto 0;
  padding: 28px 32px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border-top: 4px solid var(--course-accent);
  box-shadow: 0 12px 34px rgba(18, 43, 68, 0.11);
}

.course-fact {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 24px;
  border-right: 1px solid #e5e9ed;
}

.course-fact:first-child {
  padding-left: 0;
}

.course-fact:last-child {
  padding-right: 0;
  border-right: 0;
}

.course-fact > svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  color: var(--course-accent);
}

.course-fact div {
  min-width: 0;
}

.course-fact span {
  display: block;
  margin-bottom: 3px;
  color: #8a97a3;
  font-size: 12px;
}

.course-fact strong {
  display: block;
  overflow: hidden;
  color: #263746;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-main {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
}

.course-content {
  min-width: 0;
}

.course-section {
  padding: 0 0 72px;
}

.course-section + .course-section {
  padding-top: 70px;
  border-top: 1px solid #e8ebee;
}

.course-section__kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--course-accent);
  font-size: 12px;
  font-weight: 700;
}

.course-section h2 {
  margin-bottom: 20px;
  color: #203344;
  font-size: 30px;
  line-height: 1.35;
}

.course-section__lead,
.course-intro > p {
  max-width: 780px;
  color: #5d6d7b;
  font-size: 17px;
  line-height: 1.95;
}

.course-outcomes {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}

.course-outcomes span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344b5e;
  font-size: 15px;
}

.course-outcomes svg {
  width: 20px;
  height: 20px;
  padding: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--course-soft);
  color: var(--course-accent);
  stroke-width: 3;
}

.course-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-highlight {
  min-height: 260px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e4e9ed;
  border-radius: 8px;
  background: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.course-highlight:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--course-accent) 45%, #e4e9ed);
  box-shadow: 0 14px 32px rgba(26, 48, 68, 0.09);
}

.course-highlight__number {
  position: absolute;
  top: 15px;
  right: 18px;
  color: #edf0f2;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
}

.course-highlight__icon {
  width: 50px;
  height: 50px;
  margin-bottom: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--course-soft);
  color: var(--course-accent);
}

.course-highlight__icon svg {
  width: 25px;
  height: 25px;
}

.course-highlight h3 {
  margin-bottom: 10px;
  color: #263b4d;
  font-size: 18px;
}

.course-highlight p {
  color: #73808b;
  font-size: 14px;
  line-height: 1.8;
}

.course-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #f7f9fa;
  border-top: 3px solid var(--course-accent);
}

.course-step {
  min-height: 212px;
  padding: 26px 22px;
  position: relative;
  border-right: 1px solid #e2e6e9;
}

.course-step:last-child {
  border-right: 0;
}

.course-step__top {
  margin-bottom: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-step__top span {
  color: var(--course-accent);
  font-size: 13px;
  font-weight: 700;
}

.course-step__top svg {
  width: 23px;
  height: 23px;
  color: #a8b0b7;
}

.course-step h3 {
  margin-bottom: 8px;
  color: #263b4d;
  font-size: 17px;
}

.course-step p {
  color: #78858f;
  font-size: 13px;
  line-height: 1.7;
}

.course-team {
  min-height: 148px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  background: #f7f9fa;
  border-left: 4px solid var(--course-accent);
}

.course-team__icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--course-soft);
  color: var(--course-accent);
}

.course-team__icon svg {
  width: 28px;
  height: 28px;
}

.course-team h3 {
  margin-bottom: 7px;
  color: #263b4d;
  font-size: 18px;
}

.course-team p {
  color: #72808c;
  font-size: 14px;
  line-height: 1.75;
}

.course-team > a,
.course-section__heading > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--course-accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.course-team > a svg,
.course-section__heading > a svg {
  width: 17px;
  height: 17px;
}

.course-teacher-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.course-teacher {
  padding: 18px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #e3e8ec;
  border-radius: 8px;
}

.course-teacher__avatar {
  width: 56px;
  height: 56px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--course-soft);
  color: var(--course-accent);
}

.course-teacher__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-teacher h3 {
  margin-bottom: 3px;
  font-size: 16px;
}

.course-teacher p {
  color: #85909a;
  font-size: 13px;
}

.course-teacher > svg {
  width: 18px;
  height: 18px;
  color: #aab2b9;
}

.course-section__heading {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.course-section__heading h2 {
  margin-bottom: 0;
}

.course-recommendations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.course-recommendation {
  min-height: 132px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #e4e8eb;
  border-radius: 8px;
  background: #fff;
}

.course-recommendation:hover {
  border-color: var(--course-accent);
}

.course-recommendation__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--course-soft);
  color: var(--course-accent);
}

.course-recommendation__icon svg {
  width: 22px;
  height: 22px;
}

.course-recommendation h3 {
  margin-bottom: 5px;
  color: #273c4e;
  font-size: 15px;
}

.course-recommendation p {
  color: #89949d;
  font-size: 12px;
  line-height: 1.5;
}

.course-recommendation > svg {
  width: 17px;
  height: 17px;
  color: #adb5bb;
}

.course-sidebar {
  min-width: 0;
}

.course-consult {
  padding: 34px 28px 28px;
  position: sticky;
  top: 118px;
  border-top: 4px solid var(--course-accent);
  background: #f4f7f8;
}

.course-consult__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--course-soft);
  color: var(--course-accent);
}

.course-consult__icon svg {
  width: 27px;
  height: 27px;
}

.course-consult__label {
  margin-bottom: 7px;
  color: var(--course-accent);
  font-size: 12px;
  font-weight: 700;
}

.course-consult h2 {
  margin-bottom: 14px;
  color: #203344;
  font-size: 23px;
  line-height: 1.45;
}

.course-consult > p:not(.course-consult__label) {
  color: #71808d;
  font-size: 14px;
  line-height: 1.8;
}

.course-consult > a {
  min-height: 46px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 4px;
  background: var(--course-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.course-consult > a:hover {
  background: var(--course-accent-dark);
  color: #fff;
}

.course-consult > a svg {
  width: 18px;
  height: 18px;
}

.course-consult__phone {
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #dde3e6;
}

.course-consult__phone > svg {
  width: 22px;
  height: 22px;
  color: var(--course-accent);
}

.course-consult__phone span,
.course-consult__phone strong {
  display: block;
}

.course-consult__phone span {
  color: #8a959e;
  font-size: 12px;
}

.course-consult__phone strong {
  margin-top: 2px;
  color: #263b4d;
  font-size: 18px;
}

@media (max-width: 992px) {
  .course-hero {
    min-height: 460px;
  }

  .course-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }

  .course-fact:nth-child(2) {
    border-right: 0;
  }

  .course-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .course-sidebar {
    order: -1;
    margin-bottom: 64px;
  }

  .course-consult {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
  }

  .course-consult__icon,
  .course-consult > p:not(.course-consult__label),
  .course-consult__phone {
    display: none;
  }

  .course-consult__label {
    grid-column: 2;
    margin: 0 0 -17px;
  }

  .course-consult h2 {
    grid-column: 2;
    margin: 0;
    font-size: 20px;
  }

  .course-consult > a {
    grid-column: 3;
    grid-row: 1 / span 2;
    min-width: 140px;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .course-detail-page .detail-page {
    padding-bottom: 56px;
  }

  .course-hero {
    min-height: 530px;
    align-items: end;
    background-position: 58% center;
  }

  .course-hero__overlay {
    background: rgba(7, 24, 40, 0.72);
  }

  .course-hero__content {
    padding: 50px 20px 64px;
  }

  .course-back {
    margin-bottom: 72px;
  }

  .course-hero h1 {
    font-size: 34px;
  }

  .course-hero p {
    font-size: 15px;
    line-height: 1.8;
  }

  .course-facts,
  .course-main {
    width: calc(100% - 32px);
  }

  .course-facts {
    margin-top: -20px;
    padding: 24px 20px;
  }

  .course-fact {
    padding: 0 16px;
  }

  .course-fact:nth-child(odd) {
    padding-left: 0;
  }

  .course-fact:nth-child(even) {
    padding-right: 0;
  }

  .course-fact strong {
    font-size: 13px;
  }

  .course-main {
    padding-top: 56px;
  }

  .course-consult {
    padding: 24px;
  }

  .course-section {
    padding-bottom: 56px;
  }

  .course-section + .course-section {
    padding-top: 54px;
  }

  .course-section h2 {
    font-size: 25px;
  }

  .course-section__lead,
  .course-intro > p {
    font-size: 15px;
  }

  .course-highlight-grid,
  .course-recommendations {
    grid-template-columns: 1fr;
  }

  .course-highlight {
    min-height: 0;
  }

  .course-highlight__icon {
    margin-bottom: 24px;
  }

  .course-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-step:nth-child(2) {
    border-right: 0;
  }

  .course-step:nth-child(-n + 2) {
    border-bottom: 1px solid #e2e6e9;
  }

  .course-team {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .course-team > a {
    grid-column: 2;
  }

  .course-teacher-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .course-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .course-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .course-fact {
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid #e5e9ed;
  }

  .course-fact:first-child {
    padding-top: 0;
  }

  .course-fact:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .course-outcomes {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    margin-bottom: 48px;
  }

  .course-consult {
    grid-template-columns: 1fr;
  }

  .course-consult__label,
  .course-consult h2,
  .course-consult > a {
    grid-column: 1;
    grid-row: auto;
  }

  .course-consult__label {
    margin: 0;
  }

  .course-path {
    grid-template-columns: 1fr;
  }

  .course-step {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #e2e6e9;
  }

  .course-step:nth-child(3) {
    border-bottom: 1px solid #e2e6e9;
  }

  .course-step:last-child {
    border-bottom: 0;
  }

  .course-step__top {
    margin-bottom: 24px;
  }

  .course-team {
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .course-team > a {
    grid-column: 1;
  }

  .course-section__heading {
    align-items: start;
    flex-direction: column;
  }
}
