/*
Theme Name: HR Landing Theme
Theme URI: https://dichvuinan.com
Author: dev.com.vn
Author URI: https://dev.com.vn
Description: Theme landing page giải pháp nhân sự, tuyển dụng và thương hiệu cá nhân - chỉnh từ nền DichVuInan
Version: 1.0.3-hr
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: dichvuinan
*/

/* ============================================================
   CSS VARIABLES - CÓ THỂ THAY ĐỔI MÀU SẮC QUA THEME OPTIONS
   ============================================================ */
:root {
  --primary: #1554c8;
  --primary-dark: #073a8f;
  --primary-soft: #edf4ff;
  --secondary: #ed1f24;
  --secondary-soft: #fff0f0;
  --orange: #f39218;
  --text: #10213b;
  --muted: #657386;
  --line: #e5ebf4;
  --bg: #f8fbff;
  --card: #ffffff;
  --shadow: 0 2px 12px rgba(18, 58, 130, 0.08);
  --shadow-hover: 0 8px 28px rgba(18, 58, 130, 0.15);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1360px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main { flex: 1; }

/* Content with sidebar layout */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
}

.content-sidebar-wrap.no-sidebar {
  grid-template-columns: 1fr;
}

/* ============================================================
   CARD & COMMON COMPONENTS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transition: box-shadow 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-outline { background: #fff; color: var(--primary); border-color: #b8cdfa; }
.btn-outline:hover { background: var(--primary-soft); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ============================================================
   SECTION
   ============================================================ */
.section { margin-top: 32px; }
.section:first-child { margin-top: 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #113574;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.section-sub {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  margin-top: 6px;
}

.section-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
}

.center-head { text-align: center; margin-bottom: 24px; }

/* ============================================================
   ICON
   ============================================================ */
.icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #d7e6ff;
  flex: 0 0 auto;
}

.icon svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 200px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0 46%, #fff 46% 54%, var(--orange) 54% 100%);
  box-shadow: 0 8px 18px rgba(21, 84, 200, 0.18);
  flex-shrink: 0;
}

.logo-letter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 600;
  color: #fff;
}

.logo-text strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #113574;
  letter-spacing: -0.02em;
}

.logo-text strong .logo-dot { color: var(--secondary); font-size: 16px; }
.logo-text small { display: block; margin-top: 5px; font-size: 11px; color: #68758a; }

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
  flex-wrap: wrap;
}

.main-nav > li { list-style: none; position: relative; }

.main-nav > li > a {
  font-weight: 500;
  color: #29384d;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > li > a:hover,
.main-nav > li.current-menu-item > a { color: var(--primary); }

.main-nav > li.current-menu-item > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

/* Dropdown */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(18, 58, 130, 0.12);
  padding: 8px;
  list-style: none;
  z-index: 200;
}

.main-nav li:hover > .sub-menu { display: block; }

.main-nav .sub-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.main-nav .sub-menu li a:hover { background: var(--primary-soft); color: var(--primary); }

/* Level 3 */
.main-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  transform: none;
  margin-left: 4px;
}

/* Dropdown arrow */
.main-nav li.menu-item-has-children > a::after {
  content: '⌄';
  font-style: normal;
  color: #6c7688;
  margin-left: 2px;
  font-size: 12px;
}

.main-nav li.current-menu-item.menu-item-has-children > a::after {
  bottom: auto;
  position: static;
  height: auto;
  width: auto;
  background: none;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #18263f;
  font-weight: 600;
}

.phone-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 16px;
}

