/* ═══════════════════════════════════════════
   KENTDEKS — SCROLL TIMELINE (vanilla)
   Sol tarafta yapışkan yıl başlıkları, ortada
   kaydırdıkça mavi dolan dikey çizgi, sağda
   içerik + görsel ızgarası.
   Referans etkileşim: Aceternity timeline
═══════════════════════════════════════════ */

.kd-tl {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* ── SATIR ── */
.kd-tl-row {
  display: flex;
  justify-content: flex-start;
  padding-top: 90px;
  gap: 40px;
}
.kd-tl-row:first-of-type { padding-top: 30px; }

/* Sol: yapışkan yıl + nokta */
.kd-tl-side {
  position: sticky;
  top: 110px;
  align-self: flex-start;
  z-index: 5;
  display: flex;
  align-items: center;
  width: 260px;
  flex-shrink: 0;
}
.kd-tl-dot {
  position: absolute;
  left: 3px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--n200);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--s1);
}
.kd-tl-dot::after {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue-200);
  border: 1px solid var(--blue-400);
  transition: background .4s, transform .4s;
}
.kd-tl-row.tl-active .kd-tl-dot::after {
  background: var(--blue-600);
  transform: scale(1.15);
}
.kd-tl-year {
  padding-left: 64px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--n300);
  transition: color .4s;
  line-height: 1;
}
.kd-tl-row.tl-active .kd-tl-year { color: var(--blue-600); }

/* Sağ: içerik */
.kd-tl-content {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}
.kd-tl-title-m { display: none; }  /* mobil yıl başlığı */
.kd-tl-h {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.kd-tl-p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--n600);
  margin-bottom: 18px;
  max-width: 640px;
}
.kd-tl-list { margin: 0 0 18px; display: flex; flex-direction: column; gap: 7px; }
.kd-tl-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13.5px; color: var(--navy-800); line-height: 1.5;
}
.kd-tl-list i { color: var(--blue-500); font-size: 16px; margin-top: 1px; flex-shrink: 0; }

.kd-tl-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 640px;
}
.kd-tl-imgs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--n200);
  box-shadow: var(--s2);
}

/* ── DİKEY ÇİZGİ ── */
.kd-tl-line {
  position: absolute;
  left: 19px;
  top: 0;
  width: 2px;
  overflow: hidden;
  background: linear-gradient(to bottom, transparent 0%, var(--n200) 10%, var(--n200) 90%, transparent 100%);
}
.kd-tl-progress {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 0;
  border-radius: 2px;
  background: linear-gradient(to top, var(--blue-700) 0%, var(--blue-500) 55%, transparent 100%);
  will-change: height;
}

/* ── MOBİL ── */
@media (max-width: 768px) {
  .kd-tl-row { flex-direction: column; gap: 0; padding-top: 56px; }
  .kd-tl-side { position: relative; top: auto; width: auto; height: 34px; }
  .kd-tl-year { display: none; }
  .kd-tl-title-m {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--blue-600);
    margin: 10px 0 12px;
  }
  .kd-tl-content { padding-left: 56px; }
  .kd-tl-imgs { grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .kd-tl-progress { transition: none; }
}
