/*
Theme Name: KraftFloor Child
Theme URI: https://kraftfloorvietnam.com/
Description: Child theme of Blocksy for KraftFloor Vietnam
Author: KraftFloor
Author URI: https://kraftfloorvietnam.com/
Template: blocksy
Version: 1.0.1
*/

/* KRAFTFLOOR LIGHT THEME GLOBAL STYLES */
:root {
  /* Tích hợp với Bảng màu (Color Palette) của Blocksy Customizer */
  --kf-bg: var(--theme-palette-color-8, #ffffff);
  --kf-bg-alt: var(--theme-palette-color-7, #f8f9fa);

  /* Màu văn bản */
  --kf-text: var(--theme-palette-color-3, #222222);
  --kf-text-light: var(--theme-palette-color-4, #666666);

  /* Màu đen truyền thống (dùng cho Nút bấm chính, Tiêu đề lớn, Nền tối) - Đồng bộ với Màu 4 của Blocksy */
  --kf-black: var(--theme-palette-color-4, #111111);

  --kf-white: #ffffff;
  --kf-border: var(--theme-palette-color-6, #e0e0e0);

  /* Màu nhấn (Màu Gold trước đây) - Đồng bộ với Màu 1 (Màu chủ đạo) của Blocksy */
  --kf-gold: var(--theme-palette-color-1, #c5a059);

  --kf-accent: var(--theme-palette-color-2, #000000);
  --kf-font: "Inter", sans-serif;
}

/* 2. BASE STYLES & TYPOGRAPHY */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset cho sticky header */
}

body {
  font-family: var(--kf-font);
  background-color: var(--kf-bg);
  color: var(--kf-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-top: 5px;
  /* Kéo gần lại subtitle */
  margin-bottom: 50px;
  text-transform: uppercase;
  color: var(--kf-black);
}

.section-subtitle {
  font-size: 13px;
  color: var(--kf-gold);
  /* Tạo điểm nhấn bằng màu vàng gold */
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0;
  /* Xóa khoảng cách thừa */
  font-weight: 700;
  display: block;
}

.kf-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 1px;
}

.kf-btn-black {
  background-color: var(--kf-black);
  color: var(--kf-white);
  border: 1px solid var(--kf-black);
}

.kf-btn-black:hover {
  background-color: var(--kf-white);
  color: var(--kf-black);
}

.kf-btn-outline {
  background-color: transparent;
  color: var(--kf-black);
  border: none;
  border-bottom: 1px solid var(--kf-black);
  padding: 5px 0;
}

.kf-btn-outline:hover {
  color: var(--kf-text-light);
  border-color: var(--kf-text-light);
}

/* 1. HERO SLIDER SECTION */
.kf-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  /* Chạy full 90% màn hình */
  min-height: 600px;
  background-color: var(--kf-black);
  overflow: hidden;
}

.kf-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.2s ease-in-out,
    visibility 1.2s;
  z-index: 1;
}

.kf-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Hiệu ứng Ken Burns (zoom nhẹ) cho hình nền */
.kf-hero-slide.active {
  animation: kenBurns 10s linear forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

/* Lớp phủ gradient để nổi bật chữ */
.kf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.7) 35%,
      rgba(255, 255, 255, 0) 55%);
  z-index: 1;
}

.kf-hero-content-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 3;
}

.kf-hero-content {
  max-width: 700px;
}

.kf-hero-tagline {
  font-size: 16px;
  color: var(--kf-text-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
  letter-spacing: 2px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.kf-hero-title {
  font-size: 56px;
  font-weight: 900;
  color: var(--kf-black);
  line-height: 1.15;
  margin-bottom: 20px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}

.kf-hero-separator {
  width: 60px;
  height: 3px;
  background-color: var(--kf-black);
  margin-bottom: 20px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
}

.kf-hero-subtitle {
  font-size: 18px;
  color: #444444;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s;
}

.kf-btn-hero {
  display: inline-flex;
  align-items: center;
  padding: 18px 40px;
  background-color: var(--kf-black);
  color: var(--kf-white);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s,
    background-color 0.3s ease;
}

.kf-btn-hero:hover {
  background-color: #333333;
  color: var(--kf-white);
}

/* Kích hoạt animation khi slide active */
.kf-hero-slide.active .kf-hero-tagline,
.kf-hero-slide.active .kf-hero-title,
.kf-hero-slide.active .kf-hero-subtitle,
.kf-hero-slide.active .kf-btn-hero {
  opacity: 1;
  transform: translateY(0);
}

.kf-hero-slide.active .kf-hero-separator {
  opacity: 1;
  transform: scaleX(1);
}

/* Navigation Arrows */
.kf-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s;
  font-size: 20px;
  backdrop-filter: blur(5px);
}

.kf-hero-nav:hover {
  background: var(--kf-gold);
  border-color: var(--kf-gold);
}

.kf-hero-prev {
  left: 30px;
}

.kf-hero-next {
  right: 30px;
}

/* Dots Pagination */
.kf-hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.kf-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.kf-hero-dot.active,
.kf-hero-dot:hover {
  background: var(--kf-gold);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .kf-hero {
    height: 65vh;
    min-height: 480px;
    max-height: 580px;
  }

  .kf-hero-content-wrap {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .kf-hero-title {
    font-size: 36px;
  }

  .kf-hero-subtitle {
    font-size: 16px;
  }

  .kf-hero-nav {
    display: none;
  }

  .kf-hero-dots {
    bottom: 20px;
  }
}

/* 2. STATS SECTION (BLACK BAR) */
.kf-stats {
  background-color: var(--kf-black);
  color: var(--kf-white);
  padding: 40px 0;
}

.kf-stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  font-size: 32px;
  color: var(--kf-white);
}

.stat-text h4 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: var(--kf-white);
}

.stat-text p {
  font-size: 12px;
  text-transform: uppercase;
  margin: 0;
  color: #aaaaaa;
  letter-spacing: 1px;
}

/* 3. WOOCOMMERCE CUSTOM PRODUCTS SECTION */
.kf-products-section {
  padding: 100px 0;
  background-color: var(--kf-bg);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
  /* remove woo float clears */
}

li.product.kf-custom-product-card {
  background-color: var(--kf-white);
  border: 1px solid var(--kf-border);
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  width: 100% !important;
  position: relative;
  overflow: hidden;
}

li.product.kf-custom-product-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.kf-product-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.kf-product-image-box {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-bottom: 1px solid var(--kf-border);
}

.kf-product-image-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

li.product.kf-custom-product-card:hover .kf-product-image-box img {
  transform: scale(1.05);
}

.kf-product-overlay {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  text-align: center;
  transition: bottom 0.3s ease;
}

li.product.kf-custom-product-card:hover .kf-product-overlay {
  bottom: 20px;
}

.kf-btn-quickview {
  background-color: var(--kf-black);
  color: var(--kf-white);
  padding: 10px 20px;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
}

.kf-product-details {
  padding: 25px 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kf-product-sku {
  display: block;
  font-size: 12px;
  color: var(--kf-text-light);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.woocommerce ul.products li.product.kf-custom-product-card .woocommerce-loop-product__title.kf-product-title {
  color: var(--kf-black);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  padding: 0;
}

.kf-product-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--kf-black);
}

.kf-product-price del {
  color: var(--kf-text-light);
  font-weight: 400;
  margin-right: 5px;
}

/* 4. ABOUT SECTION */
.kf-about-section {
  padding: 100px 0;
  background-color: var(--kf-bg-alt);
}

.kf-about-split {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-content {
  flex: 1;
}

.about-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  color: var(--kf-black);
}

.about-desc {
  font-size: 16px;
  color: var(--kf-text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.about-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.about-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--kf-black);
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--kf-black);
}

.about-images {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 500px;
}

.about-img-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.about-img-main img,
.about-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5. TECH SECTION (V2 - Dark Theme with 3D Core) */
.kf-tech-section-v2 {
  padding: 100px 0;
  background-color: var(--kf-black);
  /* Dark theme */
  color: var(--kf-white);
  overflow-x: hidden;
}

.kf-tech-section-v2 .section-title {
  color: var(--kf-white);
  margin-bottom: 20px;
}

.tech-desc-main {
  color: var(--kf-text-light);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 60px;
}

.kf-tech-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  max-width: 100%;
}

