/*
Theme Name: Flatsome Child
Theme URI: https://bodamgiare.vn/
Description: Child theme giao diện Khang Bảo Nam theo bố cục hiện đại
Author: Khang Bảo Nam
Author URI: https://bodamgiare.vn/
Template: flatsome
Version: 1.0.1
Text Domain: flatsome-child
*/

/* -------------------------------------------------------------
   KBN Color Palette & Global Variables (Mục 4)
   Xanh dương đậm chủ đạo: #0c51a0
   Điểm nhấn đỏ: #ec2028
   Nền sáng/xám nhạt: #f8f9fa / #ffffff (Loại bỏ hoàn toàn xanh lá cũ theo Mục 2)
------------------------------------------------------------- */
:root {
  --kbn-primary: #0c51a0;
  --kbn-primary-dark: #083c77;
  --kbn-primary-light: #156ad1;
  --kbn-accent: #ec2028;
  --kbn-accent-hover: #c9151c;
  --kbn-text: #222222;
  --kbn-text-muted: #555555;
  --kbn-bg-light: #f8f9fa;
  --kbn-bg-white: #ffffff;
  --kbn-border: #e2e8f0;
  --kbn-font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--kbn-font-family) !important;
  font-size: 16px !important;
  color: var(--kbn-text) !important;
  line-height: 1.6;
  background-color: var(--kbn-bg-white) !important;
  -webkit-font-smoothing: antialiased;
}

/* Ép nền trắng cho toàn bộ các khung nội dung (Mục 2 của review) */
#main,
#wrapper,
.page-wrapper,
.content-area,
.shop-container,
.product-main {
  background-color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6,
.nav > li > a,
.button,
button,
input,
select,
textarea {
  font-family: var(--kbn-font-family) !important;
}

/* Loại bỏ màu xanh lá cũ khỏi tiêu đề và liên kết sản phẩm (Mục 2 của review) */
.woocommerce-loop-product__title,
.product-title,
.product-title a,
.name a,
h1.product-title {
  color: #1a202c !important;
}

.woocommerce-loop-product__title:hover,
.product-title a:hover,
.name a:hover {
  color: var(--kbn-primary) !important;
}

/* Ẩn triệt để khối "Hỗ trợ" chat cũ và nút gọi cũ (Mục 3 của review) */
.uchat,
#fb-root,
.fb-customerchat,
.quick-call-button,
.call-now-button,
#quick-call-button,
.qcb-container {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* -------------------------------------------------------------
   Header Mới (Mục 1 của review)
   1. Thanh trên
   2. Dòng Logo + 1 Ô tìm kiếm + 1 Hotline
   3. Dòng Menu nền #0c51a0, tất cả 8 mục trên 1 dòng ở 1280px & 1440px
------------------------------------------------------------- */

/* Header Background Container should not intercept pointer events */
.header-bg-container,
.header-bg-color {
  pointer-events: none !important;
}

/* 1. Header Top Bar */
.kbn-header-top {
  position: relative;
  z-index: 10;
  background-color: var(--kbn-primary-dark);
  color: #ffffff;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kbn-header-top .container {
  max-width: 1280px;
}

.kbn-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kbn-topbar-left {
  color: #d1d5db;
  font-size: 13px;
}

.kbn-topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.kbn-topbar-link {
  color: #e5e7eb !important;
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.kbn-topbar-link:hover {
  color: #ffdd80 !important;
}

/* 2. Header Main Row (Logo + Search + Hotline) */
.kbn-header-main {
  position: relative;
  z-index: 10;
  background: #ffffff;
  padding: 14px 0;
  border-bottom: 1px solid var(--kbn-border);
}

.kbn-header-main .container {
  max-width: 1280px;
}

.kbn-header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.kbn-header-logo img {
  max-height: 54px;
  width: auto;
  display: block;
}

.kbn-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--kbn-primary);
  text-decoration: none;
}

.kbn-header-search {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
}

.kbn-header-search form {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

.kbn-header-search input[type="search"] {
  width: 100% !important;
  border: 2px solid var(--kbn-primary) !important;
  border-radius: 24px !important;
  padding: 9px 44px 9px 18px !important;
  font-size: 14px !important;
  outline: none !important;
  box-shadow: none !important;
  background: #ffffff !important;
  color: var(--kbn-text) !important;
  margin: 0 !important;
}

.kbn-header-search button {
  position: absolute;
  right: 4px;
  background: var(--kbn-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: background 0.2s ease;
}

.kbn-header-search button:hover {
  background: var(--kbn-primary-dark) !important;
}

.kbn-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.kbn-header-hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #fee2e2;
  border-radius: 24px;
  background: #fff5f5;
  transition: all 0.2s ease;
}

.kbn-header-hotline:hover {
  background: #fee2e2;
  border-color: var(--kbn-accent);
}

.kbn-hotline-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--kbn-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kbn-hotline-text {
  display: flex;
  flex-direction: column;
}

.kbn-hotline-label {
  font-size: 11px;
  color: var(--kbn-text-muted);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.1;
}

.kbn-hotline-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--kbn-accent);
  line-height: 1.2;
}

