/* --- General Body Styles --- */
body {
  background: #f7faff;
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
}

/* --- TIMELINE SECTION WRAPPER --- */
.benefits-timeline-section {
  background: #f7faff;
  position: relative;
  overflow: hidden;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.benefits-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(10px, 3vw, 28px);
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1.5vw, 32px);
  position: relative;
  z-index: 1;
}

/* --- LEFT (Headline) --- */
.benefits-left {
  flex: 0 0 clamp(160px, 23vw, 320px);
  min-width: 120px;
  max-width: 360px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.sticky-wrap {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  height: auto;
}

.benefits-pinned-title {
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  font-weight: 700;
  color: #202b38;
  line-height: 1.07;
  letter-spacing: -0.01em;
  margin-right: clamp(8px, 2vw, 32px);
  margin-top: 0;
  margin-bottom: 0;
  word-break: break-word;
}

.gradient-word {
  background: linear-gradient(90deg, #30c6ff 0%, #0366d6 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* --- RIGHT (Timeline) --- */
.benefits-right {
  flex: 1 1 0;
  padding-left: 0;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* --- TIMELINE --- */
.timeline {
  position: relative;
  margin-left: 0;
  padding-bottom: clamp(10px, 2.5vw, 32px);
  width: 100%;
}
.timeline-vertical {
  position: absolute;
  left: clamp(15px, 3.5vw, 30px);
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 6px;
  border-left: clamp(2px, 0.55vw, 4px) solid;
  border-image: linear-gradient(180deg, #30c6ff 10%, #0366d6 80%) 1;
  opacity: 0.13;
  z-index: 1;
  pointer-events: none;
}

.timeline-row {
  display: flex;
  align-items: center;
  margin-bottom: clamp(14px, 5vw, 48px);
  position: relative;
  z-index: 3;
}
.timeline-row:last-child { margin-bottom: 0; }

.timeline-dot {
  position: relative;
  left: 0;
  z-index: 3;
  width: clamp(26px, 5vw, 54px);
  height: clamp(26px, 5vw, 54px);
  display: flex;
  align-items: center; 
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  border: 1.6px solid #e4f1ff;
  transition: box-shadow 0.3s, background 0.3s, transform 0.28s;
  cursor: pointer;
  overflow: visible;
  opacity: 1;
  min-width: clamp(26px, 5vw, 54px);
  min-height: clamp(26px, 5vw, 54px);
  flex-shrink: 0;
}
.timeline-dot svg, .timeline-dot img {
  width: clamp(12px, 1.8vw, 30px);
  height: clamp(12px, 1.8vw, 30px);
  display: block;
  color: #30c6ff;
  filter: drop-shadow(0 2px 10px #30c6ff33);
  z-index: 2;
  transition: color 0.2s;
}
.timeline-dot:hover svg, .timeline-dot:hover img { color: #0366d6; }
.timeline-dot:hover {
  box-shadow: 0 0 0 12px #30c6ff1c, 0 2px 10px #0366d622;
  transform: scale(1.07);
}

/* --- TIMELINE CARDS --- */
.timeline-card {
  background: #fff;
  border-radius: clamp(12px, 2vw, 16px);
  padding: clamp(16px, 2vw, 20px) clamp(20px, 2.5vw, 24px);
  min-width: clamp(140px, 32vw, 320px);
  max-width: clamp(240px, 65vw, 580px);
  margin-left: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: 1px solid #eaf2ff;
  box-shadow: 0 4px 20px rgba(3, 102, 214, 0.05);
  position: relative;
  transition: box-shadow 0.22s, transform 0.18s, border 0.4s;
}

.timeline-card:hover {
  box-shadow: 0 10px 30px rgba(3, 102, 214, 0.15);
  border: 1px solid transparent;
  transform: translateY(-4px);
}

.timeline-title {
  font-size: 1.14rem;
  font-weight: 600;
  color: #232e47;
  line-height: 1.24;
  margin: 0 0 10px 0;
}

.timeline-desc {
  font-size: 0.97rem;
  font-weight: 400;
  color: #444;
  line-height: 1.54;
  max-width: 98%;
  margin: 0;
}

/* ==== ✅ RESPONSIVE: TABLET ==== */
@media (max-width: 991px) {
  .benefits-container {
    gap: 24px;
    padding: 24px;
  }
  .benefits-left {
    flex: 0 0 200px;
  }
  .timeline-row {
    align-items: center;
  }
  .timeline-dot {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }
  .timeline-dot img {
    width: 26px;
    height: 26px;
  }
  .timeline-card {
    padding: 16px 20px;
    margin-left: 36px;
  }
}

/* ==== ✅ RESPONSIVE: MOBILE ==== */
@media (max-width: 700px) {
  .benefits-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .benefits-left {
    width: 100%;
    text-align: center;
    max-width: 500px;
  }

  .benefits-pinned-title {
    margin: 0 0 12px 0;
    font-size: 1.8rem;
    text-align: center;
  }

  .benefits-right {
    width: 100%;
    max-width: 500px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    position: relative;
  }

  /* ✅ show only ONE vertical line */
  .timeline-vertical {
    display: block;
    left: 50%;
    transform: translateX(-50%);
    border-left: 2px solid #e4f1ff;
  }

  .timeline-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
  }

  /* ✅ center icons */
  .timeline-dot {
    margin: 0 auto 12px auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #e4f1ff;
    background: #fff;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(3, 102, 214, 0.08);
    flex-shrink: 0;
    z-index: 2;
  }

  .timeline-dot img {
    width: 28px;
    height: 28px;
    display: block;
  }

  /* ✅ cards visible by default + animated */
  .timeline-card {
    margin: 0 auto;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(3, 102, 214, 0.08);
    opacity: 1; /* visible by default */
    transform: translateY(0);
    transition: all 0.6s ease-out;
  }

  /* optional: extra animation class */
  .timeline-card.in-view {
    opacity: 1;
    transform: translateY(-6px);
  }

  .timeline-title {
    font-size: 1.15rem;
    margin-top: 4px;
  }

  .timeline-desc {
    font-size: 0.95rem;
  }
}
