/* Experience and Skills section styles */

.section-divider {
  border: none;
  border-top: 1px solid rgb(200, 200, 200);
  margin: 2em 0;
  padding: 0;
}

.experience-item,
.education-item {
  margin-bottom: 0;
  padding-bottom: 0;
}

.experience-item:last-child,
.education-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Add border only after the last item in each section */
#about > h2:not(:first-of-type) {
  margin-top: 2.5em;
  padding-top: 2.5em;
  border-top: 1px solid rgb(200, 200, 200);
}

.experience-header,
.education-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1em;
  margin-bottom: 1em;
}

.experience-header h3,
.education-header h3 {
  margin: 0;
  color: rgb(0, 51, 160);
  font-size: 16px;
  font-weight: 700;
}

.company,
.school {
  font-weight: bold;
  color: rgb(37, 37, 37);
}

.location {
  color: rgb(100, 100, 100);
  font-style: italic;
}

.date {
  color: rgb(100, 100, 100);
  font-size: 13px;
  margin-left: auto;
}

.experience-item ul {
  margin-left: 1em;
  padding-left: 1em;
}

.experience-item li {
  margin-bottom: 0.8em;
  line-height: 1.6;
  color: rgb(37, 37, 37);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
  margin-top: 1em;
}

.skill-category {
  padding: 1.2em;
  background-color: #f9f8f3;
  border-left: 4px solid rgb(0, 51, 160);
  border-radius: 2px;
}

.skill-category h3 {
  margin: 0 0 0.5em 0;
  color: rgb(0, 51, 160);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-category p {
  margin: 0;
  color: rgb(37, 37, 37);
  font-size: 13px;
  line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .experience-header,
  .education-header {
    flex-direction: column;
    gap: 0.3em;
  }

  .date {
    margin-left: 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }

  .skill-category {
    padding: 1em;
  }
}
