/*
Theme Name: Tiếng Anh Nghe Nói Visual
Theme URI: https://tienganhnghenoi.vn/
Author: BBN Team
Description: Theme chuyển đổi từ bộ HTML Tiếng Anh Nghe Nói, tương thích trình chỉnh sửa trực tiếp TNN Visual Editor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: tieng-anh-nghe-noi
*/

/* ==========================================================================
   TỐI ƯU THANH MENU HEADER: DESKTOP 1 HÀNG NGANG & MOBILE GỌN ĐẸP
   ========================================================================== */
.site-header .container.header-inner {
  max-width: min(1340px, 100%);
  gap: 12px;
  flex-wrap: nowrap;
}

@media (min-width: 1200px) {
  body:not(.tnn-device-tablet):not(.tnn-device-mobile) .site-header nav[aria-label="Menu chính"] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  body:not(.tnn-device-tablet):not(.tnn-device-mobile) .site-header .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    white-space: nowrap;
  }

  body:not(.tnn-device-tablet):not(.tnn-device-mobile) .site-header .mobile-toggle,
  body:not(.tnn-device-tablet):not(.tnn-device-mobile) .site-header .mobile-nav-drawer {
    display: none !important;
  }
}

.site-header .nav-item {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px 9px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header .submenu {
  min-width: 300px;
}

.site-header .submenu li a {
  white-space: nowrap;
}

.site-header .header-cta,
.site-header .btn-test-free {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-header .btn-test-free {
  padding: 10px 15px;
  font-size: 0.84rem;
}

@media (min-width: 1200px) and (max-width: 1320px) {
  .site-header .navbar-brand img {
    max-height: 46px;
  }
  .site-header .nav-link {
    padding: 12px 7px;
    font-size: 0.79rem;
    letter-spacing: 0;
  }
  .site-header .btn-test-free {
    padding: 9px 12px;
    font-size: 0.79rem;
  }
}

body.tnn-editor-active.tnn-panel-open .site-header .navbar-brand img {
  max-height: 42px;
}

body.tnn-editor-active.tnn-panel-open .site-header .nav-link {
  padding: 12px 6px;
  font-size: 0.76rem;
  letter-spacing: 0;
}

body.tnn-editor-active.tnn-panel-open .site-header .btn-test-free {
  padding: 8px 11px;
  font-size: 0.76rem;
}

/* Header & Drawer khi ở màn hình Tablet / Mobile hoặc chế độ xem thử thiết bị */
@media (max-width: 1199px) {
  .site-header nav[aria-label="Menu chính"],
  .site-header .main-nav {
    display: none !important;
  }
  .site-header .mobile-toggle {
    display: inline-flex !important;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--color-navy, #2d4162);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }
  .site-header .mobile-toggle[aria-expanded="true"] {
    background: var(--color-primary, #ff7e00);
    border-color: var(--color-primary, #ff7e00);
    color: #ffffff;
  }
  .site-header .container.header-inner {
    height: 64px;
    padding: 0 14px;
    gap: 10px;
  }
  .site-header .navbar-brand {
    margin-right: auto;
  }
  .site-header .navbar-brand img {
    max-height: 42px;
  }
  .site-header .btn-test-free {
    padding: 9px 13px;
    font-size: 0.78rem;
    border-radius: 8px;
  }
}

body.tnn-device-tablet .site-header nav[aria-label="Menu chính"],
body.tnn-device-tablet .site-header .main-nav,
body.tnn-device-mobile .site-header nav[aria-label="Menu chính"],
body.tnn-device-mobile .site-header .main-nav {
  display: none !important;
}

body.tnn-device-tablet .site-header .mobile-toggle,
body.tnn-device-mobile .site-header .mobile-toggle {
  display: inline-flex !important;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--color-navy, #2d4162);
  font-size: 1.15rem;
  flex-shrink: 0;
}

body.tnn-device-tablet .site-header .navbar-brand,
body.tnn-device-mobile .site-header .navbar-brand {
  margin-right: auto;
}

.mobile-nav-drawer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-list {
  padding: 8px 16px 20px;
}

.mobile-nav-item {
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 11px 4px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  flex: 1;
}

.mobile-nav-link:hover,
.mobile-nav-item.submenu-open > .mobile-nav-row .mobile-nav-link {
  color: var(--color-primary, #ff7e00);
}

.mobile-submenu-toggle {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-submenu-toggle[aria-expanded="true"] {
  background: #fff7ed;
  border-color: #fdba74;
  color: var(--color-primary, #ff7e00);
}

.mobile-submenu {
  margin: 0 0 10px 8px;
  padding: 6px 0 6px 12px;
  background: #f8fafc;
  border-left: 3px solid var(--color-primary, #ff7e00);
  border-radius: 0 8px 8px 0;
}

.mobile-submenu li a {
  display: block;
  padding: 9px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  border-radius: 6px;
}

.mobile-submenu li a:hover {
  background: #fff7ed;
  color: var(--color-primary, #ff7e00);
}

/* ==========================================================================
   TRANG CHI TIẾT BÀI VIẾT CHUẨN SEO GOOGLE (SINGLE POST & ARCHIVE)
   ========================================================================== */
.page-hero,
.tnn-single-hero {
  background: #ffffff;
  color: #1e293b;
  text-align: left;
  padding: 44px 0 32px;
  border-bottom: 1px solid #e2e8f0;
}

.page-hero h1 {
  color: #0f172a;
  margin: 12px 0 10px;
}

.page-hero h1 .text-gold {
  color: var(--color-primary, #ff7e00);
}

.page-hero p {
  color: #475569;
  font-size: 1.02rem;
  margin: 0;
}

.tnn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: #64748b;
}

.tnn-breadcrumb .sep {
  color: #94a3b8;
}

.tnn-breadcrumb a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s ease;
}

.tnn-breadcrumb a:hover {
  color: var(--color-primary, #ff7e00);
}

.tnn-breadcrumb .current {
  color: var(--color-navy, #1e293b);
  font-weight: 700;
}

.tnn-single-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tnn-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--color-primary, #ff7e00);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.18s ease;
}

.tnn-cat-pill:hover {
  background: var(--color-primary-hover, #e56d00);
  color: #ffffff;
}

.tnn-sub-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  font-size: 0.78rem;
}

.tnn-single-title {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.28;
  margin: 0 0 16px;
  color: #0f172a;
  font-weight: 800;
  max-width: 920px;
}

.tnn-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #475569;
}

.tnn-single-meta i {
  color: var(--color-primary, #ff7e00);
  margin-right: 6px;
}

.tnn-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 992px) {
  .tnn-single-layout {
    grid-template-columns: 1fr;
  }
}

.tnn-single-main {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

@media (max-width: 640px) {
  .tnn-single-main {
    padding: 20px;
  }
}

.tnn-single-featured {
  margin: 0 0 24px;
  border-radius: 16px;
  overflow: hidden;
  max-height: 440px;
}

.tnn-single-featured img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.tnn-single-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  font-weight: 600;
  color: #1e293b;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 24px;
}

.tnn-toc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 28px;
}

.tnn-toc-header {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 10px;
}

.tnn-toc-header i {
  color: #d97706;
  margin-right: 6px;
}

.tnn-toc-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.tnn-toc-item a {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.tnn-toc-item.tnn-toc-level-3 {
  margin-left: 18px;
  list-style-type: circle;
}

.tnn-toc-item.tnn-toc-level-3 a {
  font-weight: 500;
  color: #334155;
  font-size: 0.9rem;
}

.tnn-toc-item a:hover {
  color: #d97706;
  text-decoration: underline;
}

.tnn-article-content {
  font-size: 1.04rem;
  line-height: 1.8;
  color: #1f2937;
}

.tnn-article-content h2 {
  font-size: 1.48rem;
  line-height: 1.35;
  color: #0f172a;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fef3c7;
  scroll-margin-top: 96px;
}

.tnn-article-content h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  color: #1e293b;
  margin: 22px 0 10px;
  scroll-margin-top: 96px;
}

.tnn-article-content p {
  margin: 0 0 16px;
}

.tnn-article-content ul,
.tnn-article-content ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.tnn-article-content li {
  margin-bottom: 8px;
}

.tnn-article-content a {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
}

.tnn-inline-cta {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tnn-inline-cta h3 {
  color: #fff;
  margin: 8px 0 6px;
  font-size: 1.25rem;
}

.tnn-inline-cta p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  font-size: 0.94rem;
  max-width: 520px;
}

.tnn-single-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.tnn-tag-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: #4b5563;
}

.tnn-tag-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #1f2937;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.tnn-single-sidebar {
  display: grid;
  gap: 24px;
  position: sticky;
  top: 94px;
}

.tnn-sidebar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.tnn-sidebar-title {
  font-size: 1.12rem;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #fef3c7;
  color: #0f172a;
}

.tnn-sidebar-sub {
  font-size: 0.88rem;
  color: #4b5563;
  margin: 0 0 14px;
}

.tnn-sidebar-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tnn-sidebar-cats li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tnn-sidebar-cats li a:hover,
.tnn-sidebar-cats li a.active {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.tnn-sidebar-cats .count {
  font-size: 0.78rem;
  background: #e2e8f0;
  color: #334155;
  padding: 2px 8px;
  border-radius: 999px;
}

.tnn-sidebar-latest {
  display: grid;
  gap: 14px;
}

.tnn-latest-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.tnn-latest-item img {
  width: 76px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

.tnn-latest-cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #b45309;
  text-transform: uppercase;
}

.tnn-latest-item h4 {
  font-size: 0.88rem;
  line-height: 1.35;
  margin: 2px 0 4px;
  color: #0f172a;
}

.tnn-latest-item:hover h4 {
  color: #b45309;
}

.tnn-latest-date {
  font-size: 0.75rem;
  color: #64748b;
}

.tnn-related-wrap {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

/* ==========================================================================
   HỆ THỐNG GIAO DIỆN RESPONSIVE TOÀN DIỆN (TABLET & MOBILE CHUẨN UX/UI)
   Áp dụng cho cả thiết bị thực tế (@media) và chế độ xem thử Visual Editor
   ========================================================================== */

/* Chống tràn ngang tuyệt đối trên mọi khung nhìn */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.tnn-article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

/* 1. TABLET BREAKPOINT (<= 991px & Chế độ xem thử Tablet 820px) */
@media (max-width: 991px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .grid-3,
  .grid-4,
  .teacher-grid,
  .testimonials-grid,
  .gallery-grid,
  .schedule-campus-grid,
  .footer-campuses {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .zalo-support-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .zalo-support-left {
    grid-column: 1 / -1;
    text-align: center;
    padding-bottom: 8px;
  }

  .tnn-single-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tnn-single-sidebar {
    position: static;
  }
}

body.tnn-device-tablet .grid-2 {
  grid-template-columns: 1fr;
  gap: 28px;
}

body.tnn-device-tablet .grid-3,
body.tnn-device-tablet .grid-4,
body.tnn-device-tablet .teacher-grid,
body.tnn-device-tablet .testimonials-grid,
body.tnn-device-tablet .gallery-grid,
body.tnn-device-tablet .schedule-campus-grid,
body.tnn-device-tablet .footer-campuses {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

body.tnn-device-tablet .tnn-single-layout {
  grid-template-columns: 1fr;
  gap: 28px;
}

/* 2. MOBILE BREAKPOINT (<= 767px & Chế độ xem thử Mobile 390px) */
@media (max-width: 767px) {
  .container,
  .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 40px 0;
  }

  .section-sm {
    padding: 28px 0;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-header h2,
  h2 {
    font-size: clamp(1.32rem, 5.2vw, 1.6rem);
    line-height: 1.32;
  }

  .section-header p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  h1,
  .page-titlebar h1,
  .tnn-single-title {
    font-size: clamp(1.42rem, 5.8vw, 1.82rem);
    line-height: 1.3;
  }

  .page-titlebar {
    padding: 24px 0;
  }

  .breadcrumb {
    font-size: 0.82rem;
    gap: 6px;
  }

  /* Hero Slider trên điện thoại */
  .slide img {
    min-height: 185px;
    max-height: 320px;
    object-fit: cover;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    background: rgba(15, 23, 42, 0.48);
  }

  .slider-arrow.prev {
    left: 8px;
  }

  .slider-arrow.next {
    right: 8px;
  }

  .slider-dots {
    bottom: 10px;
    gap: 7px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  .slider-dot.active {
    width: 22px;
  }

  /* Giới thiệu, Con số thống kê (3 cột ngang gọn như App) & CEO Card */
  .about-circle-img {
    max-width: 260px;
    margin: 0 auto 6px;
  }

  .about-circle-img img {
    border-width: 6px;
  }

  .stats-row,
  .counters-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
    padding: 14px 10px;
    margin-top: 20px;
  }

  .counter-item {
    padding: 14px 6px;
  }

  .stat-number,
  .counter-value {
    font-size: clamp(1.18rem, 4.8vw, 1.5rem);
  }

  .stat-label,
  .counter-label {
    font-size: 0.66rem;
    letter-spacing: 0.02em;
    line-height: 1.25;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reason-card,
  .feature-box {
    padding: 22px 18px;
  }

  .motto-section {
    padding: 44px 0;
  }

  .ceo-card {
    padding: 28px 18px;
  }

  .ceo-avatar {
    width: 128px;
    height: 128px;
    border-width: 6px;
    margin-bottom: 16px;
  }

  .ceo-card blockquote {
    font-size: 1rem;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  /* 4 Khóa học nổi bật: Lưới 2x2 cân đối trên điện thoại */
  [data-tnn-section-id="index-04"] .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .course-card {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
  }

  .course-card-content {
    padding: 14px 12px;
  }

  .course-card-content h3 {
    font-size: 0.9rem;
    line-height: 1.28;
    margin-bottom: 4px;
  }

  .course-card-content .course-more {
    font-size: 0.76rem;
  }

  /* Lộ trình học Accordion */
  .roadmap-banner {
    margin-bottom: 24px;
    border-radius: 12px;
  }

  .accordion-header {
    font-size: 0.98rem;
    padding: 13px 4px;
    gap: 10px;
  }

  .accordion-content {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  /* Đội ngũ Giáo viên: Lưới 2 cột gọn đẹp trên Mobile */
  .teacher-showcase-banner {
    padding: 36px 0 40px;
  }

  .teacher-showcase-banner p {
    font-size: 0.95rem;
  }

  .teacher-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .teacher-card {
    border-radius: 14px;
  }

  .teacher-info {
    padding: 12px 10px;
  }

  .teacher-info h4 {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .teacher-info span {
    font-size: 0.76rem;
    display: block;
    line-height: 1.35;
  }

  /* Thư viện hình ảnh: Lưới 2 cột + hiển thị tên ảnh trực tiếp trên cảm ứng */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item {
    border-radius: 12px;
  }

  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.15) 55%, transparent 100%);
    justify-content: flex-end;
    padding: 10px;
  }

  .gallery-overlay h3 {
    font-size: 0.78rem;
    line-height: 1.25;
    margin-bottom: 0;
  }

  .gallery-overlay i {
    display: none;
  }

  /* Video Shorts 9:16 & Video 16:9 */
  [data-tnn-section-id="video-02"] .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .video-frame-916 {
    max-width: 280px;
    max-height: 430px;
    margin: 0 auto 10px;
    border-radius: 14px;
  }

  .video-shorts-card h5 {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Cảm nhận học viên & Tin tức Blog */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-card {
    padding: 22px 18px;
  }

  .blog-body {
    padding: 16px;
  }

  .blog-title {
    font-size: 1.02rem;
  }

  /* Bộ lọc Tabs: Cuộn ngang mượt bằng ngón tay */
  .filter-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-bottom: 22px;
    gap: 8px;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 16px;
    font-size: 0.84rem;
  }

  /* Lịch khai giảng các cơ sở */
  .schedule-campus-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .schedule-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px;
  }

  .schedule-item .btn {
    width: 100%;
    justify-content: center;
  }

  /* Cụm nút CTA & Form Đăng ký Tư vấn */
  .btn {
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }

  .section div[style*="display: flex"][style*="flex-wrap: wrap"] {
    gap: 10px !important;
  }

  .section div[style*="display: flex"][style*="flex-wrap: wrap"] > .btn {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
  }

  .reg-form-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .reg-form-card h3 {
    font-size: 1.2rem;
  }

  .form-control {
    font-size: 16px;
    padding: 11px 13px;
    min-height: 44px;
  }

  /* Hỗ trợ Zalo OA */
  .zalo-support-section {
    padding: 40px 0 32px;
    text-align: center;
  }

  .zalo-support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .zalo-support-left {
    padding-bottom: 0;
  }

  .zalo-mockup-center img {
    max-height: 260px;
  }

  .zalo-qr-right {
    padding-bottom: 0;
  }

  .zalo-qr-right img {
    width: 140px;
  }

  /* Trang chi tiết bài viết Single Post & Archive */
  .page-hero,
  .tnn-single-hero {
    padding: 24px 0 20px;
  }

  .tnn-breadcrumb {
    font-size: 0.8rem;
    gap: 5px;
    margin-bottom: 12px;
  }

  .tnn-single-badges {
    gap: 8px;
    margin-bottom: 10px;
  }

  .tnn-cat-pill,
  .tnn-sub-pill {
    font-size: 0.72rem;
    padding: 4px 11px;
  }

  .tnn-single-meta {
    gap: 8px 14px;
    font-size: 0.82rem;
  }

  .tnn-single-main {
    padding: 18px 15px;
    border-radius: 14px;
  }

  .tnn-single-featured {
    margin-bottom: 18px;
    border-radius: 12px;
  }

  .tnn-single-lead {
    font-size: 0.98rem;
    line-height: 1.6;
    padding: 13px 15px;
    margin-bottom: 18px;
  }

  .tnn-toc-box {
    padding: 14px 15px;
    margin-bottom: 20px;
  }

  .tnn-article-content {
    font-size: 0.97rem;
    line-height: 1.75;
    overflow-wrap: break-word;
  }

  .tnn-article-content h2 {
    font-size: 1.25rem;
    margin: 24px 0 10px;
  }

  .tnn-article-content h3 {
    font-size: 1.08rem;
    margin: 18px 0 8px;
  }

  .tnn-inline-cta {
    padding: 20px 16px;
    gap: 14px;
  }

  .tnn-inline-cta h3 {
    font-size: 1.1rem;
  }

  .tnn-inline-cta-action,
  .tnn-inline-cta-action .btn {
    width: 100%;
    justify-content: center;
  }

  .tnn-sidebar-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .tnn-related-wrap {
    margin-top: 36px;
    padding-top: 28px;
  }

  /* Footer & Nút nổi Zalo/Chaty + Popup Modal */
  .site-footer {
    padding: 42px 0 84px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 28px;
  }

  .footer-campuses {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0;
  }

  .floating-zalo {
    bottom: 16px;
    left: 14px;
  }

  .floating-zalo a {
    width: 48px;
    height: 48px;
  }

  .floating-zalo img {
    width: 28px;
    height: 28px;
  }

  .floating-chaty {
    bottom: 16px;
    right: 14px;
  }

  .chaty-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-dialog {
    padding: 24px 18px;
    border-radius: 16px;
    max-height: 90dvh;
  }
}

/* 3. ĐỒNG BỘ CHẾ ĐỘ XEM THỬ MOBILE TRONG VISUAL EDITOR (body.tnn-device-mobile) */
body.tnn-device-mobile .container,
body.tnn-device-mobile .container-fluid {
  padding-left: 16px;
  padding-right: 16px;
}

body.tnn-device-mobile .section {
  padding: 40px 0;
}

body.tnn-device-mobile .grid-2,
body.tnn-device-mobile .grid-3,
body.tnn-device-mobile .grid-4,
body.tnn-device-mobile .reasons-grid,
body.tnn-device-mobile .testimonials-grid,
body.tnn-device-mobile .schedule-campus-grid,
body.tnn-device-mobile .zalo-support-grid,
body.tnn-device-mobile .footer-top,
body.tnn-device-mobile .footer-campuses,
body.tnn-device-mobile .tnn-single-layout {
  grid-template-columns: 1fr;
  gap: 20px;
}

body.tnn-device-mobile [data-tnn-section-id="index-04"] .grid-4,
body.tnn-device-mobile [data-tnn-section-id="video-02"] .grid-4,
body.tnn-device-mobile .teacher-grid,
body.tnn-device-mobile .gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

body.tnn-device-mobile .stats-row,
body.tnn-device-mobile .counters-row {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px;
  padding: 12px 8px;
}

body.tnn-device-mobile .schedule-item {
  flex-direction: column;
  align-items: stretch;
}

body.tnn-device-mobile .schedule-item .btn {
  width: 100%;
}

/* 4. MÀN HÌNH ĐIỆN THOẠI NHỎ (<= 380px) */
@media (max-width: 380px) {
  .site-header .btn-test-free {
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  .site-header .navbar-brand img {
    max-height: 36px;
  }

  .stats-row,
  .counters-row {
    grid-template-columns: 1fr !important;
  }
}


