/* ==========================================================================
   PHỤ TÙNG XE NÂNG HẢI PHÒNG - HIGH CONVERSION DESIGN SYSTEM
   Chuẩn SEO Service Web Builder - Mobile-First, CRO & GEO/AEO Discovery
   ========================================================================== */

:root {
  /* Brand Palette */
  --red-950: #450a0a;
  --red-900: #7f1d1d;
  --red-850: #991b1b;
  --red-800: #b91c1c;
  --red-700: #c5161d;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-50:  #fef2f2;

  /* Gold Palette */
  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-400: #facc15;
  --gold-300: #fde047;
  --gold-100: #fef3c7;
  --gold-50:  #fffbeb;

  /* Deep Navy & Slate */
  --navy-950: #060e1a;
  --navy-900: #0b1727;
  --navy-850: #0f2038;
  --navy-800: #162a47;
  --navy-700: #1e3a63;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  /* CRO Callouts */
  --call-red:   #dc2626;
  --call-hover: #b91c1c;
  --zalo-blue:  #0068ff;
  --zalo-hover: #0052cc;
  --accent-gold:#f59e0b;

  /* Typography & Layout */
  --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

/* Base Reset & Smooth Styling */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.6;
  overflow-x: clip; /* Modern anti-overflow that preserves sticky header */
  max-width: 100vw;
}

a {
  color: var(--red-700);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--red-900);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==========================================================================
   1. TOPBAR & ANNOUNCEMENT STRIP
   ========================================================================== */
.thh-topbar {
  background: var(--red-900);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 2px solid var(--gold-400);
  padding: 7px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: var(--gold-400);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-400);
  animation: pulse-gold 1.5s infinite;
}

@keyframes pulse-gold {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.topbar-link:hover {
  color: var(--gold-300);
}

.topbar-divider {
  color: var(--red-500);
  font-size: 12px;
}

@media (max-width: 768px) {
  .thh-topbar {
    font-size: 11px;
    padding: 5px 0;
    text-align: center;
  }
  .topbar-inner {
    justify-content: center;
  }
  .topbar-right {
    display: none;
  }
}

/* ==========================================================================
   2. STICKY HEADER & LOGO
   ========================================================================== */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  width: 100% !important;
  transition: all 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  min-height: 64px;
}

/* Strict Logo Constraints (Prevents 1024px Blowout) */
.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-branding a, .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.site-branding img,
.site-branding .custom-logo,
.custom-logo,
.site-logo {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: block !important;
}

/* WordPress Emoji & Button Vector Icons Reset */
img.emoji,
.emoji,
.site-header .emoji {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: -2px !important;
  border: none !important;
  box-shadow: none !important;
}

.btn-header-call svg,
.btn-header-quote svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

/* Main Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--red-700);
  background-color: var(--red-50);
}

.arrow-down {
  font-size: 11px;
  margin-left: 2px;
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Dropdown Sub-menu */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--red-700);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.sub-menu li:last-child a {
  border-bottom: none;
}

.sub-menu li a:hover {
  background-color: var(--red-50);
  color: var(--red-700);
  padding-left: 22px;
}

/* Header Action Buttons (Sleek, Compact 38px, Harmonious Colors) */
.header-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-header-call {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 38px !important;
  padding: 0 14px !important;
  background: linear-gradient(135deg, var(--red-600) 0%, var(--red-800) 100%) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
  transition: all 0.2s ease !important;
  border: 1px solid transparent !important;
  line-height: 1 !important;
}

.btn-header-call:hover {
  transform: translateY(-1px) !important;
  background: linear-gradient(135deg, var(--red-700) 0%, var(--red-900) 100%) !important;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35) !important;
}

.btn-header-call .btn-icon {
  font-size: 13px;
  line-height: 1;
}

.btn-header-call .btn-text strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff !important;
}

.btn-header-quote {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 38px !important;
  padding: 0 14px !important;
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1.5px solid #f59e0b !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.15) !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
}

.btn-header-quote:hover {
  background: #fef3c7 !important;
  border-color: #d97706 !important;
  color: #92400e !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25) !important;
}

