/* ===== Instructors ===== */

.instructorsGrid {
  display: grid;
  gap: 24px;
  margin-top: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .instructorsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .instructorsGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.instructorsGrid--others {
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .instructorsGrid--others {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.instructorCard {
  border: 2px solid #7f7524;
  border-radius: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.4);
  color: #111;
  text-align: center;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.instructorCard:hover,
.instructorCard:focus {
  color: #111;
  text-decoration: none;
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.instructorCard__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #C9BC4A;
  overflow: hidden;
  margin: 0 auto 14px;
}

.instructorCard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructorCard__name {
  margin-bottom: 2px;
}

.instructorCard__title {
  color: #7f7524;
  margin-bottom: 8px;
  font-weight: 600;
}

.instructorCard__since {
  margin-top: 8px;
}

.instructorCard__link {
  margin-top: auto;
  display: inline-block;
  padding-top: 12px;
  font-weight: 600;
  color: #b12516;
  text-decoration: none;
}

.instructorCard:hover .instructorCard__link {
  text-decoration: underline;
}

/* ---------- Profile subpage ---------- */

#section-home-subpage .instructorProfile__name {
  padding-bottom: 4px;
}

#section-home-subpage .instructorProfile__title {
  color: #C9BC4A;
  font-weight: 600;
  padding: 0 50px 50px;
}

.instructorProfile__photo {
  float: left;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #C9BC4A;
  margin: 0 24px 16px 0;
}

@media (max-width: 576px) {
  .instructorProfile__photo {
    float: none;
    display: block;
    margin: 0 auto 20px;
  }
}

.instructorProfile__bio h3 {
  margin-top: 34px;
  margin-bottom: 14px;
  clear: left;
}

.instructorProfile__bio p {
  margin-bottom: 14px;
  line-height: 1.6;
}
