/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
body {
  font-family: "Arial", sans-serif;
}
.nav > li > a,
.mobile-sidebar-levels-2 .nav > li > ul > li > a {
  font-family: "Arial", sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
.heading-font,
.off-canvas-center .nav-sidebar.nav-vertical > li > a {
  font-family: "Arial", sans-serif;
}
.alt-font {
  font-family: "Arial", sans-serif;
}

:root {
  --primary-color: #d72118;
  --secondary-color: #4b4b4d;
}
.absolute-footer {
  display: none;
}
.home .page-wrapper {
  padding-top: 0px;
}
html {
  background-color: #fff;
}

/*--------------------------------------------------------------
# HEADER TOP
--------------------------------------------------------------*/
#header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #fff;
}
.header-inner {
  background-color: #fff;
}
header .top {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 7fr;
  align-items: center;
  padding: 10px 0 10px 0;
}
header .top .header-left a {
  display: flex;
  align-items: center;
}
header .top .logo {
  width: 180px;
  min-width: 100px;
}
.header-right {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 20px;
}
.header-right-item a {
  display: flex;
  align-items: center;
  gap: 7px;
}
.header-right-item a svg {
  color: #d72015;
  width: 18px;
  height: 18px;
}
.header-right-item a span {
  font-size: 14px;
  color: #000;
  display: flex;
  align-items: center;
}
@media (max-width: 600px) {
  .header-right {
    display: none;
  }
}
.header-center.custom-top-message {
  display: flex;
  align-items: end;          /* Căn giữa theo chiều dọc */
  height: 80px;
  font-size: 20px;
  font-weight: bold;
}

/* Responsive: ẩn nếu muốn trên mobile */
@media (max-width: 767px) {
  .header-center.custom-top-message {
    display: none;
  }
}

.mobile-menu-search-form {
  display: flex;
  padding: 5px 20px 5px 20px;
  border-bottom: 1px solid #eee;
  height: 45px;
  align-items: center;
  margin-bottom: 0px;
}
.mobile-menu-search input {
  margin-bottom: 0px;
  padding: 0px;
  font-size: 14px;
  border: none;
  box-shadow: none;
  height: auto;
}
.mobile-menu-search input:focus {
  box-shadow: none;
}
.mobile-menu-search-btn {
  margin: 0px;
  padding: 0px;
  background-color: unset !important;
}
.mobile-menu-search-btn svg {
  width: 14px;
  height: 14px;
  color: #d3240c;
}

/*--------------------------------------------------------------
# HEADER BOTTOM
--------------------------------------------------------------*/
.topnavmultimenu .componentBody {
  position: relative;
}
nav#primary-menu {
  width: auto;
  text-align: center;
}
nav#primary-menu .primary-menu-wrap {
  float: none;
}
.primary-menu {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.primary-menu > li {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-top: 1px solid #f8f8f8;
  border-bottom: 1px solid #f8f8f8;
  margin-bottom: 0px;
}

.primary-menu > li:after {
  background: #d3240c;
  content: "";
  display: block;
  height: 5px;
  width: 0; /* Start with width 0 */
  position: absolute;
  left: 0; /* Start from the left edge of li */
  bottom: 0;
  opacity: 0;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.primary-menu > li:hover:after {
  width: 100%; /* Expand to full width of li */
  opacity: 1;
}
.primary-menu > li.active:after {
  width: 100%; /* Expand to full width of li */
  opacity: 1;
}

.primary-menu > li:hover,
.primary-menu > li.active {
  background-color: #f8f8f8;
}
.primary-menu li.active:after,
.primary-menu li:hover:after {
  left: 0;
  opacity: 1;
  -moz-opacity: 1;
  -khtml-opacity: 1;
  filter: alpha(opacity=100);
}

.primary-menu > li:is(:not(:last-child)) {
  border-right: 1px solid #f8f8f8;
}

.primary-menu > li > a {
  color: #000;
  font-size: 14px;
  width: 100%;
}

.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 350px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 100;
  margin-top: 10px;
  margin-left: 10px;
}

.primary-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
}

