/* ==========================================================================
   HoloLearn — sections.css
   Mỗi khối tương ứng một vùng trong index.html. Tên file WordPress dự kiến
   ghi ở đầu khối để khi chuyển theme chỉ việc tách ra.
   ========================================================================== */

/* ==========================================================================
   header.php — .hl-header
   ========================================================================== */
.hl-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--hl-white);
  box-shadow: 0 6px 24px rgba(36, 27, 61, .08);
}
/* Thứ tự trong HTML: logo → nút menu → nav → nút Đăng ký.
   Nút menu đứng trước nav để khi mở menu trên mobile, phím Tab đi thẳng vào các mục. */
.hl-header__bar {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  height: var(--hl-header-h);
}
.hl-header__logo { display: flex; align-items: center; flex: none; min-height: var(--hl-tap); margin-right: auto; }
.hl-header__logo img { width: auto; height: 56px; }
.hl-header__cta { flex: none; margin-left: auto; }

.hl-nav__list { display: flex; align-items: center; gap: 1.6rem; }
.hl-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--hl-tap);
  font-weight: 900;
  color: var(--hl-ink);
  transition: color .15s ease;
}
.hl-nav__link:hover { color: var(--hl-coral); }

.hl-nav-toggle {
  display: none;
  place-items: center;
  width: var(--hl-tap);
  height: var(--hl-tap);
  border-radius: 50%;
  background: var(--hl-coral);
  color: var(--hl-white);
  font-size: 20px;
}
.hl-nav-toggle__close { display: none; }
.hl-header.is-open .hl-nav-toggle__open { display: none; }
.hl-header.is-open .hl-nav-toggle__close { display: inline; }

@media (max-width: 1120px) {
  .hl-nav__list { gap: 1.1rem; }
  .hl-nav__link { font-size: 15px; }
}
/* menu ngang (từ 1025px): nhãn luôn 1 dòng */
@media (min-width: 1025px) {
  .hl-nav__link { white-space: nowrap; }
}

/* ≤ 1024px: logo + 7 mục menu + nút Đăng ký không còn đủ chỗ trên một hàng → dùng nút menu.
   Mốc này phải khớp matchMedia trong assets/js/main.js (min-width: 1025px).
   Chiều cao header và cỡ logo nhỏ hơn vẫn theo mốc 860px bên dưới. */
@media (max-width: 1024px) {
  .hl-header__bar { gap: .8rem; }

  /* Không có JS (hoặc main.js lỗi): menu thành hàng cuộn ngang dưới logo, vẫn bấm được */
  html:not(.hl-js) .hl-header__bar { flex-wrap: wrap; height: auto; padding-top: 10px; }
  html:not(.hl-js) .hl-nav { order: 3; width: 100%; overflow-x: auto; }
  html:not(.hl-js) .hl-nav__list { gap: 1.2rem; }
  html:not(.hl-js) .hl-nav__link { white-space: nowrap; }

  /* Có JS: nút menu mở panel xổ xuống ngay dưới header */
  .hl-js .hl-nav-toggle { display: grid; order: 3; }
  .hl-js .hl-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    max-height: calc(100vh - var(--hl-header-h));
    max-height: calc(100dvh - var(--hl-header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--hl-white);
    box-shadow: 0 16px 30px rgba(36, 27, 61, .16);
  }
  .hl-js .hl-header.is-open .hl-nav { display: block; }
  .hl-js .hl-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--hl-gutter) 1rem;
  }
  .hl-js .hl-nav__item + .hl-nav__item { border-top: 1px solid var(--hl-line); }
  .hl-js .hl-nav__link { display: flex; min-height: 52px; font-size: 17px; }
}

@media (max-width: 860px) {
  .hl-header__logo img { height: 44px; }
}

@media (max-width: 380px) {
  .hl-header__bar { gap: .5rem; }
  .hl-header__logo img { height: 38px; }
  .hl-header__cta { padding-inline: .9em; }
}

/* ==========================================================================
   template-parts/section-hero.php — .hl-hero
   ========================================================================== */
