/* ============================================
   VINGA SNAKE TIMELINE
   Strict Reference Replica (White Background Version)
   ============================================ */

.vct-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Limit width on desktop */
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  /* Padding removed to fix alignment - spacing is handled by internal Y offsets */
  padding: 0;
  /* Transparent for user's white section */
  background: transparent;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
}

/* Background Year Text - Darker for visibility on white */
.vct-bg-year {
  position: absolute;
  top: 10px;
  right: 5%;
  font-size: 250px;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 0, 0, 0.03); /* Subtle dark gray */
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* ============================================
   SVG PATH
   ============================================ */
/* ============================================
   SVG PATH
   ============================================ */
.vct-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%; /* Full Width */
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.vct-path-line {
  stroke: #000000; /* Black Line */
  stroke-width: 6px;
  fill: none;
  stroke-linecap: round;
  /* Soft shadow for depth */
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
  /* Ensure stroke remains 6px regardless of SVG scaling */
  vector-effect: non-scaling-stroke;
}

/* Ellipsis dots at end of timeline */
.vct-ellipsis-dot {
  /* Keep circles perfectly round regardless of SVG aspect ratio */
  vector-effect: non-scaling-stroke;
}

/* ============================================
   ITEMS CONTAINER
   ============================================ */
.vct-items-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%; /* Full Width */
  margin: 0 auto;
}

.vct-item {
  position: absolute;
  transform: translateX(-50%);
  width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Wider cards for 2-item rows */
.vct-item.vct-wide {
  width: 420px; /* Significantly wider than 280px */
}

/* Shift logic to prevent overlapping the vertical curves */
/* Leftmost Item (moving right) */
.vct-item.vct-shift-right .vct-card {
  transform: translateX(calc(-50% + 80px));
}

/* Rightmost Item (moving left) */
.vct-item.vct-shift-left .vct-card {
  transform: translateX(calc(-50% - 80px));
}

/* ============================================
   MARKERS / DOTS / STEMS
   ============================================ */
.vct-marker {
  position: absolute;
  top: 0; 
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.vct-dot {
  width: 26px;
  height: 26px;
  background-color: #ffbf00; /* Rich Yellow (Kept) */
  border: 4px solid #000000; /* Black Border */
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.vct-stem {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background-color: #000000; /* Black Connector Stem */
  z-index: 1;
}

/* ============================================
   CARD POSITIONS (Strict Top/Bottom Logic)
   ============================================ */

/* TOP ITEM: Card Above, Date label Below */
.vct-item-top .vct-card {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}
.vct-item-top .vct-stem {
  bottom: 0px; 
  height: 35px;
  top: auto;
}
.vct-item-top .vct-marker { top: 0; }
.vct-item-top .vct-date-label {
  position: absolute;
  top: 35px; 
  color: #000000; /* Black Label */
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

/* BOTTOM ITEM: Card Below, Date label Above */
.vct-item-bottom .vct-card {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}
.vct-item-bottom .vct-stem {
  top: 0px; 
  height: 35px;
}
.vct-item-bottom .vct-marker { top: 0; }
.vct-item-bottom .vct-date-label {
  position: absolute;
  bottom: 35px;
  color: #000000; /* Black Label */
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}


/* ============================================
   CARD STYLES
   ============================================ */
.vct-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 24px !important;
  /* Darker border for distinct visibility */
  border: 1px solid #d5d5d5 !important; 
  /* Stronger, deeper shadow to separate from white background */
  box-shadow: 7px 7px 30px 0px rgba(0, 0, 0, 0.2) !important;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.vct-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.vct-logo img {
  width: auto;
  height: 24px;
  object-fit: contain;
}

.vct-title {
  font-size: 17px;
  font-weight: 800;
  color: #000;
  line-height: 1.2;
}

.vct-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 16px;
}

/* Footer Pill */
.vct-footer {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: #fcecd6; /* Light Orange/Yellow */
  font-size: 12px;
  font-weight: 700;
  color: #000;
}

.vct-footer.vct-hl {
  background-color: #FFE0B2;
}


/* ============================================
   RESPONSIVE - TABLET (1024px - 1240px)
   ============================================ */
@media (max-width: 1240px) and (min-width: 1025px) {
  .vct-item {
    width: 280px; /* Scaled down from 350px */
  }
  
  .vct-item.vct-wide {
    width: 340px; /* Scaled down from 420px */
  }
  
  .vct-card {
    padding: 18px !important;
  }
  
  .vct-title {
    font-size: 15px;
  }
  
  .vct-desc {
    font-size: 13px;
  }
}


/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 1024px) {
  .vct-wrap {
    padding: 30px 20px;
  }
  .vct-bg-year {
    font-size: 15vh;
    right: 0;
  }
  
  /* Hide desktop SVG path on mobile */
  .vct-svg { display: none; }
  
  /* Hide JS-generated ellipsis (CSS handles mobile ellipsis) */
  .vct-ellipsis-container { display: none; }

  .vct-items-container {
    height: auto !important;
    position: relative;
    padding-left: 40px;
    margin-left: 20px;
  }
  
  /* Vertical timeline line using pseudo-element */
  .vct-items-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px; /* Start at the first dot level, not above it */
    bottom: 60px; /* Leave space for ellipsis dots */
    width: 4px;
    background: #000; /* Solid black line - visible */
    border-radius: 2px;
  }
  
  /* Ellipsis dots at end of mobile timeline */
  .vct-items-container::after {
    content: '';
    position: absolute;
    left: -3px; /* Center the dots on the line (4px line, 10px total dot width) */
    bottom: 0;
    width: 10px;
    height: 50px;
    /* Three dots using radial gradients */
    background: 
      radial-gradient(circle, #000 4px, transparent 4px) center 0px / 10px 10px no-repeat,
      radial-gradient(circle, #000 4px, transparent 4px) center 16px / 10px 10px no-repeat,
      radial-gradient(circle, #000 4px, transparent 4px) center 32px / 10px 10px no-repeat;
  }
  
  .vct-item {
    position: relative !important;
    width: 100% !important;
    max-width: 100%;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    margin-bottom: 60px; /* Increased from 40px for more spacing */
    align-items: flex-start;
  }

  /* Wide cards should be full width on mobile */
  .vct-item.vct-wide {
    width: 100% !important;
  }

  .vct-item-top .vct-card,
  .vct-item-bottom .vct-card {
    position: relative;
    left: auto; 
    top: 35px; /* Gap between date and card */
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
  }

  .vct-stem { display: none; }
  
  /* Position dot on the timeline line */
  .vct-marker {
    position: absolute;
    left: -44px;
    top: 0;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px; /* Gap between marker/date and card */
  }
  
  .vct-dot {
    width: 20px;
    height: 20px;
    background: #FFAB00;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    right: 4px;
  }
  
  .vct-date-label {
    position: relative !important;
    color: #000;
    top: auto !important; 
    bottom: auto !important;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
  }

  .vct-card {
    width: 100%;
    padding: 16px;
  }
  
  .vct-title {
    font-size: 16px;
  }
  
  .vct-desc {
    font-size: 13px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .vct-wrap {
    padding: 20px 15px;
  }
  
  .vct-items-container {
    padding-left: 30px;
    margin-left: 15px;
  }
  
  .vct-marker {
    left: -34px;
  }
  
  .vct-dot {
    width: 22px;
    height: 22px;
    position: relative;
    right: 5px;
  }
  
  .vct-card {
    padding: 14px;
  }
}