.primary-menu .sub-menu li {
  display: block;
  width: 100%;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0px;
  text-align: left;
  padding: 10px 15px;
}

.primary-menu .sub-menu li:last-child {
  border-bottom: none;
}
.primary-menu .sub-menu li:hover,
.primary-menu .sub-menu li.active {
  background-color: #f8f8f8;
}
.primary-menu .sub-menu a {
  /* padding: 10px 15px; */
  display: block;
  font-size: 14px;
  color: #000;
}

.primary-menu .sub-menu {
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
.primary-menu .sub-menu .menu-item.has-children {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.primary-menu .sub-menu .menu-item.has-children .submenu-arrow {
  display: flex;
  align-items: center;
}
.primary-menu li:hover > .sub-menu {
  transform: translateY(0);
}
@media screen and (min-width: 600px) {
  .primary-menu .submenu-link {
    display: none;
  }
}

.primary-menu .sub-menu .level-2 {
  position: absolute;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  margin-top: 0;
  margin-left: 0;
  padding: 15px;
  border: none;
  width: 300px;
  box-shadow: 0 0 50px 0 rgb(32 32 32 / 15%);
  top: 25%;
  left: 63%;
  background-color: #fff;
}
.primary-menu .sub-menu .menu-item.has-children:hover .level-2 {
  opacity: 1;
  visibility: visible;
}
/*--------------------------------------------------------------
# MOBILE MENU
--------------------------------------------------------------*/
/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
}

/* Mobile Menu Container */
.mobile-menu-container {
  background-color: #fff;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  width: 100%;
}

.mobile-menu-container.active {
  height: auto;
  max-height: 80vh;
  overflow-y: auto;
}

@media (min-width: 600px) {
  .mobile-menu-container.active {
    display: none;
  }
}

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

.mobile-menu-list li {
  border-bottom: 1px solid #eee;
  position: relative;
  margin-bottom: 0px;
}

.mobile-menu-list li a {
  display: block;
  color: #000;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
  font-size: 14px;
}

.mobile-menu-list li.has-children {
  position: relative;
}

.mobile-menu-list li.has-children > a {
  width: 85%;
}

.mobile-menu-list .submenu-link {
  position: absolute;
  right: 0;
  top: 0;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-list .submenu-link svg {
  width: 18px;
  height: 18px;
  color: #d3240c;
}

/* Submenu styles */
.mobile-menu-list .dl-submenu {
  display: none;
  list-style: none;
  margin: 0;
}

.mobile-menu-list .dl-submenu.active {
  display: block;
}

.mobile-menu-list .dl-back {
  border-bottom: 1px solid #eee;
}

.mobile-menu-list .dl-back a {
  padding-left: 15px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}
.mobile-menu-list .dl-back a svg {
  color: #d3240c;
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
}

@media (max-width: 600px) {
  .bottom .topnavmultimenu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

.header .top {
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px 15px 5px 15px;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (max-width: 600px) {
  .header .top {
    border-bottom: 1px solid rgb(204, 204, 204);
  }
}
.header .bottom {
  padding: 0px 15px 0px 15px;
}

.mobile-menu-list.submenu-open > li {
  display: none;
}

.mobile-menu-list.submenu-open > li.menu-item-has-children {
  display: block;
}

.mobile-menu-list.submenu-open > li.menu-item-has-children > a {
  display: none;
}

.mobile-menu-list.submenu-open .dl-submenu {
  display: none;
}

.mobile-menu-list.submenu-open .dl-submenu.active {
  display: block;
}
#mobile-menu-toggle-btn svg {
  transition: transform 0.3s ease;
}

#mobile-menu-container.active + .mobile-menu-toggle svg,
.mobile-menu-toggle.active svg {
  transform: rotate(180deg);
}
/*--------------------------------------------------------------
# SEARCH BOX
--------------------------------------------------------------*/

.search-field-wrapper {
  display: flex;
  align-items: center;
}

.search-form {
  display: flex;
  align-items: center;
  margin: 0;
}

.search-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 10px;
  background-color: unset !important;
}

.search-button svg {
  width: 18px;
  height: 18px;
  color: #d72015;
}

.search-field {
  border: none !important;
  border-bottom: 1px solid rgb(204, 204, 204) !important;
  height: auto !important;
  background: transparent !important;
  padding: 5px !important;
  width: 90px !important;
  font-size: 14px !important ;
  transition: width 0.3s ease !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  color: #000;
}
.search-field::placeholder {
  color: #000 !important;
  opacity: 1 !important; /* Đảm bảo không bị mờ */
}

/* Các prefix để tương thích trình duyệt cũ */
.search-field::-webkit-input-placeholder {
  color: #000 !important;
}
.search-field:-moz-placeholder {
  color: #000 !important;
  opacity: 1 !important;
}
.search-field::-moz-placeholder {
  color: #000 !important;
  opacity: 1 !important;
}
.search-field:-ms-input-placeholder {
  color: #000 !important;
}
.search-field:focus {
  width: 200px !important;
}

/* Optional: add a subtle bottom border when focused */
.search-field:focus {
  border-bottom: 1px solid #ddd;
}

/*--------------------------------------------------------------
# ABOUT SECTION
--------------------------------------------------------------*/
.about-section h2 {
  font-size: 30px;
  text-transform: uppercase;
  color: var(--primary-color);
}
.about-section img {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
}
/*--------------------------------------------------------------
# CAT SECTION
--------------------------------------------------------------*/
.cat-section h2 {
  font-size: 30px;
  text-transform: uppercase;
  color: var(--primary-color);
}
.cat-section .box-badge .box-text {
  position: relative;
  padding: 0;
}
.cat-section .box-badge .box-text .box-text-inner {
  background: var(--primary-color);
  padding: 8px 13px 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.cat-section .box-badge .box-text h5 {
  color: #fff;
}
.cat-section .box-badge .box-text span {
  display: flex;
  align-items: center;
}
.cat-section .box-badge .box-text span svg {
  color: #fff;
}
/*--------------------------------------------------------------
# WHY SECTION
--------------------------------------------------------------*/
.why-section h2 {
  font-size: 30px;
  text-transform: uppercase;
  color: var(--primary-color);
}
.baosan-iconbox-wrapper {
  width: 100%;
}

.baosan-iconbox-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.baosan-iconbox-column {
  width: 25%;
  padding: 0 15px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.baosan-iconbox-item {
  text-align: center;
  padding: 30px 15px;
  transition: all 0.3s ease;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  height: 100%;
}

.baosan-iconbox-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.baosan-iconbox-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.baosan-iconbox-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.baosan-iconbox-desc {
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .baosan-iconbox-column {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .baosan-iconbox-column {
    width: 100%;
  }

  .baosan-iconbox-item {
    margin-bottom: 20px;
  }
}
/*--------------------------------------------------------------
# NEWS SECTION
--------------------------------------------------------------*/
.news-section h2 {
  font-size: 30px;
  text-transform: uppercase;
  color: var(--primary-color);
}
.box-blog-post {
  border: 1px solid #f2f4f6;
}
.box-blog-post .box-text {
  padding: 15px;
}
.box-blog-post .post-title a {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.box-blog-post .post-date {
  display: flex;
  align-items: center;
  color: #495663;
  gap: 5px;
  margin-bottom: 10px;
}
.box-blog-post .post-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 10px;
}
.box-blog-post .read-more-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 20px;
  background-color: var(--primary-color);
  border-radius: 20px;
  color: #fff;
}
.box-blog-post .read-more-inner span {
  line-height: normal;
}
.box-blog-post .read-more-link svg {
  width: 10px;
  height: 10px;
}

/*--------------------------------------------------------------
# SINGLE POST
--------------------------------------------------------------*/
.bread-wrapper {
  background-color: var(--primary-color);
}
.bread {
  background-color: var(--primary-color);
  color: #fff;
  padding: 5px 0 5px 0;
}
.rank-math-breadcrumb a {
  color: #fff;
  font-weight: 700;
}
.rank-math-breadcrumb p {
  margin-bottom: 0px;
}
.single .entry-header .post-date {
  display: flex;
  align-items: center;
}
.single .entry-header .post-date span {
  font-size: 14px;
}
.widget-custom h3 {
  font-size: 16px;
  line-height: 40px;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary-color);
  padding: 5px 25px 5px 25px;
  margin-bottom: 0px;
}
.widget-custom ul {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 37px;
}
.widget-custom ul li {
  background: #f5f5f5;
  position: relative;
  margin-bottom: 0px;
  margin-left: 0px;
}
.widget-custom ul li a {
  border-bottom: 0.5px solid rgba(102, 102, 102, 0.15);
  font-weight: 600;
  font-size: 14px;
  line-height: 50px;
  color: #333;
  margin: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/*--------------------------------------------------------------
# ARCHIVE POST
--------------------------------------------------------------*/
/* CSS cho product box trong archive */
.product-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.product-small .button {
  line-height: normal;
  min-height: auto;
  margin-top: 0px !important;
  margin-bottom: 0px !important;
  margin-right: 0px !important;
}

.view-details-button {
  background-color: var(--primary-color) !important;
  color: #fff !important;
  padding: 5px 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}

.contact-button {
  background-color: #fff !important;
  border: 1px solid var(--primary-color);
  color: var(--primary-color) !important;
  padding: 5px 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}

/* CSS cho bộ 3 nút liên hệ trong trang chi tiết sản phẩm */
.contact-buttons-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 15px 0;
}
@media (max-width: 500px) {
  .contact-buttons-container {
    grid-template-columns: 1fr;
  }
}
.contact-button {
  margin: 0;
  min-height: auto;
  line-height: normal;
}

.messenger-button {
  background-color: #fff !important;
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}

.zalo-button {
  background-color: #fff !important;
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}
.phone-button {
  background-color: #fff !important;
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}
.contact-button:hover {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}
.contact-icon {
  height: 20px;
  width: 20px;
  margin-right: 5px;
}

.product-small .product-title a {
	height: 48px;
  font-size: 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
#product-sidebar {
  padding-top: 30px;
}
/*--------------------------------------------------------------
# PRODUCT INFO
--------------------------------------------------------------*/
.prod_info .item {
  border-bottom: 1px solid #d0d0d0;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 20px;
  color: #333;
  display: flex;
  padding: 20px 0;
}
.prod_info .item span {
  display: inline-block;
  min-width: 150px;
}
/*--------------------------------------------------------------
# CONTACT SECTION
--------------------------------------------------------------*/
.contact-info h3 {
  font-size: 18px;
  text-transform: uppercase;
}
.contact-info h4 {
  color: #fff;
  font-size: 16px;
}
.contact-info p {
  font-size: 14px;
}
.contact-info .social-icons {
  padding-top: 20px;
  border-top: 1px solid #fff;
}
.contact-form h3 {
  color: #000;
  font-size: 18px;
  text-transform: uppercase;
}
.wpforms-form button[type="submit"] {
  color: #fff !important;
  border-radius: 3px !important;
  border: 1px solid var(--main-color);
  background: var(--primary-color) !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}
/*--------------------------------------------------------------
# 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;
}

/*--------------------------------------------------------------
# FOOTER
--------------------------------------------------------------*/
#footer .section-title-normal {
  border: none;
}
#footer .section-title-normal span {
  border-bottom: 2px solid var(--primary-color);
}
#footer a {
  text-decoration: underline;
}
#footer a:hover {
  color: var(--primary-color);
}
@media (min-width: 600px) {
  .footer-top {
    padding-bottom: 250px !important;
  }
}
@media (max-width: 600px) {
  .footer-bottom h4 {
    font-size: 14px;
  }
}
.footer-top .bg {
  background: #494949;
  background-blend-mode: luminosity;
}
.footer-bottom a {
  color: #676767;
  font-size: 14px;
}
#footer .footer-menu a {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  color: #000;
}
