/* ====================================================
   PHAN HẢI NÔNG NGHIỆP — Main Stylesheet
   Design: Minimalist, Professional, Agricultural
   ==================================================== */

/* ---- 1. CSS Variables ---- */
/* Fix horizontal scroll on mobile */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}
:root {
  --primary:        #3A7D3A;
  --primary-dark:   #1F5C1F;
  --primary-light:  #5AAF5A;
  --accent:         #F0A500;
  --accent-dark:    #C98A00;
  --text:           #2C2C2C;
  --text-light:     #6B7280;
  --bg:             #FFFFFF;
  --bg-light:       #F5F7F2;
  --border:         #E5E7EB;
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:      0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.14);
  --radius:         8px;
  --radius-lg:      14px;
  --accent-rgb:     240, 165, 0;
  --primary-rgb:    58, 125, 58;
  --error:          #e53e3e;
  --transition:     0.22s ease;
  --font-heading:   'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
  --font-body:      'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
  --header-h:       70px;
  --topbar-h:       38px;
}

/* ---- 2. Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
svg { flex-shrink: 0; }

/* ---- 3. Layout Utilities ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section          { padding: 80px 0; }
.section--bg      { background: var(--bg-light); }
.section--dark    { position: relative; overflow: hidden; padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header--light { color: #fff; }

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb),0.12);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-tag--light {
  color: var(--accent);
  background: rgba(var(--accent-rgb),0.18);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.28;
  margin-bottom: 16px;
}
.section-header--light .section-title { color: #fff; }

.section-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.75;
}
.section-header--light .section-desc { color: rgba(255,255,255,0.75); }

/* ---- 4. Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { display: inline-flex; width: 100%; justify-content: center; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45,106,45,0.35);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb),0.40);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline-green {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-green:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- 5. Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* Top bar */
.header__topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header__topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.topbar-contact:hover { color: var(--accent); }
.topbar-divider { opacity: 0.35; }
.topbar-tag {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Main header */
.header__main {
  background: var(--bg);
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
}
.header__main-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  gap: 28px;
}
.header__logo img { height: 77px; width: auto; display: block; }
.header__actions { margin-left: auto; }

/* Navigation */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav__link:hover,
.nav__link.active { color: var(--primary); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }

/* Sub-menu (dropdown) — desktop */
.nav__list .menu-item-has-children { position: relative; }
.nav__list .menu-item-has-children > .nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__list .menu-item-has-children > .nav__link::before {
  content: '';
  order: 2;             /* push chevron to RIGHT of text in flex */
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--transition);
}
.nav__list .menu-item-has-children:hover > .nav__link::before {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 100;
}
.nav__list .menu-item-has-children:hover > .sub-menu,
.nav__list .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__list .sub-menu .nav__link {
  display: block;
  padding: 10px 16px;
  border-radius: 0;
  white-space: nowrap;
}
.nav__list .sub-menu .nav__link::after { display: none; }
.nav__list .sub-menu .nav__link:hover { background: var(--bg-light); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile call button — chỉ hiện trên mobile */
.header__call-mobile {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(240,165,0,0.35);
  transition: all var(--transition);
  white-space: nowrap;
}
.header__call-mobile:hover,
.header__call-mobile:active {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ---- 6. Hero ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/about.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(5,20,5,0.88) 0%,
    rgba(5,25,5,0.72) 50%,
    rgba(10,40,10,0.55) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 120px 24px 100px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb),0.18);
  border: 1px solid rgba(var(--accent-rgb),0.45);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 7px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.hero__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s ease-in-out 3;
  transition: color var(--transition);
}
.hero__scroll:hover { color: var(--accent); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---- 7. Stats ---- */
.stats {
  background: var(--primary-dark);
  padding: 48px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  text-align: center;
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat:last-child { border-right: none; }

.stat__icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}

.stat__value-row {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat__unit {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-top: 4px;
}
.stat__label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-top: 8px;
  text-transform: uppercase;
}

/* ---- 8. About ---- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__media {
  position: relative;
  padding: 0 28px 28px 0;
}
.about__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
}
.about__img-placeholder {
  height: 430px;
  background-image: url('../images/about/hero.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.about__img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 55%,
    rgba(0,0,0,0.35) 100%
  );
  border-radius: var(--radius-lg);
}
/* Decorative border frame */
.about__img-placeholder::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 3px solid rgba(90,175,90,0.45);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.img-overlay-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.img-overlay-badge strong {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.img-overlay-badge span {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.about__img-secondary {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 200px;
  height: 160px;
  background-image: url('../images/products/san pham 1.jpg');
  background-size: cover;
  background-position: center;
  background-color: #2a6a2a;
  border-radius: var(--radius-lg);
  border: 5px solid var(--bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.about__img-secondary::before { content: none; }
.about__img-secondary::after  { content: none; }

.about__content { padding: 20px 0; }

.about__content .section-tag { text-align: left; }
.about__content .section-title {
  text-align: left;
  font-size: 30px;
  margin-bottom: 18px;
}

.about__text {
  color: var(--text-light);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.about__text strong { color: var(--primary); font-weight: 700; }

.about__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.about__list svg { margin-top: 3px; }

/* ---- 9. Products ---- */
.products__tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.products__tab {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.products__tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}
.products__tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(58,125,58,0.25);
}

.products__featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.products__compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.product-card.is-hidden { display: none; }

.product-card--featured .product-card__img { height: 240px; }
.product-card--featured .product-card__title { font-size: 22px; }
.product-card--featured .product-card__desc  { font-size: 15px; }

.product-card--highlighted {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 30px rgba(240,165,0,0.15);
}
.product-card--highlighted:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 38px rgba(240,165,0,0.25);
}

.product-card--compact .product-card__img { height: 140px; }
.product-card--compact .product-card__body { padding: 16px 18px 18px; }
.product-card--compact .product-card__title { font-size: 15px; margin-bottom: 6px; }
.product-card--compact .product-card__desc  { font-size: 13px; line-height: 1.55; margin-bottom: 14px; }

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.product-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(90,175,90,0.12);
  border: 1px solid rgba(90,175,90,0.3);
  padding: 4px 10px;
  border-radius: 999px;
}

.product-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card__features li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.product-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A7D3A' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

.product-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-card__price {
  display: flex;
  flex-direction: column;
}
.product-card__price-label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-bottom: 2px;
}
.product-card__price-value {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}

.product-card__img {
  height: 220px;
  position: relative;
  overflow: hidden;
  /* TODO: replace gradients with real product images using background-image: url('../images/products/xxx.jpg') */
}
.product-card__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.04) 0%,
    rgba(0,0,0,0.18) 100%
  );
  z-index: 1;
}
.product-card__badge { z-index: 2; }
.product-card__img::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 120px;
  height: 160px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 120'%3E%3Cpath d='M40 5 C22 15 10 38 16 68 C20 85 30 98 40 108 C50 98 60 85 64 68 C70 38 58 15 40 5Z' fill='rgba(255,255,255,0.10)'/%3E%3Cpath d='M40 108 C40 108 36 115 40 120 C44 115 40 108 40 108Z' fill='rgba(255,255,255,0.10)'/%3E%3C/svg%3E") no-repeat bottom right / 80%;
  pointer-events: none;
}

/* Product images — real photos (số file = số sản phẩm) */
.product-card__img--1 {
  background-color: #2a6b2a;
  background-image: url('../images/products/san pham 1.jpg');
  background-size: cover;
  background-position: center;
}
.product-card__img--2 {
  background-color: #3a2a10;
  background-image: url('../images/products/san pham 2.jpg');
  background-size: cover;
  background-position: center;
}
.product-card__img--3 {
  background-color: #6a5a20;
  background-image: url('../images/products/san pham 3.png');
  background-size: cover;
  background-position: center;
}
.product-card__img--4 {
  background-color: #2a4a2a;
  background-image: url('../images/products/san pham 4.jpg');
  background-size: cover;
  background-position: center;
}
.product-card__img--5 {
  background-color: #1e5a30;
  background-image: url('../images/products/san pham 5.png');
  background-size: cover;
  background-position: center;
}
.product-card__img--6 {
  background-color: #2a1a4a;
  background-image: url('../images/products/san pham 6.png');
  background-size: cover;
  background-position: center;
}

