/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
html {
  background-color: #fff;
}
:root {
  --primary-color: #94783d;
  --secondary-color: #253b48;
  --milky-white: #f5eee6;
}
p {
  font-size: 14px;
}
html,
body {
  height: auto !important;
  scroll-behavior: auto !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading-font {
  font-family: "PP Fragment", sans-serif !important;
}

.sectionTitle {
  line-height: 1.2;
  text-transform: uppercase;
  font-size: 30px;
  color: var(--secondary-color);
  margin-bottom: 30px;
}
.no-padding-bottom {
  padding-bottom: 0px !important;
}
#header .stuck #logo img {
  max-height: 50px !important;
}
.header-inner {
  padding-left: 0px !important;
  padding-right: 0px !important;
}
@media (max-width: 849px) {
  .header-main li.html.custom {
    display: block;
  }
}
.off-canvas-center .mfp-content {
  overflow-y: visible;
}
.off-canvas-center .mfp-container {
  background-color: #f5eee6;
}
.off-canvas-center .nav-sidebar.nav-vertical > li {
  justify-content: center;
}
.off-canvas-center:not(.dark) .mfp-close {
  opacity: 1 !important;
}
.download-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  margin-bottom: 1.3em;
}
.download-btn span {
  display: flex;
  align-items: center;
}
.download-btn span svg {
  width: 15px;
  height: 15px;
}
#header .nav > li > a {
  font-weight: 600;
  font-size: 14px;
}
@media (max-width: 549px) {
  #logo img {
    max-height: 50px !important;
  }
}
/*--------------------------------------------------------------
# LOADER
--------------------------------------------------------------*/
/* Khóa cuộn trang khi loader đang hoạt động (phiên bản mạnh hơn) */
html.loader-active {
  overflow: hidden !important;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background-color: #253c48;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transform: scale(1.45);
  transition: transform 1.2s cubic-bezier(0.8, 0, 0.2, 1), opacity 1s ease 1s;
  transform: translateY(0);
  opacity: 1;
}

/* Trạng thái ẩn của loader */
#loader.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Logo */
#loader img {
  width: 210px;
  height: auto;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards 0.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Chữ "Cuộn xuống để khám phá" */
#loader::before {
  content: attr(data-text);
  color: #fff;
  display: block;
  position: absolute;
  z-index: 100;
  font-size: 14px;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(15% - 30px);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Icon con chuột */
#loader::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 100;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: url(/wp-content/uploads/2025/07/mouse.svg) no-repeat center center;
  background-size: contain;
  width: 42px;
  height: 42px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Trạng thái để hiện icon chuột và chữ */
#loader.show-scroll-prompt::before,
#loader.show-scroll-prompt::after {
  opacity: 1;
}
/*--------------------------------------------------------------
# MAIN BANNER
--------------------------------------------------------------*/
/* -- Fullscreen Banner Section -- */

.fsb-section-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000; /* Thêm màu nền đen để tránh bị trắng khi tải */
}

.fsb-slider {
  width: 100%;
  height: 100%;
}

.fsb-section-wrapper .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* --- SỬA LẠI HIỆU ỨNG FADE --- */
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  visibility: hidden;
}
.fsb-section-wrapper .swiper-slide-active {
  opacity: 1;
  visibility: visible;
}
/* ----------------------------- */

/* 1. Lớp ảnh nền */
.fsb-slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  opacity: 0;
  transition: transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 1s ease-in;
}

/* 2. Lớp phủ tối */
.fsb-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transition-delay: 0.5s;
}

/* 3. Lớp nội dung (chữ) */
.fsb-slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 20px;
  max-width: 900px;
}

.fsb-title {
  font-size: 2rem;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 15px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 1s;
}

.fsb-description {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 1.2s;
}

/* Hiệu ứng khi tải trang lần đầu */
.fsb-slider.loaded .swiper-slide-active .fsb-slide-background {
  opacity: 1;
  transform: scale(1);
}

