:root {
  --timeline-line: #d7dce2;
  --timeline-dot: #8c1d40;
  --timeline-date-bg: #8c1d40;
  --timeline-date-text: #ffffff;
  --timeline-card-bg: #ffffff;
  --timeline-card-border: #e5e7eb;
  --timeline-text: #1f2937;
  --timeline-muted: #6b7280;
  --timeline-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --timeline-radius: 18px;
  --timeline-max: 1160px;
  --timeline-center: 56px;
}

.herstory-page .container {
  max-width: var(--timeline-max);
}

.herstory-page .major {
  text-align: center;
  margin-bottom: 2rem;
}

.herstory-page .major h2 {
  margin-bottom: 0.45rem;
}

.herstory-page .major p {
  max-width: 760px;
  margin: 0.75rem auto 0;
  color: var(--timeline-muted);
  line-height: 1.7;
}

.herstory-intro,
.herstory-closing,
.herstory-stat,
.timeline-card {
  background: var(--timeline-card-bg);
  border: 1px solid var(--timeline-card-border);
  border-radius: var(--timeline-radius);
  box-shadow: var(--timeline-shadow);
}

.herstory-intro,
.herstory-closing {
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.herstory-intro__content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.5rem;
  align-items: center;
}

.herstory-intro__image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
}

.herstory-intro__text h3,
.herstory-closing h3,
.timeline-text h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--timeline-text);
}

.herstory-intro__text p,
.herstory-closing p,
.timeline-text p {
  color: var(--timeline-text);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.herstory-intro__text p:last-child,
.herstory-closing p:last-child,
.timeline-text p:last-child {
  margin-bottom: 0;
}

.herstory-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.75rem;
}

.herstory-stat {
  padding: 1.2rem 1rem;
  text-align: center;
}

.herstory-stat__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--timeline-text);
  margin-bottom: 0.35rem;
}

.herstory-stat__label {
  display: block;
  color: var(--timeline-muted);
  line-height: 1.5;
  font-size: 0.96rem;
}

/* Timeline */

.timeline {
  position: relative;
}

.timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--timeline-center) minmax(0, 1fr);
  column-gap: 0.9rem;
  row-gap: 0.8rem;
  align-items: start;
}

.timeline-grid::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: calc(50% - 1.5px);
  width: 3px;
  background: var(--timeline-line);
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  min-width: 0;
}

.timeline-item.left {
  grid-column: 1;
}

.timeline-item.right {
  grid-column: 3;
  margin-top: 2rem;
}

.timeline-dot {
  position: absolute;
  top: 1.05rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--timeline-dot);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(140, 29, 64, 0.12);
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: calc(-1 * (var(--timeline-center) / 2) - 8px);
}

.timeline-item.right .timeline-dot {
  left: calc(-1 * (var(--timeline-center) / 2) - 8px);
}

.timeline-card {
  padding: 1.05rem 1.05rem 1.15rem;
  overflow: hidden;
}

.timeline-date {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: var(--timeline-date-bg);
  color: var(--timeline-date-text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.timeline-img-float {
  float: left;
  width: min(42%, 250px);
  max-width: 250px;
  margin: 0.15rem 1rem 0.7rem 0;
  border-radius: 14px;
  object-fit: cover;
}

.timeline-text::after {
  content: '';
  display: block;
  clear: both;
}

.timeline-img-full {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 0.9rem;
}

.timeline-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.timeline-photo-grid img {
  display: block;
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

/* Tablet */

@media (max-width: 1024px) {
  .herstory-intro__content {
    grid-template-columns: 1fr;
  }

  .herstory-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-grid {
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 0.8rem;
    row-gap: 0.85rem;
  }

  .timeline-grid::before {
    left: 5px;
    top: 0.6rem;
    bottom: 0.6rem;
  }

  .timeline-item.left,
  .timeline-item.right {
    grid-column: 2;
    margin-top: 0;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: -20px;
    right: auto;
    top: 1rem;
    width: 14px;
    height: 14px;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .herstory-page .major {
    margin-bottom: 1.6rem;
  }

  .herstory-intro,
  .herstory-closing {
    padding: 1.2rem;
  }

  .herstory-stats {
    grid-template-columns: 1fr;
  }

  .timeline-grid {
    row-gap: 0.75rem;
  }

  .timeline-card {
    padding: 0.95rem 0.95rem 1rem;
  }

  .timeline-img-float {
    float: none;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 0.85rem;
  }

  .timeline-photo-grid {
    grid-template-columns: 1fr;
  }

  .timeline-img-full {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .timeline-date {
    font-size: 0.85rem;
    padding: 0.34rem 0.68rem;
  }

  .timeline-text h3,
  .herstory-intro__text h3,
  .herstory-closing h3 {
    font-size: 1.08rem;
  }

  .timeline-text p,
  .herstory-intro__text p,
  .herstory-closing p {
    font-size: 0.96rem;
    line-height: 1.62;
  }
}