.product-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  z-index: 1;
}
.product-card__badge--red    { background: #e74c3c; }
.product-card__badge--green  { background: var(--primary); }
.product-card__badge--blue   { background: #2980b9; }
.product-card__badge--gold   { background: var(--accent); }
.product-card__badge--purple { background: #8e44ad; }
.product-card__badge--corner {
  top: 14px;
  left: 14px;
  right: auto;
  font-size: 12px;
  padding: 5px 12px;
}

.product-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__body > .btn { margin-top: auto; }
.product-card__category {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(45,106,45,0.1);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.product-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}
.product-card__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* 6 sản phẩm = 2 hàng × 3 cột — tự động đều nhau */

/* ---- 10. Services ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 26px 34px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(58,125,58,0.15);
  border-color: var(--primary-light);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 84px;
  height: 84px;
  background: rgba(58,125,58,0.09);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: var(--primary);
  transition: all var(--transition);
  position: relative;
}
.service-card__icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(58,125,58,0.2);
  transition: all var(--transition);
}
.service-card:hover .service-card__icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.06) rotate(5deg);
  box-shadow: 0 8px 24px rgba(58,125,58,0.35);
}
.service-card:hover .service-card__icon::after { border-color: var(--primary-light); }
.service-card:hover .service-card__icon svg { stroke: #fff; }

.service-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.service-card__desc {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.75;
}

/* ---- 11. Why Choose Us ---- */
.why-us__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/why-us-banner.jpg');
  background-size: cover;
  background-position: center center;
  background-color: var(--primary-dark);
}
.why-us__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,20,0,0.08);
}
.why-us__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,25,10,0.36);
  z-index: 1;
}
.why-us__inner { position: relative; z-index: 2; }

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 0;
}

.why-card {
  background: rgba(15, 35, 15, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.why-card:hover {
  background: rgba(15, 35, 15, 0.78);
  border-color: rgba(var(--accent-rgb),0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.why-card__number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: rgba(255,255,255,0.10);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 20px;
}
.why-card__icon { margin: 0 auto 16px; display: block; }
.why-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.why-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  line-height: 1.72;
}

/* Heading section trên ảnh nền sáng — thêm shadow cho rõ */
.why-us .section-header--light .section-title {
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
}
.why-us .section-tag--light {
  background: rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(var(--accent-rgb),0.4);
}

/* ---- 12. Activities / Video Section ---- */
.activities { background: var(--bg); }

.activities__slider-wrap {
  position: relative;
}

/* Desktop: 4-column grid — Shorts (9:16) */
.activities__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

/* Activity Card */
.activity-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* YouTube Shorts embed area — 9:16 portrait */
.yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #0f0f0f;
  overflow: hidden;
}

.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Thumbnail placeholder (before click) */
.yt-embed__thumb {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  background: linear-gradient(145deg, #1a3a1a 0%, #2a5a2a 50%, #1a4a1a 100%);
  transition: background var(--transition);
}
/* When real YouTube thumbnail is loaded via JS */
.yt-embed__thumb.has-thumb {
  background-size: cover;
  background-position: center;
}
.yt-embed__thumb.has-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.32);
  transition: background var(--transition);
}
.yt-embed__thumb.has-thumb:hover::after {
  background: rgba(0,0,0,0.18);
}

.yt-embed__play {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  background: #FF0000;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(255,0,0,0.4);
}
.yt-embed__thumb:hover .yt-embed__play {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(255,0,0,0.55);
}

.yt-embed__label {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Card body */
.activity-card__body {
  padding: 20px 22px 24px;
}
.activity-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.activity-card__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Arrows (hidden on desktop) */
.activities__arrow {
  display: none;
  position: absolute;
  top: calc(50% - 40px);
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.activities__arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.activities__arrow--prev { left: -16px; }
.activities__arrow--next { right: -16px; }

/* Dots (hidden on desktop) */
.activities__dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.activities__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.activities__dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ---- Mobile: 2-column slide ---- */
@media (max-width: 1023px) {
  .activities__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .activities__track::-webkit-scrollbar { display: none; }

  .activity-card {
    flex: 0 0 calc(50% - 8px);
    min-width: calc(50% - 8px);
    scroll-snap-align: start;
  }

  .activities__arrow { display: flex; }
  .activities__dots  { display: flex; }
}

@media (max-width: 479px) {
  .activity-card {
    flex: 0 0 calc(85% - 8px);
    min-width: calc(85% - 8px);
  }
  .activities__arrow { display: none; }
}

/* ---- 12b. Testimonials ---- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Testimonials slider */
.testimonials-slider {
  position: relative;
  margin-top: 8px;
  padding: 0 4px 8px;
}
.testimonials-slider__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding: 0 4px;
}
.testimonials-slider__viewport::-webkit-scrollbar { display: none; }
.testimonials-slider__track {
  display: flex;
  gap: 24px;
  padding: 6px 4px 14px;
}
.testimonials-slider .testimonial-card {
  flex: 0 0 calc((100% - 48px) / 3); /* 3 cards visible desktop */
  scroll-snap-align: start;
}

.testimonials-slider__arrow {
  position: absolute;
  top: 45%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 5;
  transition: all var(--transition);
}
.testimonials-slider__arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.06);
}
.testimonials-slider__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: translateY(-50%);
}
.testimonials-slider__arrow--prev { left: -16px; transform: translateY(-50%); }
.testimonials-slider__arrow--next { right: -16px; transform: translateY(-50%); }

.testimonials-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.testimonials-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.testimonials-slider__dot:hover { background: var(--primary-light); }
.testimonials-slider__dot.is-active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 1023px) {
  .testimonials-slider .testimonial-card { flex: 0 0 calc((100% - 24px) / 2); } /* 2 cards tablet */
  .testimonials-slider__arrow--prev { left: -8px; }
  .testimonials-slider__arrow--next { right: -8px; }
}
@media (max-width: 767px) {
  .testimonials-slider .testimonial-card { flex: 0 0 100%; } /* 1 card mobile */
  .testimonials-slider__track { gap: 16px; }
  .testimonials-slider__arrow { width: 38px; height: 38px; top: auto; bottom: -54px; transform: none; }
  .testimonials-slider__arrow:hover { transform: scale(1.06); }
  .testimonials-slider__arrow--prev { left: calc(50% - 56px); }
  .testimonials-slider__arrow--next { right: calc(50% - 56px); }
  .testimonials-slider__dots { margin-top: 60px; }
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 72px;
  line-height: 1;
  color: var(--primary);
  opacity: 0.08;
  font-family: Georgia, serif;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.testimonial-card__text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 22px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-card__author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
}
.testimonial-card__author span {
  font-size: 13px;
  color: var(--text-light);
}

/* ---- 13. News / Blog ---- */
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-card__img {
  height: 200px;
  position: relative;
  overflow: hidden;
  /* TODO: replace with real image */
}
.news-card__img--1 {
  background-color: #1c5c1c;
  background-image: url('../images/hero/about.jpg');
  background-size: cover;
  background-position: center top;
}
.news-card__img--2 {
  background-color: #1a3a1a;
  background-image: url('../images/products/san pham 4.jpg');
  background-size: cover;
  background-position: center;
}
.news-card__img--3 {
  background-color: #4a3c10;
  background-image: url('../images/products/san pham 5.png');
  background-size: cover;
  background-position: center;
}
.news-card__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100px 140px at 80% 110%, rgba(255,255,255,0.12) 0%, transparent 55%);
}

.news-card__date {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.news-card__body {
  padding: 22px 24px 26px;
}
.news-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(58,125,58,0.1);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.news-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.45;
  margin-bottom: 10px;
}
.news-card__excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.72;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
}
.news-card__link:hover { color: var(--accent); gap: 10px; }

/* ---- 13b. CTA Section ---- */
.cta-section {
  position: relative;
  padding: 70px 0;
  overflow: hidden;
}
.cta-section__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #3a8a3a 100%);
}
.cta-section__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 50px,
    rgba(255,255,255,0.025) 50px,
    rgba(255,255,255,0.025) 51px
  );
}
.cta-section__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-section__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.cta-section__text {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
}
.cta-section__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-section__info {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
}

/* ---- 14. Footer ---- */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); }

.footer__main { padding: 70px 0 50px; }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer__logo img { height: 48px; width: auto; margin-bottom: 16px; }
.footer__desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 22px;
}

