/* =======================================================
   case.css — Leti Keys / o'quvchi natijasi sahifasi
   Extends blog-post.css typography
   ======================================================= */

/* ===== HERO ===== */
.cs-hero {
  position: relative;
  padding: 64px 0 88px;
  background: linear-gradient(135deg, #6b0c30 0%, #8B0F3E 55%, #a31148 100%);
  color: #fff;
  overflow: hidden;
}
.cs-hero .pg-breadcrumb,
.cs-hero .pg-breadcrumb a,
.cs-hero .pg-breadcrumb span { color: rgba(255,255,255,.85); }
.cs-hero .pg-breadcrumb a:hover { color: #fff; }

.cs-hero__inner {
  position: relative;
  z-index: 2;
}

.cs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  margin-top: 24px;
}

.cs-hero__text .section-tag { margin-bottom: 14px; }

.cs-hero__title {
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 12px 0 18px;
}

.cs-hero__sub {
  font-size: 17.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
  margin-bottom: 32px;
}

.cs-hero__top {
  display: inline-flex;
  padding: 20px 26px;
}
.cs-hero__top .ab-hero__top strong { font-size: 28px; }

/* Student card */
.cs-hero__card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-xl, 28px);
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}
.cs-hero__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #FFD6E5 100%);
  color: var(--brand, #8B0F3E);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cs-hero__card-body h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.cs-hero__card-role {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  font-weight: 500;
}

