/* ===================================================
   TVOne Vietnam B2B - Main Stylesheet
   Version: 2.7 | 2025
   Company: Công ty Cổ phần TVOne Việt Nam
   Industry: Phụ gia thức ăn chăn nuôi - Phytogenics
   =================================================== */

/* =================== CSS VARIABLES =================== */
:root {
  --primary:        #159B4A;
  --primary-light:  #2BC069;
  --primary-dark:   #0E7338;
  --primary-ultra:  #EAF8F0;
  --secondary:      #F9A91B;
  --secondary-light:#FFBE3D;
  --dark:           #233733;
  --text:           #2E3A3E;
  --text-light:     #51646A;
  --text-muted:     #6C7E84;
  --bg-light:       #F6FBF8;
  --bg-soft:        #EEF6F0;
  --bg-white:       #FFFFFF;
  --border:         #DCEDE3;
  --border-light:   #EDF6F0;
  --shadow-sm:      0 2px 12px rgba(20,80,45,.06);
  --shadow-md:      0 8px 30px rgba(20,80,45,.10);
  --shadow-lg:      0 16px 50px rgba(20,80,45,.14);
  --radius:         10px;
  --radius-lg:      18px;
  --radius-xl:      30px;
  --transition:     all 0.3s ease;
  --font:           'Montserrat', sans-serif;
}

/* =================== RESET & BASE =================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  margin: 0; padding: 0;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--secondary); text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--dark); margin: 0 0 15px; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
p  { margin: 0 0 15px; }
ul, ol { padding-left: 20px; }

.container { max-width: 1200px; padding: 0 15px; margin-left: auto; margin-right: auto; }

/* =================== TYPOGRAPHY =================== */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  position: relative;
}
.section-title span { color: var(--primary); }
.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  font-weight: 400;
}
.section-label {
  display: inline-block;
  background: var(--primary-ultra);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.title-line {
  width: 55px; height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
  margin: 14px 0 28px;
}
.title-line.center { margin: 14px auto 28px; }

/* =================== BUTTONS =================== */
.btn-primary-tv {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-size: 0.93rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(13,110,53,.35);
  letter-spacing: 0.4px;
  text-decoration: none;
}
.btn-primary-tv:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(13,110,53,.45);
  text-decoration: none;
}

.btn-secondary-tv {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: var(--dark);
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-size: 0.93rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(244,161,0,.35);
  text-decoration: none;
}
.btn-secondary-tv:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(244,161,0,.55);
  color: var(--dark);
  text-decoration: none;
}

.btn-outline-tv {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-tv:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white-tv {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  color: var(--primary);
  padding: 13px 30px;
  border-radius: var(--radius-xl);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white-tv:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13,110,53,.4);
}

/* =================== HEADER MOBILE =================== */
.header-m {
  background: var(--dark) !important;
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 1000 !important;
  height: 62px !important;
  display: none;
  align-items: center;
  padding: 0 !important;
}
.header-m .container,
.header-m .container-fluid {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}
/* Override global.css: .logo-m { position: absolute; top: 0 } */
.logo-m {
  position: relative !important;
  top: auto !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  z-index: auto !important;
}
.logo-m a { display: flex !important; align-items: center !important; height: 100%; }
.logo-m img { height: 38px !important; width: auto !important; object-fit: contain; }
/* Override global.css: .panel-m { padding-top: 10px } */
.panel-m {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 0 !important;
}
.btn-m {
  background: none !important; border: none; cursor: pointer; padding: 6px;
  display: flex !important; align-items: center !important;
  margin-top: 0 !important;
}
.animated-icon1 {
  width: 26px; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px;
}
.animated-icon1 span {
  display: block; height: 2.5px; background: #fff;
  border-radius: 2px; transition: var(--transition);
}
/* Override global.css: .lang { float: right; margin-top: 16px } */
.lang {
  display: flex !important;
  align-items: center !important;
  gap: 4px;
  margin: 0 !important;
  float: none !important;
}
.lang a {
  font-size: 0.78rem; font-weight: 700;
  color: rgba(255,255,255,0.7);
  padding: 3px 8px;
  border-radius: 4px;
  transition: var(--transition);
  line-height: 1 !important;
  height: auto !important;
}
.lang a:hover, .lang a.act { color: #fff; background: rgba(255,255,255,0.15); }

/* =================== HEADER DESKTOP =================== */
.header {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  width: 100% !important;
  z-index: 999;
  background: rgba(28,43,43,0.97) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
  padding: 0 !important;
}
.header.scrolled {
  background: rgba(28,43,43,0.99);
  box-shadow: 0 4px 30px rgba(0,0,0,.3);
}
.header .container {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header .logo {
  height: 76px;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.header .logo img {
  height: 52px; width: auto;
  transition: var(--transition);
}
.header .logo img:hover { opacity: 0.85; }
.inner-logo {
  display: flex !important;
  align-items: center;
  height: 100%;
  position: relative;
  text-align: unset;
}
.header .logo a,
.header .inner-logo a {
  display: flex !important;
  align-items: center;
  height: 100%;
  vertical-align: unset;
}

/* Navigation */
.nav__wrap { display: flex; align-items: center; gap: 0; }
.menubar ul.nav {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.menubar ul.nav > li {
  position: relative;
  display: flex;
  align-items: center;
}
.menubar ul.nav > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  padding: 0 18px;
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  position: relative;
}
.menubar ul.nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--secondary);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.menubar ul.nav > li > a:hover,
.menubar ul.nav > li.active > a,
.menubar ul.nav > li.li-act-123 > a {
  color: var(--secondary);
  border-bottom-color: transparent;
}
.menubar ul.nav > li > a:hover::after,
.menubar ul.nav > li.active > a::after,
.menubar ul.nav > li.li-act-123 > a::after {
  width: 100%;
}

/* Dropdown Level 2 */
.menubar ul.nav > li .mnu-lv3 {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--dark);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  display: none;
  z-index: 100;
}
.menubar ul.nav > li:hover .mnu-lv3 { display: block; }
.menubar ul.nav > li .mnu-lv3 li { list-style: none; }
.menubar ul.nav > li .mnu-lv3 li a {
  display: flex; align-items: center;
  padding: 10px 20px;
  color: rgba(255,255,255,0.82);
  font-size: 0.87rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.menubar ul.nav > li .mnu-lv3 li a:hover {
  color: var(--secondary);
  background: rgba(255,255,255,0.05);
  border-left-color: var(--secondary);
  padding-left: 26px;
}

/* Mega Menu */
.menubar ul.nav > li.mega-parent .mnu-lv3 {
  min-width: 680px;
  left: 50%; transform: translateX(-50%);
  display: none;
}
.menubar ul.nav > li.mega-parent:hover .mnu-lv3 { display: flex; flex-wrap: wrap; }
.menubar ul.nav > li.mega-parent .mnu-lv3 .mega-col {
  flex: 1;
  min-width: 200px;
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.menubar ul.nav > li.mega-parent .mnu-lv3 .mega-col:last-child { border-right: none; }
.menubar ul.nav > li.mega-parent .mnu-lv3 .mega-col-title {
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 6px;
}

/* Header actions */
.header-actions {
  display: flex; align-items: center; gap: 12px;
  margin-left: 20px;
}
.header-search-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}
.header-search-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.header-lang {
  display: flex; align-items: center;
  gap: 4px;
}
.header-lang a {
  font-size: 0.78rem; font-weight: 700;
  color: rgba(255,255,255,.7);
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.header-lang a:hover { color: var(--secondary); }

/* =================== SLIDESHOW =================== */
.slideshow-wrap { position: relative; overflow: hidden; }
.slideshow-wrap .swiper-slide { position: relative; overflow: hidden; }
.slideshow-wrap img { width: 100%; height: 620px; object-fit: cover; object-position: center; }
.slide-caption {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center;
  background: linear-gradient(to right, rgba(28,43,43,.8) 0%, rgba(28,43,43,.4) 70%, rgba(28,43,43,.1) 100%);
}
.slide-caption .container { position: relative; z-index: 2; padding: 40px 15px; }
.slide-caption-text { max-width: 650px; }
.slide-caption-label {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(244,161,0,.3);
}
.slide-caption h1, .slide-caption h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 18px;
  text-shadow: 3px 3px 10px rgba(0,0,0,.9), 1px 1px 3px rgba(0,0,0,.7);
  letter-spacing: 0.8px;
  word-spacing: 4px;
}
.slide-caption p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 30px;
  line-height: 1.8;
  text-shadow: 2px 2px 6px rgba(0,0,0,.8);
  font-weight: 500;
}
.slide-caption .btn-wrap { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.slideshow-wrap .swiper-pagination-bullet {
  background: rgba(255,255,255,.6);
  opacity: 1;
}
.slideshow-wrap .swiper-pagination-bullet-active {
  background: var(--secondary);
  width: 30px;
  border-radius: 4px;
}
.slideshow-wrap .swiper-button-next,
.slideshow-wrap .swiper-button-prev {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  transition: var(--transition);
  color: #fff;
}
.slideshow-wrap .swiper-button-next:hover,
.slideshow-wrap .swiper-button-prev:hover {
  background: var(--primary);
}
.slideshow-wrap .swiper-button-next::after,
.slideshow-wrap .swiper-button-prev::after { font-size: 16px; }

/* =================== SECTION COMMON =================== */
.section { padding: 80px 0; position: relative; }
.section-sm { padding: 50px 0; }
.section-lg { padding: 100px 0; }
.section-bg { background: var(--bg-light); }
.section-dark { background: var(--dark); }
.section-primary { background: var(--primary); }
.text-center { text-align: center; }
.section .container { padding-left: 15px; padding-right: 15px; }

/* =================== STATS BAR =================== */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h40v40H0z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.stats-bar .container { display: flex; position: relative; z-index: 1; }
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(255,255,255,.12);
  transition: var(--transition);
  min-height: 140px;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.1); }
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,.3);
}
.stat-number span { color: var(--secondary); }
.stat-label {
  font-size: 0.80rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 1.4;
}