.hl-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 90px;
  background:
    radial-gradient(circle at 84% 30%, #3ec8e6 0 22%, transparent 22.4%),
    radial-gradient(circle at 12% 78%, #ffd75a 0 14%, transparent 14.4%),
    linear-gradient(160deg, #2ea9cf 0%, var(--hl-blue) 55%, var(--hl-blue-deep) 100%);
}
.hl-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding-top: clamp(30px, 5vw, 60px);
}
.hl-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .5em 1.1em;
  border-radius: var(--hl-radius-pill);
  background: var(--hl-yellow);
  color: var(--hl-ink);
  font-weight: 900;
  box-shadow: var(--hl-shadow-sm);
  transform: rotate(-2deg);
}
.hl-hero__title {
  margin-top: 1.1rem;
  font-size: clamp(37px, 6.4vw, 80px);
  color: var(--hl-white);
  text-shadow: 0 6px 0 rgba(0, 0, 0, .08);
}
.hl-hero__title .hl-accent { color: var(--hl-yellow); }
.hl-hero__title .hl-accent-alt { color: #c6f5ff; }
.hl-hero__lead {
  max-width: 36ch;
  margin-top: 1.1rem;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500;
  color: #eafaff;
}
.hl-hero__actions { margin-top: 1.9rem; }

/* cụm nhân vật */
.hl-hero__cast { position: relative; min-height: 440px; }
.hl-hero__ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 78%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 4px dashed rgba(255, 255, 255, .5);
  border-radius: 50%;
}
.hl-hero__card {
  position: absolute;
  overflow: hidden;
  border: 6px solid var(--hl-white);
  border-radius: var(--hl-radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
  transform: rotate(var(--hl-tilt, 0deg));
}
.hl-hero__card--main {
  --hl-tilt: -4deg;
  top: 8%; left: 50%;
  z-index: 3;
  width: 190px;
  translate: -52% 0;
  animation: hl-bob 5s ease-in-out infinite;
}
.hl-hero__card--left {
  --hl-tilt: -10deg;
  bottom: 8%; left: 6%;
  z-index: 2;
  width: 130px;
  animation: hl-bob 6s ease-in-out infinite .6s;
}
.hl-hero__card--right {
  --hl-tilt: 9deg;
  bottom: 12%; right: 4%;
  z-index: 2;
  width: 126px;
  animation: hl-bob 6.5s ease-in-out infinite .3s;
}

.hl-hero__doodle--1 { --hl-doodle-size: 46px; top: 14%; left: 46%; color: #ffd75a; animation-duration: 4s; }
.hl-hero__doodle--2 { --hl-doodle-size: 30px; bottom: 24%; left: 40%; color: var(--hl-pink); animation-duration: 5s; animation-delay: .5s; }
.hl-hero__doodle--3 { --hl-doodle-size: 60px; top: 30%; left: 3%; color: var(--hl-white); opacity: .8; }
.hl-hero__doodle--4 { --hl-doodle-size: 40px; top: 2%; right: 16%; color: var(--hl-white); }

@media (max-width: 860px) {
  .hl-hero { padding-bottom: 60px; }
  .hl-hero__inner { grid-template-columns: 1fr; }
  /* min-height làm sàn cho trình duyệt chưa hỗ trợ aspect-ratio */
  .hl-hero__cast { min-height: 260px; aspect-ratio: 1 / .95; max-width: 420px; width: 100%; margin: 1rem auto 0; }
  .hl-hero__card--main { width: 46%; }
  .hl-hero__card--left,
  .hl-hero__card--right { width: 32%; }
  /* doodle nằm đè lên chữ khi xếp 1 cột */
  .hl-hero__doodle--1,
  .hl-hero__doodle--2,
  .hl-hero__doodle--3 { display: none; }
}

/* ==========================================================================
   template-parts/section-stats.php — .hl-stats
   ========================================================================== */
.hl-stats {
  position: relative;
  padding-block: clamp(40px, 6vw, 72px);
  background: var(--hl-coral);
}
.hl-stats__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.hl-stat { display: flex; align-items: center; gap: 1rem; }
.hl-stat__value { display: block; font-size: 42px; font-weight: 900; line-height: 1; color: var(--hl-yellow); }
.hl-stat__label { color: var(--hl-white); font-weight: 700; }

@media (max-width: 1040px) {
  .hl-stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hl-stats__grid { gap: 1.6rem .8rem; }
  .hl-stat { flex-direction: column; text-align: center; gap: .4rem; }
  .hl-stat .hl-brush { width: 76px; height: 70px; }
  .hl-stat .hl-brush__icon { font-size: 26px; }
  .hl-stat__value { font-size: 36px; }
}

/* ==========================================================================
   template-parts/section-features.php — .hl-features
   ========================================================================== */
.hl-features { background: var(--hl-cream); }
.hl-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.hl-feature { position: relative; padding: 2.2rem 1.5rem 2rem; border-radius: 26px; transition: transform .2s ease; }
.hl-feature:hover { transform: translateY(-8px) rotate(-1deg); }
/* giữ hiệu ứng hover khi thẻ cũng là .hl-reveal (reveal dùng `translate`, hover dùng `transform`) */
.hl-js .hl-feature.hl-reveal { transition: opacity .6s ease, translate .6s ease, transform .2s ease; }
.hl-feature .hl-brush { margin: 0 auto 1rem; }
.hl-feature__title { font-size: 20px; }

.hl-features__doodle--1 { --hl-doodle-size: 44px; top: 8%; left: 6%; color: var(--hl-yellow); }
.hl-features__doodle--2 { --hl-doodle-size: 34px; top: 12%; right: 8%; color: var(--hl-green); }

@media (max-width: 1040px) { .hl-features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .hl-features__grid { grid-template-columns: 1fr; }
  .hl-features__doodle--1, .hl-features__doodle--2 { display: none; }
}

/* ==========================================================================
   template-parts/section-about.php — .hl-about
   ========================================================================== */
.hl-about { background: var(--hl-white); }
.hl-about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hl-about__visual { position: relative; }
.hl-about__frame {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  /* ảnh thẻ 650×886 có ô số ở góc trên trái và ô tên sát đáy: khung bo vừa phải + đệm dày
     để phần cong không cắt mất số thẻ / tên con vật */
  padding: 2rem 2rem 2.6rem;
  overflow: hidden;
  border: 8px solid var(--hl-white);
  border-radius: 34% 44% 46% 38% / 34% 34% 44% 44%;
  background: linear-gradient(160deg, #eafaff, #cdeefa);
  box-shadow: var(--hl-shadow-lg);
}
.hl-about__frame img { border-radius: 18px; }
/* huy hiệu chỉ đè lên mép khung, không đè lên tên thẻ cuối */
.hl-about__badge { position: absolute; right: -26px; bottom: -34px; z-index: 4; }
.hl-about__doodle { --hl-doodle-size: 50px; top: -18px; left: -10px; color: var(--hl-coral); animation-duration: 5s; }
.hl-about__title { font-size: clamp(29px, 3.8vw, 47px); }
.hl-about__text { margin-top: 1rem; font-size: 17px; color: var(--hl-text); }
.hl-about__list { margin-top: 1.4rem; }
.hl-about__cta { margin-top: 1.6rem; }

@media (max-width: 860px) {
  .hl-about__grid { grid-template-columns: 1fr; }
  .hl-about__visual { max-width: 460px; margin-inline: auto; }
  /* giữ huy hiệu và doodle trong khung, không bị cắt ở mép màn hình */
  .hl-about__badge { right: 4px; bottom: -12px; }
  .hl-about__badge .hl-badge { width: 104px; height: 104px; border-width: 5px; }
  .hl-about__badge .hl-badge__num { font-size: 26px; }
  .hl-about__doodle { top: -12px; left: 4px; --hl-doodle-size: 40px; }
}

/* ==========================================================================
   template-parts/section-collections.php — .hl-collections
   ========================================================================== */
.hl-collections { background: var(--hl-cream); }
.hl-collections__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.hl-collection {
  overflow: hidden;
  border-radius: var(--hl-radius-panel);
  background: var(--hl-white);
  box-shadow: 0 18px 40px rgba(36, 27, 61, .12);
}
.hl-collection__head { display: flex; align-items: center; gap: .8rem; padding: 1.6rem 1.6rem 1rem; }
.hl-collection__title { font-size: 23px; }
.hl-collection__count { font-size: 14px; font-weight: 700; color: var(--hl-muted); }
.hl-collection__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: 0 1rem 1.2rem; }
.hl-collection__cards img { width: 100%; border-radius: 10px; }

.hl-collection--ocean .hl-collection__head { background: var(--hl-tint-blue); }
.hl-collection--ocean .hl-collection__title { color: var(--hl-blue); }
.hl-collection--carnivore .hl-collection__head { background: var(--hl-tint-orange); }
.hl-collection--carnivore .hl-collection__title { color: var(--hl-orange-deep); }
.hl-collection--herbivore .hl-collection__head { background: var(--hl-tint-green); }
.hl-collection--herbivore .hl-collection__title { color: var(--hl-green-deep); }

.hl-collections__cta { margin-top: 2.6rem; }
.hl-collections__doodle { --hl-doodle-size: 40px; top: 6%; right: 10%; color: var(--hl-purple); }

@media (max-width: 1040px) {
  .hl-collections__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 560px) { .hl-collections__doodle { display: none; } }

/* ==========================================================================
   template-parts/section-ar-guide.php — .hl-ar
   ========================================================================== */
.hl-ar { background: var(--hl-white); }

/* A1 — thẻ hai mặt */
.hl-ar__faces {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(26px, 4vw, 58px);
  align-items: center;
  max-width: 860px;
  margin: 0 auto clamp(44px, 6vw, 70px);
}
.hl-ar__legend { display: grid; gap: 1rem; }
.hl-ar__legend-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border-radius: 24px;
  background: var(--hl-cream);
}
.hl-ar__legend-title { display: block; font-size: 16px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hl-ar__legend-text { margin-top: .3rem; font-size: 15px; color: var(--hl-text); }

/* A2 — ba bước */
.hl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 960px; margin-inline: auto; }
.hl-step { text-align: center; }
.hl-step__circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 110px; height: 110px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  color: var(--hl-white);
  font-size: 39px;
}
.hl-step__num {
  position: absolute;
  top: -6px; right: -6px;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 3px solid var(--hl-white);
  border-radius: 50%;
  background: var(--hl-ink);
  color: var(--hl-white);
  font-size: 16px;
  font-weight: 900;
}
.hl-step--1 .hl-step__circle { background: var(--hl-blue); }
.hl-step--2 .hl-step__circle { background: var(--hl-coral); }
.hl-step--3 .hl-step__circle { background: var(--hl-green); }
.hl-step__title { font-size: 20px; }
.hl-step__text { margin-top: .4rem; padding-inline: .4rem; font-size: 16px; color: var(--hl-text); }

