/* ================================================================
   process-timeline.css
   Clean vertical timeline with internal scrolling.
   Matches website background, no horizontal wobble.
   ================================================================ */

.process-timeline-section {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  background-color: #ffffff; /* Clean background matching the site */
  overflow: hidden; /* Ensure section itself is stiff */
}

/* ---- Intro paragraph block ---- */
.process-intro {
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
  position: relative;
  max-height: 155px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.process-intro.is-expanded {
  max-height: 2000px;
}
.process-intro::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.process-intro.is-expanded::after {
  opacity: 0;
}
.process-intro p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #55606e;
}
.process-intro strong {
  color: #000f57;
}
.process-intro-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000f57;
  background: transparent;
  padding: 0.5rem 0;
  margin-top: 1rem;
  border: none;
  border-bottom: 2px solid #abdf00;
  border-radius: 0;
  transition: opacity 0.2s ease;
}
.process-intro-toggle:hover {
  opacity: 0.6;
}

/* ---- Section eyebrow ---- */
.process-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #abdf00;
  background: #000f57;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* ---- Numbered list container ---- */
.process-list {
  position: relative;
  max-width: 900px;
  margin: 2rem auto 0;
  
  /* Left padding creates the "gutter" for the timeline line and bubbles */
  padding: 20px 20px 20px 80px; 
  
  /* Vertical Scroll Settings */
  max-height: 550px;
  overflow-y: auto;
  overflow-x: hidden;
  
  /* Soft inner shadow for scroll affordance */
  box-shadow: inset 0 -20px 20px -20px rgba(0,0,0,0.1), inset 0 20px 20px -20px rgba(0,0,0,0.1);
  border-radius: 10px;
}

/* Custom scrollbar */
.process-list::-webkit-scrollbar {
  width: 6px;
}
.process-list::-webkit-scrollbar-track {
  background: rgba(0, 15, 87, 0.05);
  border-radius: 4px;
}
.process-list::-webkit-scrollbar-thumb {
  background: #abdf00;
  border-radius: 4px;
}

/* The dashed vertical line */
.process-list::before {
  content: '';
  position: absolute;
  top: 0;
  height: max-content;
  min-height: 100%;
  left: 38px; /* Perfectly aligns with center of circles */
  border-left: 2px dashed #c7d0e0;
  z-index: 0;
}

.process-row {
  position: relative;
  padding: 2rem 0;
}
.process-row:first-child {
  padding-top: 1rem;
}
.process-row:last-child {
  padding-bottom: 1rem;
}

/* The circular plan-marker */
/* Since .process-row has no padding-left/margin-left internally anymore, 
   we just position the absolute marker relative to the .process-row bounding box,
   BUT wait: the padding is on .process-list (80px).
   So .process-row's left edge is at the 80px mark!
   Therefore, to put the circle at the 38px mark, its left position should be:
   left = -42px (80 - 38 = 42)
   But a 42px circle centered on 38px needs to be at left: -63px from the row!
   Math: 
   Row left edge is at x=80.
   Line is at x=38.
   Circle width=42. Circle center should be x=38.
   Circle left should be x=17. (38 - 21)
   Relative to row left edge (80), circle left is 17 - 80 = -63px.
*/
.process-row-number {
  position: absolute;
  left: -63px;
  top: 1.8rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #000f57;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #000f57;
  z-index: 2;
  transition: background 0.25s ease, color 0.25s ease;
}
.process-row:first-child .process-row-number,
.process-row:last-child .process-row-number {
  background: #000f57;
  color: #abdf00;
}
.process-row:hover .process-row-number {
  background: #000f57;
  color: #abdf00;
}

/* Small perpendicular tick mark */
.process-row-number::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  width: 21px; /* 63px (distance to row) - 42px (circle width) = 21px */
  height: 2px;
  background: #c7d0e0;
}

.process-row-phase {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b93a7;
  margin-bottom: 0.4rem;
}

.process-row-body {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #ffffff; /* Explicitly white so it overlays the grid if any */
}

.process-row-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid #000f57;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}
.process-row-icon i {
  color: #000f57;
  font-size: 0.95rem;
}

.process-row-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000f57;
  margin-bottom: 0.5rem;
}

.process-row-text {
  color: #55606e;
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 600px;
}

@media (max-width: 640px) {
  .process-list {
    padding-left: 60px; /* Reduced padding on mobile */
  }
  .process-list::before {
    left: 18px; 
  }
  .process-row-number {
    left: -42px; /* 60 - 18 = 42 */
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .process-row-number::after {
    width: 8px; /* 42 - 34 = 8 */
  }
  .process-row-body {
    gap: 0.85rem;
  }
}

/* ---- Closing CTA ---- */
.process-cta-wrap {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px dashed #c7d0e0;
}
.process-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000f57;
  text-decoration: none;
  border: 2px solid #000f57;
  padding: 0.75rem 1.75rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.process-cta-link:hover {
  background: #000f57;
  color: #abdf00;
}
