/* ============================================================
 * Develop-course timeline — kffund .list-history parity.
 * Layout: [year column, right-aligned] | [spine w/ dot] | [content card]
 * A 2px gradient rail runs top→bottom of the column;
 * each item pins a circular dot on the rail next to its content.
 * ============================================================ */

.course-page { padding: 40px 0 60px; }

.course-page .course-timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  position: relative;
  max-width: 940px;
}

/* Vertical spine — 2px rail, primary fading to border-light. Positioned
 * at the boundary between year column (0..96px) and dot column (96..116px). */
.course-page .course-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 106px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--primary) 0%,
    var(--primary-light) 30%,
    var(--border-dark) 100%
  );
}
/* Top-of-rail accent chevron mimicking kffund's cap icon */
.course-page .course-timeline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 100px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(42, 117, 188, .18);
}

.course-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 20px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 6px 0 44px;
}
.course-item:last-child {
  padding-bottom: 8px;
}

.course-year {
  font-size: 24px;
  font-weight: var(--fw-bold);
  color: var(--primary);
  line-height: 1;
  padding-top: 8px;
  text-align: right;
  letter-spacing: .02em;
}

.course-dot {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 14px;
  z-index: 1;
}
.course-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--primary);
  transition: transform .25s ease, box-shadow .25s ease;
}
.course-item:hover .course-dot::before {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--primary);
}

.course-content {
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
/* Small arrow pointing at the dot (visual connection cue) */
.course-content::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 20px;
  width: 14px;
  height: 14px;
  background: var(--bg-1);
  border-left: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transform: rotate(45deg);
}
.course-content:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-2);
}
.course-title {
  font-size: var(--fs-lg);
  color: var(--text-1);
  margin: 0 0 10px;
  font-weight: var(--fw-semibold);
  line-height: 1.45;
}
.course-media {
  margin: 0 0 12px;
}
.course-media img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.course-desc {
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.75;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .course-page .course-timeline::before {
    left: 12px;
  }
  .course-page .course-timeline::after {
    left: 6px;
  }
  .course-item {
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 16px;
  }
  .course-year {
    grid-column: 1 / -1;
    text-align: left;
    padding-left: 38px;
    margin-bottom: 8px;
    font-size: 20px;
  }
  .course-dot {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    margin-top: 6px;
  }
  .course-content {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    padding: 18px 20px;
  }
  .course-content::before {
    left: -6px;
    top: 16px;
    width: 10px;
    height: 10px;
  }
}