.btn-header-quote .btn-icon {
  font-size: 13px;
  line-height: 1;
}

/* Mobile Menu Toggle Button (Hamburger with 3 clear spans) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--navy-900);
  border-radius: 2px;
  transition: all 0.25s ease;
}

@media (max-width: 992px) {
  .main-navigation,
  .header-cta-group {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .site-branding img,
  .site-branding .custom-logo,
  .custom-logo,
  .site-logo {
    height: 38px !important;
    max-height: 38px !important;
    max-width: 170px !important;
  }
}

/* Mobile Navigation Drawer & Backdrop */
.mobile-drawer-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  z-index: 99998 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease !important;
}

.mobile-drawer-backdrop.is-active,
.mobile-drawer-backdrop:not([hidden]) {
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 82% !important;
  max-width: 320px !important;
  height: 100% !important;
  background: #ffffff !important;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.25) !important;
  z-index: 99999 !important;
  transform: translateX(-100%) !important;
  transition: transform 0.3s ease, visibility 0.3s ease !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  visibility: hidden !important;
}

.mobile-drawer.is-active,
.mobile-drawer[aria-hidden="false"] {
  transform: translateX(0) !important;
  visibility: visible !important;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--slate-200);
}

.drawer-logo img {
  max-height: 36px;
  width: auto;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--slate-600);
}

.drawer-nav ul, ul.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.drawer-nav li a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  border-bottom: 1px solid #f1f5f9;
}

.drawer-nav li a:hover {
  background: var(--red-50);
  color: var(--red-700);
}

.drawer-cta-box {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-drawer-call, .btn-drawer-zalo {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: #ffffff !important;
  font-size: 14px;
}

.btn-drawer-call {
  background: var(--red-600);
}

.btn-drawer-zalo {
  background: var(--zalo-blue);
}

.drawer-emergency-notice {
  font-size: 12px;
  text-align: center;
  color: var(--red-700);
  font-weight: 600;
  margin-top: 6px;
}

/* ==========================================================================
   3. HERO SECTION & QUICK QUOTE FORM (#adv-phone)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--red-950) 100%);
  color: #ffffff;
  padding: 48px 0 56px;
  border-bottom: 4px solid var(--red-700);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: var(--gold-300);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-400);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-400);
  animation: pulse-gold 1.5s infinite;
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

.hero-desc strong {
  color: var(--gold-300);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  border-radius: var(--radius-md);
}

.badge-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.hero-badge-item strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.2;
}

.hero-badge-item small {
  font-size: 11px;
  color: var(--gold-300);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.btn-hero-call {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 50px !important;
  padding: 0 24px !important;
  background: linear-gradient(135deg, var(--red-600) 0%, var(--red-800) 100%) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4) !important;
  transition: all 0.25s ease !important;
  border: none !important;
}

.btn-hero-call:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6) !important;
}

.btn-hero-zalo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 50px !important;
  padding: 0 22px !important;
  background: linear-gradient(135deg, var(--zalo-blue) 0%, #0052cc 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35) !important;
  transition: all 0.25s ease !important;
}

.btn-hero-zalo:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 104, 255, 0.5) !important;
}

/* Quick Quote Card & Form #adv-phone */
.hero-widget-col {
  width: 100%;
}

.quick-quote-card {
  background: #ffffff;
  color: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--red-600);
  border-right: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  border-left: 1px solid var(--slate-200);
}

.widget-header {
  margin-bottom: 16px;
  text-align: center;
}

.widget-subbadge {
  display: inline-block;
  background: var(--red-50);
  color: var(--red-700);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.widget-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 6px;
  line-height: 1.3;
}

.widget-desc {
  font-size: 13px;
  color: var(--slate-600);
  margin: 0;
}

.quote-form .form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

/* Mandatory Spec: #adv-phone 50px height, 16px font-size */
#adv-phone, .adv-phone-input {
  height: 50px !important;
  font-size: 16px !important; /* Prevents auto-zoom on iOS */
  padding: 0 16px !important;
  border-radius: 8px !important;
  border: 2px solid #cbd5e1 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  display: block !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

