/**
 * Khả Văn — Mobile design (≤ 767px) theo mockup
 * Hero sáng, tiêu đề lớn + gạch vàng, badge panel tròn nổi, course card ngang.
 */
@media (max-width: 767px) {

  /* ── HEADER: trắng / kính như PC, dính top full-width ── */
  body.kv-home .kv-site-header,
  body.kv-home .kv-site-header.is-scrolled {
    position: sticky !important;
    top: 0 !important;
    left: auto;
    right: auto;
    width: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
    border-bottom: 1px solid #DDEEE7 !important;
    border-radius: 0 !important;
    transform: none !important;
    background: rgba(255, 255, 255, .92) !important;
    color: #102A24 !important;
    box-shadow: 0 2px 16px -8px rgba(16, 42, 36, .18) !important;
    backdrop-filter: saturate(180%) blur(14px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px) !important;
  }

  /* ── HERO ── */
  body.kv-home .kv-hero--fullbanner {
    min-height: clamp(33rem, 128vw, 44rem);
    background: var(--kv-green-dark, #004526);
    overflow: visible;
  }

  body.kv-home .kv-hero-band {
    overflow: visible;
  }

  /* Lớp ảnh nền vẫn phải cắt trong khung hero */
  body.kv-home .kv-hero--fullbanner .kv-hero__bg {
    overflow: hidden;
    border-radius: 0 0 28px 28px;
  }

  /* Ảnh nền: lấy nét người bên phải, sáng hơn */
  body.kv-home .kv-hero__bg-img {
    object-position: 66% 18%;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.02) brightness(1.02);
  }

  /* Overlay: tối trái trên, trong dần sang phải → người rõ */
  body.kv-home .kv-hero--fullbanner .kv-hero__overlay--banner {
    background:
      linear-gradient(180deg, rgba(0, 50, 28, 0.55) 0%, rgba(0, 45, 25, 0.18) 34%, transparent 60%),
      linear-gradient(90deg, rgba(0, 45, 25, 0.78) 0%, rgba(0, 55, 32, 0.34) 46%, transparent 76%);
  }

  /* Bỏ lưới chấm + motion 3D ở mobile cho gọn */
  body.kv-home .kv-hero--fullbanner::before,
  .kv-fx-dots,
  .kv-fx-spotlight,
  .kv-fx-spotlight-cursor,
  .kv-english-3d {
    display: none !important;
  }

  /* Nội dung hero: căn trên, lề thoáng */
  body.kv-home .kv-hero--fullbanner .kv-hero__inner {
    align-items: flex-start;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  body.kv-home .kv-hero__content {
    max-width: 18rem;
  }

  /* Kicker pill xanh có sao */
  .kv-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(10, 107, 61, 0.92);
    color: #fff;
    font-size: 0.72rem;
    box-shadow: 0 6px 18px rgba(0, 30, 18, 0.3);
  }

  .kv-hero-kicker::before {
    content: "\f4ff"; /* ri-star-fill */
    font-family: remixicon;
    color: var(--kv-yellow, #ffc617);
    font-size: 0.85rem;
  }

  /* Tiêu đề lớn + gạch vàng dưới */
  body.kv-home .kv-hero__title {
    font-size: clamp(2.6rem, 15vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    max-width: 9ch;
    text-shadow: 0 4px 24px rgba(0, 25, 14, 0.35);
  }

  body.kv-home .kv-hero__title::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 4px;
    margin-top: 1.1rem;
    border-radius: 999px;
    background: var(--kv-yellow, #ffc617);
  }

  .kv-hero__lead {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
  }

  /* CTA: 1 nút vàng tròn nổi bật, ẩn nút phụ */
  body.kv-home .kv-hero__actions {
    margin-top: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .kv-hero__actions .kv-btn--primary {
    padding: 0.95rem 1.6rem;
    font-size: 0.95rem;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(255, 198, 23, 0.4);
  }

  .kv-hero__actions .kv-btn--ghost {
    display: none;
  }

  /* ── BADGE PANEL nổi đè giữa hero & courses ── */
  .kv-hero-badges--inline {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: -2.5rem 0 0;
    width: calc(100% - 2rem);
    max-width: 24rem;
    padding: 1.1rem 0.5rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(6, 73, 45, 0.16);
  }

  /* Badge thứ 4 (Cơ sở vật chất) ẩn — mockup chỉ 3 ô */
  .kv-hero-badges--inline .kv-hero-badge:nth-child(4) {
    display: none;
  }

  /* Mỗi ô: icon tròn trên, text dưới, căn giữa, không nền/viền */
  body.kv-home .kv-hero-badges--inline .kv-hero-badge {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem 0.4rem;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: center;
    animation: none !important;
  }

  body.kv-home .kv-hero-badges--inline .kv-hero-badge::before {
    display: none !important;
  }

  /* Vạch ngăn giữa các ô */
  .kv-hero-badges--inline .kv-hero-badge + .kv-hero-badge {
    border-left: 1px solid #eef2f0 !important;
  }

  body.kv-home .kv-hero-badges--inline .kv-hero-badge__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--kv-green, #0b6e3e);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 20px rgba(10, 107, 61, 0.28);
  }

  .kv-hero-badges--inline .kv-hero-badge__text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .kv-hero-badges--inline .kv-hero-badge__strong {
    display: none;
  }

  .kv-hero-badges--inline .kv-hero-badge__title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--kv-green, #0b6e3e);
  }

  .kv-hero-badges--inline .kv-hero-badge__sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b7c74;
  }

  /* ── STATS: ẩn ở mobile (mockup không hiện ngay) — vẫn dưới khóa học ── */
  /* Giữ stats nhưng thu gọn, nằm sau courses không bắt buộc; chỉ giảm padding */
  body.kv-home .kv-stats-wrap {
    padding-top: 1.75rem;
  }

  /* ── SECTION HEAD: căn trái, gạch vàng, "Xem tất cả" bên phải ── */
  .kv-section {
    padding: 2.25rem 0;
  }

  .kv-section__head {
    text-align: left;
    max-width: 100%;
    margin-bottom: 1.25rem;
  }

  .kv-section__head .kv-kicker {
    display: inline-block;
    width: 2.25rem;
    height: 4px;
    padding: 0;
    border: 0;
    background: var(--kv-yellow, #ffc617);
    border-radius: 999px;
    font-size: 0;
    margin-bottom: 0.75rem;
  }

  .kv-section__title {
    font-size: 1.5rem;
    text-align: left;
  }

  .kv-section__title.kv-fx-title-line::after {
    left: 0;
    transform: scaleX(1);
  }

  .kv-section__desc {
    font-size: 0.85rem;
  }

  /* ── COURSE CARD: ngang (text trái, ảnh phải), nền pastel ── */
  #courses .kv-stagger {
    gap: 0.9rem;
  }

  .kv-course-card {
    flex-direction: row-reverse;
    align-items: stretch;
    min-height: 7rem;
    border-radius: 16px;
  }

  .kv-course-card__media {
    flex: 0 0 38%;
    aspect-ratio: auto;
    min-height: 7rem;
    align-self: stretch;
  }

  .kv-course-card__media img {
    height: 100%;
    min-height: 7rem;
    object-fit: cover;
  }

  .kv-course-card__body {
    flex: 1;
    padding: 1rem 1.1rem;
    justify-content: center;
  }

  .kv-course-card__body h3 {
    font-size: 1.02rem;
  }

  .kv-course-card__body p {
    display: none;
  }

  .kv-course-card__link {
    margin-top: 0.6rem;
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(6, 73, 45, 0.12);
    font-size: 0;
  }

  .kv-course-card__link i {
    font-size: 1.1rem;
  }

  /* Nền pastel xen kẽ cho card */
  #courses .kv-course-card:nth-child(1) { background: #eaf6ee; }
  #courses .kv-course-card:nth-child(2) { background: #fff6e0; }
  #courses .kv-course-card:nth-child(3) { background: #f0ecfb; }
  #courses .kv-course-card:nth-child(4) { background: #fdeef0; }

  /* Badge icon góc media → ẩn cho gọn */
  .kv-course-card__badge {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.65rem;
  }
}

/* "Xem tất cả" link cạnh tiêu đề — thêm bằng JS/markup nếu cần.
   Hiện section head chưa có; bỏ qua an toàn. */