.footer__social { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.social-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer__links a::before {
  content: '›';
  color: var(--accent);
  font-size: 16px;
}
.footer__links a:hover { color: var(--accent); padding-left: 4px; }

.footer__contact { display: flex; flex-direction: column; gap: 14px; }
.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.footer__contact li svg { margin-top: 2px; color: var(--accent); flex-shrink: 0; }
.footer__contact a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer__contact a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ---- 15. Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---- 16. Scroll Animations ---- */
.animate {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate[data-anim="fade-up"]    { transform: translateY(30px); }
.animate[data-anim="fade-down"]  { transform: translateY(-20px); }
.animate[data-anim="fade-left"]  { transform: translateX(30px); }
.animate[data-anim="fade-right"] { transform: translateX(-30px); }
.animate[data-anim="fade-in"]    { transform: none; }
.animate[data-anim="zoom-in"]    { transform: scale(0.92); }

.animate.is-visible {
  opacity: 1;
  transform: none !important;
}

/* ---- 17. Responsive ---- */

/* Tablet */
@media (max-width: 1023px) {
  .section { padding: 60px 0; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat        { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }

  .about__grid        { gap: 40px; }
  .about__img-secondary { width: 160px; height: 120px; bottom: -20px; right: -16px; }

  .products__grid     { grid-template-columns: repeat(2, 1fr); }
  .products__featured { grid-template-columns: 1fr; }
  .products__compact  { grid-template-columns: repeat(2, 1fr); }
  .services__grid     { grid-template-columns: repeat(2, 1fr); }
  .why-us__grid       { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .news__grid         { grid-template-columns: repeat(2, 1fr); }
  .footer__grid       { grid-template-columns: 1fr 1fr; gap: 36px; }

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

/* Mobile */
@media (max-width: 767px) {
  :root { --header-h: 60px; --topbar-h: 0px; }

  .container { padding: 0 16px; }
  .section    { padding: 50px 0; }

  /* Header */
  .header__topbar { display: none; }
  .header__main   { border-bottom: 1px solid var(--border); }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--primary);
    padding: 16px 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav__list      { flex-direction: column; gap: 2px; padding: 0 16px; }
  .nav__link      { font-size: 15px; padding: 12px 16px; display: block; }
  .nav__link::after { display: none; }

  /* Sub-menu mobile — luôn hiện, indent */
  .nav__list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 4px 0;
    margin: 4px 0 8px 12px;
    min-width: 0;
  }
  .nav__list .sub-menu .nav__link {
    font-size: 14px;
    padding: 8px 16px;
  }
  .nav__list .menu-item-has-children > .nav__link::before { display: none; }

  .hamburger { display: flex; }
  .header__actions .btn-accent { display: none; }
  .header__call-mobile { display: inline-flex; }
  .header__actions { gap: 10px; }

  /* Hero */
  .hero { min-height: auto; padding: 40px 0 50px; }
  .hero__content { padding: 40px 16px 20px; }
  .hero__title { font-size: 28px; line-height: 1.25; }
  .hero__title br { display: none; }
  .hero__subtitle { font-size: 15px; margin-bottom: 6px; }
  .hero__subtitle br { display: none; }
  .hero__badge { font-size: 12px; padding: 6px 14px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__features { flex-direction: column; gap: 10px; align-items: flex-start; }
  .hero__scroll { display: none; }

  /* Stats */
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat__number { font-size: 40px; }

  /* About */
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__img-placeholder { height: 280px; }
  .about__img-secondary { display: none; }
  .about__content .section-title { font-size: 26px; }
  .img-overlay-badge { bottom: 14px; left: 14px; padding: 8px 12px; }
  .img-overlay-badge strong { font-size: 20px; }
  .img-overlay-badge span { font-size: 10px; letter-spacing: 0.3px; }

  /* Products */
  .products__grid { grid-template-columns: 1fr; }
  .products .section-desc { display: none; }
  .products__featured { grid-template-columns: 1fr; gap: 20px; }
  .products__compact  { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .products__tabs { gap: 8px; margin-bottom: 28px; }
  .products__tab  { padding: 8px 16px; font-size: 13px; }
  .product-card--featured .product-card__img { height: 200px; }
  .product-card--featured .product-card__title { font-size: 19px; }
  .product-card--compact .product-card__img  { height: 120px; }
  .product-card--compact .product-card__body { padding: 14px; }
  .product-card--compact .product-card__title { font-size: 14px; }
  .product-card--compact .product-card__desc  { font-size: 12px; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 36px; }
  .section-title  { font-size: 26px; }

  /* Why us */
  .why-us__grid { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonial-card:nth-child(3) { display: none; }

  /* News */
  .news__grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-section__title { font-size: 26px; }
  .cta-section__info  { flex-direction: column; gap: 12px; align-items: center; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  /* Back to top */
  .back-to-top { bottom: 18px; right: 18px; }
}

@media (max-width: 479px) {
  .hero__title { font-size: 26px; }
  .stat__number { font-size: 36px; }
  .about__content .section-title { font-size: 22px; }
  .section-title { font-size: 22px; }
  .cta-section__title { font-size: 22px; }

  /* Mobile call button rất nhỏ — vẫn giữ chữ, chỉ thu gọn padding */
  .header__call-mobile {
    font-size: 12px;
    padding: 7px 10px;
    gap: 4px;
  }
  .header__call-mobile svg { width: 14px; height: 14px; }
}

/* =============================================
   17. INNER PAGES — Shared
   ============================================= */

.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 0 50px;
  margin-top: calc(var(--header-h) + var(--topbar-h));
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 40px,
    rgba(255,255,255,0.03) 40px, rgba(255,255,255,0.03) 41px
  );
}
.page-hero__inner { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.70);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { color: rgba(255,255,255,0.40); }

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}
.page-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-bar__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin-right: 4px;
}
.filter-bar__btn {
  padding: 8px 22px;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.filter-bar__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-bar__btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* =============================================
   18. PRODUCTS PAGE
   ============================================= */

.products-page { padding: 60px 0 80px; }

/* Default: 3 columns × 2 rows = 6 cards/slide */
.products-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Products slider ---- */
.products-slider {
  position: relative;
  margin-top: 24px;
}
.products-slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.products-slider__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.products-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 4px 4px 8px;
}
.products-slider__arrow {
  position: absolute;
  top: 40%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 5;
  transition: all var(--transition);
}
.products-slider__arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.06);
}
.products-slider__arrow--prev { left: -24px; transform: translateY(-50%); }
.products-slider__arrow--next { right: -24px; transform: translateY(-50%); }
.products-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.products-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.products-slider__dot:hover { background: var(--primary-light); }
.products-slider__dot.is-active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}
.products-page__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 15px;
}

.product-full-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-full-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-full-card__img {
  position: relative;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: #c8e6c9;
  overflow: hidden;
}
.product-full-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.28) 0%, transparent 55%);
}
.product-full-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 1;
}
.product-full-card__badge--new    { background: var(--primary); }
.product-full-card__badge--red    { background: #c0392b; }
.product-full-card__badge--blue   { background: #2474a4; }
.product-full-card__badge--gold   { background: var(--accent-dark); }
.product-full-card__badge--purple { background: #7d3c98; }

.product-full-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-full-card__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(58,125,58,0.10);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.product-full-card__title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}
.product-full-card__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.72;
  margin-bottom: 16px;
}
.product-full-card__features {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-full-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.product-full-card__features li svg { flex-shrink: 0; margin-top: 2px; }

.product-full-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.product-full-card__price { font-size: 13px; color: var(--text-light); }
.product-full-card__price strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

/* =============================================
   19. KNOWLEDGE PAGE
   ============================================= */

.knowledge-page { padding: 60px 0 80px; }

.knowledge__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.knowledge-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.knowledge-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.knowledge-card__img {
  height: 200px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #c8e6c9;
}
.knowledge-card__img--1 { background-color:#1c5c1c; background-image: url('../images/hero/about.jpg'); background-position: center top; }
.knowledge-card__img--2 { background-color:#2a3d1a; background-image: url('../images/products/san pham 3.png'); }
.knowledge-card__img--3 { background-color:#3a4a10; background-image: url('../images/products/san pham 1.jpg'); }
.knowledge-card__img--4 { background-color:#1a3a1a; background-image: url('../images/products/san pham 4.jpg'); }
.knowledge-card__img--5 { background-color:#4a3c10; background-image: url('../images/products/san pham 5.png'); }
.knowledge-card__img--6 { background-color:#2a1a4a; background-image: url('../images/products/san pham 6.png'); }
.knowledge-card__img--7 { background-color:#1c5c1c; background-image: url('../images/about/hero.jpg'); }
.knowledge-card__img--8 { background-color:#1a2a3a; background-image: url('../images/products/san pham 2.jpg'); }
.knowledge-card__img--9 { background-color:#3a2a10; background-image: url('../images/hero/about.jpg'); background-position: bottom center; }

.knowledge-card__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
}
.knowledge-card__date {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.90);
  font-weight: 500;
  z-index: 1;
}
.knowledge-card__read-time {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.80);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.knowledge-card__body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.knowledge-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(58,125,58,0.10);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.knowledge-card__tag--phong-benh { color: #c0392b; background: rgba(192,57,43,0.10); }
.knowledge-card__tag--thu-hoach  { color: var(--accent); background: rgba(var(--accent-rgb),0.12); }

.knowledge-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.45;
  margin-bottom: 10px;
}
.knowledge-card__excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.72;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.knowledge-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
  margin-top: auto;
}
.knowledge-card__link:hover { color: var(--accent); gap: 10px; }

/* ---- Responsive — Inner pages ---- */
@media (max-width: 1023px) {
  .products-page__grid  { grid-template-columns: 1fr 1fr; gap: 20px; }
  .knowledge__grid      { grid-template-columns: 1fr 1fr; }
  .products-slider__arrow--prev { left: -10px; }
  .products-slider__arrow--next { right: -10px; }
}
@media (max-width: 767px) {
  .products-page__grid  { grid-template-columns: 1fr; }
  .products-slider__arrow { width: 40px; height: 40px; top: auto; bottom: -52px; transform: none; }
  .products-slider__arrow:hover { transform: scale(1.06); }
  .products-slider__arrow--prev { left: calc(50% - 60px); }
  .products-slider__arrow--next { right: calc(50% - 60px); }
  .products-slider__dots { margin-top: 60px; }
  .knowledge__grid      { grid-template-columns: 1fr; }
  .filter-bar           { gap: 8px; }
  .filter-bar__btn      { padding: 7px 16px; font-size: 13px; }

  /* Mobile: page-hero gọn lại — chỉ tiêu đề + breadcrumb */
  .page-hero { padding: 24px 0 22px; text-align: left; }
  .page-hero .breadcrumb {
    justify-content: flex-start;
    font-size: 12px;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  .page-hero__title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 0;
  }
  .page-hero__title br { display: none; }
  .page-hero__sub { display: none; }
}

/* =============================================
   20. POST DETAIL PAGE
   ============================================= */

.post-page { padding: 60px 0 80px; }

/* Two-column layout: article + sidebar */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ---- Main article card ---- */
.post-article {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center top;
  background-color: var(--primary-dark);
  background-image: url('../images/hero/about.jpg');
}

.post-content { padding: 36px 40px 48px; }

/* Category chip */
.post-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(var(--primary-rgb),0.10);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 18px;
}

/* Post h2 title (inside article — distinct from page h1) */
.post-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.32;
  margin-bottom: 20px;
}

/* Meta row */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.post-meta__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--text-light);
}
.post-meta__item svg { color: var(--primary); flex-shrink: 0; }
.post-meta__item strong { color: var(--text); font-weight: 600; }

/* ---- Article body typography ---- */
.post-body { font-size: 16px; line-height: 1.8; color: var(--text); }

.post-body h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-light);
}
.post-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 26px 0 10px;
}
.post-body p { margin-bottom: 18px; }

.post-body ul,
.post-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { line-height: 1.7; }
.post-body strong { font-weight: 700; color: var(--primary-dark); }
.post-body em    { font-style: italic; }

.post-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--bg-light);
  margin: 28px 0;
  padding: 18px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.75;
}

