/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
:root {
  --primary-color: #19459c;
  --secondary-color: #20b3ff;
}
body {
  font-family: "SVN Gilroy", sans-serif;
  font-weight: 500;
  color: #333435;
  font-size: 17px !important;
}
/* p {
  font-size: 17px !important;
} */
.nav > li > a,
.mobile-sidebar-levels-2 .nav > li > ul > li > a {
  font-family: "SVN Gilroy", sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
.heading-font,
.off-canvas-center .nav-sidebar.nav-vertical > li > a {
  font-family: "SVN Gilroy", sans-serif;
}
.alt-font {
  font-family: "SVN Gilroy", sans-serif;
}
.no-padding-bottom {
  padding-bottom: 0px !important;
}
html {
  background-color: white;
}

/*--------------------------------------------------------------
# CUSTOM SEARCH
--------------------------------------------------------------*/
.ss-search-toggle-button {
  display: flex;
  align-items: center;
  margin-right: 0px;
  padding: 0px;
}
.ss-search-toggle-button svg {
  color: var(--primary-color);
  width: 24px;
  height: 24px;
}
.ss-custom-search {
  padding: 20px 0;
  background-color: #f9f9f9;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.ss-search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  border: 2px solid var(--primary-color, #0099ff);
  border-radius: 8px;
  overflow: hidden;
}

.ss-search-input {
  flex: 1;
  padding: 14px 20px !important;
  font-size: 16px !important;
  border: none !important;
  outline: none;
  margin-bottom: 0px;
  height: 100% !important;
  box-shadow: none !important;
}

.ss-search-button {
  background: var(--primary-color, #0099ff);
  border: none;
  color: white;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px;
}

.ss-search-button:hover {
  background: #0066cc;
}

.ss-search-button svg {
  display: block;
}

/*--------------------------------------------------------------
# HEADER
--------------------------------------------------------------*/
.nav-dropdown {
  color: #333435;
}
.nav > li > a {
  text-transform: capitalize;
  font-weight: 600;
}
.has-dropdown .icon-angle-down {
  opacity: 1;
}

.sub-menu.nav-dropdown {
  padding: 8px !important;
  /* min-width: 400px; */
}

.sub-menu.nav-dropdown .menu-item {
  position: relative; /* Cần thiết để định vị mũi tên SVG */
  width: 100% !important;
}
.sub-menu.nav-dropdown .menu-item a {
  border-bottom: none;
}

.sub-menu.nav-dropdown .menu-item a {
  display: block;
  font-weight: 500;
  color: #333;
  border-radius: 5px;
  padding: 10px 5px;
  transition: padding-left 0.4s ease, background-color 0.4s ease;
  font-size: 100% !important;
  text-transform: capitalize !important;
}

/* 4. Chèn mũi tên SVG vào trước mỗi item và ẩn đi */
.sub-menu.nav-dropdown .menu-item::before {
  /* SVG đã được URL-encode để dùng trong CSS */
  content: url('data:image/svg+xml,%3Csvg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M3.125 10.5H16.875" stroke="%23002FA4" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/%3E%3Cpath d="M11.25 4.875L16.875 10.5L11.25 16.125" stroke="%23002FA4" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
  position: absolute;
  left: 20px;
  top: 58%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Áp dụng style cho thẻ <a> là con trực tiếp của li:hover */
.sub-menu > .menu-item:hover > a {
  background-color: #e3f0ff;
  padding-left: 40px; /* Vẫn giữ hiệu ứng trượt cho item cấp 1 */
  color: var(--primary-color);
}

.sub-menu.nav-dropdown .menu-item:hover::before {
  opacity: 1;
}

.nav-dropdown .menu-item-has-children {
  position: relative;
  display: block !important;
}

.nav-dropdown .menu-item-has-children > a::after {
  /* 1. Xóa các thuộc tính văn bản cũ */
  content: ""; /* Bỏ nội dung chữ */
  /* font-weight, font-size, color không còn cần thiết */

  /* 2. Định vị và kích thước cho mũi tên SVG */
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 1em; /* Kích thước mũi tên */
  height: 1em; /* Kích thước mũi tên */

  /* 3. Thêm SVG làm hình nền */
  /* SVG này có màu #212020 như bạn đã dùng */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23212020'%3E%3Cpath fill-rule='evenodd' d='M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z' clip-rule='evenodd' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain; /* Đảm bảo SVG vừa vặn trong khung */
}

/* 3. Ẩn và định vị menu con cấp 2 trở đi */
.nav-dropdown .menu-item-has-children > .sub-menu {
  position: absolute;
  left: 100%;
  top: -9px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;

  transform: translateX(10px);
  transition: all 0.25s ease-in-out;

  background-color: rgba(241, 248, 255, 1) !important;
  padding: 8px !important;
  min-width: 220px;
}

.nav-dropdown .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Ẩn dropdown ban đầu và chuẩn bị cho hiệu ứng slide */
.header-nav .nav-dropdown {
  opacity: 0; /* Bắt đầu ẩn */
  transform: translateY(-20px); /* Bắt đầu từ trên cao hơn một chút */
  visibility: hidden; /* Ẩn hoàn toàn khỏi luồng tài liệu */
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s; /* Hiệu ứng chuyển động */
}

/* Khi dropdown được hiển thị (active/hover) */
.header-nav li.current-dropdown .nav-dropdown, /* Đối với menu hiện tại đang mở */
.header-nav li.sfHover > .nav-dropdown, /* Đối với menu hover (Superfish - thường dùng trong Flatsome) */
.header-nav .menu-item:hover > .nav-dropdown {
  /* Cách chung hơn */
  opacity: 1; /* Hiện ra */
  transform: translateY(0); /* Trở về vị trí ban đầu */
  visibility: visible; /* Hiện ra */
}

@media (max-width: 1090px) {
  .hide-for-medium,
  [data-show="hide-for-medium"] {
    display: none !important;
  }
}
@media (max-width: 1090px) {
  .show-for-medium,
  [data-show="show-for-medium"] {
    display: block !important;
  }
}
@media (max-width: 549px) {
  .header-main {
    height: 60px !important;
  }
  #logo img {
    max-height: 50px !important;
  }
}
/*--------------------------------------------------------------
# MEGA MENU
--------------------------------------------------------------*/
.mega-menu-row {
  margin-left: auto !important;
  margin-right: auto !important;
}

/*
 * STYLE CHO MEGA MENU ITEM (Bản cải tiến)
 */

/* Container chính, cần position: relative để chứa icon absolute */
.mega-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px 0;
  overflow: hidden;
  gap: 5px;
}

/* Icon SVG, lấy ra khỏi luồng hiển thị thông thường */
.mega-menu-item__icon {
  position: absolute; /* Không chiếm diện tích */
  left: 0;
  top: 50%;

  /* Hiệu ứng mượt mà */
  opacity: 0; /* Ẩn đi */
  transform: translateY(-50%) translateX(-15px); /* Dịch lên và sang trái */
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
}

/* Link chữ */
.mega-menu-item__link {
  /* Dùng padding để tạo khoảng trống, dễ dàng tạo hiệu ứng */
  transition: all 0.3s ease-in-out;
  font-weight: 500;
  text-decoration: none;
}

/* --- HIỆU ỨNG KHI HOVER --- */

.mega-menu-item:hover .mega-menu-item__icon {
  opacity: 1; /* Hiện icon */
  transform: translateY(-50%) translateX(0); /* Di chuyển icon vào vị trí */
}

.mega-menu-item:hover .mega-menu-item__link {
  padding-left: 30px; /* Tăng padding để đẩy chữ sang phải, tạo hiệu ứng trượt */
  color: #002fa4;
}

/*--------------------------------------------------------------
# MOBILE MENU
--------------------------------------------------------------*/
.ss-menu-nav {
  padding-top: 75px;
}
.ss-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
  position: relative;
  z-index: 999;
  margin-right: 0px;
  padding: 0px;
}

.ss-hamburger {
  display: flex;
  flex-direction: column;
  width: 25px;
  height: 20px;
  justify-content: space-between;
}

.ss-hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s;
}