#adv-phone:focus, .adv-phone-input:focus {
  border-color: var(--red-600) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.form-select {
  height: 44px;
  font-size: 14px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  width: 100%;
  display: block;
  background-color: #f8fafc;
  color: #1e293b;
  font-weight: 500;
}

.form-select:focus {
  border-color: var(--red-600);
  outline: none;
  background-color: #ffffff;
}

.btn-submit-lead {
  height: 50px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  background: linear-gradient(135deg, var(--red-600) 0%, var(--red-800) 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  width: 100% !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 10px !important;
}

.btn-submit-lead:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.5) !important;
}

.widget-footer-note {
  font-size: 11px;
  color: var(--slate-500);
  text-align: center;
  margin-top: 10px;
}

.thh-sla-quote-feedback {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.thh-sla-quote-feedback.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.thh-sla-quote-feedback.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* Mobile Hero Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-title {
    font-size: 24px;
    line-height: 1.3;
  }
  .hero-badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-badge-item {
    padding: 8px 12px;
  }
}

/* ==========================================================================
   4. POSTS GRID: DESKTOP 3x3 (9) & MOBILE 2x3 (6) + LINE-CLAMP 2 LINES
   ========================================================================== */
.section-posts {
  padding: 50px 0;
  background-color: #f8fafc;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 8px;
  text-align: center;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--slate-600);
  text-align: center;
  margin: 0 0 32px;
}

/* Grid Specifications */
.posts-grid, .thh-posts-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 22px !important;
}

@media (max-width: 768px) {
  .posts-grid, .thh-posts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

.post-card, .thh-post-card, .article-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #ffffff !important;
  border: 1px solid var(--slate-200) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.post-card:hover, .thh-post-card:hover, .article-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-md) !important;
}

.post-thumb, .card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--slate-100);
  overflow: hidden;
}

.post-thumb img, .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumb img,
.thh-post-card:hover .card-thumb img {
  transform: scale(1.05);
}

.post-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(185, 28, 28, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.post-body, .card-body {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  padding: 14px 12px !important;
}

/* MANDATORY CSS LINE-CLAMP 2 LINES (FLAT & EQUAL HEIGHT TILES) */
.post-title, .card-title, .post-title a, .card-title a {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--navy-900) !important;
  margin: 0 0 8px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  height: 2.8em !important; /* Flat alignment guarantee */
}

.post-title a:hover, .card-title a:hover {
  color: var(--red-700) !important;
}

.post-meta, .card-meta {
  display: none !important;
}

.post-excerpt {
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .post-meta, .card-meta {
    display: none !important;
  }
  .post-excerpt {
    display: none !important;
  }
  .post-title, .card-title, .post-title a, .card-title a {
    font-size: 13px !important;
  }
}

.post-actions, .card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--slate-100);
}

.post-micro-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-card-call, .btn-card-zalo, .micro-btn-call, .micro-btn-zalo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 0;
  border-radius: 6px;
  text-align: center;
}

.btn-card-call, .micro-btn-call {
  background: var(--red-50);
  color: var(--red-700);
  border: 1px solid #fecaca;
}

.btn-card-call:hover, .micro-btn-call:hover {
  background: var(--red-600);
  color: #ffffff;
}

.btn-card-zalo, .micro-btn-zalo {
  background: #eff6ff;
  color: var(--zalo-blue);
  border: 1px solid #bfdbfe;
}

.btn-card-zalo:hover, .micro-btn-zalo:hover {
  background: var(--zalo-blue);
  color: #ffffff;
}

/* ==========================================================================
   5. SINGLE POST TEMPLATE & LOCAL COMMITMENT BLOCK
   ========================================================================== */
.single-article-container {
  padding: 32px 16px 48px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.subpage-hero .subpage-breadcrumbs {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subpage-hero .subpage-breadcrumbs a {
  color: #94a3b8;
}

.subpage-hero .subpage-breadcrumbs a:hover {
  color: #ffffff;
}

.subpage-hero .subpage-breadcrumbs .breadcrumb-current {
  color: var(--gold-300);
  font-weight: 600;
}

.subpage-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 4px;
}

.subpage-breadcrumbs, .single-breadcrumbs {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.single-breadcrumbs a {
  color: var(--slate-600);
}

.breadcrumb-current {
  color: var(--navy-900);
  font-weight: 600;
}

.single-post-header {
  margin-bottom: 24px;
}

.single-post-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-950);
  line-height: 1.3;
  margin: 0 0 12px;
}