.post-body figure { margin: 28px 0; text-align: center; }
.post-body figure img {
  border-radius: var(--radius);
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}
.post-body figcaption {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 10px;
  font-style: italic;
}

/* Info/tip box inside post body */
.post-body .info-box {
  background: rgba(var(--primary-rgb),0.07);
  border: 1px solid rgba(var(--primary-rgb),0.20);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.post-body .info-box__list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.post-body .info-box__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Post footer: tags + share */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-tags__label { font-size: 13px; font-weight: 600; color: var(--text-light); }

.post-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all var(--transition);
}
.post-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-share__label { font-size: 13px; font-weight: 600; color: var(--text-light); }

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all var(--transition);
}
.share-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Back link */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 28px;
  transition: gap var(--transition), color var(--transition);
}
.post-back:hover { color: var(--accent); gap: 12px; }

/* ---- Sidebar ---- */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-h) + var(--topbar-h) + 20px);
}

.sidebar-widget {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.sidebar-widget__header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
}
.sidebar-widget__title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-widget__body { padding: 16px 22px; }

/* Related posts mini-cards */
.related-post {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition);
}
.related-post:hover { opacity: 0.8; }
.related-post:last-child  { border-bottom: none; padding-bottom: 0; }
.related-post:first-child { padding-top: 0; }

.related-post__thumb {
  width: 72px;
  height: 56px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-light);
  flex-shrink: 0;
}
.related-post__thumb--1 { background-image: url('../images/products/san pham 3.png'); }
.related-post__thumb--2 { background-image: url('../images/products/san pham 1.jpg'); }
.related-post__thumb--3 { background-image: url('../images/about/hero.jpg'); }

.related-post__info { flex: 1; min-width: 0; }
.related-post__tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.related-post__title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.related-post:hover .related-post__title { color: var(--primary); }
.related-post__date { font-size: 11px; color: var(--text-light); }

/* Category list */
.category-list { display: flex; flex-direction: column; gap: 2px; }
.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
}
.category-item:hover { background: var(--bg-light); color: var(--primary); }
.category-item.active {
  background: rgba(var(--primary-rgb),0.08);
  color: var(--primary);
  font-weight: 600;
}
.category-item__count {
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  color: #fff;
}
.sidebar-cta__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.sidebar-cta__text {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 18px;
  line-height: 1.6;
}
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* ---- Responsive — Post detail ---- */
@media (max-width: 1023px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .sidebar-cta { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .post-page    { padding: 40px 0 60px; }
  .post-content { padding: 22px 18px 36px; }
  .post-sidebar { grid-template-columns: 1fr; }
  .post-meta    { gap: 12px; }
  .post-footer  { flex-direction: column; align-items: flex-start; }
  .post-body h2 { font-size: 18px; }
  .post-body h3 { font-size: 16px; }
  .post-body .info-box { padding: 16px 18px; }
}

@media (max-width: 479px) {
  .post-title     { font-size: 18px; }
  .post-meta      { flex-direction: column; align-items: flex-start; gap: 8px; }
  .post-body      { font-size: 15px; }
  .post-body h2   { font-size: 16px; }
  .post-body h3   { font-size: 15px; }
  .post-tags      { gap: 6px; }
}

/* =============================================
   21. FLOATING CHAT BUTTONS
   ============================================= */

.chat-float {
  position: fixed;
  bottom: 84px; /* above .back-to-top (28px + 44px height + 12px gap) */
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 998;
}

.chat-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.chat-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.chat-btn--zalo { background: #0068FF; }
.chat-btn--fb    { background: #0084FF; }
.chat-btn--phone { background: #25D366; }

/* Tooltip label */
.chat-btn__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20,20,20,0.82);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

/* Tooltip arrow */
.chat-btn__label::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(20,20,20,0.82);
}

.chat-btn:hover .chat-btn__label { opacity: 1; }

@media (max-width: 767px) {
  .chat-float { bottom: 74px; right: 18px; }
  .chat-btn   { width: 46px; height: 46px; }
  .chat-btn__label { display: none; }
}

/* =====================================================
   22. CONTACT PAGE
   ===================================================== */

.contact-section { padding: 60px 0 80px; }

/* 2-column layout: info | form */
.contact-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}

/* ---- Info column ---- */
.contact-info {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.contact-info__header {
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.contact-info__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.contact-info__sub {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
}

.contact-info__list {
  padding: 8px 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item:hover { background: var(--bg-light); }

.contact-info-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item__icon--green {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}
.contact-info-item__icon--blue {
  background: #0068FF;
  color: #fff;
}

.contact-info-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info-item__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-item__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.contact-info-item__value--link {
  color: var(--primary);
  transition: color var(--transition);
}
.contact-info-item__value--link:hover { color: var(--accent); }

.contact-info__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 16px 24px 20px;
  background: rgba(var(--accent-rgb), 0.07);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}
.contact-info__note svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.contact-info__note strong { color: var(--accent-dark); }

/* ---- Form column ---- */
.contact-form-wrap {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 28px 28px 24px;
}

.contact-form__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.contact-form__sub {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Form elements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group:last-of-type { margin-bottom: 0; }

.form-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.form-required { color: var(--error); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 11px 15px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control::placeholder { color: var(--text-light); }
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.contact-form__submit {
  width: 100%;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
}
.contact-form__submit--success {
  background: var(--primary-light) !important;
  cursor: default;
}

.form-privacy {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-light);
}
.form-privacy svg { flex-shrink: 0; }

/* ===========================================================
 * Contact Form 7 — compact override để khớp design + không quá to
 * Scope vào .contact-form-wrap để không ảnh hưởng CF7 ở chỗ khác
 * =========================================================== */
.contact-form-wrap .wpcf7 { margin: 0; padding: 0; }

.contact-form-wrap .wpcf7-form { display: flex; flex-direction: column; gap: 12px; }

/* CF7 wraps mỗi field bằng <p> — biến thành stacked form-group compact */
.contact-form-wrap .wpcf7-form p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Label compact (text + input cùng stack) */
.contact-form-wrap .wpcf7-form label {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-form-wrap .wpcf7-form label .wpcf7-form-control-wrap { margin-top: 0; }

/* Input / textarea / select — compact (padding nhỏ hơn) */
.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form input[type="tel"],
.contact-form-wrap .wpcf7-form input[type="url"],
.contact-form-wrap .wpcf7-form input[type="number"],
.contact-form-wrap .wpcf7-form select,
.contact-form-wrap .wpcf7-form textarea {
  width: 100%;
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
  line-height: 1.4;
}
.contact-form-wrap .wpcf7-form input::placeholder,
.contact-form-wrap .wpcf7-form textarea::placeholder { color: var(--text-light); font-size: 13.5px; }
.contact-form-wrap .wpcf7-form input:focus,
.contact-form-wrap .wpcf7-form select:focus,
.contact-form-wrap .wpcf7-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 125, 58, 0.12);
}

/* Textarea — override CF7 default rows (thường = 10) → cao vừa phải, user vẫn drag được */
.contact-form-wrap .wpcf7-form textarea {
  height: 110px;
  min-height: 90px;
  max-height: 280px;
  resize: vertical;
  line-height: 1.55;
}

/* Select arrow */
.contact-form-wrap .wpcf7-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Submit button — compact, không full-width to oành */
.contact-form-wrap .wpcf7-form input[type="submit"],
.contact-form-wrap .wpcf7-form button[type="submit"] {
  align-self: flex-start;
  min-width: 200px;
  margin-top: 6px;
  padding: 11px 28px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.4px;
}
.contact-form-wrap .wpcf7-form input[type="submit"]:hover,
.contact-form-wrap .wpcf7-form button[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(58, 125, 58, 0.4);
}
.contact-form-wrap .wpcf7-form input[type="submit"]:active,
.contact-form-wrap .wpcf7-form button[type="submit"]:active { transform: translateY(0); }

/* Mobile — submit về full width */
@media (max-width: 600px) {
  .contact-form-wrap .wpcf7-form input[type="submit"],
  .contact-form-wrap .wpcf7-form button[type="submit"] {
    align-self: stretch;
    min-width: 0;
  }
}

/* Loading spinner CF7 — căn giữa cạnh button */
.contact-form-wrap .wpcf7-spinner {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 0 10px;
}

/* Validation error tips dưới field */
.contact-form-wrap .wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #C0392B;
  line-height: 1.4;
}
.contact-form-wrap .wpcf7-form input.wpcf7-not-valid,
.contact-form-wrap .wpcf7-form textarea.wpcf7-not-valid,
.contact-form-wrap .wpcf7-form select.wpcf7-not-valid {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* Response output (success / error toàn form) */
.contact-form-wrap .wpcf7 .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
}
.contact-form-wrap .wpcf7 form.sent .wpcf7-response-output,
.contact-form-wrap .wpcf7 form.mail-sent-ok .wpcf7-response-output {
  background: #E8F5E9;
  border-color: var(--primary-light);
  color: var(--primary-dark);
}
.contact-form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-wrap .wpcf7 form.failed .wpcf7-response-output,
.contact-form-wrap .wpcf7 form.mail-sent-ng .wpcf7-response-output {
  background: #FDECEA;
  border-color: #E74C3C;
  color: #922B21;
}

/* ---- Map section ---- */
.map-section { padding: 0 0 80px; }

.map-section__header {
  text-align: center;
  margin-bottom: 28px;
}

.map-section__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.map-section__sub {
  font-size: 15px;
  color: var(--text-light);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  line-height: 0;
}

.map-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .contact-info__header {
    grid-column: 1 / -1;
  }
  .contact-info__note {
    grid-column: 1 / -1;
  }
  .contact-info__list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .contact-info-item {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .contact-info-item:nth-child(even) { border-right: none; }
}

@media (max-width: 767px) {
  .contact-form-wrap { padding: 24px 20px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info {
    display: block;
  }
  .contact-info__list {
    display: block;
  }
  .contact-info-item { border-right: none; border-bottom: 1px solid var(--border); }
  .map-section { padding: 0 0 60px; }
}

@media (max-width: 479px) {
  .contact-form__title { font-size: 18px; }
  .map-section__title { font-size: 22px; }
}

/* =====================================================
   23. ABOUT PAGE
   ===================================================== */

/* ---- Story section ---- */
.about-story-section { padding: 70px 0 80px; }

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-story__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.about-story__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background-color: var(--primary-dark);
  background-image: url('../images/about/hero.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}

.about-story__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-story__badge-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}
.about-story__badge-num span { font-size: 24px; }

.about-story__badge-text {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 4px;
  white-space: nowrap;
}

.about-story__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--primary-dark);
  margin: 12px 0 18px;
  line-height: 1.3;
}

.about-story__lead {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-story__content p {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.75;
}
.about-story__content p strong { color: var(--text); }

.about-story__highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.about-highlight svg { color: var(--primary); flex-shrink: 0; }

/* ---- Mission section ---- */
.about-mission-section {
  position: relative;
  overflow: hidden;
}

.about-mission__bg {
  position: absolute;
  inset: 0;
  background-color: var(--primary-dark);
  background-image:
    linear-gradient(rgba(10, 35, 10, 0.84), rgba(10, 35, 10, 0.84)),
    url('../images/hero/about.jpg');
  background-size: cover;
  background-position: center;
}

.about-mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.mission-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: background var(--transition), transform var(--transition);
}
.mission-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-4px);
}

