/**
 * COMPONENT CSS (TẦNG 2)
 * Chứa các bộ chọn lồng nhau, quan hệ cha-con, hiệu ứng hover con,
 * button components, Swiper custom UI và WooCommerce template overrides.
 */

/* ==========================================================================
   1. BUTTON COMPONENTS (.btn, .btn-primary, .btn-secondary)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  white-space: nowrap;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(20, 166, 82, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(20, 166, 82, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Outline Buttons */
.btn-outline-primary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-outline-secondary {
  background-color: transparent;
  color: var(--color-secondary);
  border-color: var(--color-slate-300);
}

.btn-outline-secondary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}

/* Button Sizes */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-xl);
}

/* ==========================================================================
   2. BADGE COMPONENTS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.badge-secondary {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
  border: 1px solid var(--color-slate-200);
}

.badge-sale {
  background-color: var(--color-danger);
  color: var(--color-white);
}

.badge-hot {
  background-color: var(--color-warning);
  color: var(--color-white);
}

/* ==========================================================================
   3. ICON & MULTILINE TEXT ALIGNMENT HELPER (RULE 6)
   ========================================================================== */
.icon-first-line {
  margin-top: 0.125rem; /* 2px: thẳng hàng hoàn hảo với cap-height dòng đầu */
  flex-shrink: 0;
}

/* ==========================================================================
   4. NAVIGATION & HEADER STICKY (SLIDE DOWN AT 200PX)
   ========================================================================== */
/* Header Base & Wrapper */
.site-header-wrapper {
  position: relative;
  width: 100%;
}

.site-header {
  position: relative;
  width: 100%;
  background-color: var(--color-white);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  z-index: 40;
}

/* Hiệu ứng Sticky: Kích hoạt khi cuộn quá 200px, trượt mượt mà từ trên xuống */
.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  animation: headerSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headerSlideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Desktop Submenu Dropdown & Icon-Stacked Navigation */
.desktop-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav-menu > li {
  position: relative;
  display: flex;
  align-items: center;
}

.desktop-nav-menu > li:not(:last-child):not(.is-last-menu-item):not(.no-divider)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: var(--color-slate-200);
}

/* Bỏ hoàn toàn divider dọc ở biên phải ngoài cùng của Menu (sau mục Liên hệ) */
.desktop-nav-menu > li:last-child::after,
.desktop-nav-menu > li:last-of-type::after,
.desktop-nav-menu > li.is-last-menu-item::after,
.desktop-nav-menu > li.no-divider::after,
.desktop-nav-menu > li:has(a[href*="lien-he"])::after,
.desktop-nav-menu > li:has(a[href*="contact"])::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.desktop-nav-menu > li > a {
  padding: 0.5rem 1rem;
}

.desktop-nav-menu > li > a .menu-item-title {
  font-size: 1rem;
  line-height: 1.5rem;
}

.desktop-nav-menu > li.current-menu-item > a .menu-item-title,
.desktop-nav-menu > li.current-menu-ancestor > a .menu-item-title,
.desktop-nav-menu > li.current_page_item > a .menu-item-title {
  color: var(--color-primary);
}

.desktop-nav-menu > li.current-menu-item > a .menu-item-icon svg,
.desktop-nav-menu > li.current-menu-ancestor > a .menu-item-icon svg,
.desktop-nav-menu > li.current_page_item > a .menu-item-icon svg {
  color: var(--color-primary);
}

.topbar-search-wrapper.is-open .topbar-search-dropdown {
  display: block;
}

.desktop-nav .menu-item,
.desktop-nav-menu .menu-item {
  position: relative;
}

.desktop-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
}

