/* ============================================================
   teachers-2026.css — Section "Đội ngũ giáo viên" bản 2026
   Chuyển từ trang demo index2.html sang index.html, thay cho
   .group-teacher-quality (cả bản desktop lẫn mobile).

   Hai điểm phải giữ khi sửa file này:
   1. MỌI selector bọc dưới .teachers-section — không rò rỉ ra
      phần còn lại của trang (trang vẫn dùng theme 2025).
   2. Biến CSS khai báo cục bộ trên .teachers-section, KHÔNG đặt
      ở :root, tránh đè biến của theme 2025.

   Trang demo bọc section trong `main > section { width: min(...) }`;
   index.html không có khung đó nên phần giới hạn bề ngang được
   khai báo lại ngay dưới đây.
============================================================ */

.teachers-section {
    --surface: rgba(255, 253, 248, 0.86);
    --ink-soft: #637286;
    --line: rgba(19, 44, 74, 0.1);
    --navy: #174277;
    --blue: #2a73ca;
    --gold: #efc74d;
    --shadow: 0 24px 64px rgba(17, 35, 59, 0.12);
    --radius-xl: 32px;
    --radius-md: 18px;

    /* font của trang demo, chỉ áp trong section này */
    font-family: "Be Vietnam Pro", "Montserrat", sans-serif;
    color: #132c4a;

    width: 100%;
    max-width: 100%;
    background: #FAF7F2;
    padding: clamp(48px, 6vw, 88px) 24px;
    box-sizing: border-box;
}

