.timeline-container {
    text-align: center;
    margin: 3rem auto;        
    padding: 1rem;            
    background-color: #f8f9fa;
    border-radius: 8px;       
}

.timeline-container {
    max-width: 100%;
    overflow-x: hidden; /* Prevent accidental spill */
}
.timeline {
  --rail-inset: 40px; /* 60px circle + 10px border = 80px total => 40px half */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
  padding-inline: var(--rail-inset); /* ⬅️ keeps outer rail inside circles */
}



.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--rail-inset);
  right: var(--rail-inset);
  height: 0;
  border-top: 2px dotted #999;
  transform: translateY(-50%);
  z-index: 0;
}


/* .timeline::before {
    left: 0;
    right: 0;
    width: 100%;
} */

/* timeline should size to its content, not 100% */
.timeline {
  --rail-inset: 40px; /* half of largest circle incl. border (80/2) */
  position: relative;
  display: inline-flex;      /* ⬅️ key change */
  width:42%;        /* ⬅️ ensures it only fits its children */
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 1.5rem;     /* center the inline-flex block */
  flex-wrap: nowrap;
  padding-inline: var(--rail-inset); /* stops rail under circles */
}

/* single rail rule */
.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;                   /* now relative to content width */
  right: 0;
  border-top: 2px dotted #999;
  transform: translateY(-50%);
  z-index: 0;
}

/* circles over the rail */
.circle { position: relative; z-index: 1; }

/* mobile: adjust inset for smaller active circle */
@media (max-width: 640px) {
  .timeline { --rail-inset: 26px; }
}


.circle {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 3px solid #7bc2f7;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.circle.active {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border: 10px solid #63b0ea; /* total size 80px */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.description h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.description p {
    font-size: 1rem;
    color: #333;
}

.username {
    color: #63b0ea;
    font-weight: 600;
}

.date {
    font-weight: 700;
}

/*
## --- NEW: Stats Cards ---
*/
.stats-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: nowrap; /* Allows cards to wrap on smaller screens */
}

.stat-card {
    background-color: #e0f7fa; /* Light blue from image */
    border-radius: 8px;
    padding: 1rem;
    min-width: 100px; /* Gives cards a uniform size */
    text-align: center;
    position: relative; /* For positioning the info icon */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #005662; /* Darker blue for text */
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    display: flex;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
    margin-top: 0.25rem;
}

/* Scale down circles on small screens */
@media (max-width: 640px) {
    .timeline {
      --rail-inset: 26px; /* active total ~52px (40 + 2*6) => ~26px half */
  }
    .circle {
        width: 22px;
        height: 22px;
        border-width: 2px;
    }

    .circle.active {
        width: 40px;
        height: 40px;
        border-width: 6px;
    }

    .description h1 {
        font-size: 1.2rem;
    }

    .stats-container {
        flex-wrap: wrap; /* ✅ Allows wrapping properly */
        gap: .75rem;
    }

    .stat-card {
        min-width: 80px; /* smaller than desktop */
        padding: 0.75rem;
    }
}