.fsb-slider.loaded .swiper-slide-active .fsb-slide-overlay {
  opacity: 1;
}

.fsb-slider.loaded .swiper-slide-active .fsb-title,
.fsb-slider.loaded .swiper-slide-active .fsb-description {
  opacity: 1;
  transform: translateY(0);
}

/* --- STYLE MỚI CHO PAGINATION & ARROWS --- */
.fsb-slider .swiper-pagination {
  bottom: 30px !important; /* Đẩy pagination lên cao hơn một chút */
}

.fsb-slider .swiper-pagination-bullet {
  width: 35px; /* Chiều rộng của thanh ngang */
  height: 4px; /* Độ dày của thanh */
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: background-color 0.3s ease;
  margin: 0 5px !important;
}

.fsb-slider .swiper-pagination-bullet-active {
  background-color: var(--primary-color);
}

.fsb-slider .swiper-button-next,
.fsb-slider .swiper-button-prev {
  color: #fff;
  width: 44px;
  height: 44px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.fsb-slider .swiper-button-next:hover,
.fsb-slider .swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.fsb-slider .swiper-button-next::after,
.fsb-slider .swiper-button-prev::after {
  font-size: 18px; /* Chỉnh kích thước icon mũi tên */
  font-weight: 900;
}
/* ------------------------------------- */

/* Responsive cho di động */
@media (max-width: 768px) {
  .fsb-title {
    font-size: 1.5rem;
  }
  .fsb-description {
    font-size: 1rem;
  }
  .fsb-slider .swiper-button-next,
  .fsb-slider .swiper-button-prev {
    display: none; /* Ẩn mũi tên trên di động cho gọn */
  }
}
/*--------------------------------------------------------------
# BANNER ANIMATION SHORTCODE
--------------------------------------------------------------*/
/* --- Style cho Banner Động --- */

.animated-banner-container {
  position: relative;
  overflow: hidden;
  background-color: #333; /* Màu nền dự phòng */
}

/* Slider và ảnh */
.animated-banner-slider,
.animated-banner-slider .slick-list,
.animated-banner-slider .slick-track,
.animated-banner-slider .slick-slide > div {
  height: 100%;
}
.animated-banner-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Đảm bảo ảnh luôn vừa vặn */
}

/* Lớp phủ màu tối */
.animated-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0; /* Ban đầu trong suốt */
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

/* Nội dung chữ */
.animated-banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 90%;
  max-width: 800px;
}

/* Tiêu đề (ban đầu ẩn đi) */
.animated-banner-content .banner-title,
.animated-banner-content .banner-subtitle {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s; /* Có độ trễ 0.5s */
}

.animated-banner-content .banner-title {
  font-size: 30px;
  color: white;
}

/* --- KÍCH HOẠT ANIMATION --- */

/* Khi container có class 'is-animated' */
.animated-banner-container.is-animated .animated-banner-overlay {
  opacity: 0.6; /* Ảnh tối lại vừa phải */
}

.animated-banner-container.is-animated .banner-title,
.animated-banner-container.is-animated .banner-subtitle {
  opacity: 1; /* Chữ hiện ra */
  transform: translateY(0);
}

/* --- CSS CHO HIỆU ỨNG ĐƯỜNG KẺ CHẠY NGANG --- */

/* 1. Định nghĩa chuyển động (Keyframes giữ nguyên) */
@keyframes slide-in-out-ltr {
  0% {
    transform: translateX(-101%);
  }
  40%,
  60% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(101%);
  }
}

@keyframes slide-in-out-rtl {
  0% {
    transform: translateX(101%);
  }
  40%,
  60% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-101%);
  }
}

/* Buộc Swiper container và các lớp con của nó phải chiếm 100% chiều cao */
.animated-banner-swiper,
.animated-banner-swiper .swiper-wrapper,
.animated-banner-swiper .swiper-slide {
  height: 100%;
}

