/* Education and Experience Timeline Styling */
.row.mb-20 {
  margin-bottom: 5rem !important;
}

.subheading {
  margin-bottom: 2rem;
}

.subheading h3 {
  font-family: "Architects Daughter", cursive !important;
  font-size: 28px;
  font-weight: 700;
  color: #20c997 !important;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 0;
}

.subheading h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 55px;
  background-color: #20c997;
  border-radius: 8px;
}

.subheading h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 1px;
  width: 100%;
  max-width: 255px;
  background: linear-gradient(90deg, #20c997 40%, transparent 100%);
}

.experience,
.education {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.experience li,
.education li {
  position: relative;
  padding: 2rem 0 1.25rem 4rem;
  margin-bottom: 2.5rem;
}

.experience li:last-child,
.education li:last-child {
  margin-bottom: 0;
}

.line-left {
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, #20c997 10%, #20c997 90%, transparent 100%);
  z-index: 0;
}

.content {
  margin-left: 0;
  padding-left: 0.75rem;
  padding-right: 0.5rem;
}

.content h4,
.content h5,
.content h6,
.content p.info {
  margin-left: 0;
  padding-left: 0;
}

.content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
  color: #fff;
  line-height: 1.35;
}

.content h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #20c997;
  margin-bottom: 0.45rem;
  line-height: 1.4;
}

.content h6 {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: #cbccce;
  line-height: 1.4;
}

.content p.info {
  color: #cbccce;
  margin-bottom: 0;
  line-height: 1.6;
}

.year {
  position: absolute;
  left: calc(1.5rem - 2.5rem + 35px);
  top: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(32, 201, 151, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid #20c997;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  color: #20c997;
  text-align: center;
  box-shadow: 0 8px 32px rgba(32, 201, 151, 0.3);
}

.year .to,
.year .from {
  display: block;
  line-height: 1.1;
  font-size: 0.8rem;
}

.col-lg-6 .experience li:nth-child(1) .year,
.col-lg-6 .education li:nth-child(1) .year {
  background: rgba(251, 221, 98, 0.2);
  border-color: #fbdd62;
  color: #fbdd62;
}

.col-lg-6 .experience li:nth-child(2) .year,
.col-lg-6 .education li:nth-child(2) .year {
  background: rgba(255, 83, 128, 0.2);
  border-color: #ff5380;
  color: #ff5380;
}

.col-lg-6 .experience li:nth-child(3) .year,
.col-lg-6 .education li:nth-child(3) .year {
  background: rgba(32, 201, 151, 0.2);
  border-color: #20c997;
  color: #20c997;
}

@media (max-width: 991px) {
  .experience li,
  .education li {
    padding: 1.5rem 0 1rem 3.2rem;
    margin-bottom: 2rem;
  }

  .line-left {
    left: 1rem;
  }

  .content {
    padding-left: 0.6rem;
    padding-right: 0;
    transform: none;
  }

  .year {
    left: 0.15rem;
    top: 1.1rem;
    width: 44px;
    height: 44px;
  }

  .content h4 {
    font-size: 1.1rem;
  }

  .content h5 {
    font-size: 0.95rem;
  }

  .content h6,
  .content p.info {
    font-size: 0.9rem;
  }
}

.portfolio-dark-theme .content h4 {
  color: #fff;
}

.portfolio-dark-theme .content h5 {
  color: #20c997;
}

.portfolio-dark-theme .content h6,
.portfolio-dark-theme .content p.info {
  color: #cbccce;
}