.education {
  height: max-content;
}
.education-title {
  font-size: var(--font-large);
  font-weight: bolder;
  margin: 20px 0;
  width: max-content;
  margin: auto;
  padding-top: 130px;
}
.card h3 i,
.card p i {
  margin-right: 10px;
  color: var(--black-text-color);
  font-size: 1em;
}
.education h1 span {
  color: var(--primary-red);
}

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

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 40px;
}
.active-section .timeline {
  animation: slideInLefttoRight 1s ease forwards;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary-gray);
}

.timeline-icon {
  position: absolute;
  left: 13px;
  top: 0;
  width: 16px;
  height: 16px;
  background-color: var(--primary-red);
  border-radius: 50%;
}

.timeline-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.education-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.education-content h2 {
  align-self: flex-start;
  margin: 30px;
}
.timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h3.card-title {
  color: var(--primary-red);
  margin-bottom: 10px;
}

p {
  color: var(--black-text-color);
  margin: 0 0 10px;
}

.card-date {
  font-size: 14px;
  font-weight: 600;
  margin-left: 3px;
}
.card-place {
  color: var(--black-text-color);
  font-size: 14px;
  font-weight: 400;
}
@media (max-width: 925px) {
  .timeline-item {
    padding-left: 20px;
  }
  .education h1 {
    font-size: 3em;
  }
  .education-content {
    width: 90%;
    margin: auto;
  }
  .education h2.title {
    margin-left: 10px;
    font-size: 24px;
  }
  .timeline-item::before {
    left: 5px;
  }

  .timeline-icon {
    left: -2px;
  }
  .timeline {
    margin: 0 20px;
    padding: 0;
  }
}