/* Buộc ảnh phải lấp đầy slide chứa nó */
.animated-banner-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Luôn lấp đầy, chấp nhận cắt ảnh */
  object-position: center; /* Căn giữa phần ảnh được hiển thị */
}
/* 2. Style cơ bản cho cả hai đường kẻ */
.animated-banner-container::before,
.animated-banner-container::after {
  content: "";
  display: block;
  height: 2px;
  background: #ffffff;
  width: 100%;
  position: absolute;
  z-index: 3;
}

/* 3. Vị trí BAN ĐẦU (quan trọng nhất) */
.animated-banner-container::before {
  top: 160px;
  /* Luôn bắt đầu ở ngoài màn hình bên trái */
  transform: translateX(-101%);
}

.animated-banner-container::after {
  bottom: 160px;
  /* Luôn bắt đầu ở ngoài màn hình bên phải */
  transform: translateX(101%);
}

/* 4. Kích hoạt animation khi cuộn tới */
.animated-banner-container.is-animated::before {
  animation: slide-in-out-ltr 2s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.animated-banner-container.is-animated::after {
  animation: slide-in-out-rtl 2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s forwards;
}

/*--------------------------------------------------------------
# HEADER
--------------------------------------------------------------*/
.header {
  background: url(/wp-content/uploads/2025/07/bg.png) rgba(0, 0, 0, 0) no-repeat
    center center;
  background-size: cover;
  border-bottom: 4px solid #94783d;
  padding: 15px 24px;
}
.header-wrapper.stuck {
  background: url(/wp-content/uploads/2025/07/bg.png) rgba(0, 0, 0, 0) no-repeat
    center center;
  background-size: cover;
  border-bottom: 4px solid #94783d;
  padding: 15px 24px;
}
#header .stuck .header-main {
  height: 50px !important;
}

/*--------------------------------------------------------------
# BANNER SECTION
--------------------------------------------------------------*/
.banner-section .slideTitle {
  line-height: 1.2;
  color: var(--milky-white);
  text-transform: uppercase;
  font-size: 30px;
}
.slider-nav-light .flickity-prev-next-button svg {
  background-color: rgba(245, 238, 230, 0.3);
  border: none;
}
.slider-nav-light .flickity-prev-next-button .arrow {
  fill: rgba(245, 238, 230, 0.5);
}
.slider .flickity-prev-next-button:hover svg {
  background-color: rgba(245, 238, 230, 0.3) !important;
  border: none !important;
}
.slider .flickity-prev-next-button:hover .arrow {
  fill: rgba(245, 238, 230, 0.5) !important;
}
.slider-nav-light .flickity-page-dots {
  bottom: 30px;
}
.slider-nav-light .flickity-page-dots .dot {
  margin: 0;
  margin-left: 10px;
  margin-right: 10px;
  width: 60px;
  position: relative;
  display: inline-block;
  height: 4px;
  border-radius: 4px;
  border-color: var(--primary-color);
  opacity: 1;
}
.slider-nav-light .flickity-page-dots .dot.is-selected {
  border-color: white;
}