/* A3 — sau khi quét */
.hl-ar__result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  max-width: 900px;
  margin: clamp(48px, 6vw, 74px) auto 0;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--hl-radius-xl);
  background: var(--hl-cream);
}
.hl-ar__result-title { margin-top: .5rem; font-size: clamp(21px, 2.4vw, 28px); }
.hl-ar__result-text { margin-top: .7rem; color: var(--hl-text); }
.hl-ar__result-list { margin-top: 1.1rem; }
.hl-ar__result-list .hl-list__item { font-size: 15px; }
.hl-ar__result-list .hl-list__icon { width: 28px; height: 28px; font-size: 12px; }

.hl-ar__doodle--1 { --hl-doodle-size: 42px; top: 7%; left: 5%; color: var(--hl-cyan); animation-duration: 5s; }
.hl-ar__doodle--2 { --hl-doodle-size: 36px; top: 10%; right: 6%; color: var(--hl-coral); }

@media (max-width: 860px) {
  .hl-ar__faces,
  .hl-ar__result { grid-template-columns: 1fr; justify-items: center; }
  .hl-ar__legend { width: 100%; }
  .hl-ar__copy { text-align: center; }
  .hl-ar__result-list .hl-list__item { text-align: left; }
}
@media (max-width: 860px) and (min-width: 601px) {
  .hl-step__circle { width: 92px; height: 92px; font-size: 32px; }
}
@media (max-width: 600px) {
  .hl-steps { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .hl-ar__doodle--1, .hl-ar__doodle--2 { display: none; }
  .hl-ar__legend-item { padding: 1.1rem 1.2rem; }
}

/* ==========================================================================
   template-parts/section-product.php — .hl-product
   ========================================================================== */
.hl-product { background: var(--hl-cream); }
.hl-product__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(26px, 4vw, 54px); align-items: center; }
.hl-product__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  padding: 1.3rem;
  border-radius: var(--hl-radius-panel);
  background: var(--hl-white);
  box-shadow: 0 16px 34px rgba(36, 27, 61, .1);
}
.hl-product__gallery img { border-radius: var(--hl-radius-sm); }
.hl-product__text { font-size: 17px; color: var(--hl-text); }
.hl-product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin: 1rem 0; }
.hl-product__price-value { font-size: 34px; font-weight: 900; color: var(--hl-coral); }
.hl-product__price-unit { color: var(--hl-muted); }
.hl-product__note { margin-top: .8rem; font-size: 14px; font-style: italic; color: var(--hl-muted); }

