/* =====================================================================
   PHẦN GIÁO VIÊN – giao diện
   Danh sách thầy cô và cửa sổ giới thiệu riêng.
   ===================================================================== */

.teachers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.teacher {
  display: grid; grid-template-columns: 150px 1fr; column-gap: 24px; align-content: start;
  padding: 28px 0; border-top: 1px solid var(--ke); text-decoration: none;
}
.teacher__photo { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; grid-row: span 6; align-self: start; }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; }
.chalk-ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.07), transparent 60%), var(--xanh);
  color: var(--phan);
}
.chalk-ph__initials { font-family: var(--font-sign); font-weight: 700; font-size: 60px; line-height: 1; opacity: 0.92; }
.chalk-ph__note { font-size: 12px; opacity: 0.65; text-align: center; padding: 0 8px; line-height: 1.3; }
.profile__photo .chalk-ph__initials { font-size: 96px; }
.teacher__degree { color: var(--do); font-weight: 600; font-size: 15px; }
.teacher__name { font-family: var(--font-sign); font-weight: 700; font-size: 32px; margin: 2px 0 4px; }
.teacher:hover .teacher__name { color: var(--do); }
.teacher__role { color: var(--xam); font-size: 15px; margin-bottom: 10px; }
.teacher__classes { font-size: 15px; margin-bottom: 10px; }
.teacher__more { font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: var(--do); text-underline-offset: 4px; }
.empty { color: var(--xam); padding: 24px 0; border-top: 1px solid var(--ke); }
.empty a { color: var(--do); font-weight: 600; }

/* Cửa sổ giới thiệu riêng */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(18, 26, 22, 0.66); animation: fadeIn 0.2s; }
.modal__box {
  position: relative; width: 100%; max-width: 920px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 8px; outline: none; animation: rise 0.25s ease-out;
}
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--ke); background: #fff; display: grid; place-items: center;
}
.profile { display: grid; grid-template-columns: 300px 1fr; }
.profile__side { background: var(--xanh); color: var(--phan); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.profile__photo { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; border: 1px solid rgba(241, 239, 230, 0.25); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__facts { display: grid; gap: 12px; font-size: 15px; }
.profile__facts dt { font-size: 13px; opacity: 0.65; }
.profile__main { padding: 32px 36px 30px; }
.profile__degree { color: var(--do); font-weight: 600; }
.profile__name { font-family: var(--font-sign); font-weight: 700; font-size: 44px; margin: 2px 0 4px; padding-right: 40px; }
.profile__role { color: var(--xam); margin-bottom: 18px; }
.profile__intro { font-size: 17px; max-width: 58ch; }
.profile__block { margin-top: 24px; }
.profile__block h3 { font-family: var(--font-sign); font-weight: 700; font-size: 24px; margin-bottom: 10px; }
.profile__list { display: grid; gap: 8px; }
.profile__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.profile__list .icon { color: var(--xanh-2); margin-top: 4px; }
.profile__schedule li { display: block; padding: 10px 14px; background: var(--nen-2); border-left: 3px solid var(--xanh); }
.profile__classes { display: flex; flex-wrap: wrap; gap: 6px; }
.profile__classes span { padding: 4px 10px; border: 1px solid var(--ke); border-radius: 4px; font-size: 14px; }
.profile__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ke); }
.profile__photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.profile__photos button { padding: 0; border: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ke); }
.profile__photos img { width: 100%; height: 100%; object-fit: cover; }
.profile__photos button:hover img { opacity: 0.85; }
.profile__enroll { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ke); }
.profile__enroll .profile__actions { margin-top: 0; padding-top: 0; border-top: 0; }
.profile__online { font-size: 14px; color: var(--xam); margin: 12px 0 0; }
.profile__online a { color: var(--do); font-weight: 600; }
.profile__share { font-size: 14px; color: var(--xam); margin: 14px 0 0; }
.profile__share button { border: 0; background: none; padding: 0; color: var(--do); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.profile__side :focus-visible { outline-color: var(--vang); }

@media (max-width: 1000px) {
  .teachers { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 240px 1fr; }
}

@media (max-width: 640px) {
  .teachers { grid-template-columns: 1fr; }
  .teacher { grid-template-columns: 104px 1fr; column-gap: 16px; padding: 22px 0; }
  .chalk-ph__initials { font-size: 40px; }
  .profile__photo .chalk-ph__initials { font-size: 44px; }
  .chalk-ph__note { display: none; }
  .teacher__name { font-size: 26px; }
  .profile__photos { grid-template-columns: repeat(3, 1fr); }

  .modal { padding: 0; align-items: end; }
  .modal__box { border-radius: 12px 12px 0 0; max-height: 92vh; }
  .profile { grid-template-columns: 1fr; }
  .profile__side { flex-direction: row; align-items: center; padding: 20px; gap: 16px; }
  .profile__photo { width: 104px; flex-shrink: 0; }
  .profile__main { padding: 22px 20px 26px; }
  .profile__name { font-size: 34px; }
}