/*--------------------------------------------------------------
# OVERVIEW TAB SECTION
--------------------------------------------------------------*/
.tab-content-item {
  gap: 30px;
}
.tab-content-item__text {
  font-size: 12px;
  min-width: 300px;
}
.tab-content-text-m {
  margin-top: 20px;
}
.tab-title-group {
  margin-bottom: 40px;
  max-width: 742px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.tab-description {
  font-size: 16px;
  min-height: 80px;
}
.tab-navigator {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.tab-name {
  display: block;
  cursor: pointer;
  padding: 16px 24px;
  font-size: 14px;
  border-bottom: 2px solid #cabc9e;
  color: #929ea4;
}
.tab-name:hover {
  border-bottom-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: 600;
}
.tab-name.active {
  border-bottom-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: 600;
}

.tab-navigator-m-group {
  border-top: 1px solid var(--secondary-color);
}
.tab-navigator-m {
  padding: 16px 0;
  border-bottom: 1px solid var(--secondary-color);
}

.tab-navigator-m .collapseBtn {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tab-navigator-m .collapseBtn h3 {
  margin-bottom: 0px;
  font-size: 18px;
  font-size: 600;
}
.tab-navigator-m .collapseBtn:after {
  content: "";
  width: 40px;
  height: 40px;
  display: block;
  background: url(/wp-content/uploads/2025/07/plus.svg) rgba(0, 0, 0, 0)
    no-repeat center center;
}
.tab-image-m {
  padding-top: 20px;
}
.overview-desktop {
  display: block;
}
.overview-mobile {
  display: none;
}

.collapseContent {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.collapseContent.open {
  max-height: 1000px;
  padding-top: 16px;
}

@media (max-width: 768px) {
  .overview-desktop {
    display: none;
  }
  .overview-mobile {
    display: block;
  }

  .collapseBtn {
    cursor: pointer;
  }

  .collapseBtn .tab-name {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
  }
}
/*--------------------------------------------------------------
# PROJECT MANAGEMENT SECTION
--------------------------------------------------------------*/
.timeline-gallery-container {
  margin: 0 auto;
}

.timeline-tabs-wrapper.dragscroll {
  cursor: grab;
}
.timeline-tabs-wrapper.dragscroll:active {
  cursor: grabbing;
}

.timeline-tabs-wrapper.no-swiper-tabs {
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 30px;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #888 transparent; /* Firefox */
}

.timeline-tabs-wrapper.no-swiper-tabs::-webkit-scrollbar {
  height: 5px;
}

.timeline-tabs-wrapper.no-swiper-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-tabs-wrapper.no-swiper-tabs::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 3px;
  transition: background 0.3s;
}

.timeline-tabs-wrapper.no-swiper-tabs::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.timeline-tabs-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 2px solid #fff;
  min-width: max-content;
}

.timeline-tab {
  background: white;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  min-width: 125px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.timeline-tab:not(:first-child) {
  border-left: none;
}

.timeline-tab:hover {
  background: #c7c7c7;
  color: white;
  font-weight: 600;
}

.timeline-tab.active {
  background: #c7c7c7;
  color: var(--secondary-color);
  font-weight: 600;
}

.timeline-gallery-content {
  position: relative;
}

.gallery-wrapper {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-wrapper.active {
  display: block;
  opacity: 1;
}

.gallery-wrapper.active {
  color: white;
}

.timeline-gallery-swiper {
  overflow: hidden;
  padding-bottom: 20px;
}

.timeline-gallery-swiper .swiper-slide {
  width: auto;
}

.m-gallery-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

.m-gallery-item img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

.gallery-caption {
  background: #f2f2f2;
  color: #000;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .timeline-tab {
    font-size: 14px;
  }

  .timeline-gallery-swiper .swiper-slide {
    width: 240px;
  }
}

/*--------------------------------------------------------------
# PROJECT LIST SECTION
--------------------------------------------------------------*/
/* ============ DESKTOP ============ */
.project-tabs-wrapper {
  margin-bottom: 24px;
}

/* Tabs dạng danh sách */
.project-tabs {
  display: flex;
  overflow-x: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #eee;
}

.project-tabs-inner.dragscroll {
  cursor: grab;
}
.project-tabs-inner.dragscroll:active {
  cursor: grabbing;
}

.project-tabs li {
  padding: 12px 20px;
  margin: 0 !important;
  border: 1px solid #ccc;
  background: rgb(245, 238, 230);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
  color: #c7c7c7;
  font-size: 15px;
}

.project-tabs li.active {
  background: #c7c7c7;
  border-color: #c7c7c7;
  color: var(--secondary-color);
}
.project-tabs li:hover {
  background: #c7c7c7;
  border-color: #c7c7c7;
  color: var(--secondary-color);
}

/* ============ MOBILE DROPDOWN ============ */
.project-dropdown-wrapper {
  display: none;
  position: relative;
  margin-bottom: 24px;
}

.dropdown-selected {
  padding: 12px 16px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.dropdown-selected::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m19 9l-7 6l-7-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.dropdown-options {
  display: none;
  flex-direction: column;
  border: 1px solid #ccc;
  border-top: none;
  background: #fff;
  position: absolute;
  width: 100%;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.dropdown-options.open {
  display: flex;
}

.dropdown-option {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}
.dropdown-options li {
  list-style: none;
  margin: 0 !important;
}
.dropdown-option:hover,
.dropdown-option.active {
  background: #f0f0f0;
}

/* ============ SLIDER CONTENT ============ */
.project-slide-wrapper {
  display: none;
}

.project-slide-wrapper.active {
  display: block;
}

.project-item {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.project-info {
  text-align: left;
}
.project-thumb img {
  width: 100%;
  height: 415px;
  object-fit: cover;
}

.project-item:hover .imghover {
  width: 100%;
}
.imghover {
  transition: width 0.5s;
  width: 0;
  height: 100%;
  position: absolute;
  background-color: rgba(247, 247, 242, 0.2);
  -o-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  top: 0;
  left: 50%;
}

.project-title {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 10px 0 4px;
  color: var(--secondary-color);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.project-location {
  font-size: 14px;
  color: #666;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .project-thumb img {
    width: 100%;
    height: 415px;
    object-fit: cover;
  }
  .project-tabs-wrapper {
    display: none;
  }

  .project-dropdown-wrapper {
    display: block;
  }

  .dropdown-selected.open::after {
    transform: translateY(-50%) rotate(180deg);
  }
}

/*--------------------------------------------------------------
# INTRO SECTION
--------------------------------------------------------------*/

.intro-section .section-title {
  background: linear-gradient(
    90deg,
    rgba(110, 64, 9, 1) 0%,
    rgba(113, 76, 30, 1) 50%,
    rgba(166, 109, 51, 1) 100%
  );
  padding: 6px 10px;
  border-bottom: none;
  font-size: 14px;
}
.intro-section .section-title-main {
  padding-bottom: 0px;
  margin-right: 0px;
  color: var(--milky-white);
  border-bottom: none;
}
/*--------------------------------------------------------------
# INTERNATIONAL TRAINING
--------------------------------------------------------------*/
.it-tab-header {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 36px;
}
.it-tab-name {
  border-bottom: 2px solid #929ea4;
  min-width: 200px;
  text-align: center;
  display: block;
  cursor: pointer;
  padding: 16px 24px;
  font-size: 14px;
  color: #929ea4;
}
.it-tab-name:hover {
  border-bottom-color: #94783d;
  color: #fff;
  font-weight: 600;
}
.it-tab-name.active {
  border-bottom-color: #94783d;
  color: #fff;
  font-weight: 600;
}
.it-tab-txt {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
  text-align: center;
}
.it-title {
  color: #f5eee6 !important;
}
.it-description {
  color: #f5eee6 !important;
}

/* Swiper container */
.it-swiper {
  padding: 10px 0 70px;
  position: relative;
}

/* Slide item */
.it-slide-item {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.it-slide-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.it-slide-item:hover img {
  transform: scale(1.03);
}

.it-image-label {
  color: #f5eee6;
  text-align: left;
  font-size: 12px;
  margin-top: 10px;
}

/* Swiper pagination */
.it-swiper .swiper-pagination {
  bottom: 0 !important;
  text-align: center;
}

.it-swiper .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
  margin-left: 10px !important;
  margin-right: 10px !important;
  width: 35px;
  border-radius: 4px;
  height: 4px;
}

.it-swiper .swiper-pagination-bullet-active {
  background: var(--primary-color);
}
@media (max-width: 768px) {
  .it-tab-name {
    font-size: 14px;
    padding: 8px 14px;
    min-width: auto;
  }

  .it-title {
    font-size: 20px;
  }

  .it-description {
    font-size: 15px;
  }
}
.it-tab-content {
  display: none;
}

.it-tab-content.active {
  display: block;
}

/*--------------------------------------------------------------
# NEWS SECTION
--------------------------------------------------------------*/
.bl-blog-wrapper {
  margin-top: 40px;
  margin-bottom: 40px;
}

.bl-posts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.bl-post-item {
  flex: 0 0 calc(25% - 15px); /* 4 items per row on desktop */
  box-sizing: border-box;
  background: #fff;
  display: none;
  flex-direction: column;
  background-color: rgb(245, 238, 230);
  position: relative;
}
.bl-post-item:hover .imghover {
  width: 100%;
}

@media (max-width: 1023px) {
  .bl-post-item {
    flex: 0 0 calc(33.333% - 13.34px); /* 3 items on tablet */
  }
}

@media (max-width: 767px) {
  .bl-post-item {
    flex: 0 0 100%;
  }
}
.bl-post-short {
  padding: 15px;
}
.bl-post-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #000;
}

.bl-post-title {
  font-size: 16px;
  margin: 40px 0;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 500;
}

.bl-post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.bl-post-view {
  color: #000;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}
.bl-post-thumb {
  position: relative;
}

.bl-post-thumb img {
  width: 100%;
  height: auto;
}

.bl-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 30px;
}
.bl-page-numbers {
  display: flex;
}

.bl-page-btn {
  padding: 5px 40px;
  border: none;
  background: #eee;
  cursor: pointer;
  margin: 0;
}

.bl-page-btn.active {
  background: #d4d4d4;
}
.bl-page-btn:hover {
  background: #d4d4d4;
}
.bl-page-btn {
  border: 1px solid #d4d4d4;
}
.bl-page-btn:is(:nth-child(2)) {
  border-left: none;
  border-right: none;
}
.bl-page-prev,
.bl-page-next {
  background: #eee;
  color: #000;
  border: none;
  padding: 5px 40px;
  margin: 0;
  cursor: pointer;
  border: 1px solid #d4d4d4;
}
.bl-page-prev {
  border-right: none;
}
.bl-page-next {
  border-left: none;
}
@media (max-width: 600px) {
  .bl-pagination {
    justify-content: center;
  }
  .bl-page-prev,
  .bl-page-next,
  .bl-page-btn {
    padding: 5px 20px;
  }
}

/*--------------------------------------------------------------
# NUMBER SECTION
--------------------------------------------------------------*/
.number-section {
  /* Loại bỏ background-color: #3b302c; */
  color: #333; /* Màu chữ tổng thể mặc định, bạn có thể điều chỉnh */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.number-section .section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 60px;
  color: #333; /* Màu tiêu đề mặc định */
  justify-content: center;
}

.number-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.number-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column; /* Icon/Value trên một hàng, Label xuống dòng */
  align-items: center;
  justify-content: center;
  padding: 15px; /* Thêm padding nhẹ cho mỗi item nếu cần */
  /* background-color: #f9f9f9; /* Ví dụ màu nền cho từng item nếu cần */
  /* border-radius: 8px; */
  /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
}

.number-item-top {
  display: flex; /* Cho icon và số nằm ngang hàng */
  align-items: center; /* Căn giữa theo chiều dọc */
  justify-content: center; /* Căn giữa theo chiều ngang */
  margin-bottom: 10px; /* Khoảng cách giữa hàng trên và label dưới */
  width: 100%; /* Đảm bảo chiếm đủ chiều rộng để căn giữa */
}

.number-item .number-icon {
  font-size: 35px;
  /* color được truyền từ shortcode atts (màu vàng) */
  margin-right: 15px; /* Khoảng cách giữa icon và số */
  line-height: 1; /* Để icon căn giữa tốt hơn */
}

.number-item .number-value {
  font-size: 38px;
  font-weight: bold;
  /* color được truyền từ shortcode atts */
  line-height: 1; /* Đảm bảo căn chỉnh tốt với icon */
}

.number-item .number-label {
  font-size: 14px;
  /* color được truyền từ shortcode atts, có opacity */
  line-height: 1.4;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .number-section .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }
  .number-grid {
    gap: 30px;
  }
  .number-item {
    max-width: 45%;
  }
  .number-item .number-icon {
    font-size: 40px;
    margin-right: 10px;
  }
  .number-item .number-value {
    font-size: 32px;
  }
  .number-item .number-label {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .number-section .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .number-item {
    max-width: 100%;
  }

  .number-item .number-icon {
    font-size: 36px;
    margin-right: 8px;
  }
  .number-item .number-value {
    font-size: 28px;
  }
  .number-item .number-label {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .number-section .section-title {
    font-size: 24px;
  }
  .number-item .number-icon {
    font-size: 32px;
    margin-right: 6px;
  }
  .number-item .number-value {
    font-size: 26px;
  }
}

/*--------------------------------------------------------------
# WPFORM
--------------------------------------------------------------*/
#wpforms-235.wpforms-container input[type="text"],
#wpforms-235.wpforms-container input[type="tel"],
#wpforms-235.wpforms-container input[type="email"] {
  padding: 12px 12px;
  border: none;
  border-bottom: 1px solid #253c48;
  display: block;
  width: 100%;
  background-color: transparent;
  box-shadow: none;
  border-radius: 0px;
}
#wpforms-235.wpforms-container .wpforms-field-label {
  font-weight: 400;
}
#wpforms-235.wpforms-container button[type="submit"] {
  background-color: var(--secondary-color);
  padding: 8px 12px;
  min-width: 103px;
  text-align: center;
  color: #f5eee6;
  text-transform: uppercase;
  margin: 0 auto;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  border-radius: 0px;
  margin: auto;
  display: block;
}
#wpforms-235.wpforms-container button[type="submit"]:focus {
  display: none;
}

#wpforms-235.wpforms-container input[type="checkbox"]::before {
  background-color: var(--primary-color);
  border-radius: 0px;
  border-color: var(--primary-color) !important;
}
#wpforms-235.wpforms-container input[type="checkbox"]:focus::before {
  border-color: var(--primary-color) !important;
  box-shadow: none;
}
#wpforms-235.wpforms-container input[type="checkbox"]::after {
  border-color: white !important;
}
#wpforms-235.wpforms-container .wpforms-field-label-inline a {
  text-decoration: underline;
}

