/* ==========================================================================
   Trang Danh sách Team & Dịch giả (/danh-sach-team)
   Scope: .hdk-team-page — màu sắc/typography theo thiết kế
   docs/anh-trang-danh-sach-team.png
   ========================================================================== */

.hdk-team-page {
  --tp-bg: #fdfcfb;
  --tp-card: #ffffff;
  --tp-ink: #25312f;
  --tp-teal: #25a7af;
  --tp-teal-dark: #16676e;
  --tp-teal-soft: #3d9c88;
  --tp-muted: #8a8f98;
  --tp-muted-2: #a9aeb6;
  --tp-label: #4a8a9c;
  --tp-stat-label: #92929b;
  --tp-stat-value: #447875;
  --tp-line: #f0f3f1;
  --tp-bar-bg: #f4fafc;
  --tp-ring: #eaf4fb;
  --tp-input-line: #e9eaea;
  --tp-shadow: 0 6px 22px rgba(23, 64, 60, 0.08);
  --tp-font-serif: "Playfair Display", "Be Vietnam Pro", serif;
  --tp-font-body: "Be Vietnam Pro", system-ui, sans-serif;
  font-family: var(--tp-font-body);
  color: var(--tp-ink);
}

.hdk-team-page .hdk-team-container {
  max-width: 1320px;
}
body.page-danh-sach-team .hd-professional-header {
  position: fixed;
}
/* ---------- Hero ---------- */
.hdk-team-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 0px;
  background: linear-gradient(105deg, #fbf7ea 0%, #f4f7ec 45%, #ecf5ef 100%);
  align-content: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1000V95Q500 106 0 95Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1000V95Q500 106 0 95Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}
.hdk-team-hero__art {
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply;
  display: block;
  height: 100%;
  min-height: 250px;
  pointer-events: none;
  user-select: none;
}
.hdk-team-hero__art .image-book {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.2s;
  -webkit-transition: 0.2s;
  -moz-transition: 0.2s;
  -ms-transition: 0.2s;
  -o-transition: 0.2s;
  will-change: opacity, z-index;
  pointer-events: none;
  user-select: none;
}
.hdk-team-hero__art .image-book-1 {
  z-index: 3;
  opacity: 1;
}
.hdk-team-hero__art .image-book-2 {
    z-index: 2;
    opacity: 0;
    width: 90%;
    height: 90%;
    left: 5%;
    top: 2%;
  }
.dark .hdk-team-hero__art .image-book-2 {
  opacity: 1;
}
.dark .hdk-team-hero__art .image-book-1 {
  opacity: 0;
}
.hdk-team-breadcrumb {
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hdk-team-breadcrumb a {
  color: #7fa8ab;
  text-decoration: none;
}

.hdk-team-breadcrumb a:hover {
  color: var(--tp-teal);
}

.hdk-team-breadcrumb .sep {
  color: #b9c4c2;
}

.hdk-team-breadcrumb .current {
  color: #9ba8a7;
}

.hdk-team-title {
  font-family: var(--tp-font-serif);
  font-weight: 700;
  font-size: 33px;
  line-height: 1.2;
  color: var(--tp-teal-dark);
  margin: 0 0 10px;
}

.hdk-team-subtitle {
  font-size: 13px;
  color: #9da0a8;
  margin: 0;
}

/* ---------- Vùng nội dung chính ---------- */
.hdk-team-main {
  /* background:
    radial-gradient(
      620px 320px at 88% 0%,
      rgba(246, 214, 214, 0.38),
      transparent 70%
    ),
    radial-gradient(
      720px 400px at 4% 100%,
      rgba(205, 230, 240, 0.32),
      transparent 70%
    ),
    var(--tp-bg); */
  padding: 26px 0 42px;
}

/* Sidebar/main: width tùy chỉnh theo thiết kế, mặc định là desktop */

.hdk-team-page .hdk-team-body {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

/* ---------- Card sidebar chung ---------- */
.hdk-team-sidecard {
  background: var(--tp-card);
  border: 1px solid var(--tp-line);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(30, 80, 90, 0.05);
  padding: 14px 13px;
  margin-bottom: 12px;
}

.hdk-team-sidecard__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tp-font-serif);
  font-size: 15.5px;
  font-weight: 700;
  color: #337777;
  margin: 0 0 10px;
}