.mission-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--accent);
}

.mission-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--bg);
  margin-bottom: 12px;
}

.mission-card__text {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}

/* ---- Process section ---- */
.about-process-section { padding: 80px 0; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-step {
  padding: 0 16px 0 0;
  position: relative;
}

.process-step__top {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.process-step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.process-step__connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  margin-left: 4px;
}
.process-step__connector--last { background: transparent; }

.process-step__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(var(--primary-rgb), 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.process-step__desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.65;
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
  .about-story-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-story__media { order: -1; }
  .about-story__badge { bottom: -16px; right: 16px; }
  .about-mission-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .process-step { padding: 0; }
  .process-step__connector { display: none; }
}

@media (max-width: 767px) {
  .about-story-section { padding: 50px 0 60px; }
  .about-story__badge { right: 8px; bottom: -14px; padding: 12px 16px; }
  .about-story__badge-num { font-size: 28px; }
  .about-mission-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-process-section { padding: 50px 0; }
}

@media (max-width: 479px) {
  .process-grid { grid-template-columns: 1fr; }
  .about-story__title { font-size: 20px; }
}

/* ==========================================================================
   B-REDESIGN — Trust-first homepage
   ========================================================================== */

/* ---------- Hero B (split: text + quote form) ---------- */
.hero-b {
  position: relative;
  padding: 80px 0 60px;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-b__bg {
  position: absolute; inset: 0;
  background: url('../images/hero/hero-bg.webp') center/cover no-repeat;
  background-color: var(--primary-dark);
  z-index: 0;
}
.hero-b__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.10) 70%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(15,55,15,0.20) 0%, rgba(15,55,15,0.30) 100%);
  z-index: 1;
}
.hero-b__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-b__left { color: #fff; }
.hero-b__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-b__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.85),
    0 4px 18px rgba(0,0,0,0.65),
    0 0 1px rgba(0,0,0,0.9);
}
.hero-b__subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: #fff;
  margin-bottom: 24px;
  max-width: 560px;
  font-weight: 500;
  text-shadow:
    0 1px 3px rgba(0,0,0,0.85),
    0 2px 8px rgba(0,0,0,0.6);
}
.hero-b__usps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-b__usps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-shadow:
    0 1px 3px rgba(0,0,0,0.85),
    0 2px 6px rgba(0,0,0,0.55);
}
.hero-b__usps li svg {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7));
}
.hero-b__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-b__actions .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.hero-b__actions .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* ---------- Quote form (hero right side) ---------- */
.hero-b__form { width: 100%; }
.quote-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
/* Trang Liên hệ — form đã nằm trong .contact-form-wrap (đã có card), bỏ card ngoài để khỏi double */
.quote-form--contact {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}
.quote-form--contact .quote-form__form { gap: 14px; }
.quote-form--contact .quote-form__field label { font-size: 12.5px; }
.quote-form--contact .quote-form__field textarea { min-height: 110px; }
.quote-form--contact .quote-form__submit { margin-top: 8px; }

/* ===========================================================
 * CF7 form trang chủ — wrap trong .quote-form--cf7 để khớp design .quote-form gốc
 * CF7 render: <div class="wpcf7"><form class="wpcf7-form"><p>...</p></form></div>
 * Form template anh paste có .quote-form__form + .quote-form__field nên nhiều phần đã work,
 * còn lại cần override CF7 spinner, response output, validation, p-tag wrapping.
 * =========================================================== */

/* CF7 outer wrappers — bỏ margin/padding mặc định */
.quote-form--cf7 .wpcf7,
.quote-form--cf7 .wpcf7 .wpcf7-form { margin: 0; padding: 0; }

/* Nếu CF7 wpautop wrap field bằng <p> — bỏ margin */
.quote-form--cf7 .wpcf7-form > p { margin: 0; }

/* Field wrap trong CF7 (.wpcf7-form-control-wrap span) — full width */
.quote-form--cf7 .wpcf7-form-control-wrap { display: block; width: 100%; }

/* Inputs/select/textarea — apply style giống .quote-form__field input */
.quote-form--cf7 .wpcf7-form input[type="text"],
.quote-form--cf7 .wpcf7-form input[type="email"],
.quote-form--cf7 .wpcf7-form input[type="tel"],
.quote-form--cf7 .wpcf7-form input[type="url"],
.quote-form--cf7 .wpcf7-form input[type="number"],
.quote-form--cf7 .wpcf7-form select,
.quote-form--cf7 .wpcf7-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  box-sizing: border-box;
  outline: none;
  line-height: 1.4;
}
.quote-form--cf7 .wpcf7-form input::placeholder,
.quote-form--cf7 .wpcf7-form textarea::placeholder { color: var(--text-light); }
.quote-form--cf7 .wpcf7-form input:focus,
.quote-form--cf7 .wpcf7-form select:focus,
.quote-form--cf7 .wpcf7-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 125, 58, 0.12);
}
.quote-form--cf7 .wpcf7-form textarea { resize: vertical; min-height: 60px; }

