/* =========================================
   Course detail page - no mockup, consistent with the teaching overview
   ========================================= */

/* ---------- shared (teaching / course / jobs): hero with photo + navy overlay ---------- */
.hero--photo {
  background-color: #0a1530;
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(9, 16, 40, 0.86) 0%, rgba(14, 26, 62, 0.74) 45%, rgba(16, 28, 70, 0.8) 100%);
  pointer-events: none;
}
.hero--photo .hero__content { z-index: 2; }

/* ---------- shared: left aligned contact block (no box) ---------- */
.section--teaching-contact {
  padding: 3rem 0 3.25rem;
  border-top: 6px solid #eff0f2;
  background: #fff;
}
.teaching-contact {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  text-align: left;
}
.teaching-contact__title {
  margin: 0 0 0.35rem;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: #0f172a;
}
.teaching-contact__text {
  margin: 0 0 1.5rem;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #213342;
}
.teaching-contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.5rem;
}
.btn.teaching-contact__btn {
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  gap: 0.6rem;
}
.teaching-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.teaching-contact__link .icon { transition: transform 0.2s ease; }
.teaching-contact__link:hover { text-decoration: none; color: var(--color-primary-hover); }
.teaching-contact__link:hover .icon { transform: translateY(-3px); }
.btn.teaching-contact__btn { font-size: var(--fs-ui); }


/* ---------- hero ---------- */
.course-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: var(--fs-body);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.course-hero__eyebrow a { color: #fff; text-decoration: none; }
.course-hero__eyebrow a:hover { text-decoration: none; color: rgba(255, 255, 255, 0.75); }
.course-hero__type { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero--course .hero__title { max-width: 20em; }
.course-hero__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; }
.course-hero__tag {
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: var(--fs-small);
  color: #fff;
}

/* ---------- body ---------- */
.section--course { padding: 3.5rem 0 4rem; }
/* the info card floats on the right: the text runs beside it and continues below it at full width
   (feedback 27.09.: in two columns a long text stayed half as wide all the way down) */
.course-detail { display: flow-root; }
.course-detail__aside { float: right; width: min(21rem, 42%); margin: 0.2rem 0 2rem 3rem; }
.course-detail__main .section__title { text-align: left; color: #333; margin-bottom: 1.25rem; }
.course-detail__description {
  max-width: none;
  margin: 0 0 2.25rem;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #333;
}
.course-detail__description p { margin: 0 0 1rem; font-size: inherit; }
.course-detail__description p:last-child { margin-bottom: 0; }
.course-detail__syllabus {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.course-detail__subtitle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  padding-bottom: 0.9rem;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: #213342;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.85) 0%, rgba(139, 92, 246, 0) 85%) left bottom / 100% 1px no-repeat;
}
.course-detail__syllabus-content {
  padding: 0;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #333;
}
.course-detail__syllabus-content ul { margin: 0; padding-left: 1.2rem; list-style: disc; }
.course-detail__syllabus-content li { margin: 0 0 0.55rem; }
.course-detail__syllabus-content p { margin: 0 0 0.6rem; }
.course-detail__blocks { margin-top: 2.5rem; font-size: var(--fs-body); line-height: 1.65; color: #333; }

/* info card = same frame and meta boxes as the course tiles */
.course-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--color-primary);
  border-right-width: 2px;
  border-bottom-width: 3px;
  border-radius: 8px;
}
.course-info__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.course-info__type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-text-primary);
}
.course-info__lecturer {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-light-border);
  border-radius: 5px;
  font-size: var(--fs-small);
}
.course-info__label { display: block; color: var(--color-text-secondary); }
.course-info__name { font-weight: 600; color: var(--color-text-primary); text-decoration: none; }
.course-info__name:hover { color: var(--color-primary); text-decoration: none; }
.course-info__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; padding-top: 0.25rem; }
.btn.course-info__btn { padding: 0.5rem 1.1rem; border-radius: 6px; gap: 0.6rem; font-size: var(--fs-ui); }
.course-info .course-tile__link { font-size: var(--fs-ui); font-weight: 500; }

.course-detail__back { margin: 3rem 0 0; padding-top: 1.75rem; border-top: 6px solid #eff0f2; }

@media (max-width: 900px) {
  .course-detail__aside { float: none; width: auto; max-width: 26rem; margin: 0 0 2.25rem; }
  .section--course { padding: 2.75rem 0 3rem; }
}
@media (max-width: 600px) {
  .course-detail__aside { max-width: none; }
  .course-hero__tags { margin-top: 1.1rem; }
}
