/* ===================================================================
   BHAGWAN MAHAVEER FOUNDATION — PAGE-SPECIFIC COMPONENTS
   Scoped to bhagwan-mahaveer.php only (mhv- prefix) so the redesign
   here never touches the shared .csr-* components other CSR pages
   (Empathy Foundation, Jains India Trust, Singhvi Trust, Vidya Jyothi
   Trust) still rely on.
   =================================================================== */

/* ===== ORIGIN STORY TIMELINE =====
   Same architecture as the About page's .about-timeline (year pill in
   its own column, marker dot centred exactly on the vertical line) —
   just with an icon badge standing in for that plain dot, since this
   page's three milestones read better with a symbol each than as a
   bare line of years. */
.mhv-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto 70px;
}

.mhv-timeline::before {
  content: "";
  position: absolute;
  left: 170px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--maroon));
  opacity: 0.5;
}

.mhv-timeline-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.mhv-timeline-item:last-child {
  margin-bottom: 0;
}

/* Fixed-width column so every item's icon lands at the same x — its
   own width (170px) is what .mhv-timeline::before's left offset above
   is measured against. */
.mhv-timeline-marker {
  flex-shrink: 0;
  width: 170px;
  position: relative;
  display: flex;
  align-items: center;
  /* Right-align the tag (not centered) so its edge sits a fixed
     distance from the icon every time — centering let the tag's own
     width (which varies a lot between "The Vision" and "1994") change
     the gap to the icon from item to item. padding-right leaves a
     consistent ~18px gap between the tag and the icon (the icon
     itself pokes 24px into this box, via right: -24px on a 48px icon). */
  justify-content: flex-end;
  padding-right: 42px;
}

.mhv-timeline-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-tint), #fff);
  border: 1px solid #d4943a;
  color: var(--maroon);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  z-index: 2;
}
/* Positioned past the marker's own right edge by exactly half its
   width, so its centre — not its edge — lands on the line. */
.mhv-timeline-icon {
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(var(--maroon-rgb), 0.14);
  z-index: 3;
}

.mhv-timeline-content {
  flex: 1;
  min-width: 0;
  background: var(--accent-bg);
  border: 1px solid rgba(var(--gold-rgb), 0.16);
  border-radius: 18px;
  padding: 30px 32px;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.mhv-timeline-content:hover {
  box-shadow: 0 14px 34px rgba(var(--maroon-rgb), 0.08);
  border-color: rgba(var(--gold-rgb), 0.32);
}

.mhv-timeline-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.mhv-timeline-content p {
  font-size: 14.5px;
  color: var(--charcoal-light);
  line-height: 1.85;
  margin-bottom: 12px;
  text-align: justify;
}

.mhv-timeline-content p:last-child {
  margin-bottom: 0;
}

.mhv-timeline-content ul {
  padding-left: 20px;
  margin: 2px 0 12px;
}

.mhv-timeline-content li {
  font-size: 14.5px;
  color: var(--charcoal-light);
  line-height: 1.85;
  margin-bottom: 6px;
}

/* ===== SELECTION PROCESS FLOW ===== */
.mhv-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 70px;
}

.mhv-process::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  opacity: 0.3;
  z-index: 0;
}

.mhv-process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.mhv-process-circle {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--maroon);
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(var(--maroon-rgb), 0.12);
}

.mhv-process-circle .step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mhv-process-step p {
  font-size: 13.5px;
  color: var(--charcoal-light);
  line-height: 1.7;
}

/* ===== COMMITTEE & JURY PEOPLE GRID ===== */
.mhv-people-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.mhv-people-card {
  background: var(--accent-bg);
  border: 1px solid rgba(var(--gold-rgb), 0.14);
  border-radius: 20px;
  padding: 30px;
}

.mhv-people-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.22);
}

.mhv-person {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.mhv-person:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mhv-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--maroon));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mhv-person-info {
  flex: 1;
  min-width: 0;
}

.mhv-person-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.mhv-person-role {
  font-size: 12.5px;
  color: var(--charcoal-light);
  line-height: 1.55;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .mhv-people-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mhv-timeline::before {
    left: 110px;
  }
  .mhv-timeline-marker {
    width: 110px;
  }
  .mhv-timeline-tag {
    font-size: 11.5px;
    padding: 7px 12px;
  }
  .mhv-timeline-icon {
    width: 40px;
    height: 40px;
    right: -20px;
    font-size: 16px;
  }
  .mhv-timeline-content {
    padding: 22px 20px;
  }
  .mhv-timeline-content h3 {
    font-size: 19px;
  }

  .mhv-process {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .mhv-process::before {
    display: none;
  }
}

/* Below ~480px even a 110px marker column crowds the card — stack the
   tag+icon above the content instead of squeezing them beside it. */
@media (max-width: 480px) {
  .mhv-timeline::before {
    display: none;
  }
  .mhv-timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .mhv-timeline-marker {
    width: auto;
    justify-content: flex-start;
    gap: 12px;
  }
  .mhv-timeline-icon {
    position: static;
    transform: none;
  }

  .mhv-process {
    grid-template-columns: 1fr;
  }
  .mhv-block-head {
    gap: 12px;
  }
  .mhv-block-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}