.ss-hamburger.ss-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.ss-hamburger.ss-active span:nth-child(2) {
  opacity: 0;
}

.ss-hamburger.ss-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.ss-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.ss-menu-overlay.ss-active {
  opacity: 1;
  visibility: visible;
}

.ss-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  z-index: 9;
  transition: left 0.3s;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.ss-mobile-menu.ss-active {
  left: 0;
}

.ss-close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s;
  margin-left: auto;
  margin-bottom: 0px;
  margin-right: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 0px;
}

.ss-close-button:hover {
  background-color: #f0f0f0;
}

.ss-close-button svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

.ss-back-button svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

.ss-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ss-menu-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 0px;
}

.ss-menu-item:last-child {
  border-bottom: none;
}

.ss-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: background-color 0.3s;
}

.ss-menu-link:hover {
  background-color: #f8f9fa;
}

.ss-menu-arrow {
  width: 16px;
  height: 16px;
  fill: #000;
}

.ss-submenu {
  display: none;
}

.ss-submenu.ss-active {
  display: block;
}

.ss-submenu-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
}

.ss-submenu-item {
  border-bottom: 1px solid #e0e0e0;
}

.ss-submenu-link {
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 400;
  transition: background-color 0.3s;
}

.ss-submenu-link:hover {
  background-color: #f8f9fa;
}

@media (max-width: 767px) {
  .ss-menu-toggle {
    display: block;
  }
}