/* Select — custom arrow */
.quote-form--cf7 .wpcf7-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Submit CF7 — căn giữa, bo tròn 20px, không viền */
.quote-form--cf7 .quote-form__form { text-align: center; }
.quote-form--cf7 .quote-form__form .quote-form__submit {
  width: auto;
  margin: 8px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0 !important;
  border-radius: 20px !important;
  outline: none;
  box-shadow: 0 4px 12px -2px rgba(240, 165, 0, 0.35);
}
.quote-form--cf7 .quote-form__form .quote-form__submit:hover {
  box-shadow: 0 8px 20px -4px rgba(240, 165, 0, 0.5);
}
.quote-form--cf7 .quote-form__form .quote-form__submit:focus,
.quote-form--cf7 .quote-form__form .quote-form__submit:focus-visible,
.quote-form--cf7 .quote-form__form .quote-form__submit:active {
  outline: none !important;
  border: 0 !important;
  box-shadow: 0 4px 12px -2px rgba(240, 165, 0, 0.35), 0 0 0 3px rgba(240, 165, 0, 0.2);
}

/* CF7 spinner — căn giữa cạnh button submit */
.quote-form--cf7 .wpcf7-spinner {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 0 10px;
  background-color: rgba(255, 255, 255, 0.5);
}

/* Validation tip — đỏ, dưới field */
.quote-form--cf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #C0392B;
  line-height: 1.4;
}
.quote-form--cf7 .wpcf7-form input.wpcf7-not-valid,
.quote-form--cf7 .wpcf7-form textarea.wpcf7-not-valid,
.quote-form--cf7 .wpcf7-form select.wpcf7-not-valid {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* Response output (success/error) — căn giữa, padding đẹp */
.quote-form--cf7 .wpcf7 .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.quote-form--cf7 .wpcf7 form.sent .wpcf7-response-output {
  background: #E8F5E9;
  border-color: var(--primary-light);
  color: var(--primary-dark);
}
.quote-form--cf7 .wpcf7 form.invalid .wpcf7-response-output,
.quote-form--cf7 .wpcf7 form.failed .wpcf7-response-output {
  background: #FDECEA;
  border-color: #E74C3C;
  color: #922B21;
}
.quote-form__header { margin-bottom: 18px; text-align: center; }
.quote-form__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.quote-form__sub {
  font-size: 13px;
  color: var(--text-light);
}
.quote-form__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quote-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quote-form__field--full { grid-column: 1 / -1; }
.quote-form__field label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}
.quote-form__field input,
.quote-form__field select,
.quote-form__field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.quote-form__field input:focus,
.quote-form__field select:focus,
.quote-form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.quote-form__field textarea { resize: vertical; min-height: 60px; }
.quote-form__submit {
  grid-column: 1 / -1;
  width: auto;
  justify-self: center;
  padding-left: 36px;
  padding-right: 36px;
  margin-top: 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.quote-form__spinner {
  display: none;
  animation: spin 0.8s linear infinite;
}
.quote-form.is-loading .quote-form__submit-text { opacity: 0.7; }
.quote-form.is-loading .quote-form__spinner { display: inline-block; }
.quote-form.is-loading .quote-form__submit { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.quote-form__msg {
  grid-column: 1 / -1;
  font-size: 13px;
  text-align: center;
  margin-top: 4px;
  min-height: 18px;
}
.quote-form__msg.is-success { color: var(--primary); font-weight: 600; }
.quote-form__msg.is-error   { color: var(--error); font-weight: 600; }
.quote-form__privacy {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ---------- Comparison table ---------- */
.products-cmp { padding: 80px 0; }
.cmp-table {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.cmp-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.cmp-table thead {
  background: var(--primary-dark);
  color: #fff;
}
.cmp-table th {
  padding: 16px 18px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.cmp-table__th-product { width: 32%; }
.cmp-table__th-action  { width: 180px; text-align: right; }
.cmp-table tbody tr {
  border-top: 1px solid var(--border);
  transition: background var(--transition);
}
.cmp-table tbody tr:hover { background: var(--bg-light); }
.cmp-table td { padding: 18px; vertical-align: middle; }
.cmp-table__product {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cmp-table__thumb {
  width: 64px;
  height: 64px;
  background: var(--bg-light) center/cover no-repeat;
  border-radius: var(--radius);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.cmp-table__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}
.cmp-table__badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
}
.cmp-table__badge.product-card__badge--gold   { background: #F0A500; }
.cmp-table__badge.product-card__badge--red    { background: #c1342c; }
.cmp-table__badge.product-card__badge--green  { background: var(--primary); }
.cmp-table__badge.product-card__badge--blue   { background: #2c6fc1; }
.cmp-table__badge.product-card__badge--purple { background: #7c3aed; }
.cmp-table__features {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cmp-table__features li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
}
.cmp-table__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}
.cmp-table__fit {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 14px;
}
.cmp-table__action {
  text-align: right;
  white-space: nowrap;
}
.cmp-table__action .btn {
  margin-left: 6px;
  min-width: 88px;        /* Cả 2 nút Chi tiết + Báo giá cùng width */
  text-align: center;
  box-sizing: border-box;
  padding-left: 14px;
  padding-right: 14px;
}

/* "Xem thêm" CTA dưới comparison table */
.cmp-table__more {
  text-align: center;
  margin-top: 36px;
  padding-top: 24px;
}
.cmp-table__more .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cmp-table__more-hint {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 12px;
  font-style: italic;
}

/* ---------- Flagship row (giống chủ lực) ---------- */
.cmp-table__row--flagship {
  background: linear-gradient(90deg, rgba(240,165,0,0.08) 0%, rgba(240,165,0,0.02) 100%);
  position: relative;
}
.cmp-table__row--flagship td {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: none !important;
}
.cmp-table__row--flagship td.cmp-table__product {
  position: relative;
  border-left: 4px solid var(--accent);
  padding-left: 22px;
}
.cmp-table__row--flagship + .cmp-table__row--flagship td {
  border-top: 1px dashed rgba(240,165,0,0.3) !important;
}
.cmp-table__row--flagship:hover {
  background: linear-gradient(90deg, rgba(240,165,0,0.15) 0%, rgba(240,165,0,0.04) 100%);
}
.cmp-table__row--flagship .cmp-table__thumb {
  width: 80px;
  height: 80px;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(240,165,0,0.25);
}
.cmp-table__row--flagship .cmp-table__name {
  font-size: 17px;
  color: var(--primary-dark);
}
.cmp-table__row--flagship .cmp-table__features li {
  font-size: 14px;
  font-weight: 500;
}
.cmp-table__row--flagship .cmp-table__features li::before {
  color: var(--accent-dark);
}
.cmp-table__row--flagship .cmp-table__fit {
  color: var(--accent-dark);
  font-weight: 700;
}

.cmp-table__flagship-ribbon {
  position: absolute;
  top: -1px;
  left: -4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px 4px 8px;
  border-radius: 0 0 8px 0;
  box-shadow: 0 3px 8px rgba(240,165,0,0.4);
  z-index: 2;
}

/* HOT badge cạnh tên sản phẩm flagship — nhấp nháy thu hút */
.cmp-table__hot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #ff5722 0%, #e53935 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 7px 3px 5px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  position: relative;
  top: -2px;
  box-shadow: 0 2px 6px rgba(229,57,53,0.45);
  animation: hotPulse 1.2s ease-in-out infinite;
}
.cmp-table__hot svg {
  animation: hotFlame 0.6s ease-in-out infinite alternate;
}
@keyframes hotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(229,57,53,0.45), 0 0 0 0 rgba(229,57,53,0.6);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(229,57,53,0.6), 0 0 0 6px rgba(229,57,53,0);
  }
}
@keyframes hotFlame {
  from { transform: scale(1) rotate(-3deg); }
  to   { transform: scale(1.15) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-table__hot,
  .cmp-table__hot svg { animation: none; }
}

/* ---------- VN Map ---------- */
.vn-map { padding: 80px 0; }
.vn-map__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: stretch;
}
.vn-map__svg-wrap {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vn-map__canvas {
  position: relative;
  width: 100%;
  text-align: center;
}
.vn-map__bg-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  user-select: none;
}
.vn-map__dots-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.vn-map__dot {
  fill: #9CA3AF;
  transition: fill 0.2s ease, r 0.2s ease;
  cursor: pointer;
}
.vn-map__dot-glow {
  fill: var(--primary-light);
  opacity: 0.45;
  filter: url(#vn-map-glow);
  animation: vnPulse 2.4s ease-in-out infinite;
}
.vn-map__dot-group.is-active .vn-map__dot {
  fill: var(--primary);
  stroke: #fff;
  stroke-width: 3;
}
.vn-map__dot-group:hover .vn-map__dot {
  fill: var(--accent);
  r: 16;
}
.vn-map__dot-group:not(.is-active) .vn-map__dot {
  stroke: #fff;
  stroke-width: 2;
  opacity: 0.7;
}
@keyframes vnPulse {
  0%, 100% { opacity: 0.35; r: 18; }
  50%      { opacity: 0.65; r: 28; }
}
.vn-map__legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.vn-map__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-light);
}
.vn-map__legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #C5CCC5;
  display: inline-block;
}
.vn-map__legend-dot--active { background: var(--primary); }

.vn-map__regions { display: flex; flex-direction: column; gap: 14px; }
.vn-region {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all var(--transition);
}
.vn-region:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-left-color: var(--accent);
}
.vn-region__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.vn-region__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}
.vn-region__count {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
}
.vn-region__provinces {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ---------- B-redesign Mobile ---------- */
@media (max-width: 1023px) {
  .hero-b__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-b__form { max-width: 480px; margin: 0 auto; }
  .vn-map__layout { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767px) {
  .hero-b { padding: 50px 0 40px; min-height: auto; }
  .hero-b__title  { font-size: 28px; }
  .hero-b__subtitle { font-size: 15px; }
  .hero-b__usps   { grid-template-columns: 1fr; gap: 8px; }
  .hero-b__actions .btn { justify-content: center; }

  .quote-form { padding: 20px 18px; }
  .quote-form__form { grid-template-columns: 1fr; gap: 10px; }
  .quote-form__title { font-size: 19px; }

  .products-cmp, .vn-map { padding: 50px 0; }

  /* Comparison table → card stack on mobile */
  .cmp-table { background: transparent; border: none; box-shadow: none; padding: 0; }
  .cmp-table table, .cmp-table thead, .cmp-table tbody,
  .cmp-table tr, .cmp-table td, .cmp-table th { display: block; }
  .cmp-table thead { display: none; }
  .cmp-table tbody tr {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
  }
  .cmp-table tbody tr:hover { background: #fff; }
  .cmp-table td { padding: 8px 0; border: none; }
  .cmp-table__product { padding-bottom: 12px; border-bottom: 1px solid var(--border) !important; margin-bottom: 4px; }
  .cmp-table__fit::before { content: 'Phù hợp: '; font-weight: 600; color: var(--text-light); }
  .cmp-table__action { text-align: left; padding-top: 12px !important; }
  .cmp-table__action .btn { margin-left: 0; margin-right: 6px; }

  .vn-map__svg { max-height: 480px; }
  .vn-region__head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 479px) {
  .hero-b__title { font-size: 24px; }
  .hero-b__actions { flex-wrap: wrap; gap: 10px; }
  .hero-b__actions .btn { width: auto; padding: 12px 18px; font-size: 14px; }
  .quote-form { padding: 18px 16px; }
}

/* ==========================================================================
   PRODUCT DETAIL — single-giong_cay content typography
   ========================================================================== */
.post-body {
  margin-top: 16px;
}
.post-body h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  display: inline-block;
  position: relative;
}
.post-body h2::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 24px;
  background: var(--accent);
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 2px;
}
.post-body h2:first-child { margin-top: 0; }
.post-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 24px 0 10px;
}
.post-body p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}
.post-body ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
}
.post-body ul li {
  position: relative;
  padding: 6px 0 6px 28px;
  line-height: 1.7;
  font-size: 15px;
  color: var(--text);
}
.post-body ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 13px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}
.post-body strong { color: var(--primary-dark); font-weight: 700; }
.post-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--accent-dark); }

