@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

.timeline-shell,
.timeline-shell * {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.timeline-shell {
  padding: 2rem 1.25rem 5rem;
}

.timeline-track {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.timeline-track__line,
.timeline-track__progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
  border-radius: 999px;
}

.timeline-track__line {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.6));
}

.timeline-track__progress {
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, #38bdf8, #2563eb);
  box-shadow: 0 0 26px rgba(37, 99, 235, 0.28);
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 1.1rem 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.timeline-entry.is-left .timeline-entry__card {
  grid-column: 1;
  margin-right: 3.5rem;
}

.timeline-entry.is-left .timeline-entry__period {
  grid-column: 1;
  justify-self: end;
  margin-right: 2.65rem;
  text-align: right;
}

.timeline-entry.is-right .timeline-entry__card {
  grid-column: 2;
  margin-left: 3.5rem;
}

.timeline-entry.is-right .timeline-entry__period {
  grid-column: 2;
  justify-self: start;
  margin-left: 2.65rem;
}

.timeline-entry__dot {
  position: absolute;
  left: 50%;
  top: 2.8rem;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f8fafc, #60a5fa 55%, #2563eb 100%);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.1);
}

.timeline-entry__card {
  position: relative;
  padding: 1.4rem 1.45rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.timeline-entry__period {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.timeline-entry__title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
  color: #020617;
  font-weight: 700;
}

.timeline-entry__role {
  margin: 0.28rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
}

.timeline-entry__desc {
  margin: 0.32rem 0 0;
  line-height: 1.6;
  color: #475569;
}

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

.timeline-news {
  padding: 0 1.25rem 4rem;
}

.timeline-news .container {
  max-width: 1100px;
}

.news-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  margin-top: 16px;
  border: 1px dashed rgba(125, 211, 252, 0.35);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 30%),
    rgba(2, 6, 23, 0.82);
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 500;
}

.timeline-news .pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.timeline-news .pub-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.award-date-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.78rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.95), rgba(239, 246, 255, 0.95));
  color: #1d4ed8;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.award-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 16px;
}

.award-gallery__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.award-gallery__item img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .timeline-track__line,
  .timeline-track__progress {
    left: 18px;
    transform: scaleY(0);
  }

  .timeline-track__line {
    transform: none;
  }

  .timeline-track__progress {
    transform-origin: top center;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
    padding-left: 2.8rem;
  }

  .timeline-entry.is-left .timeline-entry__card,
  .timeline-entry.is-right .timeline-entry__card {
    grid-column: 1;
    margin: 0;
  }

  .timeline-entry.is-left .timeline-entry__period,
  .timeline-entry.is-right .timeline-entry__period {
    grid-column: 1;
    justify-self: start;
    margin: 0 0 0.7rem;
    text-align: left;
  }

  .timeline-entry__dot {
    left: 18px;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .timeline-shell {
    padding: 1.25rem 0.25rem 4rem;
  }

  .timeline-news {
    padding: 0 0.25rem 3rem;
  }

  .timeline-entry__card {
    padding: 1.15rem 1rem;
    border-radius: 18px;
  }

  .timeline-entry__title {
    font-size: 1.2rem;
  }

  .news-card__placeholder {
    min-height: 200px;
  }

  .award-gallery {
    grid-template-columns: 1fr;
  }

  .award-gallery__item,
  .award-gallery__item img {
    min-height: 200px;
    height: 200px;
  }
}