@media (max-width: 900px) { .hl-product__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hl-product__gallery { gap: .5rem; padding: .9rem; } }
/* có khối đặt hàng thì cột thông tin cao hơn nhiều: canh mép trên, lưới ảnh dính theo khi cuộn */
@media (min-width: 901px) {
  .hl-product__grid:has(.hl-order) { align-items: start; }
  .hl-product__grid:has(.hl-order) .hl-product__gallery { position: sticky; top: calc(var(--hl-header-h) + 24px); }
}

/* ---------- Khối đặt hàng (inc/order.php — hololearn_order_card_html) ----------
   Selector bắt đầu bằng .hl-order để kiểu nút của bộ giao diện Elementor (.elementor-kit-N button)
   không đè lên. */
.hl-order {
  margin: 1.2rem 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #e7e1d6;
  border-radius: var(--hl-radius-lg);
  background: var(--hl-white);
  box-shadow: var(--hl-shadow-md);
}
.hl-order__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.hl-order .hl-order__title { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.2; color: var(--hl-ink); }
.hl-order__badge {
  padding: .35em .95em;
  border-radius: var(--hl-radius-pill);
  background: #dcf3e3;
  color: #1d7a45;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.hl-order__lead { margin-top: .6rem; font-size: 17px; color: var(--hl-text); }
.hl-order__label { display: block; margin-top: 1.1rem; font-size: 17px; font-weight: 700; color: var(--hl-text); }

.hl-order__stepper { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: .7rem; }
.hl-order .hl-order__step {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1.5px solid #d9d2c6;
  border-radius: 50%;
  background: var(--hl-white);
  color: var(--hl-ink);
  font-size: 18px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.hl-order .hl-order__step:hover { border-color: var(--hl-purple); color: var(--hl-purple); }
.hl-order .hl-order__step:disabled { opacity: .4; cursor: not-allowed; }
.hl-order__qty {
  display: grid;
  justify-items: center;
  padding: 12px;
  border: 1.5px solid #e7e1d6;
  border-radius: var(--hl-radius-md);
}
.hl-order .hl-order__qty-input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hl-ink);
  font: inherit;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.hl-order .hl-order__qty-input::-webkit-outer-spin-button,
.hl-order .hl-order__qty-input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.hl-order__qty:focus-within { border-color: var(--hl-blue); outline: 3px solid var(--hl-purple); outline-offset: 2px; }
.hl-order .hl-order__qty-input:focus-visible { outline: none; }
.hl-order__qty-unit { font-size: 16px; color: var(--hl-muted); }

.hl-order__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hl-order .hl-order__chip {
  min-height: var(--hl-tap);
  padding: 0 18px;
  border: 1.5px solid #d9d2c6;
  border-radius: var(--hl-radius-pill);
  background: var(--hl-white);
  color: var(--hl-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.hl-order .hl-order__chip:hover { border-color: var(--hl-ink); }
.hl-order .hl-order__chip.is-active { border-color: var(--hl-ink); background: var(--hl-ink); color: var(--hl-white); }

.hl-order__sum { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid #ece6db; }
.hl-order__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-block: 8px; }
.hl-order__row dt { font-size: 17px; color: var(--hl-text); }
.hl-order__row dd { margin: 0; font-size: 22px; font-weight: 800; color: var(--hl-ink); }
.hl-order__row--total dd { font-size: 30px; font-weight: 900; color: var(--hl-blue); }
.hl-order__note { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--hl-muted); }

.hl-order .hl-order__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--hl-radius-pill);
  background: var(--hl-ink);
  color: var(--hl-white);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.hl-order .hl-order__cta:hover { background: var(--hl-purple); transform: translateY(-2px); }

/* hộp thoại đặt hàng (<dialog> mở bằng showModal, nằm trên cùng trang) */
.hl-order-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto; /* base.css đặt * { margin: 0 } làm mất căn giữa mặc định của <dialog> */
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--hl-radius-md);
  background: var(--hl-white);
  color: var(--hl-text);
  box-shadow: var(--hl-shadow-lg);
}
.hl-order-dialog::backdrop { background: rgba(36, 27, 61, .55); }
.hl-order-dialog__box { padding: clamp(18px, 3vw, 28px); }
.hl-order-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.hl-order .hl-order-dialog__title { margin: 0; font-size: 22px; font-weight: 900; color: var(--hl-ink); }
.hl-order .hl-order-dialog__close {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--hl-tap);
  height: var(--hl-tap);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hl-tint-peach);
  color: var(--hl-ink);
  font-size: 20px;
  cursor: pointer;
}
.hl-order .hl-order-dialog__close:hover { background: var(--hl-tint-orange); }
.hl-order-dialog__summary { margin-bottom: 18px; padding: 10px 14px; border-radius: var(--hl-radius-sm); background: var(--hl-tint-blue); font-size: 16px; color: var(--hl-ink); }
.hl-order-dialog__summary b { color: var(--hl-blue-deep); }