/*--------------------------------------------------------------
# FLOAT BUTTON
--------------------------------------------------------------*/
.floating-buttons {
  position: fixed;
  width: auto;
  bottom: 20px;
  right: 20px;
  text-align: center;
  z-index: 20 !important;
}
.floating-buttons a {
  background: #e9dcce;
  transition: all 0.5s ease-out;
  padding: 10px 20px;
  display: block;
  color: var(--secondary-color);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  text-align: left;
  border: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
.floating-buttons a:hover {
  color: var(--secondary-color);
}
.floating-buttons span {
  display: flex;
  align-items: center;
}
.floating-buttons span svg {
  width: 20px;
  height: 20px;
}
.floating-buttons a.shopping-online {
  background: #ebd8c2;
}
.floating-buttons a.contact-us {
  margin-top: 5px;
}
@media screen and (max-width: 600px) {
  .floating-buttons {
    bottom: 0;
    right: 0;
    width: 100%;
  }
  .floating-buttons a.shopping-online {
    float: right;
    width: 50%;
    justify-content: center;
  }
  .floating-buttons a.contact-us {
    float: left;
    width: 50%;
    margin-top: 0;
    justify-content: center;
    border-right: none;
  }
}

/*--------------------------------------------------------------
# SOUND
--------------------------------------------------------------*/
/* --- Music Toggle Button with Equalizer --- */

.switch {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Phần hình ảnh loa */
.speaker {
  width: 25px;
  height: 25px;
  display: inline-block;
  position: relative;
  margin-right: 5px; /* Khoảng cách với equalizer */
}

/* Phần hiệu ứng Equalizer */
.equalizer {
  position: relative;
  display: flex;
  align-items: flex-end; /* Các thanh sẽ bắt đầu từ dưới */
  width: 25px;
  height: 20px;
}

.equalizer .equalizer__bar {
  background: var(--primary-color);
  height: 3px;
  width: 3px;
  margin: 0 1px;
  /* Animation mặc định khi nhạc chạy */
  animation: sound 500ms linear infinite alternate;
}

/* Khi có class .mute, dừng animation */
.switch.mute .equalizer .equalizer__bar {
  animation: none; /* Tắt hẳn animation */
}

/* Delay cho từng thanh để tạo hiệu ứng lượn sóng */
.equalizer__bar:nth-child(2) {
  animation-delay: -100ms;
}
.equalizer__bar:nth-child(3) {
  animation-delay: -200ms;
}
.equalizer__bar:nth-child(4) {
  animation-delay: -300ms;
}
.equalizer__bar:nth-child(5) {
  animation-delay: -400ms;
}
.equalizer__bar:nth-child(6) {
  animation-delay: -500ms;
}

@keyframes sound {
  0% {
    height: 3px;
  }
  100% {
    height: 18px;
  }
}
/*--------------------------------------------------------------
# PARTNER SECTION
--------------------------------------------------------------*/
/* --- Partner Logo Scroller --- */
.logo-scroller {
  max-width: 100%;
  overflow: hidden;
  /* Hiệu ứng mờ 2 bên cạnh cho đẹp mắt */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  padding-top: 30px;
}

.logo-scroller__track {
  display: flex;
  width: max-content; /* Tự động tính toán chiều rộng */
  animation: scroll-left var(--scroll-duration, 40s) linear infinite;
}

/* Dừng animation khi hover chuột vào */
.logo-scroller:hover .logo-scroller__track {
  animation-play-state: paused;
}

/* Định nghĩa animation chạy sang trái */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    /* Dịch chuyển sang trái đúng bằng 50% chiều rộng của track. 
           Vì track chứa 2 bộ logo, nên khi dịch chuyển 50%, 
           bộ logo thứ 2 sẽ về đúng vị trí bắt đầu của bộ thứ 1, tạo vòng lặp hoàn hảo. */
    transform: translateX(-50%);
  }
}

