/* Trang đội ngũ giảng viên + hồ sơ giảng viên (tp-*) */
.tp .container { max-width: 1040px; display: grid; gap: 18px; }
.tp-back { margin: 0; }
.tp-empty { text-align: center; padding: 40px 20px; display: grid; gap: 10px; justify-items: center; }

/* Khối đầu: ảnh + thông tin */
.tp-hero { display: grid; grid-template-columns: 280px minmax(0, 1fr); padding: 0; overflow: hidden; }
.tp-photo { background: linear-gradient(160deg, var(--brand-50), var(--brand-100)); min-height: 300px; }
.tp-img { width: 100%; height: 100%; min-height: 300px; max-height: 380px; object-fit: cover; object-position: center top; display: block; }
.tp-img.ph { display: grid; place-items: center; font-size: 5rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), #4a7be6); }
.tp-main { padding: 24px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.tp-badge { background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); font-weight: 700; font-size: .8rem; padding: 5px 12px; border-radius: 8px; }
.tp-main h1 { margin: 2px 0 0; font-size: 1.75rem; line-height: 1.25; }
.tp-sub { color: var(--ink-2); font-size: .92rem; }
.tp-sub b { color: var(--ink); }
.tp-motto { margin: 4px 0 2px; padding: 2px 0 2px 12px; border-left: 3px solid var(--brand); color: var(--ink-2); font-size: .95rem; }
.tp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 8px 0 4px; }
.tp-stats > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; background: var(--surface-2); }
.tp-stats b { display: block; color: var(--brand); font-size: 1.3rem; font-weight: 800; }
.tp-stats small { color: var(--ink-3); font-size: .76rem; }
.tp-cta { margin-top: 6px; }

/* Các khối nội dung */
.tp-sec h2 { margin: 0 0 14px; font-size: 1.15rem; padding-left: 10px; border-left: 4px solid var(--brand); line-height: 1.3; }
.tp-intro p { margin: 0 0 12px; line-height: 1.7; color: var(--ink-2); }
.tp-intro p:last-child { margin-bottom: 0; }
.tp-intro b { color: var(--ink); }
.tp-ach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tp-achi { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.tp-achi .ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; background: var(--brand-50); }
.tp-achi b { display: block; font-size: .95rem; }
.tp-achi p { margin: 4px 0 0; color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-tags span { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: .9rem; background: var(--surface-2); }
.tp-cls { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tp-clsi { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tp-clsi:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.tp-clsi span { color: var(--brand); font-weight: 600; font-size: .9rem; }
.tp-clsi small { color: var(--ink-2); }
.tp-clsi em { font-style: normal; font-weight: 700; font-size: .8rem; color: var(--ok); margin-top: 4px; }
.tp-clsi em.full { color: var(--danger); }

/* Danh sách đội ngũ */
.tp-head { text-align: center; }
.tp-head .eyebrow { color: var(--brand); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.tp-head h1 { margin: 6px 0; font-size: 1.8rem; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tp-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
.tp-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.tp-cimg { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center top; margin-bottom: 8px; border: 3px solid var(--brand-50); }
.tp-cimg.ph { display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), #4a7be6); }
.tp-card .r { color: var(--brand); font-size: .9rem; }
.tp-card small { color: var(--ink-2); }
.tp-card .more { margin-top: 6px; font-weight: 700; font-size: .85rem; color: var(--brand); }

@media (max-width: 760px) {
  .tp-hero { grid-template-columns: minmax(0, 1fr); }
  .tp-photo { display: flex; justify-content: center; }
  .tp-photo, .tp-img { min-height: 0; max-height: 360px; aspect-ratio: 4 / 5; }
  .tp-img { margin: 0 auto; max-width: 320px; }
  .tp-main { padding: 18px 16px; }
  .tp-main h1 { font-size: 1.45rem; }
  .tp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-ach { grid-template-columns: minmax(0, 1fr); }
}

.tp-achi .ic svg { width: 20px; height: 20px; color: var(--brand); }