.teachers-section .section-heading {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.teachers-section .teacher-team-stage {
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

.teachers-section *,
.teachers-section *::before,
.teachers-section *::after {
    box-sizing: border-box;
}

.teachers-section .section-heading {
    max-width: 860px;
    margin: 0 auto clamp(28px, 3vw, 44px);
}

.teachers-section .section-heading--center {
    text-align: center;
}

/* Nhãn phụ + tiêu đề dùng ĐÚNG chuẩn của trang (giống .truongthanh-subtitle
   và .lotrinh-title), không dùng Barlow Condensed của theme demo — để section
   này đứng cùng nhịp với các section 2026 còn lại. */
.teachers-section .eyebrow {
    display: block;
    margin: 0 0 8px;
    font-family: "Brauer NeueVN", "Montserrat", sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #DA8A28;
}

.teachers-section .section-heading h2 {
    margin: 0 0 8px;
    font-family: "Brauer NeueVN", sans-serif;
    font-size: clamp(28px, 3.4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.5px;
    color: #1760B2;
    text-wrap: balance;
}

/* Ảnh sân khấu: giới hạn chiều cao để không chiếm trọn màn hình
   (trang demo có khung cha hẹp hơn nên không cần) */
.teachers-section .teacher-team-stage > img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    aspect-ratio: auto !important;
}

.teachers-section .button:hover, .teachers-section .header-cta:hover, .teachers-section .wizard-option:hover, .teachers-section .achievement-grid article:hover, .teachers-section .teacher-card:hover .teacher-card__inner, .teachers-section .campus-grid article:hover, .teachers-section .result-default__points article:hover, .teachers-section .portrait-grid article:hover, .teachers-section .perspective-grid article:hover {
  transform: translateY(-2px);
}

.teachers-section .opening, .teachers-section .methodology-section, .teachers-section .tailored-map, .teachers-section .competencies-section, .teachers-section .excellence-section, .teachers-section, .teachers-section .campus-section, .teachers-section .contact-section {
  padding: 2rem 0 5rem;
}

.teachers-section .wizard-card, .teachers-section .result-card, .teachers-section .methodology-video, .teachers-section .tailored-map__stage, .teachers-section .competency-slider, .teachers-section .achievement-grid article, .teachers-section .teacher-card, .teachers-section .campus-grid article, .teachers-section .contact-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.teachers-section .teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.teachers-section {
  position: relative;
  padding-top: 6rem;
}

.teachers-section::before {
  content: "";
  position: absolute;
  inset: 7rem 0 2rem;
  z-index: -1;
  border-radius: 38px;
  background: linear-gradient(120deg, #f8fbff, #eef4fb);
}

.teachers-section .teacher-card {
  perspective: 1200px;
  border-radius: var(--radius-xl);
}

.teachers-section .teacher-card__inner {
  position: relative;
  min-height: 30rem;
  border-radius: inherit;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 22px 48px rgba(17, 35, 59, 0.18);
}

.teachers-section .teacher-card__inner > img, .teachers-section .teacher-card__glow, .teachers-section .teacher-card__label, .teachers-section .teacher-card__details {
  position: absolute;
  inset: 0;
}

.teachers-section .teacher-card__inner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teachers-section .teacher-card__glow {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(8, 28, 54, 0.08), rgba(8, 28, 54, 0.84));
  opacity: 0.95;
  transition: opacity 180ms ease;
}

.teachers-section .teacher-card__label {
  inset: auto 1rem 1rem 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(14, 38, 67, 0.72);
  backdrop-filter: blur(12px);
  transform: translateZ(42px);
  transition: transform 180ms ease, opacity 180ms ease;
}

.teachers-section .teacher-card__eyebrow {
  display: inline-flex;
  margin-bottom: 0.4rem;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teachers-section .teacher-card__label strong, .teachers-section .teacher-card__label span, .teachers-section .teacher-card__details p, .teachers-section .teacher-card__details li {
  color: #fff;
}

.teachers-section .teacher-card__label strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.teachers-section .teacher-card__label span:last-child {
  display: block;
  line-height: 1.58;
}

.teachers-section .teacher-card__details {
  inset: auto 1rem 1rem 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(19, 44, 74, 0.14), rgba(19, 44, 74, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(1rem) translateZ(58px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.teachers-section .teacher-card__details p {
  margin: 0;
  line-height: 1.58;
}

.teachers-section .teacher-card__details ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.teachers-section .teacher-card__details li {
  padding: 0.42rem 0.64rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.teachers-section .teacher-card:hover .teacher-card__inner {
  box-shadow: 0 32px 58px rgba(17, 35, 59, 0.24);
}

.teachers-section .teacher-card:hover .teacher-card__glow {
  opacity: 1;
}

.teachers-section .teacher-card:hover .teacher-card__label {
  opacity: 0.08;
  transform: translateY(0.5rem) translateZ(26px);
}

.teachers-section .teacher-card:hover .teacher-card__details {
  opacity: 1;
  transform: translateY(0) translateZ(58px);
}

.teachers-section .teacher-team-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  width: 100%;
  max-width: 100%;
}

.teachers-section .teacher-team-stage > img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.teachers-section .teacher-hotspot {
  position: absolute;
  width: 1.3rem;
  height: 1.3rem;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(42, 115, 202, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.teachers-section .teacher-hotspot:hover, .teachers-section .teacher-hotspot:focus, .teachers-section .teacher-hotspot.is-active { transform: scale(1.25); background: var(--gold); }

.teachers-section .teacher-hotspot span {
  position: absolute;
  top: 1.7rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.teachers-section .teacher-hotspot:hover span, .teachers-section .teacher-hotspot:focus span, .teachers-section .teacher-hotspot.is-active span { opacity: 1; }

/* Toạ độ đặt lên VAI của 5 giáo viên trong assets/Asset 1@2x.png (3426x1639):
     1. Mohamed  (trái ngoài) -> left: 23%; top: 48%;
     2. Pavel    (trái trong) -> left: 37%; top: 40%;
     3. Carolina (ở giữa)     -> left: 49%; top: 56%;
     4. Rick     (phải trong) -> left: 64%; top: 40%;
     5. Linzi    (phải ngoài) -> left: 78%; top: 48%;
*/
.teachers-section .teacher-hotspot--one { left: 23%; top: 48%; }

.teachers-section .teacher-hotspot--two { left: 37%; top: 40%; }

.teachers-section .teacher-hotspot--three { left: 49%; top: 56%; }

.teachers-section .teacher-hotspot--four { left: 64%; top: 40%; }

.teachers-section .teacher-hotspot--five { left: 78%; top: 48%; }

.teachers-section .teacher-team-card {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  max-width: 20rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 16px 36px rgba(17,35,59,0.15);
  backdrop-filter: blur(10px);
}

/* Chấm ở nửa PHẢI khung: thẻ nội dung lật sang phải để không che mất
   người đang được chọn. teachers-2026.js gắn/gỡ class này theo vị trí
   thật của chấm so với khung ảnh. */
.teachers-section .teacher-team-card.is-right {
  left: auto;
  right: 1.5rem;
}

.teachers-section .teacher-team-card span { color: var(--blue); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.teachers-section .teacher-team-card strong { display: block; margin: 0.28rem 0; font-size: 1.1rem; }

.teachers-section .teacher-team-card p { margin: 0; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.5; }

@media (max-width: 980px) {
  .teachers-section .opening-hero, .teachers-section .insight-workshop, .teachers-section .result-card__content, .teachers-section .contact-shell, .teachers-section .campus-grid, .teachers-section .teacher-grid, .teachers-section .achievement-grid {
      grid-template-columns: 1fr;
    }
}

@media (max-width: 940px) {
  .teachers-section .portrait-grid, .teachers-section .wizard-options.is-grid, .teachers-section .perspective-grid, .teachers-section .result-default__points, .teachers-section .teacher-grid {
      grid-template-columns: 1fr;
    }
  .teachers-section .teacher-team-card { left: 1rem; bottom: 1rem; max-width: 17rem; }
}

@media (max-width: 640px) {
  .teachers-section .teacher-team-stage > img { width: 100%; height: auto !important; object-fit: contain; }
  .teachers-section .teacher-team-card { right: 0.7rem; left: 0.7rem; bottom: 0.7rem; max-width: none; }
  .teachers-section .teacher-hotspot span { display: none; }
}

/* ── Facilities Section 2026 (Cơ sở vật chất hiện đại & an toàn) ── */
.facilities-section-2026 {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: clamp(40px, 4.5vw, 64px) clamp(16px, 3.5vw, 48px);
    background: #FAF8F5;
    overflow: hidden;
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
}

.facilities-2026-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.facilities-2026-head {
    text-align: center;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.facilities-2026-eyebrow {
    display: block;
    font-family: "Brauer NeueVN", "Montserrat", sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 800;
    color: #DA8A28;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.facilities-2026-title {
    font-family: "Brauer NeueVN", sans-serif;
    font-size: clamp(28px, 3.4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    color: #1760B2;
    margin: 0;
    letter-spacing: 0.5px;
}

.facilities-2026-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 1.8vw, 24px);
    width: 100%;
    align-items: stretch;
}

.facilities-2026-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    aspect-ratio: 16 / 10;
}

.facilities-2026-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.facilities-2026-card:hover img {
    transform: scale(1.04);
}

@media (max-width: 900px) {
    .facilities-2026-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
    }

    .facilities-2026-card {
        flex: 0 0 84%;
        scroll-snap-align: center;
        aspect-ratio: 16 / 10;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   Bản 18.8 — chấm hotspot đổi thành PILL "tên giáo viên + dấu cộng"
   nằm ngay trên vai, và thẻ thông tin bung ra ngay tại vị trí đó.
   ════════════════════════════════════════════════════════════════════════ */
.teachers-section .teacher-hotspot {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 6px 18px rgba(17, 35, 59, .18);
    transform: translate(-50%, -50%);
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

/* Dấu cộng */
.teachers-section .teacher-hotspot::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 50%;
    background: var(--blue, #2A73CA);
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    padding-bottom: 2px;
    box-sizing: border-box;
    transition: background 180ms ease;
}

/* Tên giáo viên: luôn hiện, nằm ngay trong pill */
.teachers-section .teacher-hotspot span {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #16386F;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
}

.teachers-section .teacher-hotspot:hover,
.teachers-section .teacher-hotspot:focus,
.teachers-section .teacher-hotspot.is-active {
    background: #2A73CA;
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 10px 24px rgba(42, 115, 202, .35);
}

.teachers-section .teacher-hotspot:hover span,
.teachers-section .teacher-hotspot:focus span,
.teachers-section .teacher-hotspot.is-active span {
    color: #FFFFFF;
    opacity: 1;
}

.teachers-section .teacher-hotspot:hover::before,
.teachers-section .teacher-hotspot:focus::before,
.teachers-section .teacher-hotspot.is-active::before {
    background: var(--gold, #F0B429);
    color: #16386F;
}

/* Thẻ thông tin: teachers-2026.js gán left/top inline theo vị trí pill */
.teachers-section .teacher-team-card {
    max-width: 19rem;
    background: rgba(255, 255, 255, .96);
    transition: left 180ms ease, top 180ms ease;
}

@media (max-width: 900px) {
    /* Mobile: tên vẫn hiện nhưng nhỏ lại, thẻ nội dung quay về dải dưới đáy */
    .teachers-section .teacher-hotspot {
        padding: 4px 10px 4px 4px;
        gap: 6px;
    }

    .teachers-section .teacher-hotspot::before {
        width: 18px;
        height: 18px;
        font-size: 13px;
    }

    .teachers-section .teacher-hotspot span {
        display: inline;
        font-size: 11px;
    }
}

/* ── Tiêu đề section theo đúng format chung của trang (18.8) ──────────
   Cỡ chữ/màu và quy tắc một dòng nằm ở cuối section-rhythm-2026.css vì file
   đó nạp sau và dùng !important. Ở đây chỉ bỏ letter-spacing lẻ và margin. */
.teachers-section .section-heading h2 {
    letter-spacing: 0;
    margin-bottom: 0;
}