.hdk-team-sidecard__title iconify-icon {
  font-size: 18px;
  color: var(--tp-teal);
}

.hdk-team-sidecard__title iconify-icon.gold {
  color: #f5b73e;
}

/* Khám phá nhanh */
.hdk-team-genres {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hdk-team-genres li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5.5px 4px;
  border-radius: 8px;
  text-decoration: none;
}

.hdk-team-genres li a:hover {
  background: #f7fafa;
}

.hdk-team-genres .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gc, var(--tp-teal));
  flex: 0 0 auto;
}

.hdk-team-genres .name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gc, var(--tp-ink));
  flex: 1 1 auto;
}

.hdk-team-genres .count {
  font-size: 11px;
  color: var(--tp-muted-2);
}

.hdk-team-sidecard__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 11px;
  border-top: 1px solid var(--tp-line);
  font-size: 12px;
  font-weight: 600;
  color: #5e9aa5;
  text-decoration: none;
}

.hdk-team-sidecard__more:hover {
  color: var(--tp-teal);
}

.hdk-team-sidecard__more iconify-icon {
  font-size: 13px;
}

/* Top 5 được theo dõi */
.hdk-team-top5 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hdk-team-top5 li a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  text-decoration: none;
  border-radius: 8px;
}

.hdk-team-top5 li a:hover {
  background: #f7fafa;
}

.hdk-team-top5 .rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--medal, #b9ccc5);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.hdk-team-top5 img {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 2px solid var(--tp-ring);
  object-fit: cover;
  flex: 0 0 auto;
}

.hdk-team-top5 .meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hdk-team-top5 .meta strong {
  font-size: 11.5px;
  font-weight: 700;
  color: #31302c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdk-team-top5 .meta small {
  font-size: 10.5px;
  color: #bcbab8;
}

/* Card CTA dịch giả */
.hdk-team-cta {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(165deg, #3eb2b8 0%, #4fbbc0 55%, #79cfd2 100%);
  padding: 18px 16px;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 167, 175, 0.25);
}

.hdk-team-cta__text {
  position: relative;
  z-index: 2;
  max-width: 62%;
}

.hdk-team-cta h3 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 8px;
}

.hdk-team-cta p {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 14px;
}

.hdk-team-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #2fa39b;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 60, 64, 0.18);
  white-space: nowrap;
}

.hdk-team-cta__btn:hover {
  color: #1e8a83;
  transform: translateY(-1px);
}

.hdk-team-cta__btn iconify-icon {
  font-size: 13px;
}

.hdk-team-cta__art {
  position: absolute;
  right: 18px;
  bottom: 25px;
  width: 104px;
  z-index: 1;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* ---------- Toolbar ---------- */
.hdk-team-toolbar {
  margin-bottom: 14px;
}

/* Workaround: .col-12 được site load sau Bootstrap nên thắng .col-md/.col-md-auto;
   bump specificity để search co flex và select vừa nội dung ở desktop */
.hdk-team-page .hdk-team-toolbar > .col-md {
  flex: 1 0 0%;
  width: auto;
}

.hdk-team-page .hdk-team-toolbar > .col-md-auto {
  flex: 0 0 auto;
  width: auto;
}

@media (max-width: 767.98px) {
  .hdk-team-page .hdk-team-toolbar > .col-md {
    flex: 0 0 auto;
    width: 100%;
  }

  .hdk-team-page .hdk-team-toolbar > .col-md-auto {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (max-width: 576px) {
  .hdk-team-page .hdk-team-toolbar > .col-md-auto {
    width: 100%;
  }
}

.hdk-team-heading {
  font-family: var(--tp-font-serif);
  font-size: 21px;
  font-weight: 700;
  color: #155e64;
  margin: 0;
  white-space: nowrap;
}

.hdk-team-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tp-card);
  border: 1px solid var(--tp-input-line);
  border-radius: 999px;
  height: 40px;
  padding: 0 16px;
}

.hdk-team-search iconify-icon {
  font-size: 15px;
  color: #8fb6b4;
  flex: 0 0 auto;
}

.hdk-team-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
  color: var(--tp-ink);
  width: 100%;
}

.hdk-team-search input::placeholder {
  color: #b4babe;
}

.hdk-team-select {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--tp-card);
  border: 1px solid #ebeaec;
  border-radius: 999px;
  height: 40px;
  padding: 0 12px;
}