.phone-number { font-size: 15px; font-weight: 700; color: #113574; }
.phone-label { display: block; font-size: 11px; font-weight: 500; color: #68768a; margin-top: 2px; }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  overflow: hidden;
  background: radial-gradient(circle at 72% 38%, rgba(21, 84, 200, 0.10), transparent 34%),
              linear-gradient(90deg, #fff 0%, #f8fbff 47%, #eef4fb 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  min-height: 430px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  padding: 40px 0 32px;
}

.hero-copy h1 {
  font-size: 34px;
  line-height: 1.18;
  font-weight: 600;
  color: #0f2d68;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.hero-copy h1 .hero-highlight { display: block; color: var(--secondary); margin-top: 8px; }

.hero-desc {
  max-width: 590px;
  color: #46556a;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.hero-feature { display: flex; gap: 10px; align-items: flex-start; }

.mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #d9e7ff;
  flex-shrink: 0;
}

.mini-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.9; fill: none; }

.hero-feature strong { display: block; font-size: 13px; font-weight: 600; color: #23324a; }
.hero-feature small { display: block; font-size: 11px; color: #667386; line-height: 1.4; margin-top: 2px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   SERVICE GRID
   ============================================================ */
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.service-card {
  padding: 24px 18px;
  text-align: center;
  min-height: 204px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.service-card:hover { transform: translateY(-3px); }
.service-card .icon { margin-bottom: 14px; width: 58px; height: 58px; }
.service-card h3 { font-size: 15px; font-weight: 600; color: #23324a; margin-bottom: 8px; }
.service-card p { color: #667386; font-size: 12px; line-height: 1.6; margin-bottom: 16px; }
.service-card .service-link { margin-top: auto; color: var(--primary); font-size: 12px; font-weight: 600; }
.service-card .service-link:hover { text-decoration: underline; }

/* ============================================================
   PRODUCT GRID (WooCommerce-based)
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.products-grid.col-2 { grid-template-columns: repeat(2, 1fr); }
.products-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
.products-grid.col-7 { grid-template-columns: repeat(7, 1fr); }

.product-card { position: relative; overflow: hidden; }

.product-thumb {
  height: 220px;
  overflow: hidden;
  background: #f2f4f8;
  position: relative;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Placeholder avatar (first 2 chars) */
.product-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -2px;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-card-body { padding: 16px; }

.product-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #26354c;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.product-cat {
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary);
}

.product-price del { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 4px; }

.product-card-footer {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

/* WooCommerce product listing override */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; }
.woocommerce ul.products li.product { margin: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__link { display: block; }
.woocommerce ul.products li.product img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }

.process-step {
  padding: 22px 18px;
  text-align: center;
  min-height: 150px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-step::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--primary);
  z-index: 1;
}

.process-step:last-child::after { display: none; }
.process-step .icon { margin: 0 auto 12px; width: 50px; height: 50px; border-radius: 14px; }
.process-step h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.process-step p { color: #667386; font-size: 12px; line-height: 1.55; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.why-card {
  padding: 18px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.why-card:hover { transform: translateY(-2px); }
.why-card .icon { width: 48px; height: 48px; border-radius: 14px; }
.why-card h3 { font-size: 14px; font-weight: 600; color: #23324a; margin-bottom: 4px; }
.why-card p { color: #667386; font-size: 12px; line-height: 1.5; }

/* ============================================================
   CLIENT LOGOS
   ============================================================ */
.client-row {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
}

.client-item {
  flex: 1;
  padding: 20px 12px;
  text-align: center;
  border-right: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  color: #144489;
  transition: background 0.2s;
}

.client-item:hover { background: var(--primary-soft); }
.client-item:last-child { border-right: 0; }
.client-arrow { padding: 20px 14px; color: #9aa7ba; font-size: 22px; cursor: pointer; border-right: 1px solid var(--line); }

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
  margin-top: 28px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr 1.1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(90deg, #0754c8 0%, #0b5ee2 58%, #0750b7 100%);
  color: #fff;
  padding: 22px 34px;
  box-shadow: 0 14px 30px rgba(21, 84, 200, 0.2);
}

.promo-gift {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: var(--secondary);
  display: grid;
  place-items: center;
  font-size: 38px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.promo-banner h3 { font-size: 20px; font-weight: 600; margin-bottom: 5px; }
.promo-banner p { color: #e9f1ff; }

.promo-form { display: grid; grid-template-columns: 1fr 170px; gap: 12px; }
.promo-form input { height: 48px; border: 0; border-radius: 10px; padding: 0 16px; color: #26354b; }

.promo-discount {
  width: 126px;
  height: 80px;
  background: #ffe033;
  color: #e21c23;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  transform: rotate(-8deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.promo-discount small { display: block; font-size: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 32px;
  background: #07376d;
  color: #fff;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.footer-inner { padding: 36px 0 20px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr) 1.1fr 130px;
  gap: 28px;
}

.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text strong .logo-dot { color: #ff5156; }
.footer-desc { margin: 14px 0; color: #d4e1f4; font-size: 13px; line-height: 1.7; }

.socials { display: flex; gap: 10px; }

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
}

.socials a:hover { background: rgba(255, 255, 255, 0.2); }
.socials svg { width: 15px; height: 15px; fill: #fff; }

.footer-col h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; margin-bottom: 9px; color: #d4e1f4; font-size: 13px; line-height: 1.5; }
.footer-col a:hover { color: #fff; }

.footer-qr {
  width: 106px;
  height: 106px;
  border-radius: 10px;
  border: 5px solid #fff;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.footer-qr img { width: 100%; height: 100%; object-fit: cover; }
.qr-caption { text-align: center; color: #d4e1f4; font-size: 12px; margin-top: 8px; }

.footer-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b8c9e6;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar-widget-title {
  font-size: 14px;
  font-weight: 600;
  color: #113574;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

/* Sticky sidebar */
.sidebar-sticky { position: sticky; top: 90px; }

/* Contact widget in sidebar */
.sidebar-contact {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
}

.sidebar-contact .sidebar-widget-title { color: #fff; border-color: rgba(255,255,255,0.3); }

.sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.sidebar-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-wrap {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #ccc; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
  display: flex;
  gap: 0;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.search-bar input {
  flex: 1;
  height: 48px;
  border: none;
  outline: none;
  padding: 0 18px;
  font-size: 14px;
  background: transparent;
}

.search-bar button {
  height: 48px;
  padding: 0 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.search-bar button:hover { background: var(--primary-dark); }

/* ============================================================
   FILTER SIDEBAR (Archive pages)
   ============================================================ */
.filter-sidebar { display: flex; flex-direction: column; gap: 20px; }

.filter-group { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-group-title { font-size: 13px; font-weight: 600; color: #113574; margin-bottom: 12px; text-transform: uppercase; }

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

.filter-list li { margin-bottom: 6px; }

.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.filter-list a:hover, .filter-list a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.filter-count {
  background: var(--line);
  color: var(--muted);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Mobile filter toggle */
.mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 16px;
}

/* ============================================================
   RELATED POSTS/PRODUCTS
   ============================================================ */
.related-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-grid.col-2 { grid-template-columns: repeat(2, 1fr); }

/* ============================================================
   SINGLE POST/PAGE
   ============================================================ */
.single-header { margin-bottom: 24px; }
.single-title { font-size: 28px; font-weight: 600; color: #0f2d68; line-height: 1.25; margin-bottom: 12px; }
.single-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.single-meta span { display: flex; align-items: center; gap: 5px; }

.single-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.single-content h2, .single-content h3, .single-content h4 { margin: 24px 0 12px; color: #113574; }
.single-content img { border-radius: var(--radius-sm); margin: 16px 0; }
.single-content ul, .single-content ol { padding-left: 24px; margin: 12px 0; }
.single-content li { margin-bottom: 6px; }

/* Section tabs in single */
.section-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 24px; }
.section-tab { padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; }
.section-tab.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text); }
.form-input {
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--card);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--primary); }
.form-textarea { height: 120px; resize: vertical; padding: 12px 14px; }

/* ============================================================
   POSTS LISTING (Default WordPress posts)
   ============================================================ */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.posts-grid.col-2 { grid-template-columns: repeat(2, 1fr); }

.post-card { overflow: hidden; }
.post-thumb { height: 200px; overflow: hidden; position: relative; background: #f0f4f8; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-card-body { padding: 18px; }
.post-cat { font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; display: block; }
.post-card-title { font-size: 15px; font-weight: 600; color: #26354c; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-date { font-size: 12px; color: var(--muted); }
.post-excerpt { font-size: 13px; color: var(--muted); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  transition: all 0.2s;
}
.pagination a:hover { background: var(--primary-soft); color: var(--primary); border-color: #b8cdfa; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   PRICE TABLE
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.price-card {
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price-card.featured { border-color: var(--primary); }

.price-card.featured::before {
  content: 'Phổ biến';
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 40px;
  transform: rotate(45deg);
}

.price-card-title { font-size: 16px; font-weight: 600; color: #113574; margin-bottom: 8px; }
.price-amount { font-size: 32px; font-weight: 700; color: var(--secondary); margin: 12px 0; }
.price-amount sup { font-size: 16px; font-weight: 600; }
.price-amount span { font-size: 14px; font-weight: 400; color: var(--muted); }
.price-features { list-style: none; padding: 0; margin: 16px 0 24px; text-align: left; }
.price-features li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.price-features li::before { content: '✓'; color: var(--primary); font-weight: 700; }

/* ============================================================
   FLOATING CONTACT BUTTONS
   ============================================================ */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  font-size: 20px;
}

.float-btn:hover { transform: scale(1.1); }
.float-btn.phone { background: var(--primary); }
.float-btn.zalo { background: #0068ff; }
.float-btn.chat { background: #25d366; }

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 200;
  padding: 8px 0 4px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.mobile-bottom-nav ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--muted);
  padding: 4px 8px;
}

.mobile-bottom-nav .active a,
.mobile-bottom-nav a:hover { color: var(--primary); }

.mobile-bottom-nav .nav-icon { font-size: 20px; line-height: 1; }

/* ============================================================
   COLOR CUSTOMIZER (added to Customizer)
   ============================================================ */
body.has-custom-colors {
  /* Colors injected via PHP customizer */
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-page .woocommerce-breadcrumb { display: none; } /* We use our own breadcrumb */

.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.woocommerce div.product .woocommerce-product-gallery { border-radius: var(--radius); overflow: hidden; }
.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--radius-sm); }

.woocommerce div.product .entry-summary { padding: 0; }
.woocommerce div.product .entry-summary h1.product_title { font-size: 24px; font-weight: 600; color: #0f2d68; }
.woocommerce div.product .woocommerce-Price-amount { color: var(--secondary); font-size: 24px; font-weight: 700; }

.woocommerce .button { background: var(--primary) !important; color: #fff !important; border-radius: 10px !important; font-weight: 600 !important; padding: 12px 24px !important; }
.woocommerce .button:hover { background: var(--primary-dark) !important; }

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button { background: var(--primary); border-radius: 10px; }

/* Add to cart button */
.woocommerce .single_add_to_cart_button { background: var(--secondary) !important; width: 100%; margin-top: 16px !important; }

/* ============================================================
   ELEMENTOR FIXES
   ============================================================ */
.elementor-section { margin: 0 !important; }
.elementor-widget:not(:last-child) { margin-bottom: 0 !important; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.w-100 { width: 100%; }
.hidden { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid, .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .process-row { grid-template-columns: repeat(3, 1fr); }
  .process-step::after { display: none; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-banner { grid-template-columns: auto 1fr; }
  .promo-discount { display: none; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .mobile-filter-toggle { display: flex; }
  .filter-sidebar.open { display: flex; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; flex-direction: column; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .header-phone { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 26px; }
  .hero-copy .hero-desc { font-size: 14px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .process-row { grid-template-columns: 1fr; }
  .why-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .client-row { flex-wrap: wrap; }
  .promo-banner { grid-template-columns: 1fr; padding: 22px 18px; }
  .promo-form { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-bottom-nav { display: block; padding-bottom: 8px; }
  body { padding-bottom: 65px; }
  .floating-contact { bottom: 80px; right: 14px; }
  .section-title { font-size: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .products-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