/* màn hình "Đặt hàng thành công" + hướng dẫn thanh toán */
.hl-order-done { text-align: center; }
.hl-order-done:focus { outline: none; }
.hl-order-done[hidden],
.hl-order-pay[hidden],
.hl-order-dialog__body[hidden] { display: none; }
.hl-order-done__icon { font-size: 44px; line-height: 1; color: var(--hl-success); }
.hl-order-done__title { margin-top: 8px; font-size: 22px; font-weight: 900; color: var(--hl-ink); }
.hl-order-done__sum { max-width: 460px; margin-inline: auto; text-align: left; }
.hl-order-pay { max-width: 460px; margin: 18px auto 0; padding: 18px; border-radius: var(--hl-radius-md); background: var(--hl-cream); text-align: left; }
.hl-order-pay__title { font-size: 18px; font-weight: 900; color: var(--hl-ink); text-align: center; }
.hl-order .hl-order-pay__qr { display: block; width: min(260px, 100%); height: auto; margin: 12px auto 0; border-radius: var(--hl-radius-sm); box-shadow: var(--hl-shadow-sm); }
.hl-order-pay__info { margin: 14px 0 0; }
.hl-order-pay__row { display: grid; gap: 4px; padding-block: 8px; border-top: 1px solid var(--hl-line); }
.hl-order-pay__row:first-child { border-top: 0; }
.hl-order-pay__row dt { font-size: 15px; color: var(--hl-muted); }
.hl-order-pay__row dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 17px; font-weight: 800; color: var(--hl-ink); }
.hl-order-pay__value { overflow-wrap: anywhere; }
.hl-order-pay__row--content .hl-order-pay__value {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--hl-white);
  color: var(--hl-purple);
  font-family: inherit;
  font-size: 17px;
  letter-spacing: .02em;
}
.hl-order .hl-order-pay__copy {
  min-height: var(--hl-tap);
  padding: 0 16px;
  border: 1.5px solid var(--hl-purple);
  border-radius: var(--hl-radius-pill);
  background: var(--hl-white);
  color: var(--hl-purple);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.hl-order .hl-order-pay__copy:hover,
.hl-order .hl-order-pay__copy.is-copied { background: var(--hl-purple); color: var(--hl-white); }
.hl-order-pay__note { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--hl-text); }