/* Cần đảm bảo rằng chỉ có một menu con hiển thị tại một thời điểm */
.ss-main-menu {
  transition: transform 0.3s ease-out;
  /* Thêm hiệu ứng trượt cho menu chính */
  transform: translateX(0);
}

.ss-submenu {
  position: absolute;
  /* Đặt submenu ra ngoài luồng để kiểm soát vị trí bằng JS */
  top: 0;
  left: 100%;
  /* Ban đầu đặt submenu bên phải, ngoài tầm nhìn */
  width: 100%;
  /* Đảm bảo submenu chiếm toàn bộ chiều rộng của .ss-mobile-menu */
  height: 100%;
  background-color: #fff;
  /* Đảm bảo có nền để che menu chính */
  transition: left 0.3s ease-out;
  /* Hiệu ứng trượt cho submenu */
  overflow-y: auto;
  /* Cho phép cuộn nếu nội dung dài */
  display: flex;
  /* Dùng flexbox để sắp xếp header và list */
  flex-direction: column;
}

.ss-submenu.ss-active {
  left: 0;
}

.ss-submenu-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 10px;
  /* Khoảng cách giữa nút back và tiêu đề */
}

.ss-back-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s;
  display: flex;
  /* Đảm bảo nút back luôn hiển thị trong submenu header */
  align-items: center;
  justify-content: center;
  margin: 0px;
  padding-left: 0px;
}

.ss-menu-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  flex-grow: 1;
  /* Cho phép tiêu đề chiếm không gian còn lại */
}

@media (max-width: 849px) {
  .header-main li.html.custom {
    display: block;
  }
}

/*--------------------------------------------------------------
# NUMBER SECTION
--------------------------------------------------------------*/

.section-header {
  text-align: left;
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-subtitle::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.section-title {
  color: #2c3e50;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.section-description {
  color: var(--primary-color);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 50px;
}

.stat-item {
  text-align: left;
}

.stat-number {
  color: var(--primary-color);
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  color: #666;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.cta-button {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 32px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
  color: white;
}

.cta-button:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .number-section {
    padding: 40px 20px;
  }

  .section-title,
  .section-description {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .stat-number {
    font-size: 40px;
  }

  .stat-label {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-number {
    font-size: 30px;
  }
}

/*--------------------------------------------------------------
# PRODUCT CAT
--------------------------------------------------------------*/
.section-header-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 50px;
}

.section-header-group .section-header {
  margin-bottom: 0px;
}
.view-all {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 700px) {
  .section-header-group {
    grid-template-columns: 1fr;
  }
  .view-all {
    justify-content: flex-start;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
}
.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 3px solid #87ceeb;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Placeholder for product images */
.product-image {
  width: 100%;
  background: #f5f5f5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  text-align: center;
}

/*--------------------------------------------------------------
# PRODUCT SIDEBAR
--------------------------------------------------------------*/
.ss-sidebar-header {
  padding: 0.5rem 0.75rem;
  background-color: rgba(245, 245, 248, 1);
  border-left: 2px solid rgba(0, 47, 164, 1);
}

.ss-sidebar-title {
  font-weight: 600;
}

.ss-category-group,
.ss-product-item-group {
  margin-top: 10px;
}

.ss-category-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.ss-dropdown-icon {
  transition: transform 0.2s ease;
}

.ss-category-header.open .ss-dropdown-icon {
  transform: rotate(180deg);
}

/* Hiệu ứng xổ mượt bằng max-height */
.ss-subcategory-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 15px;
  border-left: 1px solid rgba(92, 92, 95, 0.1);
}

.ss-subcategory-list.active {
  max-height: 1000px; /* hoặc có thể dùng JS set cụ thể */
  border-left: 1px solid rgba(92, 92, 95, 0.4);
}

.ss-subcategory-item a {
  display: block;
  padding: 4px 0;
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ss-subcategory-item a:hover {
  color: #002fa4;
}

.ss-subcategory-list.child {
  padding-left: 15px;
}

.ss-dropdown-icon svg {
  transition: transform 0.3s ease;
  transform: rotate(-90deg); /* Mặc định: mũi tên sang phải */
}

.ss-category-header.open .ss-dropdown-icon svg {
  transform: rotate(180deg); /* Khi mở: mũi tên hướng xuống */
}

/* Featured product styles (giữ nguyên nếu dùng chung layout) */
.ss-product-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.ss-product-image {
  width: 60px;
  height: 60px;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
}

.ss-product-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.ss-product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ss-product-name a {
  font-weight: 500;
  color: #333;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ss-product-name a:hover {
  color: var(--primary-color);
}

.ss-product-detail {
  font-size: 0.875rem;
  color: #666;
}

/*--------------------------------------------------------------
# ARCHIVE PRODUCT
--------------------------------------------------------------*/
.archive #main {
  background-color: #fafafa;
}
.archive .shop-page-title {
  background-color: #fafafa;
}
.product-box {
  background: #fff;
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  padding: 8px;
  height: 100%;
  position: relative;
  transition: all 0.5s ease-out;
  -webkit-transition: all 0.5s ease-out;
  -moz-transition: all 0.5s ease-out;
  -ms-transition: all 0.5s ease-out;
  -o-transition: all 0.5s ease-out;
}
.product-box .wrap-img-box {
  position: relative;
}
.product-box .img-box {
  display: flex;
  height: 295px;
  overflow: hidden;
  transition: all 0.3s ease-out;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  width: 100%;
}
.product-box .img-box img {
  transition: all 0.3s ease-out;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}
.product-box:hover .img-box img {
  transform: scale(1.08, 1.08);
  -webkit-transform: scale(1.08, 1.08);
  -moz-transform: scale(1.08, 1.08);
  -o-transform: scale(1.08, 1.08);
  -ms-transform: scale(1.08, 1.08);
}
.product-box .info-box {
  background: #fff;
  position: relative;
  z-index: 6;
  text-align: center;
  margin: 0;
  margin-top: 0.5rem;
}
.product-box .info-box .product-name {
  word-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: inherit;
}
.product-box .info-box .product-name a {
  font-size: 13px;
  line-height: 1.5;
  color: #2f2f2f;
  font-weight: 600;
  word-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: inherit;
}
@media (min-width: 768px) {
  .product-box .info-box .product-name a {
    font-size: 14px;
  }
}
.product-box .info-box .price {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
}
.product-box .info-box .price p {
  margin-bottom: 0px;
}
.nav-pagination > li > a,
.nav-pagination > li > span {
  border-radius: unset;
  border: 1px solid #dee2e6;
}
.product-small .product-item {
  position: relative;
  transition: all 0.5s ease-out;
  -webkit-transition: all 0.5s ease-out;
  -moz-transition: all 0.5s ease-out;
  -ms-transition: all 0.5s ease-out;
  -o-transition: all 0.5s ease-out;
}
.product-small .product-item:before,
.product-small .product-item:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  border: 2px solid var(--primary-color);
  border-top: none;
  box-sizing: content-box;
  transition: height 0.3s ease-out, width 0.3s ease-out 0.3s,
    border-color 0.4s ease-in-out;
}
.product-small .product-item-wrap .product-item:hover:before,
.product-small .product-item-wrap .product-item:hover:after {
  width: calc(50% - 2px);
  height: calc(100% - 3px);
  transition: width 0.3s ease-out, height 0.3s ease-out 0.3s,
    border-color 0.4s ease-in-out;
  opacity: 1;
}