.desktop-nav .menu-item:hover > .sub-menu,
.desktop-nav-menu .menu-item:hover > .dropdown-menu,
.desktop-nav-menu .menu-item:hover > .sub-menu,
.desktop-nav .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-nav .sub-menu .menu-item a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--color-slate-700);
  font-size: 0.875rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.desktop-nav .sub-menu .menu-item a:hover {
  background-color: var(--color-slate-50);
  color: var(--color-primary);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-navigation-drawer,
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 85%;
  max-width: 360px;
  background-color: var(--color-white);
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-navigation-drawer.is-active,
.mobile-drawer.is-active {
  transform: translateX(0);
}

/* ==========================================================================
   5. SWIPER CUSTOM CONTROLS (ARROWS & PAGINATION)
   ========================================================================== */
.swiper-button-next,
.swiper-button-prev {
  width: 42px !important;
  height: 42px !important;
  background-color: var(--color-white) !important;
  color: var(--color-slate-800) !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.3s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

.swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: var(--color-slate-400) !important;
  opacity: 0.6 !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  width: 24px !important;
  border-radius: var(--radius-full) !important;
  background: var(--color-primary) !important;
  opacity: 1 !important;
}

/* ==========================================================================
   6. PRODUCT CARD & HOVER RELATIONS
   ========================================================================== */
.product-card {
  border: 1px solid var(--color-slate-100);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  border-color: var(--color-slate-200);
  box-shadow: var(--shadow-lg);
}

.product-card .hover-actions {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .hover-actions {
  opacity: 1;
}

.product-card .product-thumb img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

/* ==========================================================================
   7. GSAP FOUC SHIELD & PROTECTION
   ========================================================================== */
.gsap-init-hidden {
  opacity: 0;
  will-change: transform, opacity;
}

/* ==========================================================================
   8. WOOCOMMERCE FORM & UI OVERRIDES
   ========================================================================== */
.woocommerce form .form-row {
  margin-bottom: 1rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-focus);
}

.woocommerce .star-rating {
  font-size: 0.875rem;
  color: #eab308;
}


/* ---------------- Additional Button & Utility Styles ---------------- */
.btn-md {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--color-slate-200);
  color: var(--color-slate-700);
}

.btn-outline:hover {
  background-color: var(--color-slate-50);
  border-color: var(--color-slate-300);
  color: var(--color-slate-900);
}


/* ==========================================================================
   9. SEARCH POPUP MODAL & KEYWORD SUGGESTIONS
   ========================================================================== */
