/* Timeline component (Mawhiba identity) — scoped to .mw-timeline, inherits the site font */
.mw-timeline {
  --mw-navy: #211964;
  --mw-purple: #7a5df5;
  --mw-purple-soft: #f1edff;
  --mw-gold: #f5bd19;
  --mw-gold-soft: #fff6dc;
  --mw-teal: #448a9c;
  --mw-teal-soft: #e8f3f5;
  --mw-line: rgba(33, 25, 100, 0.12);
  --mw-muted: #595a5c;

  margin-block: 32px 48px;
  color: var(--mw-navy);
}

.mw-timeline *,
.mw-timeline *::before,
.mw-timeline *::after {
  box-sizing: border-box;
}

/* Column headings (desktop) */
.mw-timeline__head {
  display: none;
}

/* List */
.mw-timeline__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mw-timeline__item {
  margin: 0;
}

/* Card */
.mw-timeline__card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--mw-line);
  border-inline-start: 4px solid var(--mw-navy);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(33, 25, 100, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mw-timeline__item:nth-child(3n + 2) .mw-timeline__card {
  border-inline-start-color: var(--mw-purple);
}

.mw-timeline__item:nth-child(3n + 3) .mw-timeline__card {
  border-inline-start-color: var(--mw-teal);
}

.mw-timeline__item:last-child .mw-timeline__card {
  border-inline-start-color: var(--mw-gold);
}

.mw-timeline__item:hover .mw-timeline__card {
  transform: translateY(-2px);
  border-block-color: rgba(122, 93, 245, 0.35);
  border-inline-end-color: rgba(122, 93, 245, 0.35);
  box-shadow: 0 18px 40px rgba(33, 25, 100, 0.1);
}

.mw-timeline__label {
  display: block;
  margin-bottom: 4px;
  color: var(--mw-purple);
  font-size: 12px;
  font-weight: 700;
}

.mw-timeline__stage h3 {
  margin: 0;
  color: var(--mw-navy);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.mw-timeline__mission p {
  margin: 0;
  color: var(--mw-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Date / time chips */
.mw-timeline__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mw-timeline__when .mw-timeline__label {
  flex-basis: 100%;
}

.mw-timeline__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--mw-purple-soft);
  color: var(--mw-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.mw-timeline__chip--time {
  background: var(--mw-gold-soft);
}

.mw-timeline__chip svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--mw-purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mw-timeline__chip--time svg {
  stroke: #c08f00;
}

/* Desktop: table-like rows with a shared header */
@media (min-width: 992px) {
  .mw-timeline {
    --mw-cols: minmax(180px, 1fr) minmax(260px, 2fr) minmax(220px, 1.1fr);
  }

  .mw-timeline__head {
    display: grid;
    grid-template-columns: var(--mw-cols);
    gap: 24px;
    margin-bottom: 14px;
    padding: 14px 22px;
    padding-inline-start: 26px;
    border-radius: 16px;
    background: var(--mw-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }

  .mw-timeline__card {
    grid-template-columns: var(--mw-cols);
    gap: 24px;
    align-items: center;
    padding-inline: 22px;
  }

  .mw-timeline__card .mw-timeline__label {
    display: none;
  }
}
