body {
  font-size: 17px;
  line-height: 1.65;
}

.navbar-title {
  font-weight: 600;
}

main {
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.home-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.8rem;
  margin-bottom: 2.8rem;
}

.home-photo {
  text-align: center;
}

.home-photo img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.profile-links {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e5e5e5;
  text-align: left;
  width: 210px;
  margin-left: auto;
  margin-right: auto;
}

.profile-links a,
.profile-links .profile-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.35rem 0;
  color: #495057;
  text-decoration: none;
  font-size: 0.95rem;
}

.profile-links a:hover {
  color: #0d6efd;
  text-decoration: none;
}

.profile-links i {
  width: 1.1rem;
  text-align: center;
  color: #6c757d;
}

.home-text h1 {
  margin-top: 0;
  font-size: 2.5rem;
  line-height: 1.15;
}

.home-text p {
  max-width: 760px;
}

.btn {
  margin-right: 0.5rem;
  margin-top: 0.4rem;
}

h2 {
  margin-top: 2.4rem;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.3rem;
}

h3 {
  margin-top: 1.8rem;
}

strong {
  font-weight: 650;
}

@media (max-width: 800px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-photo img {
    width: 220px;
    height: 220px;
    object-position: center 35%;
  }

  .profile-links {
    width: 220px;
  }

  .home-text h1 {
    font-size: 2.1rem;
  }
}

/* Teaching page */

table {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 2rem;
  border-collapse: collapse;
  font-size: 0.98rem;
}

thead {
  border-bottom: 2px solid #dee2e6;
}

th {
  text-align: left;
  font-weight: 650;
  padding: 0.6rem 0.75rem;
}

td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #eeeeee;
  vertical-align: top;
}

tbody tr:hover {
  background-color: #fafafa;
}