/* Education Page Specific Styles */

/* Timeline Styles */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #007bff, #28a745);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin: 3rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #007bff;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  z-index: 10;
  transition: all 0.3s ease;
}

.timeline-marker.active {
  background: #28a745;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(40, 167, 69, 0.8); }
  100% { box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4); }
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 0 2rem;
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  left: 55%;
  text-align: left;
}

.timeline-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745);
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.5rem;
}

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

.institution-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.timeline-card h4 {
  color: #2c3e50;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.timeline-card h5 {
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-card .year {
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-card .description {
  color: #495057;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-item:nth-child(odd) .skills-tags {
  justify-content: flex-end;
}

.skill-tag {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1976d2;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #90caf9;
}

/* Skills Section */
.skill-category-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  height: 100%;
}

.skill-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.skill-category-card h4 {
  text-align: center;
  color: #2c3e50;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

/* Skill list spacing handled by individual .skill-item margin-bottom */

.skill-item {
  margin-bottom: 1rem;
}

.skill-item span {
  display: block;
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.skill-bar {
  background: #e9ecef;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #28a745);
  border-radius: 10px;
  width: 0%;
  transition: width 1.5s ease-in-out;
}

/* Achievement Cards */
.achievement-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #28a745, #20c997);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.achievement-card h4 {
  color: #2c3e50;
  font-weight: bold;
  margin-bottom: 1rem;
}

.achievement-card p {
  color: #6c757d;
  line-height: 1.6;
}

/* Dark Mode Adjustments */
body.bg-dark .timeline-card,
body.bg-dark .skill-category-card,
body.bg-dark .achievement-card {
  background: #343a40 !important;
  border-color: #6c757d !important;
  color: #f8f9fa !important;
}

body.bg-dark .timeline-card h4,
body.bg-dark .timeline-card h5,
body.bg-dark .skill-category-card h4,
body.bg-dark .achievement-card h4 {
  color: #f8f9fa !important;
}

body.bg-dark .timeline-card .description,
body.bg-dark .achievement-card p {
  color: #ced4da !important;
}

body.bg-dark .skill-item span {
  color: #ced4da !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    left: 60px !important;
    text-align: left !important;
    padding: 0 1rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-icon {
    margin-left: 0;
  }
  
  .timeline-item:nth-child(odd) .skills-tags {
    justify-content: flex-start;
  }
  
  .timeline-card {
    padding: 1.5rem;
  }
  
  .skill-category-card,
  .achievement-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .timeline-card {
    padding: 1rem;
  }
  
  .skill-category-card,
  .achievement-card {
    padding: 1rem;
  }
  
  .timeline-icon,
  .skill-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .achievement-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}