.single-post-meta {
  font-size: 13px;
  color: var(--slate-500);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-200);
}

/* Header Strip CTA */
.single-header-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--red-50);
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 14px;
}

.strip-text {
  font-size: 13px;
  color: var(--red-900);
}

.strip-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-strip-call, .btn-strip-zalo {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.btn-strip-call {
  background: var(--red-600);
  color: #ffffff !important;
}

.btn-strip-zalo {
  background: var(--zalo-blue);
  color: #ffffff !important;
}

/* KHỐI CAM KẾT KỸ THUẬT ĐỊA PHƯƠNG - CHỐNG TRÀN CHỮ TRÊN ĐIỆN THOẠI */
.thh-service-commitment-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-950) 100%) !important;
  border: 2px solid var(--gold-500) !important;
  color: #ffffff !important;
  border-radius: var(--radius-md) !important;
  padding: 20px 18px !important;
  margin: 24px 0 !important;
  box-shadow: var(--shadow-md) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.commitment-badge {
  display: inline-block;
  background: var(--red-600);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.commitment-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--gold-300) !important;
  margin: 0 0 10px !important;
  line-height: 1.3 !important;
  word-wrap: break-word !important;
}

.commitment-desc {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #e2e8f0 !important;
  margin: 0 0 16px !important;
}

.commitment-desc strong {
  color: var(--gold-400);
}

.commitment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-commit-call, .btn-commit-zalo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
}

.btn-commit-call {
  background: var(--red-600);
  color: #ffffff !important;
}

.btn-commit-zalo {
  background: var(--zalo-blue);
  color: #ffffff !important;
}

/* Entry Content (Bài viết) */
.entry-content, .thh-entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #1e293b;
}

.entry-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-950);
  margin: 28px 0 14px;
  border-left: 4px solid var(--red-600);
  padding-left: 12px;
}

.entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 22px 0 10px;
}

.entry-content p {
  margin: 0 0 16px;
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 20px auto;
  box-shadow: var(--shadow-sm);
}

/* Responsive Tables */
.entry-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 20px 0 !important;
  display: block !important;
  overflow-x: auto !important;
}

.entry-content table th, .entry-content table td {
  border: 1px solid var(--slate-200);
  padding: 10px 14px;
  text-align: left;
}

.entry-content table th {
  background: var(--slate-100);
  color: var(--navy-900);
  font-weight: 700;
}

/* Bottom Article CTA */
.article-cta-box {
  background: linear-gradient(135deg, var(--red-900) 0%, var(--red-800) 100%);
  color: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  margin: 36px 0;
  text-align: center;
}

.acta-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.acta-content p {
  font-size: 14px;
  color: #fecaca;
  margin: 0 0 18px;
}

.acta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   6. FOOTER STYLING
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  border-top: 4px solid var(--red-700);
  padding-bottom: 60px; /* Space for mobile bar */
}

.footer-top {
  padding: 48px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
  gap: 32px;
}

.footer-col-company .footer-logo img {
  max-height: 48px;
  width: auto;
  margin-bottom: 14px;
}

.footer-about {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.footer-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-meta-list a {
  color: var(--gold-300);
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  border-bottom: 2px solid var(--red-700);
  padding-bottom: 8px;
  display: inline-block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--gold-300);
  padding-left: 4px;
}

.footer-areas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #cbd5e1;
}

.footer-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.f-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.f-badge-icon {
  font-size: 18px;
}

.f-badge strong {
  color: #ffffff;
  font-size: 13px;
}

.f-badge small {
  color: var(--gold-300);
  font-size: 11px;
}