/* mã QR hiện ngay trong form khi chọn "Chuyển khoản qua mã QR" (ẩn khi chọn COD, xem main.js) */
.hl-order-qr {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding: 14px;
  border-radius: var(--hl-radius-sm);
  background: var(--hl-cream);
}
.hl-order-qr[hidden] { display: none; }
.hl-order-qr .hl-order-qr__img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--hl-shadow-sm); }
.hl-order-qr__info { margin: 0 0 8px; }
.hl-order-qr__row { display: grid; gap: 2px; padding-block: 4px; }
.hl-order-qr__row dt { font-size: 14px; color: var(--hl-muted); }
.hl-order-qr__row dd { margin: 0; font-size: 16px; font-weight: 800; color: var(--hl-ink); }
@media (max-width: 480px) {
  .hl-order-qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hl-order-qr .hl-order-qr__img { width: min(220px, 100%); }
}
.hl-order-done__actions { max-width: 460px; margin: 18px auto 0; }
.hl-order .hl-order-done__again {
  width: 100%;
  min-height: var(--hl-tap);
  margin-top: 8px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--hl-purple);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Không có JS (hoặc main.js tải lỗi): hộp đặt hàng hiện ngay dưới khối, form vẫn gửi được */
html:not(.hl-js) .hl-order-dialog { display: block; position: static; width: auto; max-height: none; margin: 18px 0 0; border: 1px solid #e7e1d6; box-shadow: none; }
html:not(.hl-js) .hl-order [data-hl-order-open],
html:not(.hl-js) .hl-order [data-hl-order-close],
html:not(.hl-js) .hl-order__chips,
html:not(.hl-js) .hl-order__step { display: none; }

@media (max-width: 480px) {
  .hl-order .hl-order__step { width: var(--hl-tap); height: var(--hl-tap); }
  .hl-order__stepper { gap: 10px; }
  .hl-order .hl-order__chip { padding: 0 14px; font-size: 16px; }
  .hl-order__row--total dd { font-size: 26px; }
}

/* ==========================================================================
   template-parts/section-benefits.php — .hl-benefits
   ========================================================================== */
.hl-benefits {
  position: relative;
  padding-block: clamp(52px, 7vw, 92px) clamp(70px, 9vw, 110px);
  background: var(--hl-coral);
}
.hl-benefits__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.hl-benefit { border-radius: var(--hl-radius-panel); padding: 2.2rem; box-shadow: none; }
.hl-benefit .hl-tile { margin-bottom: 1rem; }
.hl-benefit__title { font-size: 21px; }
.hl-benefit .hl-list { margin-top: .9rem; }

@media (max-width: 700px) { .hl-benefits__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   template-parts/section-parents.php — .hl-parents
   ========================================================================== */
.hl-parents { background: var(--hl-cream); }
.hl-parents__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.hl-parent-tip { padding: 2.2rem 1.6rem; }
.hl-parent-tip .hl-brush { margin: 0 auto 1rem; }
.hl-parent-tip .hl-brush__icon { font-size: 32px; }
.hl-parents__notes { margin-top: 1.8rem; }
.hl-parents__notes-title { display: flex; align-items: center; gap: .6rem; font-size: 20px; }
.hl-parents__notes-title i { color: var(--hl-blue); }
.hl-parents__notes .hl-list { margin-top: 1rem; }
.hl-parents__disclaimer { max-width: 62ch; margin: 1.6rem auto 0; font-size: 14px; text-align: center; color: var(--hl-muted); }

@media (max-width: 700px) { .hl-parents__grid { grid-template-columns: 1fr; } }

/* thẻ trắng ở các section trên ghi đè padding của .hl-card → thu lại cho màn hẹp */
@media (max-width: 480px) {
  .hl-feature,
  .hl-benefit,
  .hl-parent-tip { padding: 1.6rem 1.3rem; }
}

/* ==========================================================================
   template-parts/sections/feedback.php — .hl-feedback (card nhận xét phụ huynh)
   ========================================================================== */
.hl-feedback { background: var(--hl-tint-blue); }
.hl-feedback--empty { padding-block: 2rem; }
/* flex + canh giữa: 1–2 feedback vẫn nằm giữa, không dồn trái; tối đa 3 card mỗi hàng */
.hl-feedback__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
.hl-feedback__card { flex: 0 1 calc((100% - 2.8rem) / 3); display: flex; flex-direction: column; gap: .9rem; padding: 2rem 1.6rem; }
.hl-feedback__quote { font-size: 28px; color: var(--hl-coral); }
.hl-feedback__rating { display: flex; gap: 4px; color: var(--hl-yellow-deep); font-size: 16px; }
.hl-feedback__text { flex: 1; margin: 0; color: var(--hl-text); font-size: 16px; line-height: 1.7; }
.hl-feedback__text p + p { margin-top: .6rem; }
.hl-feedback__author { display: flex; align-items: center; gap: .8rem; padding-top: .9rem; border-top: 1px solid var(--hl-line); }
.hl-feedback__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--hl-blue);
  color: var(--hl-white);
  font-size: 20px;
  font-weight: 900;
}
.hl-feedback__avatar img { width: 100%; height: 100%; object-fit: cover; }
.hl-feedback__name { display: block; font-style: normal; font-weight: 900; color: var(--hl-ink); }
.hl-feedback__role { display: block; font-size: 14px; color: var(--hl-muted); }