.kbn-header-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--kbn-primary) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--kbn-border);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.kbn-header-cart:hover {
  border-color: var(--kbn-primary);
  background: #f0f7ff;
}

.kbn-cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.kbn-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--kbn-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3. Header Bottom Navigation Bar (Nền #0c51a0, 8 mục trên 1 dòng) */
.kbn-header-bottom {
  position: relative;
  z-index: 10;
  background-color: var(--kbn-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.kbn-header-bottom .container {
  max-width: 1280px;
}

.kbn-main-nav-wrap {
  flex: 1 1 auto;
  margin: 0 16px;
  display: flex;
  justify-content: center;
}

.kbn-main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap !important;
}

.kbn-main-nav > li {
  position: relative;
  margin: 0;
}

.kbn-main-nav > li > a {
  display: block;
  padding: 8px 10px;
  color: #1e293b !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.kbn-main-nav > li:hover > a,
.kbn-main-nav > li.current-menu-item > a {
  background-color: rgba(12, 81, 160, 0.08) !important;
  color: var(--kbn-primary) !important;
}

/* Dropdown Sub-menu */
.kbn-main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 1000;
  border-top: 3px solid var(--kbn-accent);
  text-align: left;
}

.kbn-main-nav > li:hover > .sub-menu {
  display: block;
}

.kbn-main-nav .sub-menu li {
  margin: 0;
  padding: 0;
}

.kbn-main-nav .sub-menu li a {
  display: block;
  padding: 10px 18px;
  color: #222222 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.kbn-main-nav .sub-menu li a:hover {
  background-color: #f1f5f9;
  color: var(--kbn-primary) !important;
}

/* Ẩn các khối header cũ của Flatsome có thể còn sót lại */
.header-bottom:not(.kbn-header-bottom),
.top-bar-nav {
  display: none !important;
}

/* -------------------------------------------------------------
   Buttons: Min 44px for Touch Accessibility (Mục 4)
------------------------------------------------------------- */
.kbn-btn,
.button,
button,
input[type="submit"],
input[type="button"] {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.kbn-btn-primary {
  background-color: var(--kbn-accent) !important;
  color: #ffffff !important;
  border: 2px solid var(--kbn-accent) !important;
}

.kbn-btn-primary:hover {
  background-color: var(--kbn-accent-hover) !important;
  border-color: var(--kbn-accent-hover) !important;
  color: #ffffff !important;
}

.kbn-btn-secondary {
  background-color: var(--kbn-primary) !important;
  color: #ffffff !important;
  border: 2px solid var(--kbn-primary) !important;
}

.kbn-btn-secondary:hover {
  background-color: var(--kbn-primary-dark) !important;
  border-color: var(--kbn-primary-dark) !important;
  color: #ffffff !important;
}

.kbn-btn-outline {
  background-color: transparent !important;
  color: var(--kbn-primary) !important;
  border: 2px solid var(--kbn-primary) !important;
}

.kbn-btn-outline:hover {
  background-color: var(--kbn-primary) !important;
  color: #ffffff !important;
}

/* -------------------------------------------------------------
   Homepage Components (Mục 5.3)
------------------------------------------------------------- */

/* 1. Main Hero Slider Section (Slider Đa Slide: KBN - Kenwood - Motorola) */
.kbn-hero-slider-section {
  position: relative;
  overflow: hidden;
  background: #062b53;
  width: 100%;
}

.kbn-slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.kbn-slides-track {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.kbn-slide {
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  padding: 48px 0 54px;
  background: linear-gradient(135deg, #0b4582 0%, #062b53 100%);
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.kbn-slide[data-index="1"] {
  background: linear-gradient(135deg, #0c4d92 0%, #083464 100%);
}

.kbn-slide[data-index="2"] {
  background: linear-gradient(135deg, #093c72 0%, #052445 100%);
}

.kbn-slide--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.kbn-hero-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

/* Badge uy tín ở đầu banner */
.kbn-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #6ee7b7;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
  max-width: 100%;
  box-sizing: border-box;
}

.kbn-hero-badge .kbn-badge-icon {
  flex-shrink: 0;
  color: #22c55e;
}

.kbn-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.28;
  margin: 0 0 14px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.kbn-hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin: 0 0 18px;
}

/* Danh sách cam kết chính hãng */
.kbn-hero-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kbn-hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #f1f5f9;
  line-height: 1.45;
}

.kbn-hero-checklist li svg {
  flex-shrink: 0;
  color: #22c55e;
  margin-top: 1px;
}

.kbn-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Khối hình ảnh sản phẩm chủ đạo (Showcase) */
.kbn-hero-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Slide 1: Trio KBN - Kenwood - Motorola */
.kbn-showcase-trio {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.kbn-trust-seal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(34, 197, 94, 0.6);
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.kbn-trust-seal strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #22c55e;
  letter-spacing: 0.5px;
}

.kbn-trust-seal span {
  display: block;
  font-size: 11px;
  color: #e2e8f0;
  font-weight: 500;
}

.kbn-trio-items {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.kbn-trio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  max-width: 135px;
  transition: transform 0.25s ease;
}

.kbn-trio-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.kbn-trio-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.kbn-trio-card--center {
  max-width: 155px;
  z-index: 2;
  transform: translateY(-8px);
}

.kbn-trio-card--center .kbn-trio-thumb {
  padding: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid #38bdf8;
}

.kbn-trio-name {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 8px;
  border-radius: 4px;
}

.kbn-trio-name--highlight {
  background: #0284c7;
  color: #ffffff;
}

/* Slide 2 & 3: Duo Showcase */
.kbn-showcase-duo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.kbn-tech-spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.kbn-tech-spec-badge--warning {
  border-color: rgba(245, 158, 11, 0.6);
  color: #fbbf24;
}

.kbn-spec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  display: inline-block;
}

.kbn-spec-dot--warning {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.kbn-duo-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.kbn-duo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 1 165px;
}

.kbn-duo-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.kbn-duo-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Nút điều hướng Prev / Next */
.kbn-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 44px !important;
  max-height: 44px !important;
  line-height: 1 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  padding: 0 !important;
}

.kbn-slider-nav:hover {
  background: rgba(255, 255, 255, 0.38) !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.08);
}

.kbn-slider-prev {
  left: 20px;
}

.kbn-slider-next {
  right: 20px;
}

/* Chấm tròn Dots chuyển slide */
.kbn-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.kbn-slider-dot {
  width: 10px !important;
  height: 10px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 28px !important;
  max-height: 10px !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 5px !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.4) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.kbn-slider-dot--active {
  width: 28px !important;
  background: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7) !important;
}

/* 2. Fields of Activity (4 boxes) */
.kbn-fields-section {
  padding: 50px 0 60px 0;
  background: var(--kbn-bg-light);
}

.kbn-section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.kbn-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--kbn-primary);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.kbn-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--kbn-accent);
  border-radius: 2px;
}