.tech-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 2;
  min-width: 0;
  /* Fix flexbox overflow */
}

.tech-col-center {
  flex: 0 1 400px;
  /* Allow shrink on mobile */
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tech-center-image-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.tech-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle,
      rgba(197, 168, 128, 0.3) 0%,
      rgba(0, 0, 0, 0) 70%);
  z-index: 1;
}

.tech-3d-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s;
}

.tech-center-image-wrap:hover .tech-3d-image {
  transform: scale(1.05);
}

.tech-item {
  display: flex;
  align-items: flex-start;
  /* Changed from center to flex-start for better text alignment */
  gap: 25px;
  position: relative;
  transition: transform 0.3s;
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(197, 168, 128, 0.3);
}

.mt-spacing {
  margin-top: 30px;
}

.tech-item-left {
  text-align: right;
  flex-direction: row-reverse;
}

.tech-item-right {
  text-align: left;
}

.tech-icon-wrap {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(197, 168, 128, 0.1);
  border: 1px solid rgba(197, 168, 128, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kf-gold);
  font-size: 24px;
  font-weight: 800;
}

.tech-info {
  position: relative;
  flex-grow: 1;
}

.tech-info h3 {
  font-size: 18px;
  color: var(--kf-gold);
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.tech-info p {
  font-size: 14px;
  color: #b0b0b0;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .kf-tech-layout {
    flex-direction: column;
  }

  .tech-col-left,
  .tech-col-right {
    width: 100%;
    max-width: 600px;
  }

  .tech-item-left {
    text-align: left;
    flex-direction: row;
  }

  .tech-col-center {
    order: -1;
    margin-bottom: 40px;
    width: 100%;
  }
}

/* 6. PROJECTS SECTION */
.kf-projects-section {
  padding: 100px 0;
  background-color: var(--kf-bg-alt);
}

.kf-project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.kf-project-card {
  background-color: var(--kf-white);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.kf-project-card:hover {
  transform: translateY(-5px);
}

.project-img {
  position: relative;
  padding-top: 66%;
  /* 3:2 Aspect Ratio */
  overflow: hidden;
}

.project-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.kf-project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--kf-black);
}

.project-info p {
  font-size: 14px;
  color: var(--kf-text-light);
  margin: 0;
}

/* 7. BRANDS / CERTIFICATES SECTION */
.kf-brands-section {
  padding: 60px 0;
  background-color: var(--kf-white);
  border-top: 1px solid var(--kf-border);
  overflow: hidden;
}