.footer-bottom {
  background: #030712;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.footer-bottom-links a {
  color: var(--gold-400);
  margin: 0 4px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom-inner {
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   7. FLOATING CONTACT BUTTONS (PULSING RED CALL & BLUE ZALO)
   ========================================================================== */
.floating-contact-hub {
  position: fixed !important;
  bottom: 75px !important; /* Above mobile bottom bar */
  left: 0 !important;
  right: 0 !important;
  pointer-events: none !important;
  z-index: 9998 !important;
}

.floating-btn {
  position: absolute !important;
  bottom: 0 !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  transition: transform 0.25s ease !important;
}

.floating-btn:hover {
  transform: scale(1.1) !important;
}

.floating-call-btn {
  left: 18px !important;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
}

.floating-zalo-btn {
  right: 18px !important;
  background: linear-gradient(135deg, #0068ff 0%, #004ecc 100%) !important;
}

.floating-btn-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.floating-btn-label {
  display: none !important; /* Hide label to keep circle icon clean */
}

.floating-pulse-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  animation: ripple-pulse 1.8s infinite;
  pointer-events: none;
}

.pulse-red {
  border: 2px solid rgba(220, 38, 38, 0.7);
}

.pulse-blue {
  border: 2px solid rgba(0, 104, 255, 0.7);
}

@keyframes ripple-pulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ==========================================================================
   8. MOBILE STICKY BOTTOM BAR (CALL + ZALO)
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 54px !important;
  background: #ffffff !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
  z-index: 99999 !important;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex !important;
  }
}

.mobile-bar-btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 100% !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.3px !important;
}

.mobile-bar-btn.bar-call {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
}

.mobile-bar-btn.bar-zalo {
  background: linear-gradient(135deg, #0068ff 0%, #0052cc 100%) !important;
  color: #ffffff !important;
}

.bar-icon {
  font-size: 16px;
  line-height: 1;
}

.bar-text {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   9. QUICK CALL MODAL
   ========================================================================== */
.thh-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.25s ease;
}

.thh-modal.is-active {
  visibility: visible;
  opacity: 1;
}

.thh-modal-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.thh-modal-card {
  position: relative;
  width: 90%;
  max-width: 400px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  text-align: center;
}

.thh-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--slate-400);
}

.thh-modal-big-phone {
  font-size: 24px;
  font-weight: 800;
  color: var(--red-700);
  display: block;
  margin: 12px 0;
}

/* Back to Top */
#back-to-top, .back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--navy-900);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 999;
}

#back-to-top.is-visible, .back-to-top.is-visible {
  opacity: 0.9;
  visibility: visible;
}

#back-to-top:hover, .back-to-top:hover {
  background: var(--red-700);
  opacity: 1;
}

/* ==========================================================================
   10. SUBPAGE HERO & INNER PAGES (Category, Pages, Services, Process)
   ========================================================================== */
.subpage-hero {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--red-950) 100%);
  color: #ffffff;
  padding: 40px 0;
  border-bottom: 3px solid var(--red-700);
}

.subpage-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subpage-badge {
  display: inline-flex;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: var(--gold-300);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  width: fit-content;
}

.subpage-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.subpage-desc {
  font-size: 15px;
  color: #cbd5e1;
  margin: 0;
  max-width: 800px;
}

.subpage-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.subpage-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* Page Container */
.page-container {
  padding: 36px 16px 56px;
  max-width: var(--container);
  margin: 0 auto;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-950);
  margin: 0 0 20px;
}

/* Services Grid & Cards */
.section-services {
  padding: 48px 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-tag {
  display: inline-block;
  background: var(--red-50);
  color: var(--red-700);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red-500);
}

.service-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.service-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 8px;
}

.service-card-desc {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

.service-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--red-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card-link:hover {
  color: var(--red-800);
}

/* Process Section & Grid */
.section-process {
  padding: 48px 0;
  background: var(--slate-50);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  border: 1px solid var(--slate-200);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.process-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--red-600);
  margin-bottom: 8px;
  opacity: 0.8;
}

/* Related Posts Section */
.related-posts-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--slate-200);
}

.related-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 20px;
}

/* Utility Helpers */
.text-center { text-align: center; }
.text-left { text-align: left; }
.micro-btn, .mobile-bar-btn { display: inline-flex; }
