/* ============================================
   Timeline Section Styles
   ============================================ */

.timeline-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0ebe3 0%, #f5f1ea 100%);
}

.timeline-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.timeline-section .section-header h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.timeline-section .section-header .subtitle {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto;
}

.timeline-tabs-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: -2px;
  position: relative;
  z-index: 10;
}

.timeline-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 15px;
  background: transparent;
  border: none;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  color: #8b8b8b;
  position: relative;
}

.timeline-tab svg {
  width: 32px;
  height: 32px;
  stroke: #8b8b8b;
  transition: stroke 0.3s ease;
}

.timeline-tab:hover {
  background: #fafafa;
  color: var(--secondary-color);
}

.timeline-tab:hover svg {
  stroke: var(--secondary-color);
}

.timeline-tab.active {
  background: var(--white);
  color: var(--secondary-color);
  border: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-tab.active svg {
  stroke: var(--secondary-color);
}

.timeline-content {
  position: relative;
  min-height: 400px;
  background: var(--white);
  border-radius: 0 0 16px 16px;
  padding: 40px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.timeline-panel {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.timeline-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  background: var(--white);
  border-bottom: 1px solid #f0ebe3;
}

.timeline-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0;
}

.timeline-duration {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 10px 25px;
  background: var(--gray-50);
  border-radius: 8px;
  border: 2px solid var(--primary-color);
}

.timeline-phases {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 30px;
}

.timeline-phase {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid #f0ebe3;
  transition: all 0.3s ease;
}

.timeline-phase:last-child {
  border-bottom: none;
}

.timeline-phase:hover {
  padding-left: 10px;
}

.phase-week {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: flex-start;
  padding-top: 5px;
}

.phase-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0 0 10px 0;
}

.phase-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
}

.timeline-note {
  padding: 25px 30px;
  background: linear-gradient(135deg, #fef9e7 0%, #fdfbf5 100%);
  border-radius: 12px;
  margin-top: 30px;
  border: 2px solid #f5ecd7;
}

.timeline-note strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .timeline-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: -2px;
  }
  
  .timeline-tab {
    padding: 18px 12px;
    font-size: 0.95rem;
  }
  
  .timeline-tab.active {
    border-radius: 12px 12px 0 0;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .timeline-section {
    padding: 60px 0;
  }
  
  .timeline-section .section-header h2 {
    font-size: 1.8rem;
  }
  
  .timeline-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .timeline-tab {
    padding: 15px;
    font-size: 0.95rem;
    border-radius: 12px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
  }
  
  .timeline-tab.active {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  }
  
  .timeline-tab svg {
    width: 28px;
    height: 28px;
  }
  
  .timeline-content {
    padding: 30px 20px;
    border-radius: 12px;
  }
  
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 25px;
  }
  
  .timeline-header h3 {
    font-size: 1.5rem;
  }
  
  .timeline-duration {
    font-size: 1.5rem;
    padding: 8px 20px;
  }
  
  .timeline-phase {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 25px 0;
  }
  
  .phase-week {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
  
  .phase-content h4 {
    font-size: 1.1rem;
  }
  
  .phase-content p {
    font-size: 0.95rem;
  }
  
  .timeline-note {
    font-size: 0.9rem;
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .timeline-tabs {
    grid-template-columns: 1fr;
  }
}