.kf-brands-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.kf-brands-slider::before,
.kf-brands-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.kf-brands-slider::before {
  left: 0;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 100%);
}

.kf-brands-slider::after {
  right: 0;
  background: linear-gradient(to left,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 100%);
}

.kf-brands-track {
  display: inline-flex;
  align-items: center;
  gap: 120px;
  animation: scrollBrands 30s linear infinite;
  padding-left: 120px;
}

.kf-brands-track:hover {
  animation-play-state: paused;
}

@keyframes scrollBrands {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.brand-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #999;
  cursor: pointer;
  width: 220px;
  height: 110px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.4s ease;
  box-sizing: border-box;
  padding: 15px;
}

.brand-item svg {
  max-height: 45px;
  width: auto;
}

.brand-item:hover {
  color: var(--kf-gold);
  transform: translateY(-5px);
  border-color: var(--kf-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.brand-item img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.brand-item:hover img {
  transform: scale(1.05);
}

/* 8. FOOTER */
.kf-custom-footer {
  background-color: #1a1a1a;
  color: #e0e0e0;
  padding-top: 60px;
  font-size: 15px;
  line-height: 1.8;
  word-break: break-word;
}

.kf-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 1200px) {
  .kf-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .kf-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.kf-footer-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 25px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

.kf-footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--kf-gold);
}

.kf-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kf-footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.kf-footer-contact li svg {
  margin-top: 4px;
  margin-right: 12px;
  color: var(--kf-gold);
  flex-shrink: 0;
}

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

.kf-footer-links li {
  margin-bottom: 12px;
}

.kf-footer-links a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
}

.kf-footer-links a:hover {
  color: var(--kf-gold);
  transform: translateX(5px);
}

/* Facebook Box Styling */
.kf-fb-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #dddfe2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.kf-fb-fallback-card {
  border: 1px solid #d8dbe1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.kf-fb-fallback-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #eceef1;
}

.kf-fb-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f2f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kf-fb-fallback-meta strong {
  display: block;
  color: #1d2129;
  font-size: 24px;
  line-height: 1.2;
}

.kf-fb-fallback-meta span {
  color: #65676b;
  font-size: 14px;
}

.kf-fb-fallback-actions {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid #eceef1;
}

.kf-fb-btn-primary,
.kf-fb-btn-secondary {
  flex: 1;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 700;
}

.kf-fb-btn-primary {
  background: #1877f2;
  color: #fff;
}

.kf-fb-btn-secondary {
  background: #f0f2f5;
  color: #1d2129;
}

.kf-fb-fallback-content {
  max-height: 120px;
  overflow-y: auto;
  padding: 14px 12px;
  color: #050505;
  line-height: 1.6;
  font-size: 15px;
}

.kf-fb-fallback-link {
  display: inline-block;
  margin: 10px 12px 12px;
  color: #1877f2;
  text-decoration: none;
  font-size: 14px;
}

@media (max-width: 767px) {
  .kf-fb-box {
    padding: 10px;
  }

  .kf-fb-fallback-meta strong {
    font-size: 20px;
  }

  .kf-fb-fallback-content {
    max-height: 100px;
    font-size: 14px;
  }
}

/* Footer Bottom */
.kf-footer-bottom {
  background-color: #111111;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #999999;
}

.kf-footer-bottom p {
  margin: 0;
}

/* 7. NEWS SECTION */
.kf-news-section {
  padding: 0px 0;
  background-color: var(--kf-bg);
}

/* ==========================================================================
   BLOG LAYOUT (Đã xóa để dùng mặc định của Blocksy)
   ========================================================================== */

