/* Timeline Styles */
:root {
  --primary-color: #3a86ff;
  --primary-rgb: 58, 134, 255;
}

/* Ensure timeline styles are applied */
.timeline-enabled .timeline-item::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  width: 60px !important;
  height: 5px !important;
  background-color: var(--primary-color) !important;
  top: 38px !important;
  opacity: 0.9 !important;
  z-index: 0 !important;
  animation: lineGrow 0.5s ease-out forwards !important;
  box-shadow: 0 0 10px 2px rgba(var(--primary-rgb), 0.6) !important;
}

.timeline-enabled .timeline-item:nth-child(odd)::after {
  left: 50% !important;
}

.timeline-enabled .timeline-item:nth-child(even)::after {
  right: 50% !important;
}

.education-section {
  background-color: #f9f9f9;
  position: relative;
}

.education-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.education-timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  opacity: 0.3;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.1);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 50px;
}

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

/* Add decorative connecting lines from dot to content */
@keyframes lineGrow {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 60px;
    opacity: 0.9;
  }
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 5px;
  background-color: var(--primary-color);
  top: 38px;
  opacity: 0.9;
  z-index: 0;
  animation: lineGrow 0.5s ease-out forwards;
  box-shadow: 0 0 10px 2px rgba(var(--primary-rgb), 0.6);
}

.timeline-item:nth-child(odd)::after {
  left: 50%;
}

.timeline-item:nth-child(even)::after {
  right: 50%;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  left: 50%;
  top: 30px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin-left: -10px;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2), 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.timeline-date-right {
  position: absolute;
  width: 40%;
  padding-right: 30px;
  left: 0;
  text-align: right;
  top: 25px;
}

.timeline-date-left {
  position: absolute;
  width: 40%;
  padding-left: 30px;
  right: 0;
  text-align: left;
  top: 25px;
}

.timeline-date span {
  font-weight: 600;
  color: var(--primary-color);
  background-color: rgba(var(--primary-rgb), 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(var(--primary-rgb), 0.1);
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 25px 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

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

.timeline-item:nth-child(odd) .timeline-content::before {
  content: '';
  position: absolute;
  border-style: solid;
  border-width: 15px 15px 15px 0;
  border-color: transparent #fff transparent transparent;
  top: 30px;
  left: -15px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  content: '';
  position: absolute;
  border-style: solid;
  border-width: 15px 0 15px 15px;
  border-color: transparent transparent transparent #fff;
  top: 30px;
  right: -15px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  @keyframes lineGrowMobile {
    0% {
      width: 0;
      opacity: 0;
    }
    100% {
      width: 45px;
      opacity: 0.9;
    }
  }
  
  .timeline-date-left {
    left: 0;
    text-align: left;
    padding-left: 50px;
    width: 100%;
  }
  .timeline-date-right {
    left: 0;
    text-align: left;
    padding-left: 50px;
    width: 100%;
  }
  .education-timeline {
    padding-left: 20px;
  }
  .education-timeline::before {
    left: 20px;
    margin-left: 0;
  }
  .timeline-item {
    padding-left: 60px;
    padding-right: 0;
    left: -27px;
  }
  
  /* Ensure timeline styles are applied on mobile */
  .timeline-enabled .timeline-item::after {
    width: 45px !important;
    height: 5px !important;
    left: 30px !important;
    right: auto !important;
    opacity: 0.9 !important;
    animation: lineGrowMobile 0.5s ease-out forwards !important;
    box-shadow: 0 0 10px 2px rgba(var(--primary-rgb), 0.6) !important;
  }
  
  .timeline-enabled .timeline-item:nth-child(odd)::after,
  .timeline-enabled .timeline-item:nth-child(even)::after {
    left: 30px !important;
    right: auto !important;
  }
  
  .timeline-dot {
    left: 20px;
    margin-left: 0;
  }
  .timeline-content {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Ensure arrow connectors are visible on mobile */
  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent #fff transparent transparent;
    right: auto;
  }
} 