.hdk-team-select .lead {
  font-size: 15px;
  color: var(--tp-teal);
  margin-right: 7px;
  flex: 0 0 auto;
}

.hdk-team-select select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7b7a;
  padding-right: 18px;
  cursor: pointer;
}

.hdk-team-select .chev {
  position: absolute;
  right: 12px;
  font-size: 12px;
  color: #9aa6a4;
  pointer-events: none;
}

/* ---------- Grid card team ---------- */
.hdk-team-grid {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 10px;
}

/* ---------- Card team ---------- */
.hdk-team-card {
  background: linear-gradient(180deg, var(--team-tint, #f4f9fd) 0%, #ffffff 30%);
  border: 1px solid #f1f4f2;
  border-radius: 18px;
  padding: 13px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.hdk-team-card:hover {
  transform: translateY(-2px);
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
}

.hdk-team-card__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hdk-team-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--tp-ring);
  flex: 0 0 auto;
}

.hdk-team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hdk-team-card__info {
  min-width: 0;
}

.hdk-team-card__label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--tp-label);
  margin-bottom: 2px;
}

.hdk-team-card__name {
  font-family: var(--tp-font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--tp-ink);
  margin: 0 0 3px;
}

.hdk-team-card__desc {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--tp-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
}

.hdk-team-card__stats {
  margin-top: 4px;
  margin-left: 76px; /* thụt vào ngang hàng label, đúng thiết kế */
}

.hdk-team-card__stats .stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hdk-team-card__stats .stat__top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--tp-stat-label);
}

.hdk-team-card__stats .stat__top iconify-icon {
  font-size: 13px;
  color: #35a8a0;
}

.hdk-team-card__stats .stat strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--tp-stat-value);
}

.hdk-team-card__covers-label {
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #33403d;
}

.hdk-team-card__covers {
  margin-top: 5px;
}

.hdk-team-card__covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 8px rgba(23, 64, 60, 0.1);
}