.product-small .product-item-wrap .product-item:before {
  right: 50%;
  border-right: none;
}
.product-small .product-item-wrap .product-item:after {
  left: 50%;
  border-left: none;
}
.product-box:before,
.product-box:after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  width: 2px;
  height: 2px;
  opacity: 0;
}
.product-item:hover .product-box:before,
.product-item:hover .product-box:after {
  opacity: 1;
  border-top: 2px solid var(--primary-color);
  width: calc(50% + 0.03px);
  height: 2px;
  transition: opacity 0s ease-out 0.58s, width 0.3s ease-out 0.6s,
    border-color 0.4s ease-in-out;
}
.product-box:before {
  right: 0%;
}
.product-box:after {
  left: 0%;
}

.rank-math-breadcrumb {
  background: #f5f5f8;
  padding: 12px 20px;
  border-radius: 8px;
}

.rank-math-breadcrumb p {
  margin: 0;
  font-size: 14px;
  color: white;
  font-weight: 500;
}

.rank-math-breadcrumb a {
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.rank-math-breadcrumb a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.rank-math-breadcrumb .separator {
  color: #000;
  margin: 0 8px;
  font-weight: bold;
}

.rank-math-breadcrumb .last {
  color: var(--primary-color);
  font-weight: 600;
}

.shop-header-title {
  font-weight: 700;
  font-size: 20px;
  position: relative;
  border-bottom: 1px solid #e8e8e8;
  line-height: 30px;
  padding-top: 7px;
  text-align: left;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.shop-category-info {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
.tool_box {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.left_tool_box {
  display: none;
  align-items: center;
  gap: 20px;
}
.left_tool_box label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 0px;
}
.left_tool_box input[type="radio"] {
  margin: 0;
}
.tool_box-mobile form {
  width: 100%;
}
@media (min-width: 700px) {
  .left_tool_box {
    display: flex;
  }
  .tool_box-mobile {
    display: none;
  }
}

/* Ẩn add-to-cart ban đầu */
.add-to-cart-hover {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  text-align: center;
}
.add-to-cart-hover a {
  margin: 0px;
  background-color: var(--primary-color);
  border-radius: 5px !important;
  text-transform: capitalize;
  font-size: 14px;
  border-radius: 0;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  font-weight: bolder;
  letter-spacing: 0.03em;
  line-height: 2.4em;
  max-width: 100%;
  min-height: 2.5em;
  padding: 0 1.2em;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-rendering: optimizeLegibility;
  text-shadow: none;
  transition: transform 0.3s, border 0.3s, background 0.3s, box-shadow 0.3s,
    opacity 0.3s, color 0.3s;
  vertical-align: middle;
  color: white;
}

/* Hiện khi hover */
.product-small:hover .add-to-cart-hover {
  opacity: 1;
  transform: translateY(-10px);
}
.term-description {
  display: none;
}

/*--------------------------------------------------------------
# SINGLE PRODUCT
--------------------------------------------------------------*/
.custom-product-gallery {
  max-width: 100%;
}

.product-main-swiper {
  width: 100%;
  height: 380px;
  margin-bottom: 1rem;
}

.product-main-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-thumb-swiper {
  padding-top: 10px;
}

.product-thumb-swiper .swiper-slide {
  margin-right: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}

.product-thumb-swiper .swiper-slide-thumb-active,
.product-thumb-swiper .swiper-slide-active {
  border-color: #0071a1;
}

/* Custom Product Info Styles */
.product-info {
  padding-top: 0px;
}
.custom-product-info {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
}

.product-description {
  font-size: 16px;
  color: #000;
  line-height: 1.6;
  margin-bottom: 25px;
  padding: 15px;
  background: #f8f9fa;
  border-left: 4px solid #007cba;
}
.product-description ul {
  margin-bottom: 0px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-description ul li {
  margin: 0px;
}

.product-meta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 0;
  margin-bottom: 0px;
}

.meta-label {
  font-weight: 600;
  color: #333;
}

.meta-value {
  color: #666;
}
.product-button-wrap button,
.product-button-wrap .button {
  margin: 0px;
}
.product-button-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.product-button-wrap .single_add_to_cart_button {
  border: 1px solid rgba(31, 180, 255, 1);
  color: rgba(31, 180, 255, 1);
  background-color: rgba(241, 248, 255, 1) !important;
  box-shadow: none !important;
  border-radius: 0.5rem;
  text-transform: capitalize;
}
.product-button-wrap .single_add_to_cart_button:hover {
  background-color: rgba(31, 180, 255, 1) !important;
  color: white;
}
.product-button-wrap .button-contact {
  border-radius: 0.5rem;
  text-transform: capitalize;
}

.quantity-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
}

.product-para {
  padding: 50px 0px 50px 0px;
  margin-bottom: 40px;
  background-color: #f5f5f8;
}
.product-para-inner {
  padding: 40px;
  background-color: white;
}
.product-para-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}
.papra-content-wrapper {
  position: relative;
}
.papra-content {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.papra-fade {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.papra-toggle-btn {
  display: block;
  margin: 20px auto;
  text-transform: capitalize;
  padding: 2px 36px;
  background: #f0f8ff;
  border: 1px solid var(--secondary-color);
  border-radius: 0.5rem;
  color: var(--secondary-color);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  letter-spacing: 0.03em;
  line-height: 2.4em;
}
.papra-toggle-btn:hover {
  background: var(--secondary-color);
  color: white;
}
.papra-content.open {
  max-height: none;
}
.papra-fade.hidden {
  opacity: 0;
}

.product-rela {
  margin-top: 40px;
}
.related-swiper .swiper-slide {
  width: 25%;
}
@media (max-width: 768px) {
  .product-info {
    padding-top: 10px;
  }
  .product-actions {
    flex-direction: column;
    width: 100%;
  }

  .main-image {
    height: 300px;
  }
  .product-button-wrap {
    grid-template-columns: 1fr;
  }
  .product-para-inner {
    padding: 20px;
  }
}
/*--------------------------------------------------------------
# NOTIFICATION
--------------------------------------------------------------*/
#wrapper > .message-wrapper {
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 15px;
  padding-right: 15px;
}
#wrapper > .message-wrapper .added-to-cart {
  display: none;
}

/* Success Messages */
.woocommerce-message {
  position: relative;
  margin: 20px 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  animation: slideInFromTop 0.5s ease-out;
}

.woocommerce-message:focus-visible {
  display: none;
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.woocommerce-message .message-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
  border: 2px solid #e8f5e8;
  border-left: 5px solid #4caf50;
  border-radius: 12px;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #2e7d32;
  font-size: 16px;
  font-weight: 500;
}

.woocommerce-message .icon-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4caf50, #45a049);
  border-radius: 50%;
  color: white;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.woocommerce-message .icon-checkmark::before {
  content: "✓";
}

/* Error Messages */
.woocommerce-error {
  position: relative;
  margin: 20px 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  list-style: none;
}

.woocommerce-error:focus-visible {
  display: none;
}

.woocommerce-error li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-error .message-container {
  background: linear-gradient(135deg, #ffffff 0%, #fef8f8 100%);
  border: 2px solid #ffebee;
  border-left: 5px solid #f44336;
  border-radius: 12px;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #c62828;
  font-size: 16px;
  font-weight: 500;
}

.woocommerce-error .message-icon,
.woocommerce-error .icon-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f44336, #d32f2f);
  border-radius: 50%;
  color: white;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.woocommerce-error .message-icon::before,
.woocommerce-error .icon-close::before {
  content: "✕";
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce-message .message-container,
  .woocommerce-error .message-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# WHY SECTION
--------------------------------------------------------------*/
.why-section .section-title {
  display: block;
  text-align: center;
}
.why-section .section-title span {
  text-transform: capitalize;
  color: var(--primary-color);
}
.why-section .section-subtitle {
  justify-content: center;
}
.why-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}
.why-box-item {
  display: flex;
  height: 100%;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(120, 129, 158, 0.25);
  padding: 30px;
  align-items: center;
  gap: 30px;
  border: 2px solid white;
  border-radius: 10px;
  min-height: 100%;
}
.why-box-item:hover {
  border: 2px solid var(--secondary-color);
}
.why-box-item img {
  width: 130px;
}
.why-box-content-title {
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 10px;
}
/* Gắn border-radius cho từng vị trí (4 góc) */
.why-box-item:nth-child(1) {
  border-top-left-radius: 32px;
}

.why-box-item:nth-child(2) {
  border-top-right-radius: 32px;
}

.why-box-item:nth-child(3) {
  border-bottom-left-radius: 32px;
}

.why-box-item:nth-child(4) {
  border-bottom-right-radius: 32px;
}
@media (max-width: 700px) {
  .why-box {
    grid-template-columns: 1fr;
  }
}
/*--------------------------------------------------------------
# CETI SECTION
--------------------------------------------------------------*/
.ceti-section .section-header {
  margin-bottom: 10px;
}
.ss-license-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
}

.ss-license-item {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ss-license-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*--------------------------------------------------------------
# PARTNER SECTION
--------------------------------------------------------------*/
.partner-section .section-header {
  margin-bottom: 10px;
}
/* Swiper specific styles */
.partner-logo-slider {
  width: 100%;
  padding: 20px 0; /* Add padding for navigation if enabled */
  overflow: hidden;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px; /* Fixed height for logo items */
  background-color: #ffffff; /* White background for logos */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden; /* Hide overflow if image is too big */
}

.partner-logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.partner-logo-item img {
  max-width: 80%; /* Max width for logos */
  max-height: 70%; /* Max height for logos */
  object-fit: contain; /* Ensure logo fits without cropping */
  transition: transform 0.3s ease;
}

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

/* Swiper Navigation (arrows) */
.partner-logo-slider .swiper-button-prev,
.partner-logo-slider .swiper-button-next {
  color: #ffffff; /* White arrows */
  top: 50%; /* Center vertically */
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
  transition: background-color 0.3s ease;
}

.partner-logo-slider .swiper-button-prev:hover,
.partner-logo-slider .swiper-button-next:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.partner-logo-slider .swiper-button-prev::after,
.partner-logo-slider .swiper-button-next::after {
  font-size: 18px; /* Arrow icon size */
}

/* Swiper Pagination (dots) */
.partner-logo-slider .swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent dots */
}

.partner-logo-slider .swiper-pagination-bullet-active {
  background-color: #ffffff; /* Active dot is solid white */
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .partner-press-section .main-heading {
    font-size: 2em;
  }
  .partner-logo-item {
    height: 90px;
  }
}

@media (max-width: 768px) {
  .partner-press-section {
    padding: 40px 0;
  }
  .partner-press-section .main-heading {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .partner-logo-item {
    height: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Lighter shadow on mobile */
  }
  .partner-logo-slider .swiper-button-prev,
  .partner-logo-slider .swiper-button-next {
    width: 30px;
    height: 30px;
    opacity: 0.7;
  }
}
/*--------------------------------------------------------------
# MARKET SECTION
--------------------------------------------------------------*/
.ss-marketplace-title,
.ss-marketplace-desc {
  text-align: left;
}
.ss-marketplace-list {
  max-width: 1800px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: auto;
}
.ss-marketplace-item {
  padding: 10px;
}
.ss-marketplace-item:hover {
  box-shadow: 0 0 20px rgba(120, 129, 158, 0.25);
  border-radius: 12px;
}
.ss-marketplace-img-wrap {
  width: 100px;
  height: 70px;
}
.ss-buy-button {
  display: inline-flex;
  align-items: center;
  color: #0099ff;
  font-weight: 600;
  position: relative;
  cursor: pointer;
}

.ss-buy-text {
  transition: transform 0.3s ease;
}

.ss-buy-icon {
  display: none;
  margin-left: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  align-items: center;
}

.ss-buy-button:hover .ss-buy-text {
  transform: translateX(-5px);
}

.ss-buy-button:hover .ss-buy-icon {
  display: inline-flex;
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 700px) {
  .ss-marketplace-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Box 1 */
.ss-supermarket-box {
  text-align: left;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(120, 129, 158, 0.25);
}

.ss-supermarket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.ss-supermarket-item img {
  max-width: 100%;
  height: 79px;
  object-fit: contain;
}
/* Box 2 */
.ss-market-box {
  padding: 30px;
  border-radius: 16px;
  background-color: #fff;
  text-align: left;
  box-shadow: 0 0 20px rgba(120, 129, 158, 0.25);
}

.ss-market-desc {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

.ss-market-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.ss-market-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #e7ecf7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-market-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/*--------------------------------------------------------------
# CTA SECTION
--------------------------------------------------------------*/
.w-section-header {
  text-align: left;
  margin-bottom: 50px;
}

.w-section-subtitle {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.w-section-subtitle::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

.w-section-title {
  color: white;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.w-section-description {
  color: white;
  font-weight: 700;
  line-height: 1.2;
}
.w-cta-button {
  background: white;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 32px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.w-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
  color: var(--secondary-color);
}

.w-cta-button:active {
  transform: translateY(0);
}
.cta-section-shape {
  right: 0;
  bottom: 0;
  position: absolute;
  display: inline-block;
}
@media (max-width: 700px) {
  .cta-section-shape {
    display: none;
  }
}

/*--------------------------------------------------------------
# NEWS SECTION
--------------------------------------------------------------*/
.news-section .view-all {
  line-height: 1.2;
  margin-bottom: 8px;
}
.box-blog-post .post-title {
  color: var(--primary-color);
  font-size: 20px;
}
.box-blog-post .post-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.box-blog-post .from_the_blog_excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.box-blog-post .post-meta {
  font-size: 16px;
  color: rgba(92, 92, 95, 1);
}

/*--------------------------------------------------------------
# ARCHIVE POST
--------------------------------------------------------------*/
.blog-wrapper {
  padding-top: 0px;
}

/*--------------------------------------------------------------
# SINGLE POST
--------------------------------------------------------------*/
.entry-header-text-top {
  padding-bottom: 0px;
}

/*--------------------------------------------------------------
# SEARCH PAGE
--------------------------------------------------------------*/
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.product-title {
  font-size: 18px;
  font-weight: 600;
}
.product-price {
  color: #d52b1e;
  font-weight: bold;
  margin: 5px 0;
}
.search-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.tab-content .tab .search-results {
  display: none; /* Ẩn tất cả nội dung bài viết mặc định */
}

.tab-content .tab.active .search-results {
  display: block; /* Chỉ hiển thị nội dung bài viết của tab active */
}
.search-results-container {
  padding-top: 30px;
}
.search-title {
  margin-bottom: 0px;
}
.search-tabs {
  margin: 2em 0;
}

/* CSS để thêm vào file style.css của theme */
.search-tabs .tab-links {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap; /* Cho phép xuống dòng trên màn hình nhỏ nếu cần */
}

.search-tabs .tab-links li {
  margin: 0;
  padding: 0;
  flex: 1; /* Mỗi tab có độ rộng bằng nhau */
  text-align: center;
}

.search-tabs .tab-links a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap; /* Ngăn text xuống dòng trong tab */
  overflow: hidden;
  text-overflow: ellipsis; /* Thêm dấu ... khi text quá dài */
}

.search-tabs .tab-links li.active a {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Responsive styles */
@media screen and (max-width: 767px) {
  .search-tabs .tab-links {
    flex-direction: column; /* Tab xếp dọc trên mobile */
  }

  .search-tabs .tab-links li {
    flex: none;
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .search-tabs .tab-links li:last-child {
    border-bottom: none;
  }

  .search-tabs .tab-links a {
    padding: 12px 10px;
    text-align: left;
  }

  .search-tabs .tab-links li.active a {
    border-bottom: none;
    border-left: 3px solid var(--primary-color);
    background-color: #f7f7f7;
  }
}

/* Phiên bản thay thế: Tab kiểu nút bấm trên mobile */
@media screen and (max-width: 767px) {
  .search-tabs .tab-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
  }

  .search-tabs .tab-links li {
    width: auto;
    border: none;
    margin-bottom: 8px;
  }

  .search-tabs .tab-links a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9em;
    text-align: center;
  }

  .search-tabs .tab-links li.active a {
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: white;
  }
}

/* Phiên bản tab scroll ngang */
@media screen and (max-width: 767px) {
  .search-tabs .tab-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Làm mượt cuộn trên iOS */
    scrollbar-width: none; /* Ẩn thanh cuộn trên Firefox */
    -ms-overflow-style: none; /* Ẩn thanh cuộn trên IE/Edge */
    padding-bottom: 5px;
    justify-content: flex-start;
  }

  .search-tabs .tab-links::-webkit-scrollbar {
    display: none; /* Ẩn thanh cuộn trên Chrome/Safari */
  }

  .search-tabs .tab-links li {
    flex: 0 0 auto;
    width: auto;
    border: none;
  }

  .search-tabs .tab-links a {
    padding: 10px 15px;
    white-space: nowrap;
    text-align: center;
  }

  .search-tabs .tab-links li.active a {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
  }
}

.tab-links li.active a {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab {
  display: none;
  padding: 1.5em 0;
}

.tab.active {
  display: block;
}

.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-item {
  margin-bottom: 1.5em;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5em;
}

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

.search-item .search-item-inner {
  display: flex;
  text-decoration: none;
  color: inherit;
  gap: 1em;
}

.search-thumbnail {
  flex: 0 0 150px;
}

.search-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.search-content {
  flex: 1;
}

.search-content h3 {
  margin: 0 0 0.5em;
  color: var(--primary-color);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.search-content p {
  margin: 0 0 0.5em;
  color: #666;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.search-content .button-wrapper {
  justify-content: flex-start;
}
.search-content .button-wrapper .btn-pri,
.search-content .button-wrapper .btn-sec {
  max-width: 150px;
}
@media (max-width: 410px) {
  .search-content .button-wrapper {
    flex-direction: column;
  }
}
.post-date {
  font-size: 0.9em;
  color: #999;
}

.no-results {
  text-align: center;
  padding: 2em;
  background: #f8f8f8;
  border-radius: 4px;
}

.pagination-wrapper {
  margin-top: 2em;
  text-align: center;
}

.custom-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  margin-top: 2em;
}

.custom-pagination a,
.custom-pagination span {
  padding: 0.5em 1em;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #666;
}

.custom-pagination a:hover {
  background-color: #f5f5f5;
}

.custom-pagination .current-page {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.custom-pagination .dots {
  border: none;
  padding: 0 0.5em;
}

.pagination-prev,
.pagination-next {
  font-weight: bold;
}
/*--------------------------------------------------------------
# CONTACT PAGE
--------------------------------------------------------------*/
.fs-container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  min-height: 600px;
}

.fs-form-section {
  padding: 50px 40px;
  background: #e5e5e5;
}

.contact-info {
  padding: 50px 40px;
  background: linear-gradient(
    90deg,
    rgba(1, 47, 164, 1) 0%,
    rgba(45, 83, 179, 1) 50%,
    rgba(50, 84, 171, 1) 100%
  );
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fs-header {
  margin-bottom: 30px;
}

.start-conversation {
  display: inline-flex;
  align-items: center;
  background: rgba(38, 191, 243, 0.5);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.start-conversation::before {
  content: "●";
  margin-right: 8px;
  color: var(--primary-color);
}

.subtitle {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 24px;
}

.contact-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-content {
  opacity: 0.9;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .fs-container {
    grid-template-columns: 1fr;
  }

  .fs-form-section,
  .contact-info {
    padding: 30px 20px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-details {
    gap: 20px;
  }
}

/* Animation cho form load */
.form-section {
  animation: slideInLeft 0.8s ease-out;
}

.contact-info {
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field textarea {
  width: 100% !important;
  padding: 12px 15px !important;
  border: none !important;
  border-radius: 6px !important;
  background: white !important;
  font-size: 14px !important;
  color: #333 !important;
  transition: all 0.3s ease !important;
}
.wpforms-container-full button[type="submit"] {
  display: flex;
  align-items: center;
  color: white !important;
  background-color: var(--primary-color) !important;
  border: 1px solid #fff !important;
  border-radius: 12px !important;
  background: var(--secondary-color);
  padding: 10px 32px !important;
  font-size: 18px;
  font-weight: 700;
}
.wpforms-container-full button[type="submit"]:focus {
  display: none;
}
/*--------------------------------------------------------------
# FOOTER
--------------------------------------------------------------*/
.footer-section {
  padding-bottom: 0px !important;
}
.absolute-footer {
  background-color: var(--primary-color);
  color: white;
}
.copyright-footer {
  color: white;
}
.footer-txt {
  display: flex;
  flex-direction: row;
  font-size: 16px;
  margin-bottom: 10px;
}
.footer-txt h3 {
  width: 103px;
  font-weight: 500;
  margin-bottom: 0px;
  font-size: 16px;
}
.footer-txt a {
  font-weight: 700;
  flex: 1 1 0%;
}
#footer ul {
  list-style: none;
  margin-left: 0px;
}
#footer ul li {
  margin-left: 0px;
}
.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-icons a {
  background-color: #0180c7;
  border: 3px solid rgba(38, 191, 243, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