/* =================== HOME INTRO/INFO =================== */
.wc {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
}
.wc::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--primary-ultra);
  opacity: 0.5;
  pointer-events: none;
}
.title-wc {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}
.title-wc a { color: inherit; }
.title-wc a:hover { color: var(--primary); }
.content-wc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Hexagon grid for info */
.hexagon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 10px 0;
}
.hex {
  width: calc(33.333% - 14px);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.hex::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.hex:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.hex:hover::before { transform: scaleX(1); }
.icon-hex {
  width: 72px; height: 72px;
  background: var(--primary-ultra);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}
.hex:hover .icon-hex {
  background: var(--primary);
  color: #fff;
  transform: rotateY(180deg);
}
.icon-hex img { width: 36px; height: 36px; margin: auto; }
.name-hex {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}
.content-hex { display: flex; align-items: center; justify-content: center; flex: 1; }

/* =================== PRODUCTS HOME =================== */
.line-pro-home { padding: 80px 0; background: #fff; }
.title-home {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 14px;
}
.title-home a { color: inherit; }
.title-home-pro { font-size: 1.5rem; }
.link-viewmore {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  padding: 8px 0;
  border-bottom: 2px solid var(--primary-ultra);
}
.link-viewmore:hover {
  color: var(--secondary);
  gap: 12px;
  border-bottom-color: var(--secondary);
}
.link-viewmore-pro { margin-bottom: 30px; }
.box-cathome { position: relative; }
.intro-home-cathome {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Product sub-cat slider */
.item-sub-catpro {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.item-sub-catpro:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.item-sub-catpro .img-sub-catpro {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, var(--primary-ultra) 100%);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.item-sub-catpro .img-sub-catpro a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.item-sub-catpro .img-sub-catpro img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
  display: block;
}
.item-sub-catpro:hover .img-sub-catpro img { transform: scale(1.06); }
/* species sub-nav pills reuse .img-sub-catpro at 40px — keep them simple */
.sub_menu_product .img-sub-catpro { padding: 0; background: none; aspect-ratio: auto; }
.sub_menu_product .img-sub-catpro img { width: 100%; height: 100%; object-fit: contain; }
.name-item-sub-catpro {
  font-size: 0.96rem;
  font-weight: 700;
  padding: 16px 18px 6px;
  margin: 0;
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.name-item-sub-catpro a { color: var(--dark); }
.name-item-sub-catpro a:hover { color: var(--primary); }
.intro-item-sub-catpro {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 0 18px 18px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Swiper navigation arrows */
.pos-re { position: relative; }
.button-sl {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  color: var(--primary);
}
.button-sl:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-50%) scale(1.08); }
.button-next { right: -18px; }
.button-prev { left: -18px; }
.button-next::after { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.85rem; }
.button-prev::after { content: '\f053'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.85rem; }

/* Home carousels (products + partners): place arrows centered BELOW the track
   so they never overlap the side text column. Reserve space with padding. */
.box-cathome .pos-re,
.partners-section .pos-re { padding-bottom: 68px; }
.box-cathome .button-sl,
.partners-section .button-sl {
  top: auto; bottom: 6px;
  transform: none;
}
.box-cathome .button-sl:hover,
.partners-section .button-sl:hover { transform: scale(1.08); }
.box-cathome .button-prev,
.partners-section .button-prev { left: 50%; right: auto; margin-left: -50px; }
.box-cathome .button-next,
.partners-section .button-next { left: 50%; right: auto; margin-left: 6px; }

/* =================== PRODUCTS LISTING =================== */
.item-pro {
  margin-bottom: 24px;
}
.inner-item-pro {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.inner-item-pro:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.img-pro {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--bg-light);
  flex-shrink: 0;
}
.img-pro a { display: block; width: 100%; height: 100%; }
.img-pro img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.inner-item-pro:hover .img-pro img { transform: scale(1.07); }
/* Product label badges */
.icon_label, .icon-label {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
}
.icon_label span {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.icon-label-sale::before, .icon-label-new::before, .icon-label-hot::before {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
}
.icon-label-sale::before { content: 'SALE'; background: #e53935; color: #fff; }
.icon-label-new::before  { content: 'NEW';  background: #1976d2; color: #fff; }
.icon-label-hot::before  { content: 'HOT';  background: var(--secondary); color: var(--dark); }

/* Product price */
.price-item { margin: 6px 0; font-size: .95rem; }
.price-item strong { color: var(--primary); font-weight: 700; font-size: 1rem; }
.price-item del { color: var(--text-light); font-size: .85rem; margin-left: 6px; }
.price-item span { font-size: .75rem; }

/* Promotion / sale box */
.box-sale {
  background: #fff8e1;
  border: 1px dashed var(--secondary);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .88rem;
  color: #5d4037;
  margin-bottom: 16px;
}

.content-item-pro {
  padding: 16px 18px;
}
.pro-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.pro-item-name a { color: var(--dark); }
.pro-item-name a:hover { color: var(--primary); }
.price-pro { color: var(--primary); font-weight: 700; font-size: 1rem; }

/* =================== PRODUCT DETAIL =================== */
.pro-detail-wrap { padding: 40px 0 80px; }
.pro-detail-img {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pro-detail-img img { width: 100%; border-radius: var(--radius-lg); }
.pro-detail-name {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}
.pro-detail-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}
.pro-specs-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.pro-specs-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.pro-specs-table td:first-child {
  background: var(--bg-light);
  font-weight: 600;
  width: 35%;
  color: var(--text);
}
.pro-detail-tabs .nav-tabs { border-color: var(--border); margin-bottom: 24px; }
.pro-detail-tabs .nav-link {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.pro-detail-tabs .nav-link.active {
  color: var(--primary);
  border-color: var(--border) var(--border) #fff;
}

/* =================== PRODUCT GALLERY THUMBS =================== */
.pro-swiper-thumbs .swiper-slide {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-light);
  transition: var(--transition);
  opacity: 0.6;
}
.pro-swiper-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.pro-swiper-thumbs .swiper-slide-thumb-active { border-color: var(--primary); opacity: 1; }
.pro-swiper-main .swiper-slide img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pro-thumb-img {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-light);
  transition: var(--transition);
  aspect-ratio: 1;
  background: var(--bg-light);
}
.pro-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.pro-thumb-img.active,
.pro-thumb-img:hover { border-color: var(--primary); }

/* =================== PRODUCT SUBCATEGORY TABS =================== */
.sub_menu_product li a.act,
.sub_menu_product li a:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: var(--primary-ultra) !important;
}
.subtab-pro li a.act,
.subtab-pro li a:hover {
  color: var(--primary) !important;
  border-bottom-color: var(--primary) !important;
}

/* =================== SIDEBAR =================== */
.sidebar-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-header {
  background: var(--bg-light);
  padding: 14px 16px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--dark);
  border-bottom: 1px solid var(--border-light);
}
.sidebar-card-header a { color: inherit; }
.sidebar-card-header a:hover { color: var(--primary); }

/* =================== PAGE LAYOUT =================== */
.page-one { padding: 50px 0 80px; }
.page-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
}
/* Breadcrumb (legacy .crumb class) */
.crumb {
  background: var(--bg-light);
  padding: 10px 0;
  margin-top: 76px;
  font-size: 0.85rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.crumb a { color: var(--primary); }
.crumb a:hover { color: var(--primary-dark); }
.crumb .fa-angle-right { margin: 0 6px; color: var(--text-light); font-size: .75rem; }
.crumb .fa-home { font-size: .95rem; }
@media (max-width: 991px) {
  .crumb { margin-top: 62px; }
}

.breadcrumb-bar {
  background: var(--bg-light);
  padding: 12px 0;
  margin-top: 76px;
}
.breadcrumb-bar .breadcrumb {
  background: none;
  margin: 0; padding: 0;
  font-size: 0.85rem;
}
.breadcrumb-bar .breadcrumb-item a { color: var(--primary); }
.breadcrumb-bar .breadcrumb-item.active { color: var(--text-light); }

.pos-re.slide-child { margin-top: 76px; }
.slideshow-header-offset { margin-top: 76px; }
@media (max-width: 991px) {
  .slideshow-header-offset { margin-top: 62px; }
}

/* =================== INFO / ABOUT =================== */
.about-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  margin-top: 76px;
}
.about-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.about-hero h1 {
  font-size: 2.5rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0,0,0,.4);
}
.about-hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; text-shadow: 1px 1px 4px rgba(0,0,0,.3); }
.about-section { padding: 80px 0; }
.about-section-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding: 80px 0;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 1;
}
.about-img img { width: 100%; display: block; }
.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(13,110,53,.3);
}
.value-title { font-size: 1.2rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.value-text { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* History Timeline */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 60px;
  position: relative;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}
.timeline-dot {
  position: absolute;
  left: 50%; top: 20px;
  width: 20px; height: 20px;
  background: var(--secondary);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--secondary), 0 0 0 6px rgba(13,110,53,.1);
  z-index: 2;
}
.timeline-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  max-width: 440px;
  transition: var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.timeline-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.timeline-text { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }
.timeline-image { margin-top: 12px; border-radius: var(--radius); overflow: hidden; }
.timeline-image img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }

/* =================== NEWS =================== */
.news-wrap { padding: 80px 0; }
.news-home { padding: 80px 0; background: var(--bg-light); }
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.news-card-img a { display: block; width: 100%; height: 100%; }
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.news-card:hover .news-card-img img { transform: scale(1.07); }
.news-card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-card-cat {
  display: inline-block;
  background: var(--primary-ultra);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-card-title a { color: inherit; }
.news-card-title a:hover { color: var(--primary); }
.news-card-intro {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: auto;
}
.news-card-meta i { color: var(--primary); }

/* News featured */
.news-featured {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.news-featured img {
  width: 100%; height: 400px;
  object-fit: cover;
  opacity: 0.5;
}
.news-featured-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(28,43,43,.9));
}
.news-featured-content .news-card-title { font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.news-featured-content .news-card-intro { color: rgba(255,255,255,.7); margin-bottom: 16px; }
.news-featured-content .news-card-meta { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.6); }
.news-featured-content .news-card-meta i { color: var(--secondary); }

/* Article detail */
.article-detail { padding: 50px 0 80px; }
.article-title { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.article-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.85rem; color: var(--text-light);
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-meta i { color: var(--primary); }
.article-content { line-height: 1.9; font-size: 0.97rem; color: var(--text); }
.article-content h2, .article-content h3 { margin-top: 30px; color: var(--dark); }
.article-content img { border-radius: var(--radius); margin: 20px 0; max-width: 100%; }
.article-content ul, .article-content ol { margin-bottom: 18px; }
.article-content li { margin-bottom: 8px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-content table td, .article-content table th {
  padding: 10px 14px;
  border: 1px solid var(--border);
}
.article-content table th { background: var(--bg-light); font-weight: 700; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--primary-ultra);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  margin: 24px 0;
}

/* =================== PARTNER =================== */
.partners-section { padding: 80px 0; }
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  height: 128px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  filter: grayscale(100%);
  opacity: 0.8;
  transition: var(--transition);
}
.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.partner-logo figure { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-height: 78px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
/* =================== VIDEO/IMAGES SECTION =================== */
.video-wrap { padding: 70px 0; }
.video-thumb {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f0f0f0;
  cursor: pointer;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.video-thumb:hover img { transform: scale(1.05); }
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--dark);
  transition: var(--transition);
  z-index: 2;
}
.video-thumb:hover .video-play-btn {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.15);
}
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.partner-slide { overflow: hidden; }