.kbn-fields-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.kbn-field-card {
  background: #ffffff;
  border: 1px solid var(--kbn-border);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.kbn-field-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(12, 81, 160, 0.12);
  border-color: var(--kbn-primary);
}

.kbn-field-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 14px;
  color: var(--kbn-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kbn-field-icon svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
}

.kbn-field-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--kbn-primary);
  margin-bottom: 10px;
}

.kbn-field-desc {
  font-size: 15px;
  color: var(--kbn-text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

/* 3. Solutions by Industry */
.kbn-solutions-section {
  padding: 60px 0;
  background: #ffffff;
}

.kbn-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.kbn-solution-card {
  background: #ffffff;
  border: 1px solid var(--kbn-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kbn-solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--kbn-primary);
}

.kbn-solution-icon-wrap {
  position: relative;
  width: 100%;
  padding: 30px 20px 20px 20px;
  background-color: #f0f6fc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--kbn-border);
}

.kbn-sol-svg {
  width: 52px;
  height: 52px;
  color: var(--kbn-primary);
  transition: transform 0.25s ease, color 0.25s ease;
}

.kbn-solution-card:hover .kbn-sol-svg {
  transform: scale(1.1);
  color: var(--kbn-accent);
}

.kbn-solution-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kbn-solution-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--kbn-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.kbn-solution-excerpt {
  font-size: 15px;
  color: var(--kbn-text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* 4. Featured Products with Brand Tabs (Mục 2 review) */
.kbn-products-section {
  padding: 60px 0;
  background: var(--kbn-bg-light);
}

.kbn-brand-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.kbn-tab-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--kbn-border);
  background: #ffffff;
  color: var(--kbn-text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.kbn-tab-btn:hover,
.kbn-tab-btn.active {
  background: var(--kbn-primary);
  color: #ffffff !important;
  border-color: var(--kbn-primary);
}

.kbn-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Thẻ sản phẩm: Tỉ lệ 1:1, object-fit contain, tiêu đề dưới ảnh, bằng chiều cao */
.kbn-product-card {
  background: #ffffff;
  border: 1px solid var(--kbn-border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  height: 100%;
  position: relative;
}

.kbn-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--kbn-primary);
}

.kbn-product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: #fafafa;
  border-radius: 6px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kbn-product-img a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px;
}

.kbn-product-img img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.kbn-product-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kbn-product-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kbn-product-title a {
  color: #1a202c !important;
  text-decoration: none;
}

.kbn-product-title a:hover {
  color: var(--kbn-primary) !important;
}

.kbn-product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--kbn-accent) !important;
  margin-bottom: 14px;
}