.cs-hero__facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  list-style: none;
}
.cs-hero__facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13.5px;
}
.cs-hero__facts li::before { display: none; }
.cs-hero__facts li span {
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.cs-hero__facts li strong {
  color: #fff;
  font-weight: 700;
  text-align: right;
}

/* ===== PROGRESS CARD (from → to) ===== */
.cs-progress {
  padding: 48px 0 24px;
  background: #fff;
  position: relative;
  margin-top: -40px;
  z-index: 5;
}
.cs-progress__card {
  background: #fff;
  border: 1px solid var(--border, #eae5f0);
  border-radius: var(--radius-xl, 28px);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(139, 15, 62, 0.1);
}

.cs-progress__side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-progress__side--to { text-align: right; align-items: flex-end; }
.cs-progress__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #8B8096);
}
.cs-progress__side strong {
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary, #0F0A14);
  font-family: var(--font);
}
.cs-progress__side--from strong { color: var(--text-muted, #8B8096); }
.cs-progress__side--to strong {
  background: linear-gradient(120deg, var(--brand, #8B0F3E), var(--brand-light, #b8145a));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cs-progress__unit {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
}

.cs-progress__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0 0;
  margin: 0;
}
.cs-progress__list li {
  font-size: 13px;
  color: var(--text-secondary, #4A4358);
  font-weight: 500;
}
.cs-progress__list li::before { display: none; }

.cs-progress__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}
.cs-progress__bar {
  width: 100%;
  height: 8px;
  background: var(--bg-light, #F8F5FA);
  border-radius: var(--radius-full, 100px);
  overflow: hidden;
  position: relative;
}
.cs-progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand, #8B0F3E), var(--brand-light, #b8145a));
  border-radius: var(--radius-full, 100px);
  box-shadow: 0 0 12px rgba(139, 15, 62, 0.4);
}
.cs-progress__delta {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand, #8B0F3E);
  letter-spacing: -0.02em;
}
.cs-progress__time {
  font-size: 12.5px;
  color: var(--text-muted, #8B8096);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== TIMELINE ===== */
.cs-timeline {
  list-style: none !important;
  counter-reset: none !important;
  padding: 0 !important;
  margin: 2.2em 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.cs-timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand, #8B0F3E), var(--brand-light, #b8145a), rgba(139,15,62,0.2));
  border-radius: 2px;
}

.cs-timeline__item {
  position: relative;
  padding: 0 0 32px 64px;
  counter-increment: none !important;
}
.cs-timeline__item::before { display: none !important; }
.cs-timeline__item:last-child { padding-bottom: 0; }

.cs-timeline__marker {
  position: absolute;
  left: 0;
  top: 2px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand, #8B0F3E), var(--brand-light, #b8145a));
  color: #fff;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(139, 15, 62, 0.25);
  z-index: 1;
}

.cs-timeline__body {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border, #eae5f0);
  border-radius: var(--radius-lg, 20px);
  transition: all var(--transition, .22s);
}
.cs-timeline__item:hover .cs-timeline__body {
  border-color: rgba(139, 15, 62, 0.25);
  box-shadow: 0 8px 24px rgba(139, 15, 62, 0.08);
}

.cs-timeline__period {
  display: inline-block;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand, #8B0F3E);
  background: var(--brand-pale, #fdf0f5);
  padding: 4px 12px;
  border-radius: var(--radius-full, 100px);
  margin-bottom: 10px;
}

.cs-timeline__body h3 {
  font-family: var(--font) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--text-primary, #0F0A14);
  margin: 0 0 8px !important;
  letter-spacing: -0.015em;
}

.cs-timeline__body p {
  font-family: var(--font) !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: var(--text-secondary, #4A4358) !important;
  margin: 0 0 14px;
}

.cs-timeline__stats {
  list-style: none !important;
  padding: 14px 0 !important;
  margin: 0 0 10px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  border-top: 1px solid var(--border, #eae5f0);
  border-bottom: 1px solid var(--border, #eae5f0);
}
.cs-timeline__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 !important;
  padding: 0 !important;
}
.cs-timeline__stats li::before { display: none !important; }
.cs-timeline__stats li span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #8B8096);
}
.cs-timeline__stats li strong {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.cs-timeline__milestone {
  font-family: var(--font) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--brand, #8B0F3E) !important;
  margin: 12px 0 0 !important;
}
.cs-timeline__milestone strong {
  color: var(--brand-dark, #6a0b2f);
  font-weight: 800;
}

/* ===== RESULT CARDS ===== */
.cs-result {
  margin: 2em 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cs-result__card {
  padding: 22px 18px;
  background: #fff;
  border: 1.5px solid var(--border, #eae5f0);
  border-radius: var(--radius-lg, 20px);
  text-align: center;
  transition: all var(--transition, .22s);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-result__card:hover {
  border-color: rgba(139, 15, 62, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 15, 62, 0.08);
}
.cs-result__label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #8B8096);
  margin-bottom: 6px;
}
.cs-result__card strong {
  font-family: var(--font);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand, #8B0F3E);
}
.cs-result__desc {
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--text-secondary, #4A4358);
  font-weight: 500;
  margin-top: 2px;
}

/* ===== OTHER CASES ===== */
.cs-other {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.cs-other__card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border, #eae5f0);
  border-radius: var(--radius-lg, 20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition, .22s);
}
.cs-other__card:hover {
  border-color: rgba(139, 15, 62, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(139, 15, 62, 0.1);
}

.cs-other__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cs-other__top .nt-case__avatar--1,
.cs-other__top .nt-case__avatar--2,
.cs-other__top .nt-case__avatar--3,
.cs-other__top .nt-case__avatar--4,
.cs-other__top .nt-case__avatar--5 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.cs-other__top .nt-case__badge {
  padding: 4px 10px;
  background: var(--brand-pale, #fdf0f5);
  color: var(--brand, #8B0F3E);
  border-radius: var(--radius-full, 100px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cs-other__card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary, #0F0A14);
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}
.cs-other__meta {
  font-size: 13px;
  color: var(--text-muted, #8B8096);
  font-weight: 500;
  margin: 0;
}

.cs-other__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border, #eae5f0);
  border-bottom: 1px solid var(--border, #eae5f0);
}
.cs-other__progress > span:not(.cs-other__arrow) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.cs-other__progress b {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}
.cs-other__progress > span:last-child b {
  color: var(--brand, #8B0F3E);
}
.cs-other__progress small {
  font-size: 11.5px;
  color: var(--text-muted, #8B8096);
  font-weight: 500;
}
.cs-other__arrow {
  color: var(--brand, #8B0F3E);
  font-size: 18px;
  font-weight: 700;
  flex: 0 !important;
}

.cs-other__link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand, #8B0F3E);
  margin-top: auto;
  transition: all var(--transition, .22s);
}
.cs-other__card:hover .cs-other__link {
  transform: translateX(3px);
}

.cs-other__more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* =======================================================
   RESPONSIVE
   ======================================================= */
@media (max-width: 1024px) {
  .cs-hero { padding: 48px 0 80px; }
  .cs-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cs-hero__card { max-width: 440px; }

  .cs-progress__card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 32px 24px;
  }
  .cs-progress__side--to { text-align: center; align-items: center; }
  .cs-progress__mid {
    order: 2;
    min-width: 100%;
  }
  .cs-progress__side--from { order: 1; align-items: center; }
  .cs-progress__side--to { order: 3; }

  .cs-result { grid-template-columns: repeat(2, 1fr); }
  .cs-other { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .cs-hero { padding: 32px 0 60px; }
  .cs-hero__title { font-size: 34px; }
  .cs-hero__sub { font-size: 15.5px; margin-bottom: 24px; }
  .cs-hero__top { padding: 16px 18px; gap: 14px; }
  .cs-hero__top .ab-hero__top strong { font-size: 22px; }
  .cs-hero__top .ab-hero__top-divider { display: none; }

  .cs-hero__card { padding: 22px; }
  .cs-hero__avatar { width: 60px; height: 60px; font-size: 18px; }
  .cs-hero__card-body h3 { font-size: 19px; }

  .cs-progress { padding: 32px 0 16px; margin-top: -24px; }
  .cs-progress__card { padding: 24px 20px; border-radius: var(--radius-lg, 20px); }
  .cs-progress__side strong { font-size: 42px; }

  /* Timeline on mobile */
  .cs-timeline::before { left: 17px; }
  .cs-timeline__item { padding-left: 52px; padding-bottom: 24px; }
  .cs-timeline__marker {
    width: 36px; height: 36px;
    font-size: 15px;
    box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(139, 15, 62, 0.25);
  }
  .cs-timeline__body { padding: 18px 18px; }
  .cs-timeline__body h3 { font-size: 18px !important; }
  .cs-timeline__stats { gap: 14px 20px; }
  .cs-timeline__stats li strong { font-size: 15.5px; }

  .cs-result { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cs-result__card { padding: 18px 14px; }
  .cs-result__card strong { font-size: 24px; }

  .cs-other { grid-template-columns: 1fr; }
  .cs-other__card { padding: 20px; }
}
