.professor-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.professor-profile img {
  width: auto;
  max-width: 100%;;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(46, 134, 171, 0.2);
  margin-bottom: 20px;
  border: 2px solid var(--gray-200);
}

.professor-profile .info h1 {
  font-size: 28px;
  color: var(--gray-800);
  margin: 0 0 8px;
}

.professor-profile .info h2 {
  font-size: 20px;
  color: var(--gray-700);
  margin: 0 0 16px;
}

.professor-profile .info p {
  margin: 4px 0;
  color: var(--gray-700);
  font-size: 16px;
}

section.professor-education,
section.professor-experiences {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(46, 134, 171, 0.1);
}

section h3 {
  font-size: 20px;
  color: var(--primary-blue);
  margin-top: 0;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

section ul li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

section ul li:last-child {
  border-bottom: none;
}

.period {
  font-weight: bold;
  color: var(--gray-800);
  font-size: 15px;
}

.detail .degree {
  font-weight: bold;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.detail .institution,
.detail .extra {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 2px;
}

.detail .extra {
  font-style: italic;
}

@media (max-width: 720px) {
  section ul li {
    grid-template-columns: 1fr;
  }

  .period {
    margin-bottom: 4px;
  }
}