.site-search-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.site-search-modal .search-modal-container {
  transform: translateY(-24px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-search-modal.is-open .search-modal-container {
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   TOUCH TARGET ACCESSIBILITY & SWIPER BULLET FIX (WCAG 2.2 AA)
   ========================================================================== */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  margin: 0 6px !important;
  position: relative;
  cursor: pointer;
}
.swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

/* ==========================================================================
   DESKTOP NAV MENU ICONS UNIFORM SIZE
   ========================================================================== */
.desktop-nav-menu .menu-item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.desktop-nav-menu .menu-item-icon svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
}

/* ==========================================================================
   STICKY CTA ACTION BUTTONS (4 NÚT CANH GIỮA SÁT BIÊN PHẢI)
   ========================================================================== */
.sticky-cta-group {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.sticky-cta-btn {
  box-shadow: -2px 4px 14px rgba(0, 0, 0, 0.16);
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.sticky-cta-btn:hover {
  transform: translateX(-4px);
  box-shadow: -4px 6px 18px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   CIRCULAR CATEGORY SLIDER HOVER
   ========================================================================== */
.category-circle-wrapper {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-circle-item:hover .category-circle-wrapper {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(11, 125, 59, 0.2);
  border-color: var(--color-primary);
}

/* ==========================================================================
   HEADER LOGO (CHIỀU CAO H-15 = 60px)
   ========================================================================== */
.header-desktop .header-logo img,
.header-desktop .header-logo .custom-logo {
  height: 3.75rem !important;
  max-height: 3.75rem !important;
  width: auto !important;
  object-fit: contain;
}

/* ==========================================================================
   PRODUCT CORNER RIBBON ("MỚI")
   ========================================================================== */
.ribbon-corner-new {
  position: absolute;
  top: 0;
  left: 0;
  width: 55px;
  height: 55px;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}
.ribbon-corner-new span {
  position: absolute;
  top: 8px;
  left: -22px;
  width: 75px;
  padding: 2px 0;
  background-color: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* ==========================================================================
   FEATURED & NEW PRODUCTS SECTION STYLES
   ========================================================================== */
.section-featured-products .section-header-bar {
  height: 48px !important;
  max-height: 48px !important;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--color-slate-100);
  margin-bottom: 1rem !important;
  box-sizing: border-box;
}
.section-featured-products .section-header-bar h2 {
  white-space: nowrap !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.featured-border-box {
  border: 1.5px solid var(--color-primary);
  background-color: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.group:hover .featured-border-box,
.featured-border-box:hover {
  border-color: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(11, 125, 59, 0.2);
}

/* Ảnh sản phẩm vuông aspect-square và object-cover phủ kín toàn bộ */
.product-card img,
.featured-border-box img,
.new-product-card img,
.featured-horizontal-img-box img,
.featured-vertical-img-box img {
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  width: 100%;
  height: 100%;
}

/* Item sản phẩm nổi bật ngang: ô ảnh và ô content nằm ngang (grid 1fr : 2fr), chiều rộng ảnh bằng 1/2 chiều rộng ô content, ảnh vuông aspect-square */
.featured-item-horizontal {
  display: grid !important;
  grid-template-columns: 1fr 2fr !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100%;
}
.featured-item-horizontal .featured-horizontal-img-box {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.featured-item-horizontal .featured-horizontal-text-box {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ==========================================================================
   ĐỒNG BỘ CHIỀU CAO 3 PHẦN SẢN PHẨM THEO CỘT Ở GIỮA (CHUẨN PIXEL-PERFECT)
   ========================================================================== */
.featured-list-col {
  width: 100%;
  height: auto;
  align-self: flex-start;
}

.featured-main-slider-wrap,
.new-products-slider-wrap {
  width: 100%;
  position: relative;
}

.featured-main-swiper {
  width: 100%;
  overflow: hidden;
  padding-right: 1px !important;
  box-sizing: border-box !important;
}

.new-products-swiper {
  width: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  /* Phần ở giữa hiển thị 100% tự nhiên 4 item, không bị giới hạn hay xén cụt */
  .featured-list-col {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    align-self: flex-start !important;
  }

  /* Slider Phần 1 (bên trái): Căng 100% chiều cao theo Cột ở giữa */
  .featured-main-swiper .swiper-slide {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .featured-item-vertical {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .featured-vertical-content-box {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* Slider Phần 3 (bên phải): 2 slide chia đều chiều cao theo Cột ở giữa */
  .new-products-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .new-product-card {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .new-product-content-box {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
  }
}
.new-product-card {
  border: 1.5px solid var(--color-primary);
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.new-product-card:hover {
  border-color: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(11, 125, 59, 0.2);
  transform: none !important;
}
.new-product-card .new-product-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.new-product-card .new-product-img-box img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
}
.new-product-card .new-product-content-box {
  flex: 1 1 0%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ==========================================================================
   MEGA MENU (MỤC SẢN PHẨM TRÊN DESKTOP HEADER)
   ========================================================================== */
.header-desktop .desktop-nav-menu > li.has-mega-menu {
  position: static;
}

.mega-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--color-primary);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 60;
  padding: 24px 28px;
  display: none;
  pointer-events: auto;
}

.mega-menu-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.header-desktop .desktop-nav-menu > li.has-mega-menu:hover .mega-menu-dropdown {
  display: block;
  animation: megaMenuFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes megaMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-cat-title {
  font-weight: 400 !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   SECTION ABOUT (FIXED BACKGROUND, OVERLAY & VALUE CARDS)
   ========================================================================== */
.section-about {
  position: relative;
  overflow: hidden;
}

.section-about-fixed-bg {
  background-image: url('/wp-content/uploads/2024/03/nha-may-e1722736310180.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .section-about-fixed-bg {
    background-attachment: scroll;
  }
}

/* Lớp phủ nền trắng mờ 88% để làm nổi bật tuyệt đối chữ và nội dung trên ảnh nền */
.section-about-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
  pointer-events: none;
}

.section-about-subtitle {
  font-family: 'Lobster', cursive, sans-serif !important;
  letter-spacing: 0.04em;
}

/* 3 thẻ Sứ mệnh, Tầm nhìn, Giá trị cốt lõi: nền màu đẹp, viền sắc nét, hover nổi bật */
.about-feature-box {
  position: relative;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  text-decoration: none;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.about-feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

/* Thẻ 1: Sứ mệnh (Xanh lam tươi sáng) */
.about-card-su-menh {
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.96) 0%, rgba(224, 242, 254, 0.92) 100%);
  border: 2px solid #38bdf8;
}
.about-card-su-menh:hover {
  border-color: #0284c7;
}

/* Thẻ 2: Tầm nhìn (Xanh lá sinh thái) */
.about-card-tam-nhin {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.96) 0%, rgba(220, 252, 231, 0.92) 100%);
  border: 2px solid #4ade80;
}
.about-card-tam-nhin:hover {
  border-color: #16a34a;
}

/* Thẻ 3: Giá trị cốt lõi (Xanh mòng két cao cấp) */
.about-card-gia-tri {
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.96) 0%, rgba(204, 251, 241, 0.92) 100%);
  border: 2px solid #2dd4bf;
}
.about-card-gia-tri:hover {
  border-color: #0d9488;
}

/* Badge con số: nằm chính xác ngang với biên trên của item (tâm hình tròn nằm trên viền), nền màu đặc nổi bật */
.about-step-badge {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  left: 1.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9375rem;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  z-index: 10;
  transition: all 0.3s ease;
}
.about-feature-box:hover .about-step-badge {
  transform: translateY(-50%) scale(1.12);
}

.about-badge-1 {
  background-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}
.about-badge-2 {
  background-color: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.45);
}
.about-badge-3 {
  background-color: #0d9488;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.45);
}



.about-play-btn {
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: playPulse 2s infinite;
}
@keyframes playPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* ==========================================================================
   VIDEO LIGHTBOX MODAL (YOUTUBE)
   ========================================================================== */
.video-lightbox-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-lightbox-modal.is-open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.video-lightbox-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background-color: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 1 !important;
  cursor: pointer;
}

.video-lightbox-dialog {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 920px !important;
  aspect-ratio: 16 / 9 !important;
  background-color: #000000 !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.video-lightbox-dialog iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
}

/* ==========================================================================
   HOẠT ĐỘNG CÔNG TY (COMPANY ACTIVITIES SECTION)
   ========================================================================== */
.company-activity-vertical .company-activity-img-box {
  aspect-ratio: 16 / 9 !important;
  width: 100%;
  overflow: hidden;
}

.company-activity-vertical .company-activity-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

.company-activity-horizontal {
  display: grid !important;
  grid-template-columns: 1fr 2fr !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100%;
}

.company-activity-horizontal .company-activity-img-box {
  aspect-ratio: 16 / 9 !important;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.company-activity-horizontal .company-activity-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

.company-activity-vertical .company-activity-content-box {
  padding: 1.25rem 1.25rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
}

.company-activity-horizontal .company-activity-text-box {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.875rem 1rem !important;
}

/* Chuẩn hóa Aspect Ratio 16/9 cho toàn bộ ảnh đại diện bài viết */
.post-thumbnail-wrap,
.entry-thumbnail {
  aspect-ratio: 16 / 9 !important;
  width: 100%;
  overflow: hidden;
}

.post-thumbnail-wrap img,
.entry-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

/* ==========================================================================
   TIÊU ĐIỂM NỔI BẬT & QUÉT MÃ QR (HIGHLIGHT & QR PROMO SECTION)
   - Ảnh nền nhà máy ở dạng background-attachment: fixed
   - Phủ xanh cyan (#00a2e8)
   ========================================================================== */
.section-highlight-promo {
  position: relative;
  background-image: url('https://demo-biotechnology.biv.vn/wp-content/uploads/2024/03/nha-may-e1722736310180.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-highlight-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 162, 232, 0.86); /* Phủ xanh cyan tươi sáng chuẩn thiết kế */
  z-index: 1;
  pointer-events: none;
}

.highlight-gallery-swiper {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.highlight-gallery-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

.qr-blue-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #0084f7 0%, #0066d6 100%);
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