.kf-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.kf-news-card {
  background-color: var(--kf-white);
  border: 1px solid var(--kf-border);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.kf-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.kf-news-thumbnail {
  position: relative;
  padding-top: 66%;
  /* 3:2 aspect ratio */
  overflow: hidden;
}

.kf-news-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.kf-news-card:hover .kf-news-thumbnail img {
  transform: scale(1.05);
}

.kf-news-date {
  position: absolute;
  bottom: -15px;
  right: 20px;
  background: var(--kf-black);
  color: var(--kf-gold);
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.kf-news-date .day {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.kf-news-date .month {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
}

.kf-news-content {
  padding: 35px 25px 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.kf-news-title a {
  color: var(--kf-black);
  text-decoration: none;
  transition: color 0.3s;
}

.kf-news-title a:hover {
  color: var(--kf-gold);
}

.kf-news-excerpt {
  color: var(--kf-text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.kf-news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kf-black);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.kf-news-readmore svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.kf-news-readmore:hover {
  color: var(--kf-gold);
}

.kf-news-readmore:hover svg {
  transform: translateX(5px);
}

@media (max-width: 992px) {
  .kf-about-split {
    flex-direction: column;
  }

  .about-images {
    height: auto;
  }

  .kf-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  .kf-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* Banner Hero – mobile: cân bằng khoảng cách + gradient đủ đọc chữ */
  .kf-hero-content-wrap {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .kf-hero-tagline {
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }

  .kf-hero-title {
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 18px;
  }

  .kf-hero-separator {
    margin-bottom: 18px;
  }

  .kf-hero-subtitle {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 28px;
    color: #333;
  }

  .kf-btn-hero {
    padding: 14px 28px;
    font-size: 13px;
  }

  .kf-hero-overlay {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.9) 22%,
        rgba(255, 255, 255, 0.78) 42%,
        rgba(255, 255, 255, 0.45) 58%,
        rgba(255, 255, 255, 0.12) 72%,
        transparent 85%);
  }

  .kf-hero-dots {
    bottom: 18px;
  }

  .kf-stats-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .kf-brands-grid {
    justify-content: center;
  }

  .kf-project-grid {
    grid-template-columns: 1fr;
  }

  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .kf-news-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TECHNOLOGY PAGE
   ========================================================================== */
.kf-tech-hero {
  position: relative;
  padding: 150px 0;
  background-color: var(--kf-black);
  background-size: cover;
  background-position: center;
  color: var(--kf-white);
}

.kf-tech-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
}

.kf-tech-hero-content {
  position: relative;
  z-index: 2;
}

.kf-tech-hero-title {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--kf-gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Features Grid */
.kf-features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.kf-feature-card {
  flex: 1;
  min-width: 280px;
  text-align: center;
  padding: 40px;
  border-radius: 12px;
  background: var(--kf-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--kf-gold);
  transition: transform 0.3s;
}

.kf-feature-card:hover {
  transform: translateY(-10px);
}

.kf-feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  color: var(--kf-gold);
}

.kf-feature-icon svg {
  width: 100%;
  height: 100%;
}

/* Layers Visualization */
.kf-layers-visual-container {
  margin-top: 50px;
}

.kf-css-plank {
  position: relative;
  width: 100%;
  height: 300px;
  perspective: 1000px;
}

.kf-plank-layer {
  position: absolute;
  left: 10%;
  width: 80%;
  height: 60px;
  transform: rotateX(60deg) rotateZ(-45deg);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--kf-white);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.kf-plank-layer:hover {
  transform: rotateX(60deg) rotateZ(-45deg) translateZ(20px);
  box-shadow: -15px 15px 30px rgba(0, 0, 0, 0.8);
  border-color: var(--kf-gold);
}

.layer-1 {
  top: 0;
  background: rgba(255, 255, 255, 0.1);
  z-index: 5;
}

.layer-2 {
  top: 40px;
  background: rgba(200, 200, 200, 0.1);
  z-index: 4;
}

.layer-3 {
  top: 80px;
  background: url("https://upload.wikimedia.org/wikipedia/commons/3/30/Oak_wood_texture.jpg") center/cover;
  z-index: 3;
}

.layer-4 {
  top: 120px;
  background: #555;
  z-index: 2;
  border-bottom: 5px solid #333;
}

.layer-5 {
  top: 160px;
  background: #222;
  z-index: 1;
}

/* Plank 3D – bảo vệ transform 3D khỏi bị animate ghi đè */
.kf-css-plank .kf-plank-layer {
  opacity: 1 !important;
}

.kf-css-plank .kf-plank-layer:not(:hover) {
  transform: rotateX(60deg) rotateZ(-45deg);
}

.kf-layers-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kf-layer-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid transparent;
  transition: all 0.3s;
}

.kf-layer-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--kf-gold);
}

.kf-layer-number {
  font-size: 42px;
  font-weight: 900;
  color: var(--kf-gold);
  line-height: 1;
  opacity: 0.8;
}

.kf-layer-title {
  font-size: 22px;
  color: var(--kf-white);
  margin-bottom: 8px;
  font-weight: 700;
}

.kf-layer-desc {
  color: #aaa;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Quality Standards */
.kf-badges-wrap {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  align-items: center;
}

.kf-badge {
  text-align: center;
}

.kf-badge h4 {
  font-weight: 700;
  color: #333;
  margin-top: 10px;
  font-size: 18px;
}

/* Warranty VIP Complex (Replicating Flyer) */
.kf-warranty-complex {
  border: 1px solid var(--kf-gold);
  border-radius: 16px;
  padding: 50px;
  background: #111;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

/* Header */
.kf-wc-header {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}

.kf-wc-badge {
  flex: 0 0 160px;
  height: 160px;
  border: 3px solid var(--kf-gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle,
      rgba(200, 160, 50, 0.2) 0%,
      transparent 70%);
}

.kf-wc-badge .num {
  font-size: 72px;
  font-weight: 900;
  color: var(--kf-gold);
  line-height: 1;
}

.kf-wc-badge .unit {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.kf-wc-htext h3 {
  font-size: 32px;
  font-weight: 900;
  color: var(--kf-white);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.kf-wc-htext p {
  font-size: 18px;
  color: #aaa;
  margin: 0;
}

/* Blocks */
.kf-wc-block-title {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.kf-wc-block-title span {
  display: inline-block;
  padding: 0 20px;
  background: #111;
  font-size: 20px;
  font-weight: 800;
  color: var(--kf-gold);
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.kf-wc-block-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

/* Scope Grid */
.kf-wc-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.scope-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.scope-item:last-child {
  border-right: none;
}

.scope-item svg {
  width: 50px;
  height: 50px;
  color: var(--kf-gold);
  margin-bottom: 15px;
}

.scope-item p {
  font-size: 14px;
  font-weight: 700;
  color: #ccc;
  margin: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Conditions 2 Cols */
.kf-wc-conditions-wrap {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
}

.kf-wc-cond-box {
  flex: 1;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.cond-header {
  font-size: 18px;
  font-weight: 800;
  color: var(--kf-white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cond-header .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
}

.cond-header .icon.check {
  background: #2e7d32;
  color: #fff;
}

.cond-header .icon.cross {
  background: #c62828;
  color: #fff;
}

.kf-wc-cond-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kf-wc-cond-box li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: #aaa;
  font-size: 15px;
}

.kf-wc-cond-box.cond-valid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4caf50;
  font-weight: bold;
}

.kf-wc-cond-box.cond-invalid li::before {
  content: "✗";
  position: absolute;
  left: 0;
  top: 0;
  color: #f44336;
  font-weight: bold;
}

/* Commit Grid */
.kf-wc-commit-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.commit-item {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(200, 160, 50, 0.2);
  transition: transform 0.3s;
}

.commit-item:hover {
  transform: translateY(-5px);
  border-color: var(--kf-gold);
}

.commit-item svg {
  width: 40px;
  height: 40px;
  color: var(--kf-gold);
  margin-bottom: 15px;
}

.commit-item p {
  font-size: 13px;
  color: #ccc;
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
  text-transform: uppercase;
}

/* Applications Section (KraftFloor Việt Nam) */
.kf-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.kf-app-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.kf-app-item:hover {
  border-color: var(--kf-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
}

.kf-app-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.8;
}

.kf-app-item:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.kf-app-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 15px 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 2px;
}

/* WooCommerce Product Loop Image Ratio */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
.woocommerce ul.products li.product .ct-image-container img,
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.kf-product-image-box img {
  aspect-ratio: 1/1 !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

.kf-product-image-box,
.woocommerce ul.products li.product .ct-image-container {
  aspect-ratio: 1/1 !important;
  overflow: hidden;
}

.ct-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.kf-section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 16px;
  color: var(--kf-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Buttons */
.kf-btn-primary {
  display: inline-block;
  background-color: var(--kf-gold);
  color: #fff;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 40px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kf-btn-primary:hover {
  background-color: #fff;
  color: var(--kf-gold);
  transform: translateY(-3px);
}

.kf-btn-cta-lg {
  padding: 18px 50px;
  font-size: 18px;
}

.kf-btn-cta-sm {
  padding: 15px 40px;
  font-size: 16px;
}

/* ==========================================================================
   HEADER & NAVIGATIONE
   ========================================================================== */
.kf-about-hero {
  position: relative;
  padding: 120px 0;
  background-color: var(--kf-black);
  background-size: cover;
  background-position: center;
  color: var(--kf-white);
}

.kf-about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.kf-about-hero-content {
  position: relative;
  z-index: 2;
}

.kf-about-hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--kf-white);
}

.kf-breadcrumb {
  font-size: 14px;
  color: #ccc;
}

.kf-breadcrumb a {
  color: var(--kf-gold);
  text-decoration: none;
}

.kf-breadcrumb .sep {
  margin: 0 10px;
}

.kf-breadcrumb .current {
  color: var(--kf-white);
}

/* Intro Grid */
.kf-about-intro-grid {
  display: flex;
  gap: 60px;
  align-items: center;
}

.kf-about-intro-text {
  flex: 1;
}

.kf-about-intro-text .section-title {
  text-align: left;
}

.kf-about-intro-text .section-title::after {
  left: 0;
  transform: none;
}

.kf-editor-content {
  line-height: 1.8;
  color: var(--kf-text-light);
  font-size: 16px;
}

.kf-editor-content p {
  margin-bottom: 15px;
}

.kf-about-intro-image {
  flex: 1;
}

.kf-img-wrapper {
  position: relative;
  padding: 20px;
}

.kf-img-wrapper img {
  width: 100%;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.kf-img-deco {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 40px;
  left: 40px;
  border: 2px solid var(--kf-gold);
  border-radius: 8px;
  z-index: 1;
}

/* Visions Grid */
.kf-visions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.kf-vision-card {
  flex: 1;
  min-width: 280px;
  background: var(--kf-white);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.kf-vision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--kf-gold);
}

.kf-vision-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all 0.3s ease;
}

.kf-vision-card:hover .kf-vision-icon {
  background: var(--kf-gold);
  color: var(--kf-white);
}

.kf-vision-icon svg {
  width: 35px;
  height: 35px;
}

.kf-vision-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #111;
}

.kf-vision-desc {
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

/* =======================================
   CUSTOM SLIDER MODE FOR PRODUCTS & NEWS
   ======================================= */
/* Khối chạy bên trong (Track) */
.kf-slider-mode .kf-woo-grid-wrapper,
.kf-content-wrapper.kf-slider-mode {
  overflow: hidden !important;
  /* Cắt bớt phần thừa */
  position: relative;
  width: 100%;
}

.kf-slider-mode .kf-woo-grid-wrapper ul.products,
.kf-slider-mode .kf-woo-grid-wrapper .woocommerce ul.products,
body.woocommerce-page .kf-slider-mode .woocommerce ul.products,
.kf-slider-mode .kf-news-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 30px !important;
  padding-bottom: 10px !important;
  transition: transform 0.6s ease-in-out !important;
  grid-template-columns: none !important;
  margin: 0 !important;
  width: 100% !important;
  /* Đặt lại 100% để tính chính xác 25% độ rộng chia 4 ô */
  overflow: visible !important;
}

/* Ẩn scrollbar để trông giống slider */
.kf-slider-mode .kf-woo-grid-wrapper ul.products::-webkit-scrollbar,
.kf-slider-mode .kf-woo-grid-wrapper .woocommerce ul.products::-webkit-scrollbar,
.kf-slider-mode .kf-news-grid::-webkit-scrollbar {
  display: none !important;
}

.kf-slider-mode .kf-woo-grid-wrapper ul.products,
.kf-slider-mode .kf-woo-grid-wrapper .woocommerce ul.products,
.kf-slider-mode .kf-news-grid {
  -ms-overflow-style: none !important;
  /* IE and Edge */
  scrollbar-width: none !important;
  /* Firefox */
}

/* Kích thước mỗi phần tử Sản phẩm (4 cột) */
.kf-slider-mode .kf-woo-grid-wrapper ul.products>li.product,
.kf-slider-mode .kf-woo-grid-wrapper .woocommerce ul.products>li.product,
body.woocommerce-page .kf-slider-mode .woocommerce ul.products>li.product {
  flex: 0 0 calc(25% - 22.5px) !important;
  /* 4 items per row */
  scroll-snap-align: start !important;
  min-width: 0 !important;
  max-width: calc(25% - 22.5px) !important;
  margin: 0 !important;
  clear: none !important;
}

/* Kích thước mỗi phần tử Tin Tức (3 cột) */
.kf-slider-mode .kf-news-grid>article {
  flex: 0 0 calc(33.3333% - 20px) !important;
  /* 3 items per row */
  scroll-snap-align: start !important;
  min-width: 0 !important;
  max-width: calc(33.3333% - 20px) !important;
  margin: 0 !important;
  clear: none !important;
}

@media (max-width: 992px) {

  .kf-slider-mode .kf-woo-grid-wrapper ul.products>li.product,
  .kf-slider-mode .kf-woo-grid-wrapper .woocommerce ul.products>li.product,
  .kf-slider-mode .kf-news-grid>article {
    flex: 0 0 calc(50% - 15px) !important;
    /* 2 items */
    max-width: calc(50% - 15px) !important;
  }
}

@media (max-width: 768px) {

  /* Mở lại scroll tự nhiên trên Mobile để vuốt tay */
  .kf-slider-mode .kf-woo-grid-wrapper,
  .kf-content-wrapper.kf-slider-mode {
    overflow: visible !important;
  }

  .kf-slider-mode .kf-woo-grid-wrapper ul.products,
  .kf-slider-mode .kf-woo-grid-wrapper .woocommerce ul.products,
  body.woocommerce-page .kf-slider-mode .woocommerce ul.products,
  .kf-slider-mode .kf-news-grid {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }

  .kf-slider-mode .kf-woo-grid-wrapper ul.products>li.product,
  .kf-slider-mode .kf-woo-grid-wrapper .woocommerce ul.products>li.product,
  body.woocommerce-page .kf-slider-mode .woocommerce ul.products>li.product,
  .kf-slider-mode .kf-news-grid>article {
    flex: 0 0 calc(100% - 60px) !important;
    /* Cố tình làm nhỏ lại để chừa chỗ cho card 2 lấp ló */
    max-width: calc(100% - 60px) !important;
    scroll-snap-align: start !important;
    /* Bắt dính điểm đầu mút mượt mà */
  }

  /* RESPONSIVE ĐỐI TÁC */
  .kf-partner-item {
    flex: 0 0 calc(33.333% - 14px) !important;
    /* 3 logo một hàng trên điện thoại */
    max-width: calc(33.333% - 14px) !important;
    padding: 10px;
  }

  .kf-partner-item img {
    max-height: 50px;
    opacity: 0.9;
    filter: grayscale(50%);
  }

  /* RESPONSIVE TRANG GIỚI THIỆU */
  .kf-about-hero {
    padding: 80px 0;
  }

  .kf-about-hero-title {
    font-size: 32px;
  }

  .kf-about-intro-grid {
    flex-direction: column;
    gap: 30px;
  }

  .kf-img-deco {
    bottom: 20px;
    left: 20px;
  }

  /* Buttons Responsive */
  .kf-btn-cta-lg {
    padding: 12px 30px;
    font-size: 14px;
  }

  .kf-btn-cta-sm {
    padding: 10px 25px;
    font-size: 13px;
  }

  /* RESPONSIVE TRANG CÔNG NGHỆ */
  .kf-visions-grid {
    gap: 20px;
  }

  .kf-vision-card {
    min-width: 100%;
    padding: 30px 20px;
  }

  .kf-vision-title {
    font-size: 20px;
  }

  .kf-vision-desc {
    font-size: 14px;
  }

  .kf-tech-hero {
    padding: 80px 0;
  }

  .kf-tech-hero-title {
    font-size: 36px;
  }

  .kf-wc-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .kf-wc-scope-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scope-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .kf-wc-conditions-wrap {
    flex-direction: column;
  }

  .kf-warranty-complex {
    padding: 30px 20px;
  }

  .kf-apps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* SMARTPHONE SMALL (Dưới 480px) */
@media screen and (max-width: 480px) {
  .kf-hero {
    height: 62vh;
    min-height: 440px;
    max-height: 540px;
  }

  .kf-hero-content-wrap {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .kf-hero-tagline {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .kf-hero-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .kf-hero-separator {
    margin-bottom: 16px;
  }

  .kf-hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
    color: #333;
  }

  .kf-hero-overlay {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.88) 20%,
        rgba(255, 255, 255, 0.75) 38%,
        rgba(255, 255, 255, 0.42) 55%,
        rgba(255, 255, 255, 0.1) 70%,
        transparent 82%);
  }

  .kf-product-card {
    width: 100%;
    max-width: 320px;
  }

  .kf-stats-grid {
    grid-template-columns: 1fr;
  }

  .kf-apps-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   8. TRANG KỸ THUẬT (TECHNICAL PAGE)
   ========================================================================== */
.kf-technical-hero {
  position: relative;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  background-color: var(--kf-black);
  color: var(--kf-white);
  text-align: center;
}

.kf-technical-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.kf-technical-hero-content {
  position: relative;
  z-index: 2;
}

.kf-technical-hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--kf-gold);
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Technical Specs Grid */
.kf-specs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.kf-spec-item {
  flex: 0 0 calc(33.333% - 20px);
  background: #111;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 3px solid var(--kf-gold);
  transition: all 0.3s ease;
  text-align: center;
}

.kf-spec-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  border-color: rgba(212, 175, 55, 0.8);
  border-bottom: 3px solid #fff;
}

.kf-spec-title {
  font-size: 14px;
  color: var(--kf-gold);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.kf-spec-value {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

/* Installation Steps */
.kf-steps-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.kf-step-card {
  display: flex;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: calc(120px + var(--step-index, 0) * 20px);
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.5);
  /* Bóng đổ hướng lên trên để đè lên thẻ trước */
  transition: transform 0.3s ease;
  align-items: center;
  /* Căn giữa nội dung bên trong thẻ */
}

.kf-step-number {
  position: absolute;
  top: -20px;
  left: -20px;
  font-size: 80px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.kf-step-image {
  flex: 0 0 400px;
}

.kf-step-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
  /* Ép đồng nhất 1 kích thước */
  display: block;
}

.kf-step-content {
  padding: 40px;
  flex: 1;
  z-index: 2;
}

.kf-step-title {
  font-size: 24px;
  color: var(--kf-gold);
  margin-bottom: 15px;
}

.kf-step-desc {
  color: #ccc;
  line-height: 1.6;
}

/* Maintenance */
.kf-maintenance-wrap {
  display: flex;
  align-items: center;
  gap: 50px;
}

.kf-maintenance-image {
  flex: 1;
}

.kf-maintenance-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.kf-maintenance-content {
  flex: 1;
}

.kf-maint-text {
  color: #555;
  line-height: 1.8;
}

.kf-maint-text ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.kf-maint-text li {
  margin-bottom: 10px;
}

/* Responsive Technical */
@media (max-width: 992px) {
  .kf-spec-item {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .kf-spec-item {
    flex: 0 0 100%;
  }

  .kf-step-card {
    flex-direction: column;
    position: relative !important;
    top: auto !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
  }

  .kf-step-image {
    flex: none;
    height: 200px;
  }

  .kf-maintenance-wrap {
    flex-direction: column;
  }
}

/* ==========================================================================
   9. TRANG SẢN PHẨM (SHOP ARCHIVE)
   ========================================================================== */
/* Ẩn banner mặc định của theme gốc trên trang Shop / Danh mục sản phẩm */
.post-type-archive-product .hero-section,
.tax-product_cat .hero-section,
.tax-product_tag .hero-section,
.woocommerce-products-header,
.ct-page-header,
.page-hero {
  display: none !important;
}

/* ==========================================================================
   10. THANH LỌC DANH MỤC SẢN PHẨM
   ========================================================================== */
.kf-category-filter-wrapper {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eaeaea;
  text-align: center;
}

.kf-category-filter {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.kf-category-filter .kf-cat-pill {
  display: inline-block;
  padding: 10px 25px;
  background: #f5f5f5;
  color: var(--kf-black);
  font-weight: 600;
  font-size: 15px;
  border-radius: 30px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.kf-category-filter .kf-cat-pill:hover,
.kf-category-filter .kf-cat-pill.active {
  background: var(--kf-black);
  color: var(--kf-gold);
  border-color: var(--kf-gold);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .kf-category-filter {
    gap: 10px;
  }

  .kf-category-filter .kf-cat-pill {
    padding: 8px 15px;
    font-size: 13px;
  }
}

/* ==========================================================================
   11. FIX BỐ CỤC BÀI VIẾT (SINGLE POST & SIDEBAR)
   ========================================================================== */
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Xử lý riêng cho ảnh căn trái/phải để không chiếm hết 100% khi có sidebar */
.entry-content img.alignleft,
.entry-content img.alignright {
  max-width: 50%;
  display: inline;
}

/* ==========================================================================
   12. LÀM ĐẸP CARD BÀI VIẾT (BLOCKSY COVER LAYOUT / GRID)
   ========================================================================== */
.entries[data-layout*="cover"] article,
.entries[data-layout="grid"] article.ct-blog-layout-cover {
  border-radius: 12px !important;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Phủ một lớp gradient đen mờ lên ảnh để chữ trắng nổi bật */
.entries[data-layout*="cover"] article::after,
.entries[data-layout="grid"] article.ct-blog-layout-cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.1) 100%) !important;
  z-index: 1;
  pointer-events: none;
}

/* Đảm bảo nội dung nằm trên lớp phủ gradient */
.entries[data-layout*="cover"] .ct-media-container~*,
.entries[data-layout="grid"] article.ct-blog-layout-cover .ct-media-container~* {
  z-index: 2;
  position: relative;
}

/* Đổi toàn bộ chữ thành màu trắng cho dễ đọc */
.entries[data-layout*="cover"] .entry-title,
.entries[data-layout*="cover"] .entry-title a,
.entries[data-layout*="cover"] .entry-excerpt,
.entries[data-layout*="cover"] .ct-meta-element,
.entries[data-layout*="cover"] .ct-term-meta a {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Làm nổi bật nút Xem thêm */
.entries[data-layout*="cover"] .ct-button,
.entries[data-layout*="cover"] .ct-read-more {
  background-color: var(--kf-gold) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  transition: all 0.3s ease;
}

.entries[data-layout*="cover"] .ct-button:hover,
.entries[data-layout*="cover"] .ct-read-more:hover {
  background-color: var(--kf-black) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   13. RESPONSIVE TEXT SIZES FOR MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  .section-title {
    font-size: 24px !important;
    margin-bottom: 25px !important;
  }

  .section-subtitle {
    font-size: 12px !important;
    letter-spacing: 2px !important;
  }
}

/* ==========================================================================
   14. SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.kf-animate-element {
  opacity: 0;
  transition:
    opacity 1.15s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1.15s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: var(--kf-delay, 0ms);
  will-change: opacity, transform;
}

/* Fade up (mặc định) */
.kf-animate-up {
  transform: translateY(36px);
}

.kf-animate-up.kf-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Fade từ trái */
.kf-animate-left {
  transform: translateX(-40px);
}

.kf-animate-left.kf-animated {
  opacity: 1;
  transform: translateX(0);
}

/* Fade từ phải */
.kf-animate-right {
  transform: translateX(40px);
}

.kf-animate-right.kf-animated {
  opacity: 1;
  transform: translateX(0);
}

/* Zoom nhẹ */
.kf-animate-zoom {
  transform: scale(0.92);
}

.kf-animate-zoom.kf-animated {
  opacity: 1;
  transform: scale(1);
}

/* Scale + fade (card, stat) */
.kf-animate-scale {
  transform: translateY(24px) scale(0.96);
}

.kf-animate-scale.kf-animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero slider – animate nội dung khi slide active */
.kf-hero-slide .kf-hero-tagline,
.kf-hero-slide .kf-hero-title,
.kf-hero-slide .kf-hero-separator,
.kf-hero-slide .kf-hero-subtitle,
.kf-hero-slide .kf-btn-hero {
  opacity: 0;
  transform: translateY(28px);
}

.kf-hero-slide.active .kf-hero-tagline {
  animation: kfHeroFadeIn 1.1s cubic-bezier(0.25, 1, 0.5, 1) 0.25s both;
}

.kf-hero-slide.active .kf-hero-title {
  animation: kfHeroFadeIn 1.1s cubic-bezier(0.25, 1, 0.5, 1) 0.45s both;
}

.kf-hero-slide.active .kf-hero-separator {
  animation: kfHeroFadeIn 1.1s cubic-bezier(0.25, 1, 0.5, 1) 0.65s both;
}

.kf-hero-slide.active .kf-hero-subtitle {
  animation: kfHeroFadeIn 1.1s cubic-bezier(0.25, 1, 0.5, 1) 0.8s both;
}

.kf-hero-slide.active .kf-btn-hero {
  animation: kfHeroFadeIn 1.1s cubic-bezier(0.25, 1, 0.5, 1) 1s both;
}

/* Page hero – fade in khi load */
.kf-about-hero-content>*,
.kf-tech-hero-content>*,
.kf-technical-hero-content>* {
  animation: kfHeroFadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.kf-about-hero-content>*:nth-child(1),
.kf-tech-hero-content>*:nth-child(1),
.kf-technical-hero-content>*:nth-child(1) {
  animation-delay: 0.2s;
}

.kf-about-hero-content>*:nth-child(2),
.kf-tech-hero-content>*:nth-child(2),
.kf-technical-hero-content>*:nth-child(2) {
  animation-delay: 0.45s;
}

.kf-about-hero-content>*:nth-child(3),
.kf-tech-hero-content>*:nth-child(3),
.kf-technical-hero-content>*:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes kfHeroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .kf-animate-element,
  .kf-hero-slide .kf-hero-tagline,
  .kf-hero-slide .kf-hero-title,
  .kf-hero-slide .kf-hero-separator,
  .kf-hero-slide .kf-hero-subtitle,
  .kf-hero-slide .kf-btn-hero,
  .kf-about-hero-content>*,
  .kf-tech-hero-content>*,
  .kf-technical-hero-content>* {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   15. CUSTOM DROPDOWN MENU
   ========================================================================== */
.ct-header .sub-menu {
  background-color: var(--kf-black) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 3px solid var(--kf-gold) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6) !important;
  border-radius: 0 0 4px 4px !important;
}

.ct-header .sub-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.ct-header .sub-menu li:last-child {
  border-bottom: none !important;
}

.ct-header .sub-menu li a {
  color: #dddddd !important;
  transition: all 0.3s ease !important;
  padding: 12px 20px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  display: block !important;
}

.ct-header .sub-menu li a:hover {
  background-color: rgba(197, 160, 89, 0.1) !important;
  color: var(--kf-gold) !important;
  padding-left: 25px !important;
}