@media (max-width: 1040px) { .hl-feedback__card { flex-basis: calc((100% - 1.4rem) / 2); } }
@media (max-width: 700px) { .hl-feedback__card { flex-basis: 100%; } }
@media (max-width: 480px) { .hl-feedback__card { padding: 1.6rem 1.3rem; } }

/* ==========================================================================
   template-parts/section-story.php — .hl-story
   ========================================================================== */
.hl-story { background: var(--hl-white); }
.hl-story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 54px); align-items: start; }
.hl-story__text p { margin-bottom: .9rem; font-size: 17px; color: var(--hl-text); }
.hl-story__vm { display: grid; gap: 1.2rem; }
.hl-vm { padding: 1.8rem; border-radius: var(--hl-radius-lg); }
.hl-vm--vision { background: var(--hl-tint-blue); }
.hl-vm--mission { background: var(--hl-tint-peach); }
.hl-vm .hl-tile { margin-bottom: .9rem; }
.hl-vm__title { font-size: 21px; }
.hl-vm__text { margin-top: .5rem; color: var(--hl-text); }

.hl-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-top: 2.4rem; }
.hl-value { padding: 2rem 1.4rem; }
.hl-value .hl-brush { margin: 0 auto .9rem; }
.hl-value .hl-brush__icon { font-size: 31px; }
.hl-value__title { font-size: 19px; }
.hl-value .hl-card__text { font-size: 15px; }

@media (max-width: 900px) {
  .hl-story__grid { grid-template-columns: 1fr; }
  .hl-values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hl-values { gap: .8rem; }
  .hl-value { padding: 1.4rem .9rem; }
  .hl-value .hl-brush { width: 76px; height: 70px; }
  .hl-value .hl-brush__icon { font-size: 24px; }
  .hl-value__title { font-size: 17px; }
}

/* ==========================================================================
   template-parts/section-partners.php — .hl-partners
   ========================================================================== */
.hl-partners { background: var(--hl-cream); }
.hl-partners__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.hl-partner__title { display: flex; align-items: center; gap: .6rem; font-size: 20px; color: var(--hl-blue); }
.hl-partner__text { margin-top: .7rem; color: var(--hl-text); }
.hl-partner .hl-list { margin-top: .9rem; }

.hl-contact-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1rem; }
.hl-contact-links__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: var(--hl-tap);
  font-weight: 800;
  color: var(--hl-purple);
}