.kbn-product-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* 5. Why Choose Section (3 truthful points - Mục 5.3) */
.kbn-why-section {
  padding: 60px 0;
  background: #ffffff;
}

.kbn-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.kbn-why-item {
  background: var(--kbn-bg-light);
  border-radius: 8px;
  padding: 28px 24px;
  border-left: 4px solid var(--kbn-primary);
}

.kbn-why-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--kbn-primary);
  margin-bottom: 12px;
}

.kbn-why-desc {
  font-size: 15px;
  color: var(--kbn-text-muted);
  line-height: 1.6;
}

/* 6. News Section */
.kbn-news-section {
  padding: 60px 0;
  background: var(--kbn-bg-light);
}

.kbn-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.kbn-news-card {
  background: #ffffff;
  border: 1px solid var(--kbn-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.kbn-news-thumb {
  height: 180px;
  overflow: hidden;
  background: var(--kbn-bg-light);
}

.kbn-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kbn-news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kbn-news-date {
  font-size: 13px;
  color: var(--kbn-text-muted);
  margin-bottom: 8px;
}

.kbn-news-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.kbn-news-title a {
  color: #1a202c !important;
  text-decoration: none;
}

.kbn-news-title a:hover {
  color: var(--kbn-primary) !important;
}

.kbn-news-excerpt {
  font-size: 15px;
  color: var(--kbn-text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* 7. Auto-hiding Partner & Certificate Sections (Quy tắc 11) */
.kbn-empty-section {
  display: none !important;
}

/* 8. Contact CTA Section */
.kbn-cta-section {
  background: linear-gradient(135deg, #0c51a0 0%, #083c77 100%);
  color: #ffffff;
  padding: 50px 0;
}

.kbn-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.kbn-cta-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.kbn-cta-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 20px;
}

.kbn-cta-hotlines {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.kbn-cta-hotline {
  font-size: 22px;
  font-weight: 700;
  color: #ffdd80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.kbn-cta-hotline:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.kbn-cta-form {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: var(--kbn-text);
}

/* Form Styling */
.kbn-form-row {
  margin-bottom: 14px;
}

.kbn-form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--kbn-text);
  margin-bottom: 4px;
}

.kbn-input,
.kbn-textarea {
  width: 100% !important;
  border: 1px solid var(--kbn-border) !important;
  border-radius: 4px !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  font-family: var(--kbn-font-family) !important;
  background: #ffffff !important;
  color: var(--kbn-text) !important;
  box-sizing: border-box !important;
}

.kbn-input:focus,
.kbn-textarea:focus {
  border-color: var(--kbn-primary) !important;
  outline: none !important;
}

.kbn-textarea {
  min-height: 90px !important;
  resize: vertical !important;
}

/* -------------------------------------------------------------
   Footer (Mục 5.2)
------------------------------------------------------------- */
.kbn-footer {
  background-color: #0d1b2a;
  color: #e0e1dd;
  padding: 50px 0 20px 0;
  font-size: 15px;
}

.kbn-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.kbn-footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.kbn-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--kbn-accent);
}

.kbn-footer-col p {
  color: #c5c9d1;
  margin-bottom: 10px;
  line-height: 1.6;
}

.kbn-footer-col a {
  color: #c5c9d1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.kbn-footer-col a:hover {
  color: #ffffff;
}

.kbn-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kbn-footer-links li {
  margin-bottom: 8px;
}

.kbn-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #8d99ae;
}

