/* ============================================================
   Đội ngũ giảng viên — đúng palette trang chủ (sáng)
   Tokens: --green-light / --white / --text-dark / --green-dark / --border
   ============================================================ */
body.kv-redesign .kvx-teachers-section {
  background: var(--green-light, #F0FDF4);
  color: var(--text-dark, #102A24);
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
}

body.kv-redesign .kvx-teachers-section .kvx-title {
  color: var(--text-dark, #102A24);
}

body.kv-redesign .kvx-teachers-section .kvx-lead {
  color: var(--text-muted, #64748B);
}

body.kv-redesign .kvx-teachers-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: left;
}

body.kv-redesign .kvx-teachers-section__intro {
  max-width: 38rem;
}

body.kv-redesign .kvx-teachers-section__intro .kvx-title {
  margin-top: .55rem;
}

body.kv-redesign .kvx-teachers-section__intro .kvx-lead {
  margin-top: .65rem;
  max-width: 34rem;
}

body.kv-redesign .kvx-teachers-section__all {
  flex-shrink: 0;
  white-space: nowrap;
}

body.kv-redesign .kvx-gv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

body.kv-redesign .kvx-gv-grid[style*="--kvx-gv-count: 1"] {
  grid-template-columns: minmax(0, 22rem);
}

body.kv-redesign .kvx-gv-grid[style*="--kvx-gv-count: 2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.kv-redesign .kvx-gv-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white, #fff);
  border: 1px solid var(--border, #DDEEE7);
  border-radius: var(--radius-card, 20px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}

body.kv-redesign .kvx-gv-card:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, .35);
  box-shadow: var(--shadow-hover);
}

/* Khung ảnh cố định — lấy nửa trên (mặt + vai), không zoom chỉ cái đầu */
body.kv-redesign .kvx-gv-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--kv-green-soft, #E7F5EE);
  overflow: hidden;
}

body.kv-redesign .kvx-gv-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  background: var(--kv-green-soft, #E7F5EE);
  transition: transform .35s ease;
}

body.kv-redesign .kvx-gv-card:hover .kvx-gv-card__photo {
  transform: scale(1.03);
}

body.kv-redesign .kvx-gv-card__photo--initials {
  display: grid;
  place-items: center;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-dark, #059669);
  background: var(--green-light, #F0FDF4);
}

body.kv-redesign .kvx-gv-card__body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
  padding: 1.1rem 1.15rem 1.25rem;
  background: var(--white, #fff);
}

body.kv-redesign .kvx-gv-card__name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark, #102A24);
}

body.kv-redesign .kvx-gv-card__role {
  margin: 0;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--green-dark, #059669);
}

body.kv-redesign .kvx-gv-card__bio {
  margin: .2rem 0 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--text-muted, #64748B);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.kv-redesign .kvx-gv-card__more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
  padding-top: .75rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green-primary, #10B981);
  transition: gap .2s ease, color .2s ease;
}

body.kv-redesign .kvx-gv-card:hover .kvx-gv-card__more {
  gap: .45rem;
  color: var(--green-dark, #059669);
}

@media (max-width: 1024px) {
  body.kv-redesign .kvx-gv-grid,
  body.kv-redesign .kvx-gv-grid[style*="--kvx-gv-count: 2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.kv-redesign .kvx-teachers-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.kv-redesign .kvx-teachers-section__all {
    align-self: stretch;
    justify-content: center;
  }

  body.kv-redesign .kvx-gv-grid,
  body.kv-redesign .kvx-gv-grid[style*="--kvx-gv-count: 2"] {
    grid-template-columns: 1fr;
  }

  body.kv-redesign .kvx-gv-card__media {
    aspect-ratio: 3 / 4;
    max-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.kv-redesign .kvx-gv-card,
  body.kv-redesign .kvx-gv-card__photo,
  body.kv-redesign .kvx-gv-card__more {
    transition: none !important;
  }

  body.kv-redesign .kvx-gv-card:hover {
    transform: none;
  }

  body.kv-redesign .kvx-gv-card:hover .kvx-gv-card__photo {
    transform: none;
  }
}