.hdk-team-card__bar {
  margin-top: 10px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f3f6f7;
  background: color-mix(in srgb, var(--team-tint, #eef4f8) 55%, #ffffff);
  border: 1px solid #e3edf1;
  border: 1px solid color-mix(in srgb, var(--team-tint, #e3edf1) 88%, #c3ced3);
  color: var(--tp-teal-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
}

.hdk-team-card__bar:hover {
  background: #e9eff1;
  background: color-mix(in srgb, var(--team-tint, #e2ecf2) 75%, #ffffff);
  color: #2b8a77;
}

.hdk-team-card__bar iconify-icon {
  font-size: 13px;
}

/* ---------- Pagination ---------- */
.hdk-team-pagination {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hdk-team-pagination .pg-item {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--tp-card);
  border: 1px solid #eceef0;
  border-radius: 10px;
  color: #868791;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.hdk-team-pagination .pg-item:hover {
  border-color: var(--tp-teal);
  color: var(--tp-teal);
}

.hdk-team-pagination .pg-item.active {
  background: var(--tp-teal);
  border-color: var(--tp-teal);
  color: #fff;
}

.hdk-team-pagination .pg-item iconify-icon {
  font-size: 13px;
}

.hdk-team-pagination .pg-dots {
  color: var(--tp-muted-2);
  font-weight: 700;
  padding: 0 2px;
}
.icon-compass {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hdk-team-side {
    max-width: 560px;
    margin: 0 auto;
  }

  .hdk-team-title {
    font-size: 27px;
  }
  .hdk-team-hero__art {
    min-height: 100px;
  }
  .hdk-team-hero {
    padding: 35px 0 30px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }
  .hdk-team-main {
    padding: 50px 0 42px;
  }
}

@media (max-width: 768px) {
  .hdk-team-card__stats {
    margin-left: 72px;
  }

  .hdk-team-hero {
    padding: 20px 0 32px;
  }

  .hdk-team-main {
    padding: 30px 0 32px;
  }

  .hdk-team-title {
    font-size: 24px;
  }

  .hdk-team-heading {
    font-size: 19px;
  }

  .hdk-team-card__avatar {
    width: 60px;
    height: 60px;
  }
  .hdk-team-hero__art {
    display: none;
  }
  .hdk-team-pagination {
    margin-bottom: 16px;
  }
}

@media (max-width: 576px) {
  .hdk-team-title {
    font-size: 22px;
  }

  .hdk-team-subtitle {
    font-size: 12px;
  }

  .hdk-team-search,
  .hdk-team-select {
    height: 40px;
  }

  .hdk-team-pagination {
    gap: 6px;
  }

  .hdk-team-pagination .pg-item {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
  }

  .hdk-team-cta__art {
    width: 88px;
  }
}

@media (max-width: 350px) {
  .hdk-team-card__name {
    font-size: 15.5px;
  }

  .hdk-team-card__stats .stat strong {
    font-size: 13px;
  }
}

/* ---------- Dark mode ---------- */
html.dark .hdk-team-page {
  --tp-bg: #101615;
  --tp-card: #181f1e;
  --tp-ink: #e6eae8;
  --tp-muted: #9aa5a2;
  --tp-muted-2: #7e8a87;
  --tp-label: #6fb7c6;
  --tp-stat-label: #8a9693;
  --tp-stat-value: #8fd8cd;
  --tp-line: #242d2b;
  --tp-bar-bg: #1c2524;
  --tp-ring: #23312f;
  --tp-input-line: #2a3331;
  --tp-teal-soft: #4fc3b8;
  --tp-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  color: var(--tp-ink);
}

html.dark .hdk-team-hero {
  /* background: linear-gradient(105deg, #0c1f2a 0%, #031620 50%, #031620 100%); */
  background: var(--hdk-card);
}

html.dark .hdk-team-hero__art {
  /* multiply làm ảnh chìm vào nền tối — dark mode hiển thị trực tiếp */
  mix-blend-mode: normal;
  border-radius: 18px;
}

html.dark .hdk-team-title {
  color: #6fd0c6;
}


html.dark .hdk-team-sidecard__title {
  color:var(--white-color);
}

html.dark .hdk-team-genres li a:hover,
html.dark .hdk-team-top5 li a:hover {
  background: #202927;
}

html.dark .hdk-team-top5 .meta strong {
  color: #e6eae8;
}

html.dark .hdk-team-heading {
  color: var(--white-color);
}

html.dark .hdk-team-search input {
  color: var(--tp-ink);
}

html.dark .hdk-team-select select {
  color: var(--white-color);
  background: transparent;
}

html.dark .hdk-team-select select option {
  color: #25312f;
}

html.dark .hdk-team-card {
  border-color: var(--hdk-border);
  background: var(--hdk-card);
}

html.dark .hdk-team-card__covers-label {
  color: #c7d2cf;
}

html.dark .hdk-team-card__bar {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--white-color);
}

html.dark .hdk-team-card__bar:hover {
  background: rgba(255, 255, 255, 0.12);
}

html.dark .hdk-team-pagination .pg-item {
  border-color: var(--hdk-border);
}

html.dark .hdk-team-pagination .pg-dots {
  color: var(--hdk-muted);
}
html.dark .hdk-team-breadcrumb a {
    color: var(--white);
}
html.dark .hdk-team-breadcrumb .sep,
html.dark .hdk-team-breadcrumb .current,
html.dark .hdk-team-subtitle {
    color: rgba(255, 255, 255, 0.7);
}
html.dark .hdk-team-title {
    color: var(--white-color);
}
html.dark .hdk-team-sidecard,
html.dark .hdk-team-search,
html.dark .hdk-team-cta {
    background: var(--hdk-card);
    border-color: var(--hdk-border);
}
html.dark .hdk-team-card__label {
    color: var(--white-color);
}
html.dark .hdk-team-select {
    border-color: var(--hdk-border);
    background: var(--hdk-card);
    color: var(--white-color);
}
html.dark .hdk-team-select .lead,
html.dark .hdk-team-search iconify-icon,
html.dark .hdk-team-genres .count
 {
    color: var(--white-color);
}
html.dark .hdk-team-cta__btn {
    color: var(--black-color);
}
html.dark .hdk-team-card__stats .stat__top,
html.dark .hdk-team-card__desc {
    color: rgba(255, 255, 255, 0.7);
}
html.dark .hdk-team-card__stats .stat strong,
html.dark .hdk-team-card__stats .stat__top iconify-icon {
    color: var(--white-color);
}
html.dark .hdk-team-card__avatar {
    border-color: var(--white-color);
}