/* khối form liên hệ hợp tác (Contact Form 7) dưới 2 thẻ */
.hl-partners__form {
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: clamp(22px, 3.4vw, 42px);
  border-radius: var(--hl-radius-xl);
  background: var(--hl-white);
  box-shadow: var(--hl-shadow-md);
}
.hl-partners__form-lead { margin: .6rem 0 1.4rem; color: var(--hl-text); }

@media (max-width: 700px) { .hl-partners__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hl-contact-links { flex-direction: column; gap: 0; } }

/* ==========================================================================
   template-parts/section-register.php — .hl-register
   ========================================================================== */
.hl-register { background: var(--hl-white); }
.hl-register__card {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(22px, 3.4vw, 42px);
  border-radius: var(--hl-radius-xl);
  background: var(--hl-cream);
  box-shadow: 0 18px 40px rgba(36, 27, 61, .1);
}
.hl-register__doodle--1 { --hl-doodle-size: 42px; top: 7%; right: 7%; color: var(--hl-yellow); animation-duration: 5s; }
.hl-register__doodle--2 { --hl-doodle-size: 34px; bottom: 10%; left: 5%; color: var(--hl-cyan); }

@media (max-width: 1000px) { .hl-register__doodle--1, .hl-register__doodle--2 { display: none; } }

/* ==========================================================================
   template-parts/section-cta.php — .hl-cta
   ========================================================================== */
.hl-cta { position: relative; overflow: hidden; background: var(--hl-purple); }
.hl-cta__inner { position: relative; z-index: 2; text-align: center; color: var(--hl-white); }
.hl-cta__title { font-size: clamp(32px, 4.4vw, 55px); }
.hl-cta__text { max-width: 46ch; margin: 1rem auto 2rem; font-size: 18px; opacity: .92; }

/* ==========================================================================
   footer.php — .hl-footer
   ========================================================================== */
.hl-footer {
  position: relative;
  padding-block: clamp(48px, 6vw, 74px) 2rem;
  background: var(--hl-ink);
  color: var(--hl-footer-text);
}
.hl-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.4rem; }
.hl-footer__logo {
  display: inline-flex;
  padding: .5rem .9rem;
  border-radius: var(--hl-radius-sm);
  background: var(--hl-white);
}
.hl-footer__logo img { width: auto; height: 49px; }
.hl-footer__about { max-width: 34ch; margin-top: 1rem; opacity: .8; }
.hl-footer__heading { margin-bottom: .6rem; font-size: 18px; color: var(--hl-white); }
.hl-footer__link {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: var(--hl-tap);
  opacity: .85;
  transition: color .15s ease, opacity .15s ease;
}
a.hl-footer__link:hover { color: var(--hl-yellow); opacity: 1; }
/* nền tối: viền focus vàng thay cho tím mặc định (tím trên nền mực gần như không thấy) */
.hl-footer :focus-visible { outline-color: var(--hl-yellow); }

/* hàng icon mạng xã hội ở cột Liên hệ — chỉ icon, màu riêng từng mạng; chỉ in kênh đã có link (hololearn_social_html) */
/* gap 8px: 4 icon = 200px, vừa cột Liên hệ hẹp nhất (~208px ở 861px) nên không rớt dòng 3+1 */
.hl-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.hl-social__link {
  display: grid;
  place-items: center;
  width: var(--hl-tap);
  height: var(--hl-tap);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--hl-white);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hl-social__link--facebook { background: #1877f2; }
.hl-social__link--linkedin { background: #0a66c2; }
.hl-social__link--x { background: #000; box-shadow: 0 4px 12px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .3); }
/* dải vàng/cam dồn xuống mép dưới để icon trắng luôn đạt tương phản ≥ 3:1 */
.hl-social__link--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 20%, #d6249f 55%, #285aeb 90%); }
.hl-social__link:hover { color: var(--hl-white); transform: translateY(-3px); box-shadow: 0 0 0 3px var(--hl-yellow), 0 8px 18px rgba(0, 0, 0, .35); }

.hl-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px;
  opacity: .7;
}

/* link Chính sách bảo mật ở dòng cuối: đủ vùng chạm 44px */
.hl-footer__legal-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--hl-tap);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.hl-footer__legal-link:hover { color: var(--hl-yellow); }

/* bộ đếm lượt truy cập: chữ số cùng độ rộng để số đổi không làm dòng nhảy */
.hl-footer__visits i { margin-right: .4rem; }
.hl-footer__visits strong { font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) { .hl-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .hl-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hl-footer__bottom { flex-direction: column; align-items: flex-start; gap: .4rem; }
}