/* -------------------------------------------------------------
   Single Product & WooCommerce Adjustments (Mục 5.4)
------------------------------------------------------------- */
.kbn-consult-box {
  background: #f0f7ff;
  border: 1px solid #b9d8fc;
  border-radius: 6px;
  padding: 18px;
  margin: 20px 0;
}

.kbn-consult-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--kbn-primary);
  margin-bottom: 8px;
}

.kbn-consult-phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--kbn-accent);
  display: inline-block;
  margin-bottom: 8px;
}

.kbn-warranty-badge {
  display: inline-flex;
  align-items: center;
  background: #eef8ee;
  color: #2b7a2b;
  border: 1px solid #bce2bc;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* -------------------------------------------------------------
   Floating Call Button (Desktop - Thu gọn theo Mục 4 của review)
   và Mobile Bottom Bar
------------------------------------------------------------- */
.kbn-floating-call {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.kbn-floating-call a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--kbn-accent);
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(236, 32, 40, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
}

.kbn-floating-call a.kbn-fab-call-2 {
  background-color: var(--kbn-primary);
  box-shadow: 0 4px 16px rgba(12, 81, 160, 0.4);
}

.kbn-floating-call .kbn-floating-text {
  display: none;
  white-space: nowrap;
  font-weight: 700;
  font-size: 15px;
  margin-left: 8px;
}

.kbn-floating-call a:hover {
  width: auto;
  border-radius: 26px;
  padding: 0 18px;
  box-shadow: 0 6px 20px rgba(236, 32, 40, 0.55);
}

.kbn-floating-call a.kbn-fab-call-2:hover {
  box-shadow: 0 6px 20px rgba(12, 81, 160, 0.65);
}

.kbn-floating-call a:hover .kbn-floating-text {
  display: inline;
}

.kbn-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #ffffff;
  border-top: 1px solid var(--kbn-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.kbn-mobile-bar-inner {
  display: flex;
  width: 100%;
}

.kbn-mobile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
}

.kbn-mobile-call {
  background: var(--kbn-accent);
  color: #ffffff !important;
}

.kbn-mobile-zalo {
  background: #0068ff;
  color: #ffffff !important;
}

/* -------------------------------------------------------------
   Responsive Breakpoints (Mobile First - 360px Safe - Mục 4)
------------------------------------------------------------- */
@media (max-width: 991px) {
  .kbn-hero-banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .kbn-hero-actions {
    justify-content: center;
  }
  .kbn-fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kbn-solutions-grid,
  .kbn-why-grid,
  .kbn-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kbn-cta-inner {
    grid-template-columns: 1fr;
  }
  .kbn-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Menu Burger Button: Ẩn trên desktop (> 1024px), chỉ hiện trên tablet & mobile */
.kbn-menu-burger,
.mobile-nav-toggle,
.menu-button {
  display: none !important;
}

@media (max-width: 1024px) {
  .kbn-menu-burger,
  .mobile-nav-toggle,
  .menu-button {
    color: var(--kbn-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 6px !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
  }

  .kbn-main-nav-wrap {
    display: none !important;
  }
}

.kbn-menu-burger svg,
.mobile-nav-toggle svg {
  fill: var(--kbn-primary) !important;
  width: 24px !important;
  height: 24px !important;
}

.kbn-menu-burger:hover,
.mobile-nav-toggle:hover {
  background: rgba(12, 81, 160, 0.08) !important;
}

/* Lớp phủ mở menu: Đen trong suốt, không đỏ, không xanh lá (Mục 4d) */
.main-menu-overlay,
.mfp-bg,
.off-canvas-overlay,
.nav-mobile-overlay,
.overlay {
  background-color: rgba(0, 0, 0, 0.6) !important;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 56px; /* Chừa khoảng trống cho thanh mobile bar */
  }
  /* Ẩn thanh trên topbar ở mobile để tránh xuống dòng chật chội (Mục 4a) */
  .kbn-header-top {
    display: none !important;
  }
  .kbn-floating-call {
    display: flex !important;
    bottom: 20px !important;
    right: 18px !important;
    gap: 10px !important;
  }
  .kbn-floating-call a {
    width: 48px !important;
    height: 48px !important;
  }
  /* Hero Slider Mobile */
  .kbn-slide {
    padding: 24px 0 38px !important;
  }
  .kbn-hero-banner-inner {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    text-align: left !important;
  }
  .kbn-hero-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
  }
  .kbn-hero-subtitle {
    margin-bottom: 12px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
  .kbn-hero-badge {
    font-size: 10px !important;
    padding: 4px 8px !important;
    gap: 5px !important;
    margin-bottom: 8px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
  .kbn-hero-checklist {
    gap: 5px !important;
    margin-bottom: 14px !important;
  }
  .kbn-hero-checklist li {
    font-size: 12px !important;
    line-height: 1.35 !important;
    gap: 6px !important;
  }
  .kbn-hero-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
    justify-content: flex-start !important;
  }
  .kbn-hero-actions .kbn-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 9px 4px !important;
    font-size: 12px !important;
    text-align: center !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  .kbn-slider-nav {
    display: none !important;
  }
  .kbn-slider-dots {
    bottom: 10px !important;
    gap: 6px !important;
  }
  .kbn-showcase-trio {
    margin-top: 2px !important;
  }
  .kbn-trust-seal {
    padding: 4px 10px !important;
    margin-bottom: 8px !important;
    gap: 6px !important;
  }
  .kbn-trust-seal strong {
    font-size: 10.5px !important;
  }
  .kbn-trust-seal span {
    font-size: 9.5px !important;
  }
  .kbn-trio-items {
    gap: 6px !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .kbn-trio-card {
    flex: 0 1 84px !important;
    max-width: 86px !important;
  }
  .kbn-trio-card--center {
    flex: 0 1 94px !important;
    max-width: 96px !important;
    transform: translateY(-4px) !important;
  }
  .kbn-trio-thumb {
    padding: 6px !important;
    border-radius: 8px !important;
  }
  .kbn-trio-name {
    font-size: 9px !important;
    padding: 2px 4px !important;
    margin-top: 4px !important;
  }
  .kbn-showcase-duo {
    margin-top: 2px !important;
  }
  .kbn-tech-spec-badge {
    padding: 4px 10px !important;
    font-size: 9.5px !important;
    margin-bottom: 8px !important;
  }
  .kbn-duo-items {
    gap: 8px !important;
    justify-content: center !important;
  }
  .kbn-duo-card {
    flex: 0 1 100px !important;
    max-width: 105px !important;
  }
  .kbn-duo-thumb {
    padding: 6px !important;
    border-radius: 8px !important;
  }
  .kbn-fields-grid,
  .kbn-solutions-grid,
  .kbn-why-grid,
  .kbn-news-grid {
    grid-template-columns: 1fr;
  }
  .kbn-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .kbn-header-main {
    padding: 10px 0 !important;
  }
  .kbn-header-main-inner {
    gap: 10px !important;
  }
  /* Logo đủ rộng, hiển thị rõ ràng trên màn hình 360px (Mục 4b) */
  .kbn-header-logo {
    flex: 1 1 auto !important;
    text-align: left !important;
  }
  .kbn-header-logo img {
    max-height: 44px !important;
    max-width: 160px !important;
    min-width: 120px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  /* Thu gọn hotline và giỏ hàng thành icon tròn trên mobile để nhường chỗ cho logo */
  .kbn-hotline-text {
    display: none !important;
  }
  .kbn-header-hotline {
    padding: 6px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }
  .kbn-cart-text {
    display: none !important;
  }
  .kbn-header-cart {
    padding: 6px 10px !important;
  }
  .kbn-header-right {
    gap: 8px !important;
  }
}

/* ==========================================================================
   Khối Video thực tế (kbn-videos-section) & Hình ảnh khách hàng
   ========================================================================== */
.kbn-videos-section {
  padding: 60px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.kbn-section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.kbn-section-desc {
  font-size: 14.5px;
  color: #64748b;
  max-width: 680px;
  margin: 10px auto 0 auto;
  line-height: 1.6;
}

.kbn-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.kbn-video-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kbn-video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border-color: #38bdf8;
}

.kbn-video-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #0f172a;
  overflow: hidden;
}

.kbn-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.kbn-video-duration {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.kbn-video-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(2, 132, 199, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.kbn-video-body {
  padding: 16px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kbn-video-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.kbn-video-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex: 1;
}

.kbn-video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  margin-top: auto;
}

.kbn-video-link:hover {
  color: #0369a1;
  text-decoration: none;
  transform: translateX(3px);
}

/* Khách hàng đã triển khai (6 cards) */
.kbn-customers-section {
  padding: 50px 0;
}

.kbn-customers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.kbn-customer-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kbn-customer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.kbn-customer-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.kbn-customer-card figcaption {
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
  line-height: 1.4;
  background: #ffffff;
}

/* Video trong trang chi tiết sản phẩm WooCommerce */
.kbn-product-video-tab-inner {
  padding: 15px 0;
}

.kbn-product-video-heading {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.kbn-product-video-sub {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
}

.kbn-product-video-box {
  max-width: 480px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  background: #000;
}

.kbn-single-video-player {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: 600px;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Responsive cho khối Video & Khách hàng */
@media (max-width: 1024px) {
  .kbn-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .kbn-videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .kbn-customers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .kbn-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .kbn-videos-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .kbn-customers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .kbn-customer-card figcaption {
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* ==========================================================================
   Khối Năng lực công ty (kbn-capability-section)
   ========================================================================== */
.kbn-capability-section {
  padding: 60px 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.kbn-capability-intro {
  text-align: center;
  color: #64748b;
  font-size: 15px;
  max-width: 760px;
  margin: -15px auto 35px auto;
  line-height: 1.6;
}

.kbn-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.kbn-cert-card {
  display: flex;
  gap: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kbn-cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(12, 81, 160, 0.1);
  border-color: #0c51a0;
}

.kbn-cert-thumb {
  flex: 0 0 160px;
  max-width: 160px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  display: block;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: opacity 0.2s;
}

.kbn-cert-thumb:hover {
  opacity: 0.9;
}

.kbn-cert-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.kbn-cert-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.kbn-cert-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #0c51a0;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.kbn-cert-facts {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  flex: 1;
}

.kbn-cert-facts li {
  margin-bottom: 6px;
  padding-left: 14px;
  position: relative;
}

.kbn-cert-facts li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0c51a0;
  font-weight: bold;
}

.kbn-cert-facts strong {
  color: #0f172a;
}

.kbn-cert-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.kbn-cert-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: #f0f7ff;
  color: #0c51a0 !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  border: 1px solid #bfdbfe;
  transition: all 0.2s ease;
}

.kbn-cert-links a:hover {
  background: #0c51a0;
  color: #ffffff !important;
  border-color: #0c51a0;
}

@media (max-width: 900px) {
  .kbn-capability-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .kbn-cert-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
  }
  .kbn-cert-thumb {
    max-width: 180px;
    margin-bottom: 15px;
  }
  .kbn-cert-facts li {
    text-align: left;
  }
  .kbn-cert-links {
    justify-content: center;
  }
}
