/* ================================
   ExamArchive – about.css
   About Page (FINAL ALIGNED + ANIMATED)
   ================================ */

/* ---------- Page Wrapper ---------- */
.about-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  color: var(--text);
}

.about-page section {
  margin-bottom: 3rem;
}

/* ---------- Headings ---------- */
.about-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-page h2 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  position: relative;
}

.about-page h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--red);
  margin-top: 0.45rem;
}

/* ---------- Text ---------- */
.about-page p {
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.section-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* ==================================================
   PROJECT STATUS
   ================================================== */

.about-status .status-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.about-status .status-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}

.about-status [data-stat] {
  font-weight: 600;
  color: var(--red);
}

/* ==================================================
   PDFs BREAKDOWN (SINGLE FULL-WIDTH CARD)
   ================================================== */

/* ---------- Toggle Button ---------- */
.breakdown-toggle {
  width: 100%;
  display: block;
  padding: 0.9rem 1rem;
  margin-top: 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.breakdown-toggle:hover {
  background: var(--surface);
}

.breakdown-toggle:active {
  transform: scale(0.985);
}

/* ---------- Breakdown Card ---------- */
.breakdown-card {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-soft);
  

  /* animation */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.breakdown-card.hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

/* ---------- Programme Block ---------- */
.programme-block {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.programme-block:last-child {
  border-bottom: none;
}

/* ---------- Programme Header ---------- */
.programme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ---------- Subject List ---------- */
.subject-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subject-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  text-transform: uppercase;
}

/* ==================================================
   Count Pills (RECTANGLE, NOT CIRCLES)
   ================================================== */

.count-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* Programme total — red pill */
.programme-header .count-circle {
  background: var(--red);
  color: #fff;
}

/* Subject totals — muted grey pill */
.subject-list .count-circle.small {
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ==================================================
   PROJECT TIMELINE – UNIFORM & STABLE
   ================================================== */

.timeline {
  position: relative;
  margin-top: 3rem;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%) scaleY(0);
  transform-origin: bottom;
  transition: transform 0.8s ease;
}

.timeline.is-visible::before {
  transform: translateX(-50%) scaleY(1);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* ---------- Timeline Dot ---------- */
.timeline-dot {
  position: absolute;
  top: 1.65rem;
  width: 10px;
  height: 10px;
  background: var(--surface);
  border: 2px solid var(--red);
  border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -5px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -5px;
}

/* ---------- Timeline Content ---------- */
.timeline-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .about-page {
    padding: 1rem 0.75rem 2rem;
  }

  .about-page h1 {
    font-size: 1.6rem;
  }

  .about-page h2 {
    font-size: 1.2rem;
  }

  .timeline::before {
    left: 24px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left;
    padding: 1.25rem 1rem 1.25rem 3rem;
  }

  .timeline-dot {
    left: 18px !important;
  }

  .about-page section {
    margin-bottom: 2rem;
  }
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .about-page {
    padding: 1.2rem 1rem 2.5rem;
  }

  .about-page h1 {
    font-size: 1.8rem;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .about-page {
    padding: 2rem 1rem 3.5rem;
  }

  .about-page h1 {
    font-size: 2.2rem;
  }
}
