@charset "UTF-8";
/* ===============================
   Root Variables
   =============================== */
:root {
  --color-text:#1e1e1e;
  --color-bg:#f5f5f5;
  --color-line:#e1e1e1;
  --accent-1:#41516C;
  --accent-2:#FBCA3E;
  --accent-3:#E24A68;
  --accent-4:#1B5F8C;
  --accent-5:#4CADAD;
  --font-main:"Poppins", sans-serif;
  --line-width:0.25rem;
  --col-gap:2rem;
  --row-gap:1rem;
  /* reduced from 2rem */
}

/* ===============================
   Reset + Base
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
}

/* ===============================
   Typography
   =============================== */
h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.text-title {
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.text-para {
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

/* ===============================
   Timeline container
   =============================== */
.timeline {
  width: min(60rem, 90%);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr var(--line-width) 1fr;
  -moz-column-gap: var(--col-gap);
       column-gap: var(--col-gap);
  row-gap: var(--row-gap);
  grid-auto-rows: min-content;
}
.timeline::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 4px;
  background: var(--color-line);
  z-index: 1;
  grid-column: 2;
}
.timeline li {
  display: grid;
  grid-template-rows: min-content min-content min-content;
  margin-inline: 1.5rem;
}
.timeline li .date {
  --dateH:3rem;
  height: var(--dateH);
  margin-inline: -1.5rem;
  background: var(--accent-color);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: grid;
  place-content: center;
  position: relative;
  border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}
.timeline li .date::before {
  content: "";
  width: 1.5rem;
  aspect-ratio: 1;
  background: var(--accent-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.15), transparent);
  position: absolute;
  top: 100%;
  right: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.timeline li .date::after {
  content: "";
  position: absolute;
  width: 2rem;
  aspect-ratio: 1;
  background: var(--color-bg);
  border: 0.3rem solid var(--accent-color);
  border-radius: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  right: calc(100% + var(--col-gap) + var(--line-width) / 2);
  z-index: 3;
}
.timeline li .title, .timeline li .descr {
  background: var(--color-bg);
  position: relative;
  padding-inline: 1.5rem;
}
.timeline li .title {
  padding: 1.5rem 1.5rem 1rem;
}
.timeline li .descr {
  padding: 0 1.5rem 1.5rem;
}
.timeline li .title::before, .timeline li .descr::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  left: 50%;
  border-radius: 50%;
  filter: blur(4px);
  transform: translate(-50%, 50%);
}
.timeline li .title::before {
  bottom: calc(100% + 0.125rem);
}
.timeline li .descr::before {
  z-index: -1;
  bottom: 0.25rem;
}

/* Central line (desktop) */
/* ===============================
   Mobile – stack + line on the left
   =============================== */
@media (max-width: 39.99rem) {
  .timeline {
    grid-template-columns: 1fr;
    padding-left: 2.5rem;
    /* space for the line */
  }
  .timeline::before {
    left: 0;
  }
  .timeline li {
    grid-column: 1;
  }
}
/* ===============================
   Desktop – zigzag
   =============================== */
@media (min-width: 40rem) {
  .timeline li:nth-child(odd) {
    grid-column: 1;
  }
  .timeline li:nth-child(even) {
    grid-column: 3;
  }
}
/* ===============================
   Card item
   =============================== */
/* Date badge */
/* Flap under the badge */
/* Circle that touches the central line */
/* Title + description */
/* Subtle shadows */
/* ===============================
   Desktop – flip odd items
   =============================== */
@media (min-width: 40rem) {
  .timeline li:nth-child(odd) .date {
    border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
  }
  .timeline li:nth-child(odd) .date::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    left: 0;
    right: auto;
  }
  .timeline li:nth-child(odd) .date::after {
    transform: translate(-50%, -50%);
    left: calc(100% + var(--col-gap) + var(--line-width) / 2);
    right: auto;
  }
}/*# sourceMappingURL=timelinedesign1.css.map */