/* PREMIUM MILESTONE TIMELINE REDESIGN */
.premium-timeline-section {
  position: relative;
  background: #ffffff;
  padding: 100px 0;
}

/* Pharmaceutical Background Graphics */
.timeline-bg-graphics {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 156, 141, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0, 207, 187, 0.05) 0%, transparent 40%),
    linear-gradient(rgba(0, 156, 141, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 156, 141, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  z-index: 1;
}

.premium-timeline-section .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-layout {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* LEFT SIDE (40%) */
.timeline-left {
  width: 40%;
  position: relative;
}

.milestone-sticky-content {
  position: sticky;
  top: 120px;
}

.milestone-header {
  margin-bottom: 30px;
}

.milestone-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #009C8D;
  background: rgba(0, 156, 141, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.milestone-title {
  font-size: 42px;
  font-weight: 800;
  color: #0a1f44; /* Dark navy for text */
  margin: 0;
  line-height: 1.2;
}

/* Video Card */
.milestone-video-wrapper {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 156, 141, 0.2);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.milestone-video-glass {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}

.milestone-video-glass::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: linear-gradient(135deg, #009C8D, #00CFBB) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.milestone-video-glass:hover::after {
  opacity: 1;
}

.milestone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.milestone-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: #009C8D;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease, background 0.3s ease;
}

.milestone-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #00CFBB;
}

.milestone-play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 4px; /* optical center */
}

.milestone-play-btn::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border-radius: 50%;
  background: rgba(0, 156, 141, 0.4);
  animation: playRipple 2s infinite ease-out;
  z-index: -1;
}

@keyframes playRipple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.milestone-video-content {
  padding: 24px 14px 10px;
}

.milestone-video-content p {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.milestone-video-content .btn-premium-pill-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 50px;
  background: transparent;
  color: #009C8D;
  border: 1px solid #009C8D;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.milestone-video-content .btn-premium-pill-secondary:hover {
  background: #009C8D;
  color: #fff;
}


/* RIGHT SIDE (60%) */
.timeline-right {
  width: 60%;
  position: relative;
  padding-top: 50px;
}

.timeline-zig-zag {
  position: relative;
}

/* The vertical line */
.timeline-progress-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(0, 156, 141, 0.15);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, #009C8D, #00CFBB);
  height: 0%; /* updated via JS */
  transition: height 0.2s ease-out;
}

.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ccc;
  z-index: 3;
  transition: all 0.4s ease;
}

.timeline-item.is-active .timeline-dot,
.timeline-item.is-completed .timeline-dot {
  border-color: #009C8D;
  background: #00CFBB;
  box-shadow: 0 0 0 6px rgba(0, 156, 141, 0.2);
}

.timeline-card {
  width: 44%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 156, 141, 0.15);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  position: relative;
  transition: all 0.4s ease;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 2px;
  background: rgba(0, 156, 141, 0.2);
}

.timeline-item.left .timeline-card {
  margin-left: 0;
  margin-right: auto;
}
.timeline-item.left .timeline-card::before {
  right: -20px;
}

.timeline-item.right .timeline-card {
  margin-right: 0;
  margin-left: auto;
}
.timeline-item.right .timeline-card::before {
  left: -20px;
}

.timeline-item.is-active .timeline-card,
.timeline-item:hover .timeline-card {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 156, 141, 0.1);
  border-color: rgba(0, 156, 141, 0.4);
}

.timeline-item.is-completed .timeline-card {
  opacity: 0.9;
}

.timeline-item:not(.is-completed):not(.is-active) .timeline-card {
  opacity: 0.7;
}

.timeline-year {
  font-size: 32px;
  font-weight: 900;
  color: #f0f0f0;
  -webkit-text-stroke: 1px #009C8D;
  position: absolute;
  top: 15px;
  right: 20px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.timeline-item.is-active .timeline-year,
.timeline-item:hover .timeline-year {
  color: rgba(0, 156, 141, 0.1);
  opacity: 1;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 156, 141, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #009C8D;
}

.timeline-icon svg {
  width: 24px;
  height: 24px;
}

.timeline-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0a1f44;
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Final Celebration Card */
.timeline-item.final-celebration .timeline-card {
  background: linear-gradient(145deg, #009C8D, #00CFBB);
  border: none;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 156, 141, 0.3);
}

.timeline-item.final-celebration .timeline-card::before {
  background: rgba(0, 156, 141, 0.5);
}

.timeline-item.final-celebration .timeline-year {
  -webkit-text-stroke: 0;
  color: rgba(255, 255, 255, 0.2);
}

.timeline-item.final-celebration .timeline-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.timeline-item.final-celebration h3,
.timeline-item.final-celebration p {
  color: #fff;
}

.final-dot {
  width: 20px;
  height: 20px;
  background: #883B00 !important;
  border-color: #fff !important;
  box-shadow: 0 0 0 6px rgba(136, 59, 0, 0.2) !important;
}

/* Responsive Design */
@media (max-width: 991px) {
  .timeline-layout {
    flex-direction: column;
  }
  
  .timeline-left {
    width: 100%;
    margin-bottom: 40px;
  }
  
  .milestone-sticky-content {
    position: static;
  }
  
  .timeline-right {
    width: 100%;
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .timeline-progress-line {
    left: 20px;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .timeline-item.left .timeline-card,
  .timeline-item.right .timeline-card {
    width: calc(100% - 60px);
    margin-left: auto;
    margin-right: 0;
  }
  
  .timeline-item.left .timeline-card::before,
  .timeline-item.right .timeline-card::before {
    left: -20px;
    right: auto;
  }
}
