/* Timeline Styles */

/* ---- Timeline Container ---- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

/* ---- Timeline Line ---- */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-hover) 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* ---- Timeline Item ---- */
.timeline-item {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }

/* ---- Timeline Marker ---- */
.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--paper);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* ---- Timeline Content ---- */
.timeline-content {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  width: calc(50% - 40px);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(5, 150, 105, 0.2);
}

/* ---- Timeline Content Positioning ---- */
.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

/* ---- Timeline Arrow ---- */
.timeline-content::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 0;
  height: 0;
  border: 12px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -24px;
  border-left-color: var(--paper);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -24px;
  border-right-color: var(--paper);
}

/* ---- Timeline Image ---- */
.timeline-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.timeline-content:hover .timeline-image img {
  transform: scale(1.05);
}

.timeline-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(5, 150, 105, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* ---- Timeline Date ---- */
.timeline-date {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

/* ---- Timeline Content Text ---- */
.timeline-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.3;
}

.timeline-content p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
}

/* ---- Animation ---- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Timeline Responsive Styles ---- */

/* Large Desktop */
@media (min-width: 1200px) {
  .timeline {
    max-width: 900px;
  }
  
  .timeline-content {
    width: calc(50% - 50px);
    padding: 40px;
  }
  
  .timeline-icon {
    width: 70px;
    height: 70px;
  }
  
  .timeline-image {
    height: 220px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .timeline {
    max-width: 700px;
  }
  
  .timeline-content {
    width: calc(50% - 30px);
    padding: 28px;
  }
  
  .timeline-icon {
    width: 55px;
    height: 55px;
  }
  
  .timeline-content h3 {
    font-size: 18px;
  }
  
  .timeline-image {
    height: 180px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-icon {
    width: 50px;
    height: 50px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
    margin-right: 0 !important;
  }
  
  .timeline-content::before {
    left: -24px !important;
    right: auto !important;
    border-left-color: transparent !important;
    border-right-color: var(--paper) !important;
  }
  
  .timeline-content {
    padding: 24px;
  }
  
  .timeline-content h3 {
    font-size: 17px;
  }
  
  .timeline-content p {
    font-size: 14px;
  }
  
  .timeline-date {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .timeline-image {
    height: 160px;
    margin-bottom: 16px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .timeline {
    padding: 20px 0;
  }
  
  .timeline::before {
    left: 25px;
  }
  
  .timeline-marker {
    left: 25px;
  }
  
  .timeline-icon {
    width: 45px;
    height: 45px;
  }
  
  .timeline-content {
    width: calc(100% - 70px);
    margin-left: 70px !important;
    padding: 20px;
  }
  
  .timeline-item {
    margin-bottom: 40px;
  }
  
  .timeline-image {
    height: 140px;
    margin-bottom: 14px;
  }
}