/* Product specs table */
.post-body table.product-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.post-body table.product-specs th {
  background: var(--primary-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 16px;
  text-align: left;
  width: 38%;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  vertical-align: top;
}
.post-body table.product-specs td {
  padding: 11px 16px;
  font-size: 14.5px;
  color: var(--text);
  background: #fff;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.post-body table.product-specs tr:last-child th,
.post-body table.product-specs tr:last-child td {
  border-bottom: none;
}

/* Inline CTA box at end of content */
.post-body .post-cta-inline {
  background: linear-gradient(135deg, rgba(58,125,58,0.08) 0%, rgba(240,165,0,0.08) 100%);
  border: 1px solid rgba(58,125,58,0.2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 32px 0 8px;
  font-size: 15px;
  line-height: 1.7;
}
.post-body .post-cta-inline strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

@media (max-width: 767px) {
  .post-body h2 { font-size: 18px; }
  .post-body h3 { font-size: 15px; }
  .post-body p, .post-body ul li { font-size: 14.5px; }
  .post-body table.product-specs th { width: 42%; font-size: 12.5px; padding: 9px 12px; }
  .post-body table.product-specs td { font-size: 13.5px; padding: 9px 12px; }
}

/* ==========================================================================
   GALLERY BENTO — Hậu trường Phan Hải (videos + photos mix)
   ========================================================================== */
.gallery-section { background: var(--bg); }

.gallery-filter {
  display: inline-flex;
  gap: 6px;
  margin-top: 18px;
  padding: 4px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.gallery-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}
.gallery-filter__btn:hover { color: var(--primary); }
.gallery-filter__btn.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(58,125,58,0.3);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.bento-tile {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-light);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  isolation: isolate;
}
.bento-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.bento-tile.is-hidden { display: none; }

/* Tile sizes (desktop 4-col grid) */
.bento-tile--xl   { grid-column: span 2; grid-row: span 2; }
.bento-tile--wide { grid-column: span 2; }
.bento-tile--tall { grid-row: span 2; }
.bento-tile--sm   { grid-column: span 1; grid-row: span 1; }

.bento-tile__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.bento-tile:hover .bento-tile__bg { transform: scale(1.06); }

.bento-tile__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 6px;
  z-index: 2;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.bento-tile__badge--video {
  background: rgba(229,57,53,0.92);
  color: #fff;
}
.bento-tile__badge--photo {
  background: rgba(255,255,255,0.85);
  color: var(--primary-dark);
}

.bento-tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(229,57,53,0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: all var(--transition);
}
.bento-tile__play svg { margin-left: 3px; }
.bento-tile:hover .bento-tile__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #e53935;
}
.bento-tile--xl .bento-tile__play {
  width: 72px;
  height: 72px;
}
.bento-tile--xl .bento-tile__play svg { width: 28px; height: 28px; }

.bento-tile .yt-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bento-tile .yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bento-tile__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
  color: #fff;
  z-index: 2;
  pointer-events: none;
}
.bento-tile__caption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.bento-tile__caption span {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
.bento-tile--xl .bento-tile__caption strong { font-size: 18px; }
.bento-tile--xl .bento-tile__caption span { font-size: 13.5px; }

.gallery-cta {
  text-align: center;
  margin-top: 32px;
}

/* Mobile */
@media (max-width: 1023px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .bento-tile--xl { grid-column: span 3; grid-row: span 2; }
  .bento-tile--wide { grid-column: span 3; }
  .bento-tile--sm { grid-column: span 1; }
}
@media (max-width: 767px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
  .bento-tile--xl { grid-column: span 2; grid-row: span 2; }
  .bento-tile--wide { grid-column: span 2; }
  .bento-tile--sm { grid-column: span 1; }
  .bento-tile__caption strong { font-size: 13px; }
  .gallery-filter { width: 100%; justify-content: center; }
}

/* ==========================================================================
   PAGE: DỊCH VỤ
   ========================================================================== */

/* ---- Hero ---- */
.dv-hero {
  position: relative;
  padding: 70px 0 50px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.dv-hero__bg {
  position: absolute; inset: 0;
  background: url('../images/why-us-banner.jpg') center/cover no-repeat;
  background-color: var(--primary-dark);
  z-index: 0;
}
.dv-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,55,15,0.78) 0%, rgba(15,55,15,0.68) 100%);
  z-index: 1;
}
.dv-hero__inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.dv-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
}
.dv-hero__breadcrumb a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.dv-hero__breadcrumb a:hover { color: var(--accent); }
.dv-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.dv-hero__subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  margin-bottom: 28px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.dv-hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.dv-hero__actions .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.dv-hero__actions .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---- Services grid ---- */
.dv-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dv-service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.dv-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.dv-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.dv-service-card:hover::before { transform: scaleX(1); }
.dv-service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(58,125,58,0.10) 0%, rgba(240,165,0,0.10) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}
.dv-service-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}
.dv-service-card__desc {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}
.dv-service-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dv-service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
}
.dv-service-card__list li svg { flex-shrink: 0; margin-top: 4px; }

/* ---- Process steps ---- */
.dv-process__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.dv-process__steps::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--primary-light) 0,
    var(--primary-light) 6px,
    transparent 6px,
    transparent 12px
  );
}
.dv-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.dv-step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.dv-step__num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(58,125,58,0.35);
}
.dv-step__body { flex: 1; min-width: 0; }
.dv-step__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.dv-step__desc {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ---- Commitments (dark section) ---- */
.dv-commit {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.dv-commit__bg {
  position: absolute; inset: 0;
  background: url('../images/why-us-banner.jpg') center/cover no-repeat;
  background-color: var(--primary-dark);
  z-index: 0;
}
.dv-commit__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,10,0.85) 0%, rgba(10,30,10,0.78) 100%);
  z-index: 1;
}
.dv-commit__inner { position: relative; z-index: 2; }
.dv-commit__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dv-commit-card {
  background: rgba(15,35,15,0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--transition);
}
.dv-commit-card:hover {
  background: rgba(15,35,15,0.85);
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.5);
}
.dv-commit-card__icon { margin-bottom: 16px; }
.dv-commit-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.dv-commit-card__desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin: 0;
}