/* =================== CERTIFICATIONS =================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cert-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.cert-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cert-item img { max-height: 80px; margin: 0 auto 14px; }
.cert-name { font-size: 0.9rem; font-weight: 700; color: var(--dark); }
.cert-desc { font-size: 0.82rem; color: var(--text-light); margin-top: 6px; }

/* =================== CONTACT =================== */
.contact-wrap { padding: 80px 0; }
.contact-info-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  height: 100%;
  box-shadow: var(--shadow-md);
}
.contact-info-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 30px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 28px;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.contact-item:hover .contact-icon { background: rgba(255,255,255,.25); }
.contact-text { flex: 1; }
.contact-text strong { display: block; font-size: 0.82rem; opacity: 0.75; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-text span, .contact-text a {
  font-size: 0.98rem;
  color: #fff; font-weight: 500;
  line-height: 1.6;
}
.contact-text a:hover { color: var(--secondary); text-decoration: underline; }
.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  height: 100%;
}
.contact-form-card h3 { font-size: 1.5rem; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,110,53,.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-label { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 6px; display: block; }
.form-control.error { border-color: #E53935; }
.msgbox { font-size: 0.88rem; color: #E53935; margin-top: 8px; }
.msgbox.form_error { color: #E53935; }
.form-success { color: var(--primary); font-size: 0.9rem; }
.waiting { display: none; text-align: center; padding: 10px; }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-sm);
  margin-top: 50px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* =================== DEALER MAP =================== */
.daily-wrap { padding: 80px 0; }
/* Daily / Dealer page */
.filter-daily { background: var(--bg-light); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 30px; border: 1px solid var(--border); }
.btn-search-daily {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 10px 20px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); font-weight: 700; font-size: .9rem;
  transition: var(--transition);
}
.btn-search-daily:hover { background: var(--primary-dark); color: #fff; }
.list-daily table { width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.list-daily thead { background: var(--primary); color: #fff; }
.list-daily thead th { padding: 14px 16px; font-weight: 700; }
.list-daily tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
.list-daily tbody tr:hover { background: var(--bg-light); }
.list-daily tbody td { padding: 14px 16px; vertical-align: middle; }
.info-daily { font-size: .9rem; }
.item-info-daily { padding: 3px 0; color: var(--text-light); font-size: .85rem; }
.item-info-daily-add::before { content: '\f3c5'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 6px; color: var(--primary); }
.item-info-daily-phone::before { content: '\f095'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 6px; color: var(--primary); }
.item-info-daily-email::before { content: '\f0e0'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 6px; color: var(--primary); }
.dealer-info {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
}
.dealer-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.dealer-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.dealer-name { font-weight: 700; color: var(--dark); font-size: 0.95rem; margin-bottom: 6px; }
.dealer-address { font-size: 0.85rem; color: var(--text-light); }
.dealer-phone a { color: var(--primary); font-weight: 600; }

/* =================== SITEMAP =================== */
.sitemap-wrap { padding: 60px 0; }
.sitemap-group h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.sitemap-group ul { list-style: none; padding: 0; }
.sitemap-group ul li { padding: 5px 0; border-bottom: 1px solid var(--border-light); }
.sitemap-group ul li a { color: var(--text); font-size: 0.9rem; }
.sitemap-group ul li a:hover { color: var(--primary); }

/* =================== BREADCRUMB =================== */
.breadcrumb-wrap {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  padding: 16px 0;
  margin-top: 76px;
}
.breadcrumb-wrap .container { display: flex; align-items: center; justify-content: space-between; }
.breadcrumb-title { font-size: 1.5rem; font-weight: 800; color: #fff; }
.breadcrumb-nav { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.breadcrumb-nav a { color: rgba(255,255,255,.7); }
.breadcrumb-nav a:hover { color: var(--secondary); }
.breadcrumb-nav .sep { color: rgba(255,255,255,.4); }
.breadcrumb-nav .current { color: var(--secondary); font-weight: 600; }

/* =================== FOOTER (light, idena-style) =================== */
.footer {
  background: var(--bg-soft, #EEF6F0);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  color: var(--text);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.footer .container { max-width: 1200px; padding: 0 15px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.footer-col { min-width: 0; }
.footer-section { padding: 40px 0; }

.title-footer {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 22px;
  padding-bottom: 12px;
  position: relative;
}
.title-footer::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; border-radius: 3px;
  background: var(--secondary);
}
.line-footer { display: none; }

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.85;
  margin: 18px 0 22px;
}

/* Quick-links list (from CMS {menufooter}) */
.menufooter { list-style: none; padding: 0; margin: 0; }
.menufooter li { padding: 0; }
.menufooter li a {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 0;
  transition: var(--transition);
}
.menufooter li a::before {
  content: '\f054'; /* fa chevron-right */
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 0.62rem;
  color: var(--primary);
  transition: var(--transition);
}
.menufooter li a:hover { color: var(--primary); padding-left: 5px; }
.menufooter li a:hover::before { color: var(--secondary); }

.footer-logo img { height: 54px; width: auto; }

/* Contact list */
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
}
.footer-contact-list li > i {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-ultra);
  color: var(--primary);
  border-radius: 10px;
  font-size: 0.85rem;
  margin-top: 2px;
  transition: var(--transition);
}
.footer-contact-list li:hover > i { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-contact-list li strong { display: block; color: var(--dark); font-weight: 700; margin-bottom: 2px; }
.footer-contact-list li span { display: block; }
.footer-contact-list li a { color: var(--text-light); font-weight: 600; transition: var(--transition); }
.footer-contact-list li a:hover { color: var(--primary); }

.footer-banner {
  width: 100%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  min-height: 280px; border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 40px; object-fit: cover;
}
.content-footer { font-size: 0.9rem; line-height: 1.9; color: var(--text-light); }
.content-footer a { color: var(--text-light); }
.content-footer a:hover { color: var(--primary); }
.content-footer strong { color: var(--dark); }

/* Social icons */
.linksmo { display: flex; gap: 10px; margin-top: 4px; }
.item-smo {
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 0.95rem; font-weight: 800;
  transition: var(--transition);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.item-smo.za { font-size: 0.72rem; letter-spacing: .3px; }
.item-smo:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-4px); }
.item-smo.fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.item-smo.yt:hover { background: #FF0000; border-color: #FF0000; color: #fff; }
.item-smo.li:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.item-smo.za:hover { background: #0190F3; border-color: #0190F3; color: #fff; }

/* Certifications */
.footer-cert { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; }
.footer-cert-badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--dark);
  display: inline-flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.footer-cert-badge:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.footer-cert-badge i { color: var(--secondary); }

.copyright { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }

.footer-bottom {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 18px 0;
  margin-top: 56px;
  font-size: 0.84rem;
  color: var(--text-light);
}
.footer-bottom-inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 10px;
}
.footer-bottom-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.footer-bottom-links .sep { color: var(--border); }
.footer-bottom a { color: var(--text-light); transition: var(--transition); }
.footer-bottom a:hover { color: var(--primary); }
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* =================== FIXED WIDGETS =================== */
.floating-widgets {
  position: fixed;
  right: 20px; bottom: 30px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 50px;
  padding: 10px 18px 10px 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  max-width: 52px;
  overflow: hidden;
  white-space: nowrap;
}
.float-btn:hover { max-width: 220px; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.float-btn-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.float-btn-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.3s;
}
.float-btn:hover .float-btn-text { opacity: 1; }
.float-btn.zalo .float-btn-icon { background: #0190F3; color: #fff; }
.float-btn.facebook .float-btn-icon { background: #1877F2; color: #fff; }
.float-btn.phone .float-btn-icon { background: #E53935; color: #fff; }
.float-btn.phone { animation: pulse-phone 2s infinite; }
@keyframes pulse-phone {
  0%, 100% { box-shadow: 0 4px 20px rgba(229,57,53,.3); }
  50% { box-shadow: 0 8px 30px rgba(229,57,53,.6); }
}
.float-btn.chat .float-btn-icon { background: var(--primary); color: #fff; }
/* =================== RECRUITMENT / HIRING =================== */
.hiring-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 40px;
}
.hiring-banner h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; text-shadow: 2px 2px 8px rgba(0,0,0,.3); }
.hiring-banner p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; opacity: 0.9; }
.hiring-content {
  position: relative;
  z-index: 2;
}
.company-image-section {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f0f0f0;
  margin-bottom: 30px;
}
.company-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.float-btn.messenger .float-btn-icon {
  background: linear-gradient(135deg, #2196F3 0%, #9C27B0 100%);
  color: #fff;
}

/* To-top button */
.to-top {
  position: fixed;
  right: 20px; bottom: 100px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 991;
  font-size: 1.1rem;
}
.to-top.visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--secondary); transform: translateY(-3px); }

/* =================== MODAL SEARCH =================== */
.modal .frm-search {
  display: flex; align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.modal .frm-search input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 1rem;
  outline: none;
  font-family: var(--font);
}
.modal .frm-search input:focus { border-color: var(--primary); }
.btn-submit-search {
  width: 50px; height: 50px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.btn-submit-search:hover { background: var(--primary-dark); color: #fff; }

/* =================== WHY CHOOSE US / CTA =================== */
.why-us { padding: 80px 0; background: var(--bg-light); }
.why-card {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow-md); transform: translateX(5px); }
.why-icon {
  width: 56px; height: 56px;
  background: var(--primary-ultra);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--primary); color: #fff; }
.why-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.why-text { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner h2 { font-size: 2.2rem; color: #fff; font-weight: 800; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 30px; }
.cta-banner .btn-wrap { display: flex; gap: 14px; flex-wrap: wrap; }

/* =================== LOADER/WAIT =================== */
.waiting {
  display: none;
  text-align: center;
  padding: 14px;
  color: var(--primary);
}
.waiting::after {
  content: '';
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =================== ANIMATION =================== */
.ani-item, .ani-item-left, .ani-item-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  /* CSS fallback: show after 1s if JS fails */
  animation: ani-css-fallback 0.5s ease 1s forwards;
}
@keyframes ani-css-fallback {
  to { opacity: 1; transform: none; }
}
.ani-item { transform: translateY(24px); }
.ani-item-left { transform: translateX(-30px); }
.ani-item-right { transform: translateX(30px); }
.ani-item.show, .ani-item-left.show, .ani-item-right.show {
  opacity: 1 !important; transform: none !important;
  animation: none !important;
}

/* =================== VIDEO SECTION =================== */
.video-wrap { padding: 80px 0; }
.video-thumb {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.video-thumb img { width: 100%; height: 340px; object-fit: cover; }
.video-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(28,43,43,.4);
}
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  font-size: 1.6rem;
  transition: var(--transition);
}
.video-thumb:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 12px rgba(244,161,0,.3);
}
.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-container iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}

/* =================== ALBUM / GALLERY =================== */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.album-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.album-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.album-item:hover img { transform: scale(1.07); }
.album-item-overlay {
  position: absolute; inset: 0;
  background: rgba(13,110,53,.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: #fff;
  font-size: 1.5rem;
}
.album-item:hover .album-item-overlay { opacity: 1; }

/* =================== RECRUITMENT =================== */
.job-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 26px;
  border: 1px solid var(--border-light);
  margin-bottom: 18px;
  transition: var(--transition);
}
.job-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.job-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.job-title a { color: inherit; }
.job-title a:hover { color: var(--primary); }
.job-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 0.83rem; color: var(--text-light);
  margin-bottom: 14px;
}
.job-meta span { display: flex; align-items: center; gap: 5px; }
.job-meta i { color: var(--primary); }
.job-tag {
  display: inline-block;
  background: var(--primary-ultra);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}
.job-tag.urgent { background: #FFF3E0; color: #E65100; }

/* =================== STATIC PAGES =================== */
.static-content { padding: 60px 0 80px; }
.static-content .page-title { font-size: 2rem; font-weight: 800; margin-bottom: 30px; color: var(--dark); }
.content-detail { line-height: 1.9; font-size: 0.97rem; }
.content-detail h2 { font-size: 1.5rem; color: var(--primary); margin: 30px 0 14px; }
.content-detail h3 { font-size: 1.2rem; margin: 24px 0 12px; }
.content-detail img { border-radius: var(--radius); margin: 16px 0; }
.content-detail table { width: 100%; border-collapse: collapse; }
.content-detail table td, .content-detail table th {
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.content-detail table th { background: var(--primary); color: #fff; text-align: left; }
.content-detail table tr:nth-child(even) td { background: var(--bg-light); }

/* =================== AI/CHATBOT INTEGRATION =================== */
.ai-chat-widget {
  position: fixed;
  bottom: 90px; right: 20px;
  z-index: 995;
  display: none;
}
.ai-chat-bubble {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 340px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ai-chat-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  color: #fff;
}
.ai-chat-header img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); }
.ai-chat-header-info { flex: 1; }
.ai-chat-header-name { font-weight: 700; font-size: 0.95rem; }
.ai-chat-header-status { font-size: 0.75rem; opacity: 0.8; display: flex; align-items: center; gap: 5px; }
.ai-chat-header-status::before { content: ''; width: 7px; height: 7px; background: #4CAF50; border-radius: 50%; }
.ai-chat-close { cursor: pointer; opacity: 0.7; transition: var(--transition); }
.ai-chat-close:hover { opacity: 1; transform: rotate(90deg); }
.ai-chat-messages { height: 240px; overflow-y: auto; padding: 16px; background: var(--bg-light); }
.ai-msg { margin-bottom: 12px; display: flex; gap: 8px; }
.ai-msg.bot .ai-msg-bubble {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}
.ai-msg.user { flex-direction: row-reverse; }
.ai-msg.user .ai-msg-bubble {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius) 0 var(--radius) var(--radius);
}
.ai-msg-bubble { padding: 10px 14px; font-size: 0.85rem; line-height: 1.5; max-width: 80%; }
.ai-chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.ai-chat-input input {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
}
.ai-chat-input input:focus { border-color: var(--primary); }
.ai-chat-send {
  width: 38px; height: 38px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.ai-chat-send:hover { background: var(--primary-dark); }

/* =================== PAGINATION =================== */
.pagination {
  display: flex; justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active, .pagination span.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* =================== SEARCH =================== */
.search-wrap { padding: 60px 0 80px; }
.search-form-bar {
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 22px;
  display: flex; gap: 10px;
  margin-bottom: 40px;
  border: 2px solid var(--border);
}
.search-form-bar input {
  flex: 1; border: none; background: transparent;
  font-size: 1rem; outline: none;
  font-family: var(--font); color: var(--text);
}
.search-result-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  transition: var(--transition);
}
.search-result-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.search-result-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.search-result-title a { color: var(--dark); }
.search-result-title a:hover { color: var(--primary); }

/* =================== MISC =================== */
.lazy { background-color: var(--bg-light); }
img.lazy-img { opacity: 0; transition: opacity 0.5s; }
img.lazy-img.loaded { opacity: 1; }
.pos-re { position: relative; }
.lazy[data-bg] { background-size: cover; background-position: center; }
.swiper-container { overflow: hidden; }
.intro-cat { overflow: hidden; }
.expandable-target { display: none; }

/* =================== STICKY TOP OFFSET =================== */
.pos-re.slide-child, #top-page-content { margin-top: 76px; }

/* =================== RESPONSIVE =================== */
@media (max-width: 1199px) {
  .menubar ul.nav > li > a { padding: 0 12px; font-size: 0.82rem; }
  .hex { width: calc(33.333% - 14px); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .header { display: none; }
  .header-m { display: flex; }
  .breadcrumb-wrap, .about-hero,
  .pos-re.slide-child, #top-page-content { margin-top: 62px; }
  .slideshow-wrap img { height: 460px; }
  .slide-caption h1, .slide-caption h2 { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .hex { width: calc(50% - 10px); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 24px; }
  .timeline-item { padding-right: 0; padding-left: 60px; justify-content: flex-start; }
  .timeline-item:nth-child(even) { padding-left: 60px; }
  .timeline-dot { left: 24px; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.9rem; }
}

@media (max-width: 767px) {
  body { font-size: 14px; }
  h1 { font-size: 1.7rem; }
  .section { padding: 50px 0; }
  .slideshow-wrap img { height: 340px; }
  .slide-caption h1, .slide-caption h2 { font-size: 1.6rem; }
  .slide-caption p { font-size: 0.92rem; }
  .section-title { font-size: 1.5rem; }
  .hex { width: 100%; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .container { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .contact-info-card, .contact-form-card { padding: 28px 22px; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .floating-widgets { right: 12px; bottom: 20px; }
  .ai-chat-bubble { width: calc(100vw - 40px); }
  .cta-banner h2 { font-size: 1.7rem; }
  .footer { padding: 50px 0 0; }
  .map-wrap { height: 300px; }
}

@media (max-width: 575px) {
  .stat-item { flex: 0 0 100%; }
  .cert-grid { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-caption h1, .slide-caption h2 { font-size: 1.4rem; }
}

/* =================== PRINT =================== */
@media print {
  .header, .header-m, .footer, .floating-widgets, .to-top { display: none !important; }
  body { font-size: 12pt; color: #000; }
}

/* =================== SUBTAB INFO (about pages) =================== */
.subtab-info {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.subtab-info .tab-scoll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subtab-info .tab-scoll::-webkit-scrollbar { display: none; }
.subtab-info .tab-scoll li { flex-shrink: 0; }
.subtab-info .tab-scoll li a {
  display: block;
  padding: 14px 22px;
  color: rgba(255,255,255,.75);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.subtab-info .tab-scoll li a:hover,
.subtab-info .tab-scoll li a.act {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

/* =================== IMG-HEX (icon inside hex card) =================== */
.img-hex {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.icon-hex img.lazy, .icon-hex img.lazy-img {
  width: 36px; height: 36px;
  object-fit: contain;
}

/* =================== COLLAPSIBLE TOC =================== */
.collapsible {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  width: 100%;
  text-align: left;
  margin-bottom: 4px;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}
.collapsible::after { content: '▼'; font-size: 0.75rem; transition: transform 0.3s; }
.collapsible.active::after { transform: rotate(180deg); }
.collapsible:hover { background: var(--primary-ultra); color: var(--primary); }
.content-toc { display: none; padding: 12px 0; }

/* =================== MOBILE IMPROVEMENTS =================== */
@media (max-width: 991px) {
  .subtab-info .tab-scoll li a { padding: 12px 16px; font-size: 0.82rem; }
  .breadcrumb-wrap .container { flex-direction: column; align-items: flex-start; gap: 6px; }
  .breadcrumb-title { font-size: 1.2rem; }
  .about-hero { padding: 60px 0 40px; }
  .about-hero h1 { font-size: 1.9rem; }
  .contact-info-card, .contact-form-card { padding: 28px; }
  .timeline-content { max-width: 100%; }
  .stat-number { font-size: 2rem; }
  .news-featured img { height: 300px; }
  .float-btn { padding: 9px 14px 9px 9px; }
  .float-btn-icon { width: 28px; height: 28px; }
}

@media (max-width: 767px) {
  .subtab-info .tab-scoll li a { padding: 10px 14px; font-size: 0.8rem; }
  .about-hero { padding: 50px 0 30px; }
  .about-hero h1 { font-size: 1.6rem; }
  .contact-info-card, .contact-form-card { padding: 22px 18px; }
  .section-label { font-size: 0.72rem; padding: 5px 14px; }
  .news-card-img { height: 190px; }
  .img-sub-catpro { height: 150px; }
  .img-pro { height: 180px; }
  .inner-item-pro:hover { transform: none; }
  .news-card:hover { transform: none; }
  .hex:hover { transform: none; }
  .timeline-content { padding: 16px 18px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert-item { padding: 20px 14px; }
  .cert-item img { max-height: 60px; }
  .value-card { padding: 22px 18px; }
  .partner-logo { height: 70px; padding: 10px 14px; }
  .article-title { font-size: 1.6rem; }
  .pro-gallery .pro-swiper-main { border-radius: var(--radius); }
  .footer-logo img { height: 44px; }
  .footer .col-xl-4 { margin-bottom: 8px; }
  .footer-cert { gap: 6px; }
  .footer-cert-badge { font-size: 0.72rem; padding: 4px 10px; }
  .footer-bottom .d-flex { flex-direction: column; text-align: center; gap: 6px !important; }
  .news-featured img { height: 240px; }
  .button-sl { width: 34px; height: 34px; }
  .breadcrumb-title { font-size: 1.1rem; }
  .page-name { font-size: 1.7rem; }
  .breadcrumb-wrap { padding: 12px 0; }
}

@media (max-width: 575px) {
  .about-hero h1 { font-size: 1.4rem; }
  .section-title { font-size: 1.3rem; }
  .img-sub-catpro { height: 140px; }
  .news-card-img { height: 170px; }
  .contact-info-card, .contact-form-card { padding: 18px 14px; }
  .contact-item { gap: 12px; }
  .contact-icon { width: 38px; height: 38px; font-size: 0.95rem; flex-shrink: 0; }
  .contact-info-card h3 { font-size: 1.2rem; margin-bottom: 20px; }
  .contact-form-card h3 { font-size: 1.2rem; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-item, .timeline-item:nth-child(even) { padding-left: 46px; }
  .timeline-dot { left: 16px; }
  .timeline::before { left: 16px; }
  .map-wrap { height: 260px; }
  .article-title { font-size: 1.4rem; }
  .article-meta { flex-wrap: wrap; gap: 8px; font-size: 0.8rem; }
  .breadcrumb-title { font-size: 1rem; }
  .page-name { font-size: 1.5rem; }
  .pro-item-name { font-size: 0.9rem; }
  .img-pro { height: 160px; }
  .hexagon-grid { gap: 14px; }
  .hex { padding: 24px 18px; }
  .icon-hex { width: 58px; height: 58px; font-size: 1.4rem; }
  .name-hex { font-size: 0.9rem; }
}

/* =================== TOUCH DEVICE IMPROVEMENTS =================== */
@media (hover: none) {
  .inner-item-pro:hover,
  .news-card:hover,
  .hex:hover,
  .value-card:hover,
  .cert-item:hover,
  .partner-logo:hover { transform: none; }
  .float-btn { max-width: none; }
  .float-btn-text { opacity: 1; }
  .float-btn { padding: 10px 14px 10px 10px; }
}

/* =================== SWIPER MOBILE =================== */
@media (max-width: 767px) {
  .swiper-button-next, .swiper-button-prev { display: none; }
  .slideshow-wrap .swiper-button-next,
  .slideshow-wrap .swiper-button-prev { display: flex; width: 36px; height: 36px; }
  .slideshow-wrap .swiper-button-next::after,
  .slideshow-wrap .swiper-button-prev::after { font-size: 12px; }
}

/* =================== FORM MOBILE =================== */
@media (max-width: 767px) {
  .form-control { padding: 10px 14px; font-size: 16px; /* prevent iOS zoom */ }
  .btn-primary-tv, .btn-secondary-tv { padding: 12px 22px; font-size: 0.88rem; }
  .modal-body { padding: 20px 16px; }
}

/* =================== MMENU OVERRIDES =================== */
.mm-menu { background: var(--dark) !important; }
.mm-navbar { background: var(--primary) !important; }
.mm-navbar__title { color: #fff !important; font-weight: 700; font-size: 1rem; }
.mm-listitem__text { color: rgba(255,255,255,.85) !important; font-size: 0.9rem; }
.mm-listitem--selected > .mm-listitem__text,
.mm-listitem--selected > .mm-listitem__btn { background: rgba(255,255,255,.08) !important; color: var(--secondary) !important; }
.mm-listitem::after { border-color: rgba(255,255,255,.08) !important; }
.mm-btn::before, .mm-btn::after { border-color: rgba(255,255,255,.45) !important; }
.mm-listitem__btn { color: rgba(255,255,255,.45) !important; }

/* =================== PRODUCT DETAIL MOBILE =================== */
@media (max-width: 767px) {
  .attrs { font-size: 0.85rem; }
  .attr-item { flex-direction: column; gap: 4px; padding: 10px 14px; }
  .attr-name { min-width: unset !important; }
  .pro-swiper-thumbs { height: 65px !important; }
  .pro-swiper-thumbs .swiper-slide { height: 60px; }
}

/* =================== TABLE MOBILE =================== */
@media (max-width: 767px) {
  .table-responsive table { min-width: 600px; font-size: 0.85rem; }
  .table-responsive table td, .table-responsive table th { padding: 10px 10px; }
}

/* =================== SLIDESHOW MOBILE =================== */
@media (max-width: 575px) {
  .slideshow-wrap img { height: 220px !important; object-position: center; }
  .slide-caption { background: linear-gradient(to top, rgba(28,43,43,.85) 0%, rgba(28,43,43,.3) 60%, transparent 100%); align-items: flex-end; padding-bottom: 30px; }
  .slide-caption-text { max-width: 100%; }
  .slide-caption h1, .slide-caption h2 { font-size: 1.2rem; margin-bottom: 10px; }
  .slide-caption p { display: none; }
  .slide-caption .btn-wrap { gap: 8px; }
  .pos-re.slide-child, #top-page-content, .breadcrumb-wrap, .about-hero { margin-top: 62px !important; }
}

/* =================== NEWS MOBILE =================== */
@media (max-width: 575px) {
  .news-card-body { padding: 14px 16px; }
  .news-card-title { font-size: 0.92rem; }
  .news-card-cat { font-size: 0.7rem; padding: 3px 10px; margin-bottom: 8px; }
  .news-card-meta { font-size: 0.75rem; gap: 10px; }
  .article-content { font-size: 0.93rem; }
  .intro-detail { font-size: 0.95rem !important; padding: 14px !important; }
}

/* =================== HEADER-M LOGO FIX =================== */
.logo-m a { display: flex; align-items: center; }
.logo-m img { max-height: 40px; width: auto; object-fit: contain; }

/* =================== PAGING =================== */
.paging { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 10px 0; }
.paging a, .paging span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  transition: var(--transition);
}
.paging a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-ultra); }
.paging .active, .paging span.current, .paging b {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
@media (max-width: 575px) {
  .paging a, .paging span { min-width: 34px; height: 34px; font-size: 0.82rem; }
}

/* =================== FAQ / ACCORDION =================== */
.faq-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary) !important; }
.faq-btn {
  background: #fff !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  padding: 18px 24px !important;
  border: none !important;
  box-shadow: none !important;
}
.faq-btn:not(.collapsed) {
  background: var(--primary-ultra) !important;
  color: var(--primary) !important;
}
.faq-btn::after {
  filter: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230D6E35'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
}
.faq-body { padding: 20px 24px !important; background: var(--bg-light); font-size: 0.95rem; line-height: 1.8; }

/* =================== SHARE BUTTONS =================== */
.share-buttons { margin: 20px 0; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 0.9rem;
  color: #fff;
  transition: var(--transition);
  background: var(--text-muted);
}
.share-btn:hover { transform: scale(1.12); color: #fff; }
.share-fb { background: #1877F2; }
.share-fb:hover { background: #0f5ec1; }
.share-tw { background: #000; }
.share-tw:hover { background: #222; }
.share-li { background: #0A66C2; }
.share-li:hover { background: #074a8d; }
.share-em { background: var(--primary); }
.share-em:hover { background: var(--primary-dark); }
.share-pr { background: var(--text-light); }
.share-pr:hover { background: var(--dark); }

/* =================== CAT HOME (HOME CATEGORY SLIDER) =================== */
.item-cathome {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.item-cathome:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.img-cat { margin-bottom: 16px; }
.img-cat img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto; }
.name-item-cat { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.name-item-cat a { color: var(--dark); }
.name-item-cat a:hover { color: var(--primary); }
.intro-item-cat { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* =================== HOVER EFFECTS =================== */
.item-hvr, .ite-hvr { transition: var(--transition); }
.item-hvr:hover, .ite-hvr:hover { opacity: 0.85; }

/* =================== TITLE MORE =================== */
.title-more { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.title-more span { color: var(--primary); }

/* link-viewmore defined in HOME section above */

/* =================== SHARED IMAGE CONTAINERS =================== */
/* Fix: ensure <a> inside any image container fills its parent
   (needed because <a> defaults to display:inline, breaking height:100% on img) */
.img-pro a,
.img-sub-catpro a,
.news-card-img a,
.img-hvr a,
.img-catser a,
.img-item-proj a,
.img-hvr-wrap a { display: block; height: 100%; }

/* .img-hvr — generic hover image container used in service/hocvien/news listing */
.img-hvr {
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-light);
}
.img-hvr img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.item-hvr:hover .img-hvr img,
.item-news:hover .img-hvr img { transform: scale(1.05); }

/* .img-catser — category/service image container */
.img-catser {
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-light);
}
.img-catser img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.item-service:hover .img-catser img { transform: scale(1.05); }

/* .item-news — generic news list item */
.item-news {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  transition: var(--transition);
}
.item-news:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.name-item-news { font-size: 1rem; font-weight: 700; margin: 12px 0 6px; }
.name-item-news a { color: var(--dark); }
.name-item-news a:hover { color: var(--primary); }
.intro-item-news { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.content-item-media { padding: 12px 14px 14px; }

/* .item-service modernised */
.item-service {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
  transition: var(--transition);
}
.item-service:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.content-catser { padding: 14px 16px 18px; }
.content-catser.ih { flex: 1; }
.name-item-service { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.name-item-service a { color: var(--dark); text-transform: none; }
.name-item-service a:hover { color: var(--primary); }
.intro-item-service { font-size: 0.85rem; color: var(--text-light); line-height: 1.65; }

/* .img-item-proj — project image container */
.img-item-proj {
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-light);
}
.img-item-proj img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.item-proj:hover .img-item-proj img { transform: scale(1.05); }
.item-proj { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; background:#fff; border: 1px solid var(--border-light); transition: var(--transition); }
.item-proj:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.name-item-proj { font-size: 0.95rem; font-weight: 700; padding: 12px 14px 6px; margin: 0; }
.name-item-proj a { color: var(--dark); }
.name-item-proj a:hover { color: var(--primary); }
.intro-item-proj { font-size: 0.83rem; color: var(--text-light); padding: 0 14px 14px; line-height: 1.6; }

/* Fix: global.css sets .content-detail img { height: auto !important }
   which correctly overrides for editorial content — no change needed there.
   But override it for image containers inside content areas */
.img-pro img,
.img-sub-catpro img,
.news-card-img img,
.img-hvr img,
.img-catser img,
.img-item-proj img { height: 100% !important; }

/* Ensure slideshow and video thumbnail images fill properly */
.slideshow-wrap .swiper-slide img {
  width: 100%; height: 620px;
  object-fit: cover; object-position: center;
  display: block;
}
.news-featured a { display: block; }
.news-featured img { display: block; }

/* Fix partner logo display */
.partner-logo img {
  max-height: 50px; width: auto;
  object-fit: contain;
  display: block !important;
  margin: 0 auto;
}
.partner-logo figure { display: flex; align-items: center; justify-content: center; height: 60px; margin: 0; }

/* ================================================================
   ISSUE FIXES v3.0 - Comprehensive site polish
   Addresses 21 visual issues reported in audit (May 2026)
   ================================================================ */

/* ---- 1. HERO / SLIDESHOW - Stronger overlay & readable text ---- */
.slide-caption {
  background: linear-gradient(to right,
    rgba(0,0,0,.7) 0%,
    rgba(0,0,0,.5) 55%,
    rgba(28,43,43,.25) 100%) !important;
}
.slide-caption::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
  pointer-events: none;
  z-index: 0;
}
.slide-caption .container { z-index: 2; }
.slide-caption-text { max-width: 720px; }
.slide-caption h1,
.slide-caption h2 {
  text-shadow: 2px 2px 6px rgba(0,0,0,.85), 0 0 18px rgba(0,0,0,.55) !important;
  letter-spacing: 1px !important;
}
.slide-caption p {
  text-shadow: 1px 1px 4px rgba(0,0,0,.85) !important;
  color: #fff !important;
}
.slide-caption-label {
  box-shadow: 0 6px 18px rgba(244,161,0,.45);
}

/* ---- 2,3. ABOUT SECTION - Better contrast / 3-col with visuals ---- */
.section.wc {
  position: relative;
}
.section.wc::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(13,110,53,.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(244,161,0,.04) 0%, transparent 40%);
  pointer-events: none;
}
.section.wc > .container { position: relative; z-index: 1; }
.content-wc {
  max-width: 900px;
  margin: 0 auto 36px;
  line-height: 1.85;
  color: var(--text);
  font-size: 1rem;
  text-align: center;
}

/* About hero overlay for stronger contrast */
.about-hero::before {
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(13,110,53,.55) 100%) !important;
}
.about-hero h1 {
  text-shadow: 2px 2px 8px rgba(0,0,0,.7) !important;
}
.about-hero p {
  text-shadow: 1px 1px 4px rgba(0,0,0,.6) !important;
  color: rgba(255,255,255,.95) !important;
}

/* ---- 4. MISSION/VISION/VALUES - balanced 3-col cards ---- */
.value-grid,
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.value-card,
.mission-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: var(--transition);
}
.value-card:hover,
.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.value-card .icon,
.mission-card .icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary-ultra);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 18px;
  transition: var(--transition);
}
.value-card:hover .icon,
.mission-card:hover .icon {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 991px) {
  .value-grid, .mission-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .value-grid, .mission-grid { grid-template-columns: 1fr; gap: 16px; }
  .value-card, .mission-card { min-height: auto; padding: 28px 22px; }
}

/* ---- 5. NAV MENU - Balanced spacing ---- */
.menubar ul.nav {
  justify-content: space-evenly;
  width: 100%;
}
.menubar ul.nav > li > a {
  padding: 0 16px !important;
}
@media (min-width: 1200px) {
  .menubar ul.nav > li > a { padding: 0 20px !important; }
}

/* ---- 6. PRODUCT IMAGE - Consistent aspect ratio ---- */
.img-pro,
.img-sub-catpro,
.img-hvr,
.img-catser {
  aspect-ratio: 4/3;
  height: auto !important;
  overflow: hidden;
}
.img-pro img,
.img-sub-catpro img,
.img-hvr img,
.img-catser img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* ---- 7. SIDEBAR MENU - Consistent left alignment ---- */
.sidebar-menu ul,
.sidebar-menu ol,
.box-menu-side ul,
.left-sidebar ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.sidebar-menu li,
.box-menu-side li,
.left-sidebar li {
  padding: 0;
  margin: 0;
}
.sidebar-menu li a,
.box-menu-side li a,
.left-sidebar li a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
}
.sidebar-menu li a:hover,
.box-menu-side li a:hover,
.left-sidebar li a:hover,
.sidebar-menu li.active > a,
.box-menu-side li.active > a {
  color: var(--primary);
  background: var(--primary-ultra);
  padding-left: 18px;
}

/* ---- 8. VIDEO/IMAGES - 2-column layout ---- */
.video-wrap .row { row-gap: 24px; }
.video-thumb {
  aspect-ratio: 16/9;
  height: auto;
  background: #000;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---- 9. TIMELINE - Images render correctly ---- */
.timeline-image {
  aspect-ratio: 16/9;
  background: var(--bg-light);
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 14px;
}
.timeline-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.timeline-image:empty,
.timeline-image:not(:has(img)) {
  display: none;
}

/* ---- 11,12. RECRUITMENT - hiring banner & company image ---- */
.hiring-banner {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hiring-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,110,53,.85) 0%, rgba(28,43,43,.75) 100%);
  z-index: 1;
}
.hiring-banner > * { position: relative; z-index: 2; }
.company-image-section {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 420px;
  margin-bottom: 24px;
  background: #f0f0f0;
}
.company-image-section img,
.recruitment-image img,
.company-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- 13. NEWS CARDS - Better image & text handling ---- */
.news-card-img {
  aspect-ratio: 16/9;
  height: auto !important;
  overflow: hidden;
}
.news-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.news-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-card-intro {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- 14. CONTACT - Responsive flex layout ---- */
.contact-wrap .container,
.contact-wrap .row {
  max-width: 1200px;
  margin: 0 auto;
}
.contact-wrap .row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
}
.contact-wrap .row > [class*="col-"] {
  flex: 1 1 480px;
  min-width: 0;
  padding: 0;
}
@media (max-width: 767px) {
  .contact-wrap .row { flex-direction: column; gap: 16px; }
  .contact-wrap .row > [class*="col-"] { flex: 1 1 100%; }
}

/* ---- 16. FOOTER - Better grid spacing ---- */
.footer { padding: 60px 0 0; }
.footer .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.footer-section { padding: 50px 0 30px; }
@media (max-width: 991px) {
  .footer .row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 575px) {
  .footer .row { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- 17. FOOTER BANNER - Cover sizing ---- */
.footer-banner {
  width: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.footer-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- 19. RESPONSIVE polish ---- */
@media (max-width: 1024px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 60px 0; }
  .slide-caption h1, .slide-caption h2 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .slide-caption .btn-wrap { gap: 10px; }
  .btn-primary-tv, .btn-secondary-tv,
  .btn-white-tv, .btn-outline-tv {
    font-size: 0.85rem;
    padding: 10px 18px;
  }
  .stat-number { font-size: 1.8rem !important; }
  .hexagon-grid { gap: 14px; }
  .why-card { padding: 18px; gap: 14px; }
  .why-icon { width: 46px; height: 46px; font-size: 1.1rem; }
  .item-sub-catpro, .news-card { margin-bottom: 0; }
}
@media (max-width: 480px) {
  body { font-size: 14px; }
  h1, h2 { word-break: break-word; }
  .slide-caption h1, .slide-caption h2 { font-size: 1.35rem; line-height: 1.35; }
  .slide-caption p { font-size: 0.86rem; line-height: 1.6; }
  .slide-caption .btn-wrap { flex-direction: column; align-items: flex-start; }
  .slide-caption .btn-wrap > a { width: 100%; justify-content: center; }
  .slideshow-wrap img,
  .slideshow-wrap .swiper-slide img { height: 380px !important; }
  .stats-bar .container { flex-direction: column; }
  .stat-item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); min-height: 90px; padding: 18px; }
  .stat-item:last-child { border-bottom: none; }
  .breadcrumb-wrap .container { padding: 8px 16px; }
  .contact-info-card, .contact-form-card { padding: 20px 16px; }
}

/* ---- 20. PERFORMANCE - Smoother image loading ---- */
img {
  max-width: 100%;
  height: auto;
}
img[loading="lazy"] {
  background: var(--bg-light);
}

/* ---- 21. BROWSER COMPAT - Vendor prefixes & fallbacks ---- */
.img-pro,
.img-sub-catpro,
.img-hvr,
.img-catser,
.news-card-img,
.timeline-image,
.video-thumb,
.company-image-section,
.album-item {
  /* aspect-ratio fallback for older Safari/Firefox */
  position: relative;
}
@supports not (aspect-ratio: 1) {
  .img-pro::before,
  .img-sub-catpro::before,
  .news-card-img::before,
  .video-thumb::before,
  .company-image-section::before { content: ''; display: block; padding-bottom: 75%; }
  .img-pro > *,
  .img-sub-catpro > *,
  .news-card-img > *,
  .company-image-section > * { position: absolute; inset: 0; }
  .news-card-img::before { padding-bottom: 56.25%; }
}

/* Smooth scroll & focus outlines */
html { scroll-behavior: smooth; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Prevent horizontal overflow on small screens */
html, body { overflow-x: hidden; }

/* ================================================================
   END ISSUE FIXES v3.0
   ================================================================ */

/* ================================================================
   SOLUTIONS BY SPECIES (v3.5) - idena-style cream cards + footprint deco
   ================================================================ */
.fp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.solution-card {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: #F4F0E6;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
  box-shadow: 0 2px 14px rgba(28,43,43,.05);
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(28,43,43,.16);
}
.sc-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}
.solution-card .solution-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 12px;
  line-height: 1.2;
}
.solution-card .solution-text {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 2;
  max-width: 92%;
}
.sc-arrow {
  position: absolute;
  top: 26px; right: 26px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  font-size: 1rem;
  transform: rotate(45deg);
  transition: var(--transition);
  z-index: 3;
}
.solution-card:hover .sc-arrow { transform: rotate(45deg) translate(3px,3px); color: var(--primary); }
/* Footprint decoration layer */
.sc-deco {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 58%;
  opacity: .5;
  z-index: 1;
  pointer-events: none;
  transition: transform .45s ease, opacity .45s ease;
}
.solution-card:hover .sc-deco { transform: translateY(-6px) scale(1.04); opacity: .72; }
/* per-species colors (currentColor drives both stroke & fill of the shapes) */
.sc-poultry .sc-deco { color: #F4A100; }
.sc-poultry .sc-deco .fp-alt { color: #1E88E5; }
.sc-pig     .sc-deco { color: #E91E63; }
.sc-pig     .sc-deco .fp-alt { color: #14B8A6; }
.sc-cattle  .sc-deco { color: #1FA64E; }
.sc-cattle  .sc-deco .fp-alt { color: #8B5A2B; }
.sc-aqua    .sc-deco { color: #0288D1; }
.sc-aqua    .sc-deco .fp-alt { color: #5AC8F5; }
@media (max-width: 991px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .solution-card { min-height: 260px; }
}
@media (max-width: 575px) {
  .solutions-grid { grid-template-columns: 1fr; gap: 16px; }
  .solution-card { min-height: 220px; padding: 26px 24px; }
  .solution-card .solution-name { font-size: 1.4rem; }
}

/* ================================================================
   CORE VALUES BAND (v3.5) - idena-style colored band + photo collage
   ================================================================ */
.values-band {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.values-band::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
.values-band .container { position: relative; z-index: 1; }
.vb-title { margin-bottom: 36px; }
.vb-pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--dark);
  color: #fff;
  font-size: 1.35rem; font-weight: 800;
  padding: 12px 26px;
  border-radius: 50px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.vb-pill i { color: var(--secondary); }
.vb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.vb-cards { display: flex; flex-direction: column; gap: 22px; }
.vb-card {
  position: relative;
  background: rgba(255,255,255,.96);
  border-radius: var(--radius-lg);
  padding: 26px 24px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  transition: var(--transition);
}
.vb-card:hover { transform: translateX(6px); box-shadow: 0 14px 38px rgba(0,0,0,.18); }
.vb-tab {
  position: absolute;
  top: -14px; left: 24px;
  background: var(--secondary);
  color: var(--dark);
  font-size: 0.82rem; font-weight: 800;
  letter-spacing: .3px;
  padding: 6px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 16px rgba(244,161,0,.4);
}
.vb-card-body { display: flex; align-items: flex-start; gap: 16px; margin-top: 6px; }
.vb-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-ultra);
  color: var(--primary);
  font-size: 1.15rem;
}
.vb-card-body p { margin: 0; font-size: 0.92rem; line-height: 1.7; color: var(--text); }
.vb-card-body strong { color: var(--primary-dark); font-weight: 700; }

/* Photo collage (organic shapes, idena-style) */
.vb-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  padding: 10px;
}
.vb-collage .vc { overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.vb-collage .vc img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.vb-collage .vc:hover img { transform: scale(1.07); }
.vc-1 { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; aspect-ratio: 3/4; margin-top: 24px; }
.vc-2 { border-radius: 48% 52% 50% 50% / 50% 50% 50% 50%; aspect-ratio: 4/5; }
.vc-3 { border-radius: 50%; aspect-ratio: 1/1; }
.vc-4 { border-radius: 52% 48% 50% 50% / 55% 55% 45% 45%; aspect-ratio: 4/5; margin-top: -18px; }
@media (max-width: 991px) {
  .vb-grid { grid-template-columns: 1fr; gap: 36px; }
  .vb-collage { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 575px) {
  .values-band { padding: 60px 0; }
  .vb-pill { font-size: 1.1rem; padding: 10px 20px; }
  .vc-1, .vc-4 { margin-top: 0; }
}
/* ================================================================
   END SOLUTIONS / CORE VALUES BAND
   ================================================================ */

/* ================================================================
   2-TIER HEADER + MEGA MENU (v3.3) - idena-style
   ================================================================ */
/* ---- Top utility bar ---- */
.header-top {
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-top .container.header-top-inner {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-top-left,
.header-top-right { display: flex; align-items: center; gap: 22px; }
.ht-item {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.72);
  font-size: 0.8rem; font-weight: 500;
  white-space: nowrap;
}
.ht-item i { color: var(--secondary); font-size: 0.82rem; }
.ht-item:hover { color: #fff; }
.header-top .header-lang { gap: 2px; }
.header-top .header-lang a {
  color: rgba(255,255,255,.78);
  font-weight: 700; font-size: 0.78rem;
  padding: 2px 5px; border-radius: 4px;
}
.header-top .header-lang a:hover { color: var(--secondary); }
.header-top .header-lang .sep { color: rgba(255,255,255,.3); font-size: 11px; }

/* ---- Main bar height (keep 76px) ---- */
.header-main > .container { height: 76px; }

/* ---- Fixed-header offset bumped to 116px (40 top + 76 main) on desktop ---- */
@media (min-width: 992px) {
  .pos-re.slide-child,
  #top-page-content,
  .crumb,
  .breadcrumb-wrap,
  .about-hero,
  .slideshow-header-offset { margin-top: 116px !important; }
}
/* Mobile keeps single .header-m (62px); hide the utility bar */
@media (max-width: 991px) {
  .header-top { display: none; }
}

/* ---- Top-level caret points down ---- */
@media (min-width: 992px) {
  .menubar ul.nav > li > i.fa-angle-right {
    transform: rotate(90deg);
    color: rgba(255,255,255,.45);
    font-size: 0.7rem;
    margin-left: -8px;
    pointer-events: none;
    transition: var(--transition);
  }
  .menubar ul.nav > li:hover > i.fa-angle-right { color: var(--secondary); }
}

/* ---- MEGA MENU: any top item whose dropdown has nested sub-lists (Sản phẩm) ---- */
@media (min-width: 992px) {
  .menubar ul.nav > li:has(.mnu-lv3 li > ul) > .mnu-lv3 {
    display: none;
    min-width: 720px;
    left: 50%;
    transform: translateX(-50%);
    padding: 22px 28px 24px;
  }
  .menubar ul.nav > li:has(.mnu-lv3 li > ul):hover > .mnu-lv3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 36px;
  }
  /* species heading */
  .menubar ul.nav > li:has(.mnu-lv3 li > ul) > .mnu-lv3 > li > a {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    padding: 10px 4px 8px;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,.12);
    margin-bottom: 4px;
  }
  .menubar ul.nav > li:has(.mnu-lv3 li > ul) > .mnu-lv3 > li > a:hover {
    background: none; padding-left: 4px;
  }
  /* nested sub-product list -> flat block within column */
  .menubar ul.nav > li:has(.mnu-lv3 li > ul) > .mnu-lv3 > li > ul {
    display: block !important;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    margin: 0 0 14px;
  }
  .menubar ul.nav > li:has(.mnu-lv3 li > ul) > .mnu-lv3 > li > ul > li > a {
    padding: 6px 8px;
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255,255,255,.78);
    border-left: 2px solid transparent;
  }
  .menubar ul.nav > li:has(.mnu-lv3 li > ul) > .mnu-lv3 > li > ul > li > a:hover {
    color: var(--secondary);
    border-left-color: var(--secondary);
    padding-left: 12px;
    background: rgba(255,255,255,.05);
  }
}
/* ================================================================
   END 2-TIER HEADER + MEGA MENU
   ================================================================ */

/* ================================================================
   KEY FIGURES counter band (v3.4) - idena-style
   ================================================================ */
.key-figures {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.key-figures::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.key-figures .container { position: relative; z-index: 1; }
.kf-head { margin-bottom: 40px; }
.kf-head .section-title { margin-bottom: 0; }
.kf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.kf-item {
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: var(--transition);
}
.kf-item:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-6px);
}
.kf-icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15);
  color: var(--secondary);
  font-size: 1.5rem;
  transition: var(--transition);
}
.kf-item:hover .kf-icon { background: var(--secondary); color: var(--dark); transform: rotateY(180deg); }
.kf-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 2px 2px 6px rgba(0,0,0,.25);
}
.kf-number .stat-number { color: #fff; }
.kf-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
@media (max-width: 767px) {
  .key-figures { padding: 50px 0; }
  .kf-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .kf-number { font-size: 2.2rem; }
}
@media (max-width: 380px) {
  .kf-grid { grid-template-columns: 1fr; }
}
/* ================================================================
   END KEY FIGURES
   ================================================================ */

/* ================================================================
   HOMEPAGE SYNC v3.6 (idena layout polish)
   - About/intro feature cards (photo banner + overlapping icon)
   - Footer grid proportions + de-clutter
   ================================================================ */

/* ---- About / intro feature cards (.hex) ---- */
.section.wc .content-wc {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.hexagon-grid { margin-top: 48px; align-items: stretch; }
.hex {
  width: calc(33.333% - 14px);
  padding: 0 !important;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hex-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--primary-ultra, #eef5ee);
}
.hex-photo img,
.hex-photo .img-hex {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block;
  transition: transform 0.6s ease;
}
.hex:hover .hex-photo img { transform: scale(1.06); }
.hex-body {
  position: relative;
  padding: 0 26px 30px;
  margin-top: -34px;
  text-align: center;
}
.hex .icon-hex {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}
.hex:hover .icon-hex {
  background: var(--primary);
  transform: translateY(-4px);
}
.hex:hover .icon-hex img { filter: brightness(0) invert(1); }
.hex .icon-hex img { width: 34px; height: 34px; object-fit: contain; transition: var(--transition); }
.hex .name-hex { text-align: center; font-size: 1.05rem; }
@media (max-width: 991px) {
  .hex { width: calc(50% - 10px); }
}
@media (max-width: 575px) {
  .hex { width: 100%; }
  .hexagon-grid { margin-top: 32px; }
}

/* ---- Footer: hide the stray empty heading the CMS menu block injects ---- */
.footer .title-footer:has(+ .menufooter) { display: none; }
/* ================================================================
   END HOMEPAGE SYNC v3.6
   ================================================================ */

/* ================================================================
   SITE BRIGHTEN v3.9 — frosted-light header, dynamic About, rhythm
   ================================================================ */

/* ---- Header: frosted light bar + bright text ---- */
.header {
  background: rgba(255,255,255,0.80) !important;
  box-shadow: 0 2px 24px rgba(20,80,45,.10) !important;
  border-bottom: 1px solid rgba(255,255,255,.55);
}
.header.scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 6px 28px rgba(20,80,45,.13) !important;
}
.header-top { background: var(--primary) !important; border-bottom: none !important; }
.menubar ul.nav > li > a { color: var(--dark); text-shadow: 0 1px 1px rgba(255,255,255,.4); }
.menubar ul.nav > li > a:hover,
.menubar ul.nav > li.active > a,
.menubar ul.nav > li.li-act-123 > a { color: var(--primary); }
/* dropdowns → light */
.menubar ul.nav > li .mnu-lv3 { background: #fff; box-shadow: var(--shadow-lg); border-top-color: var(--primary); }
.menubar ul.nav > li .mnu-lv3 li a { color: var(--text); }
.menubar ul.nav > li .mnu-lv3 li a:hover { color: var(--primary); background: var(--primary-ultra); border-left-color: var(--primary); }
.menubar ul.nav > li.mega-parent .mnu-lv3 .mega-col { border-right-color: var(--border-light); }
.menubar ul.nav > li.mega-parent .mnu-lv3 .mega-col-title { color: var(--primary); border-bottom-color: var(--border-light); }
/* mega-menu (Sản phẩm) on the new LIGHT dropdown: dark, readable text */
@media (min-width: 992px) {
  .menubar ul.nav > li:has(.mnu-lv3 li > ul) > .mnu-lv3 > li > a {
    color: var(--primary-dark);
    border-bottom-color: var(--border);
  }
  .menubar ul.nav > li:has(.mnu-lv3 li > ul) > .mnu-lv3 > li > ul > li > a {
    color: var(--text);
  }
  .menubar ul.nav > li:has(.mnu-lv3 li > ul) > .mnu-lv3 > li > ul > li > a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--primary-ultra);
  }
}
.header-search-btn { background: var(--primary-ultra) !important; border-color: var(--border) !important; color: var(--primary) !important; }
.header-search-btn:hover { background: var(--primary) !important; color: #fff !important; }

/* ---- About / intro: 2-column, dynamic ---- */
.about-home { overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 54px;
  align-items: center;
}
.about-content .section-title { text-align: left; margin-bottom: 0; }
.about-content .section-title a { color: var(--dark); }
.about-content .title-line,
.about-content .title-line.center { margin-left: 0; margin-right: 0; }
.about-text {
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--text-light);
  position: relative;
  max-height: 264px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg,#000 70%, transparent 100%);
          mask-image: linear-gradient(180deg,#000 70%, transparent 100%);
}
.about-text, .about-text * { text-align: left !important; }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.about-features { display: flex; flex-direction: column; gap: 16px; }
.feature-card {
  display: flex; align-items: center; gap: 18px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 18px 14px 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover { transform: translateX(6px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.feature-thumb {
  width: 92px; height: 92px; flex-shrink: 0;
  border-radius: 14px; overflow: hidden;
  background: var(--primary-ultra);
}
.feature-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 14px !important; }
.feature-meta { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.feature-ic {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-ultra); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.feature-ic img { width: 24px !important; height: 24px !important; object-fit: contain !important; }
.feature-name { font-size: 1.04rem; font-weight: 700; color: var(--dark); margin: 0; line-height: 1.35; }
.feature-arrow { color: var(--text-muted); transition: var(--transition); flex-shrink: 0; }
.feature-card:hover .feature-arrow { color: var(--primary); transform: translateX(4px); }
@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-text { max-height: none; -webkit-mask-image: none; mask-image: none; }
}

/* ---- Tighter section rhythm ---- */
.values-band { padding: 62px 0 !important; }
.key-figures { padding: 58px 0 !important; }
.partners-section { padding: 58px 0 !important; }
/* ================================================================
   END SITE BRIGHTEN v3.9
   ================================================================ */

/* ================================================================
   ABOUT PAGE v4.0 — idena hero, sticky nav, 2-col intro, polish
   ================================================================ */

/* --- Hero --- */
.about-hero {
  position: relative;
  background-color: var(--primary-dark);
  background-size: cover !important;
  background-position: center !important;
  padding: 68px 0 76px !important;
  overflow: hidden;
}
.about-hero::before { display: none !important; }
.about-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(9,55,28,.90) 0%, rgba(13,85,42,.74) 50%, rgba(20,110,55,.46) 100%);
}
.about-hero-inner { position: relative; z-index: 2; }
.about-hero-eyebrow {
  display: inline-block; color: #fff; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; font-size: .76rem; margin-bottom: 14px;
  background: rgba(255,255,255,.14); padding: 7px 18px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,.20);
}
.about-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem); color: #fff; font-weight: 800;
  margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.35); line-height: 1.18;
}
.about-hero .intro-page { color: rgba(255,255,255,.92); max-width: 740px; font-size: 1.02rem; line-height: 1.85; }
.about-hero .intro-page * { text-align: left !important; color: rgba(255,255,255,.92) !important; background: transparent !important; }
.about-hero-line { width: 62px; height: 4px; background: var(--secondary); border-radius: 3px; margin-top: 22px; }

/* --- Sticky sub-nav --- */
.subtab-info {
  position: sticky; top: 116px; z-index: 60;
  background: rgba(255,255,255,.93);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(20,80,45,.06);
}
.subtab-info .tab-scoll li a { color: var(--text-light); padding: 16px 22px; border-bottom-width: 3px; }
.subtab-info .tab-scoll li a:hover,
.subtab-info .tab-scoll li a.act { color: var(--primary); border-bottom-color: var(--primary); }
[id^="page-info-"] { scroll-margin-top: 172px; }

/* --- Intro detail (2-col) --- */
.about-intro { padding: 58px 0 !important; }
.about-intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: start; }
.about-intro-text .section-title { text-align: left; }
.about-intro-text .section-title,
.about-intro-text .title-line { margin-left: 0; }
.about-detail-text { color: var(--text-light); line-height: 1.95; font-size: .94rem; }
.about-detail-text, .about-detail-text * { text-align: left !important; }
.about-intro-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.af-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--bg-light); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 14px; transition: var(--transition);
}
.af-card:hover { background: #fff; border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.af-ic {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 13px;
  background: var(--primary-ultra); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.af-ic img { max-width: 32px; max-height: 32px; width: auto; height: auto; object-fit: contain; }
.af-ic img[src=""], .af-ic img:not([src]) { display: none; }
/* each card ships an icon + (sometimes) a photo thumb — keep only the icon */
.af-ic img[src*="_thumbs"], .af-ic img[src*="/temp/"] { display: none; }
.af-name { font-size: .9rem; font-weight: 700; color: var(--dark); line-height: 1.35; }

/* --- Value cards (Vision / Mission / Values) --- */
.value-card { border-radius: var(--radius-lg); padding: 32px 26px; }
.value-card > div:first-child { display: flex; align-items: center; justify-content: center; }
.value-card > div:first-child img { object-fit: contain !important; max-height: 88px; width: auto; margin: 0 auto; }
.value-title { color: var(--primary-dark); }

/* --- Timeline polish --- */
.timeline-content { border-radius: var(--radius-lg); }
.timeline-year {
  display: inline-block; background: var(--primary-ultra); color: var(--primary-dark);
  padding: 5px 15px; border-radius: 30px; font-size: .82rem; letter-spacing: 1px; margin-bottom: 12px;
}
.timeline-title { display: none; }
.timeline-image { border-radius: var(--radius); margin-top: 14px; }
.timeline-dot { box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(249,169,27,.35); }

/* --- Album --- */
.album-item { border-radius: var(--radius-lg); }

/* --- Tighter section rhythm (inner pages) --- */
.section { padding: 62px 0; }
@media (max-width: 991px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .subtab-info { position: static; top: auto; }
  .section { padding: 48px 0; }
}
@media (max-width: 767px) {
  .about-hero { padding: 50px 0 56px !important; }
}
@media (max-width: 575px) {
  .about-intro-features { grid-template-columns: 1fr; }
}
/* ================================================================
   END ABOUT PAGE v4.0
   ================================================================ */

/* ================================================================
   PRODUCT PAGES v4.2 — idena cards, full-bag images, hover CTA
   ================================================================ */

/* --- Product cards (category grid + related carousel) --- */
.inner-item-pro { border-radius: var(--radius-lg); border-color: var(--border-light); }
.inner-item-pro:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.img-pro {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #ffffff 0%, var(--primary-ultra) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.img-pro a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.img-pro img {
  width: auto !important; height: auto !important;
  max-width: 100% !important; max-height: 100% !important;
  object-fit: contain !important;
}
.img-pro::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(14,90,45,.30) 0%, transparent 55%);
  opacity: 0; transition: var(--transition); pointer-events: none;
}
.img-pro::after {
  content: 'Xem chi tiết \2192';
  position: absolute; left: 50%; bottom: 16px;
  transform: translate(-50%, 12px); z-index: 2;
  background: #fff; color: var(--primary);
  font-size: .76rem; font-weight: 700; letter-spacing: .3px;
  padding: 8px 18px; border-radius: 30px; white-space: nowrap;
  box-shadow: var(--shadow-md); opacity: 0;
  transition: var(--transition); pointer-events: none;
}
.inner-item-pro:hover .img-pro::before { opacity: 1; }
.inner-item-pro:hover .img-pro::after { opacity: 1; transform: translate(-50%, 0); }
.inner-item-pro:hover .img-pro img { transform: scale(1.05); }
.content-item-pro { padding: 16px 18px 20px; text-align: center; }
.pro-item-name {
  font-size: .94rem; line-height: 1.45; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- Category page header --- */
.page-one .page-name { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.page-one > .container > .row.align-items-center img {
  transition: var(--transition);
}
.page-one > .container > .row.align-items-center:hover img { transform: scale(1.01); }
.catItem-head, .page-one .section-title { letter-spacing: .2px; }

/* species sub-nav pills: active + hover states (inline-styled in template) */
.sub_menu_product li a.act,
.sub_menu_product li a:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* --- Detail page polish --- */
.pro-gallery .pro-swiper-main,
.col-xl-5 > div[style*="bg-light"] {
  background: linear-gradient(160deg, #ffffff 0%, var(--primary-ultra) 100%) !important;
  border: 1px solid var(--border-light);
}
.intro-detail-pro ul { margin: 0; padding-left: 0; list-style: none; }
.intro-detail-pro ul li {
  position: relative; padding-left: 26px; margin-bottom: 8px; line-height: 1.7;
}
.intro-detail-pro ul li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 1px; color: var(--primary); font-size: .8rem;
}
.attrs { border-radius: var(--radius) !important; }
.attr-item:last-child { border-bottom: none !important; }
.attr-item:nth-child(odd) { background: var(--bg-light); }

/* related products heading spacing */
.page-one .swiper .swiper-button-next,
.page-one .swiper .swiper-button-prev { color: var(--primary); }
/* ================================================================
   END PRODUCT PAGES v4.2
   ================================================================ */

/* ================================================================
   PAGE POLISH v4.4 — contrast (WCAG AA) + tighter section rhythm
   ================================================================ */

/* --- Contrast safety: meta/intro text on light backgrounds --- */
.news-card-meta, .news-card-meta span,
.article-meta, .article-meta span,
.breadcrumb-nav, .intro-cat, .content-detail,
.footer-col p, .footer-contact span {
  color: var(--text-light);
}
/* date/category chips: ensure legible green on light */
.news-card-cat { color: var(--primary-dark) !important; }
/* breadcrumb current page must be readable */
.breadcrumb-nav .current { color: var(--dark); font-weight: 600; }

/* --- Tighter vertical rhythm on inner pages --- */
.page-one { padding-top: 0; }
.breadcrumb-wrap { padding-top: 18px; padding-bottom: 18px; }
/* collapse oversized utility spacers on inner content pages */
.page-one .c30 { height: 18px; }
.page-one .c20 { height: 12px; }
.page-one .mb-5 { margin-bottom: 1.6rem !important; }
.page-one .mt-5 { margin-top: 1.6rem !important; }
/* contact + recruitment sections: trim the big top/bottom gaps */
.contact-wrap { padding-top: 40px; padding-bottom: 48px; }
.contact-wrap .map-wrap.mt-5 { margin-top: 1.8rem !important; }
.hiring-banner { margin-bottom: 0; }

/* article detail: tighten heading-to-body gap */
.article-detail .article-title { margin-bottom: 12px; }
.article-detail .intro-detail { margin-bottom: 18px !important; }

/* news grid: even card heights, no dangling whitespace */
.news-card { height: 100%; display: flex; flex-direction: column; }
.news-card .news-card-body { display: flex; flex-direction: column; flex: 1; }
.news-card .news-card-meta { margin-top: auto; }

/* section title block: trim the gap under centered titles */
.section-title.text-center { margin-bottom: 10px; }
.title-line.center { margin-bottom: 22px; }
/* ================================================================
   END PAGE POLISH v4.4
   ================================================================ */

/* ================================================================
   NEWS FEATURED FIX v4.5 — show intro on featured cards, fill side card
   ================================================================ */
/* Big featured (top1): description under title, over dark overlay */
.news-featured-intro {
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Side featured (top2): fill the column height next to the big card */
.news-card.news-card-side { height: 100%; display: flex; flex-direction: column; }
.news-card.news-card-side .news-card-img { flex: 0 0 auto; }
.news-card.news-card-side .news-card-body { display: flex; flex-direction: column; flex: 1; }
.news-card.news-card-side .news-card-intro {
  color: var(--text-light);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card.news-card-side .news-card-meta { margin-top: auto; }
@media (max-width: 991px){
  .news-card.news-card-side { height: auto; }
  .news-card.news-card-side .news-card-img { height: 200px; }
}
/* ================================================================
   END NEWS FEATURED FIX v4.5
   ================================================================ */