.logo-scroller__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px; /* Khoảng cách giữa các logo */
}

.logo-scroller__item img {
  height: 55px; /* Chỉnh chiều cao logo tại đây */
  max-width: none; /* Bỏ giới hạn chiều rộng của theme nếu có */
  width: auto;
  filter: brightness(1000%) grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.logo-scroller__item:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# CAPACITY SECTION
--------------------------------------------------------------*/
.capacity-section .number-item .number-icon {
  margin-right: 20px;
}
.capacity-section span.count-up.active {
  color: var(--primary-color);
}
/*--------------------------------------------------------------
# FOOTER
--------------------------------------------------------------*/
@media (max-width: 600px) {
  #footer {
    margin-bottom: 30px;
  }
}

.absolute-footer {
  display: none;
}
.footer-sign {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.footer-top {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social img {
  width: 25px;
}
.footer-info {
  display: flex;
  gap: 30px;
  align-items: center;
}
.footer-info a {
  font-weight: 600;
}

@media (max-width: 680px) {
  .footer-top {
    flex-direction: column;
  }
  .footer-info {
    flex-direction: column;
  }
}

@media (max-width: 550px) {
  .footer-top {
    align-items: flex-start;
  }
  .footer-info {
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .footer-sign {
    flex-direction: column;
    align-items: flex-start;
  }
}
.scroll-to-bullets a {
  border-radius: 0px !important; /* hoặc 0 nếu muốn góc vuông hẳn */
  width: 20px !important;
  height: 10px !important;
}