/* ---- FAQ accordion (native <details>) ---- */
.dv-faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dv-faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.dv-faq__item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.dv-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}
.dv-faq__q::-webkit-details-marker { display: none; }
.dv-faq__q:hover { background: var(--bg-light); }
.dv-faq__icon {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform var(--transition);
}
.dv-faq__item[open] .dv-faq__icon { transform: rotate(180deg); }
.dv-faq__a {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.7;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
  margin-top: -1px;
}

/* ---- Mobile responsive ---- */
@media (max-width: 1023px) {
  .dv-services__grid { grid-template-columns: repeat(2, 1fr); }
  .dv-commit__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .dv-hero { padding: 50px 0 40px; }
  .dv-hero__title { font-size: 26px; }
  .dv-hero__actions .btn { width: auto; }

  .dv-services__grid { grid-template-columns: 1fr; }
  .dv-service-card { padding: 22px 20px; }

  .dv-process__steps::before { left: 24px; top: 26px; bottom: 26px; }
  .dv-step { gap: 16px; padding: 16px 18px; }
  .dv-step__num { width: 44px; height: 44px; font-size: 16px; }
  .dv-step__title { font-size: 15px; }

  .dv-commit { padding: 50px 0; }
  .dv-commit__grid { grid-template-columns: 1fr; gap: 14px; }

  .dv-faq__q { font-size: 14.5px; padding: 14px 18px; gap: 12px; }
  .dv-faq__a { padding: 14px 18px 16px; font-size: 13.5px; }
}

/* ===================== 404 PAGE ===================== */
.error-404__container { text-align: center; padding: 40px 0 20px; }
.error-404__inner     { max-width: 520px; margin: 0 auto; }
.error-404__code {
  font-family: var(--font-heading, 'Be Vietnam Pro'), 'Segoe UI', Arial, sans-serif;
  font-size: 72px;
  color: var(--primary);
  margin: 0 0 8px;
  line-height: 1;
}
.error-404__text {
  color: var(--text-light);
  font-size: 17px;
  margin: 0 0 28px;
}
.error-404__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer logo — hiển thị logo Customizer hoặc logo-horizontal.png mặc định */
.footer__logo-img {
  max-height: 64px;
  width: auto;
  max-width: 240px;
  margin-bottom: 16px;
  display: block;
}

/* ============================================================
 * THANK YOU PAGE (/cam-on/)
 * ============================================================ */
.thanks-page { background: var(--bg); }

/* Hero */
.thanks-hero { position: relative; padding: 80px 0 60px; overflow: hidden; }
.thanks-hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  z-index: 0;
}
.thanks-hero__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
}
.thanks-hero__inner {
  position: relative; z-index: 2;
  text-align: center;
  color: #fff;
}
.thanks-hero__icon {
  display: inline-block;
  margin-bottom: 24px;
  animation: thanksCheckPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.25));
}
@keyframes thanksCheckPop {
  0%   { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  60%  { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.thanks-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.18;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.thanks-hero__subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 640px;
  margin: 0 auto 30px;
  opacity: 0.95;
  line-height: 1.6;
}
.thanks-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Steps */
.thanks-steps__grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.thanks-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 26px;
  text-align: center;
  transition: var(--transition);
}
.thanks-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(58, 125, 58, 0.18);
  border-color: var(--primary-light);
}
.thanks-step__num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  width: 44px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(240, 165, 0, 0.35);
}
.thanks-step__icon {
  color: var(--primary);
  margin: 8px 0 14px;
}
.thanks-step__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}
.thanks-step__desc {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

/* Suggested products */
.thanks-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.thanks-product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.thanks-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.12);
}
.thanks-product-card__media {
  display: block;
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-light);
}
.thanks-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.thanks-product-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.thanks-product-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.thanks-product-card__title a {
  color: var(--text);
  text-decoration: none;
}
.thanks-product-card__title a:hover { color: var(--primary); }
.thanks-product-card__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.thanks-product-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.45;
}
.thanks-product-card__features svg { flex-shrink: 0; margin-top: 3px; }
.thanks-product-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 0;
  align-self: flex-start;
  transition: var(--transition);
}
.thanks-product-card__cta:hover { color: var(--primary-dark); gap: 10px; }
.thanks-products__more {
  text-align: center;
  margin-top: 36px;
}

/* Quick links grid */
.thanks-quicklinks__grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.thanks-ql-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
  text-align: center;
}
.thanks-ql-card svg { color: var(--primary); transition: var(--transition); }
.thanks-ql-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px -10px rgba(58, 125, 58, 0.25);
  color: var(--primary);
}
.thanks-ql-card:hover svg { color: var(--accent); transform: scale(1.1); }

/* Responsive */
@media (max-width: 1023px) {
  .thanks-steps__grid     { grid-template-columns: 1fr; gap: 18px; max-width: 560px; margin-left: auto; margin-right: auto; }
  .thanks-products__grid  { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .thanks-quicklinks__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 600px) {
  .thanks-hero { padding: 60px 0 40px; }
  .thanks-hero__icon svg { width: 80px; height: 80px; }
  .thanks-hero__actions .btn { width: 100%; justify-content: center; }
  .thanks-products__grid  { grid-template-columns: 1fr; }
  .thanks-quicklinks__grid { grid-template-columns: 1fr 1fr; }
  .thanks-ql-card { padding: 22px 14px; font-size: 14px; }
}

/* ============================================================
 * 404 PAGE
 * ============================================================ */
.error-404-page { background: var(--bg); }

/* Hero */
.error-hero { position: relative; padding: 60px 0 70px; overflow: hidden; }
.error-hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2d6b2d 100%);
  z-index: 0;
}
.error-hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(0,0,0,0.2) 0%, transparent 60%);
  z-index: 1;
}
.error-hero__inner { position: relative; z-index: 2; text-align: center; color: #fff; }

.error-hero__illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  animation: errorFloat 4s ease-in-out infinite;
}
@keyframes errorFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.error-hero__illustration svg { max-width: 100%; height: auto; }

.error-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  opacity: 0.85;
}
.error-hero__breadcrumb a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.5);
  padding-bottom: 1px;
}
.error-hero__breadcrumb a:hover { border-bottom-color: #fff; }

.error-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.error-hero__subtitle {
  font-size: clamp(14px, 1.5vw, 17px);
  max-width: 640px;
  margin: 0 auto 28px;
  opacity: 0.92;
  line-height: 1.65;
}
.error-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Quick links grid */
.error-links__grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.error-link-card {
  display: block;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.error-link-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.error-link-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 32px -10px rgba(58, 125, 58, 0.22);
}
.error-link-card:hover::before { transform: scaleX(1); }
.error-link-card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  margin-bottom: 14px;
  transition: var(--transition);
}
.error-link-card:hover .error-link-card__icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  transform: rotate(-6deg);
}
.error-link-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.error-link-card__desc {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* Popular products */
.error-popular__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.error-product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.error-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -10px rgba(0,0,0,0.12);
}
.error-product-card__media {
  display: block;
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-light);
}
.error-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.error-product-card__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.error-product-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}
.error-product-card__title a { color: var(--text); text-decoration: none; }
.error-product-card__title a:hover { color: var(--primary); }
.error-product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
.error-product-card__cta:hover { color: var(--primary-dark); gap: 10px; }

/* Responsive */
@media (max-width: 1023px) {
  .error-links__grid    { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .error-popular__grid  { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 600px) {
  .error-hero { padding: 40px 0 50px; }
  .error-hero__illustration svg { max-width: 240px; }
  .error-hero__actions .btn { width: 100%; justify-content: center; }
  .error-links__grid    { grid-template-columns: 1fr; gap: 12px; }
  .error-popular__grid  { grid-template-columns: 1fr; }
  .error-link-card      { padding: 22px 20px; }
}
/* Cleanup: remove old .error-404 classes (replaced by .error-hero/.error-links/etc.) */

.quote-form .wpcf7 label,
.quote-form .wpcf7 .wpcf7-form-control-wrap,
.quote-form .wpcf7 p {
  text-align: left;
  display: block;
}
/* Ẩn <br> trong form trang chủ */
.quote-form__field br {
  display: none !important;
}

.quote-form__field p {
  margin: 0 !important;
  padding: 0 !important;
}

.quote-form__field label {
  display: block;
  margin-bottom: 2px !important;
}

/* Override — bỏ ẩn text khi submit */
.quote-form--cf7 .wpcf7-form.submitting .quote-form__submit {
  color: #fff !important;
  opacity: 0.75;
  pointer-events: none;
}

/* Hiện spinner CF7 mặc định */
.quote-form--cf7 .wpcf7-spinner {
  display: inline-block !important;
  visibility: visible !important;
  margin-left: 8px;
}
