/* ==========================================================================
   HMC LAW FIRM - CÔNG TY TNHH ĐẦU TƯ VÀ TƯ VẤN HOÀNG MINH
   Official Stylesheet - Luxury & Professional Legal Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN SYSTEM
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --primary-navy: #0b1b3d;
  --primary-dark: #07122b;
  --primary-deep: #050d1e;
  --primary-blue: #15336e;
  --primary-light: #1e428a;
  
  --gold-accent: #c59b27;
  --gold-light: #dfb743;
  --gold-dark: #9e7819;
  --gold-pale: #fdf8eb;
  --gold-gradient: linear-gradient(135deg, #dfb743 0%, #b8860b 100%);
  --gold-gradient-hover: linear-gradient(135deg, #edd06b 0%, #c99616 100%);
  
  --navy-gradient: linear-gradient(180deg, #0b1b3d 0%, #061126 100%);
  --hero-gradient: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0.3) 100%);
  --card-gradient: linear-gradient(180deg, rgba(11,27,61,0.92) 0%, #081530 100%);

  /* Neutrals */
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;
  
  --bg-body: #ffffff;
  --bg-alt: #f8fafc;
  --bg-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --border-gold: rgba(197, 155, 39, 0.35);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(11, 27, 61, 0.05);
  --shadow-sm: 0 4px 12px rgba(11, 27, 61, 0.07);
  --shadow-md: 0 8px 24px rgba(11, 27, 61, 0.1);
  --shadow-lg: 0 16px 36px rgba(11, 27, 61, 0.14);
  --shadow-gold: 0 8px 20px rgba(197, 155, 39, 0.3);
  --shadow-card: 0 10px 30px -5px rgba(11, 27, 61, 0.12);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-cursive: 'Great Vibes', cursive;

  /* Sizing & Radius */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES (MOBILE-FIRST RESPONSIVE CORE)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ngăn ngừa tràn viền và vỡ chữ toàn cục */
header, section, footer, main, nav, article {
  max-width: 100%;
}

p, h1, h2, h3, h4, h5, h6, span, a, li, blockquote, dt, dd {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img, video, iframe, svg, canvas, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & COMMON UTILITIES
   -------------------------------------------------------------------------- */
.serif-title {
  font-family: var(--font-serif);
}

.text-gold {
  color: var(--gold-accent);
}

.text-navy {
  color: var(--primary-navy);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--gold-accent);
}

.section-tag.no-lines::before,
.section-tag.no-lines::after {
  display: none;
}

.section-heading {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px auto;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-primary-gold {
  background: var(--gold-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-gold);
}

.btn-primary-gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(197, 155, 39, 0.4);
  color: #ffffff;
}

.btn-outline-navy {
  background-color: #ffffff;
  color: var(--primary-navy);
  border: 1.5px solid var(--primary-navy);
}

.btn-outline-navy:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-solid-navy {
  background-color: var(--primary-navy);
  color: #ffffff;
  border: 1px solid var(--primary-navy);
}

.btn-solid-navy:hover {
  background-color: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   4. TOP BAR (EMERGENCY & OFFICE CONTACT)
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 101;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.top-bar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.top-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.top-item i {
  color: var(--gold-accent);
}

.top-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.top-highlight {
  color: #ffffff;
  font-weight: 700;
}

.badge-247 {
  background: var(--gold-gradient);
  color: #ffffff;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 800;
  text-transform: uppercase;
  margin-left: 4px;
}

/* Language Switcher Capsule */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-switcher i {
  color: var(--gold-accent);
  font-size: 0.76rem;
}

.lang-opt {
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
}

.lang-opt:hover,
.lang-opt.active {
  color: #ffffff;
  text-decoration: none !important;
}

.lang-sep {
  opacity: 0.3;
  font-size: 0.7rem;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   5. MAIN NAVIGATION HEADER
   -------------------------------------------------------------------------- */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eef2f6;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-base);
}

.main-header.scrolled {
  box-shadow: 0 4px 20px rgba(11, 27, 61, 0.08);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.main-header .container {
  max-width: 1360px;
  padding: 0 24px;
}

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

/* Logo Brand */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.brand-logo-link:hover {
  opacity: 0.92;
}

.logo-symbol {
  height: 40px;
  display: flex;
  align-items: center;
}

.logo-symbol .hmc-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-divider {
  width: 1px;
  height: 32px;
  background-color: #cbd5e1;
  border-radius: 1px;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-pretext {
  font-size: 0.63rem;
  font-weight: 700;
  color: #1a365d;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: nowrap;
}

.logo-title {
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
  line-height: 1.15;
  font-family: var(--font-sans);
  white-space: nowrap;
}

/* Nav Menu - Thiết kế thanh thoát, tinh tế, font chữ chuẩn, không rối mắt */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.93rem;
  font-weight: 600;
  color: #334155;
  text-transform: none; /* Dùng chữ thường Title Case chuẩn, xoá bỏ cảm giác thô cứng */
  letter-spacing: 0.1px;
  padding: 28px 2px;
  white-space: nowrap; /* Tuyệt đối không để rớt chữ thành 2 dòng */
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link i {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-left: 2px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
  color: var(--gold-accent);
}

.nav-link:hover i {
  color: var(--gold-accent);
}

.nav-link.active {
  color: var(--primary-navy);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 19px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
  min-width: 270px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 105;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item:hover .nav-link i {
  transform: rotate(180deg);
  color: var(--gold-accent);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.dropdown-link i {
  font-size: 0.95rem;
  color: var(--gold-accent);
  width: 18px;
}

.dropdown-link:hover {
  background-color: var(--bg-alt);
  color: var(--primary-navy);
  padding-left: 24px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  font-size: 0.92rem;
  border: 1px solid #e2e8f0;
  transition: all var(--transition-fast);
  background-color: #ffffff;
}

.search-toggle-btn:hover {
  background-color: var(--bg-alt);
  color: var(--gold-accent);
  border-color: var(--gold-accent);
}

.btn-header-consult {
  background: var(--gold-gradient);
  color: #ffffff;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.25);
  white-space: nowrap;
  transition: all var(--transition-base);
}

.btn-header-consult:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 155, 39, 0.38);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--primary-navy);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION (BANNER BÁM SÁT MẪU ẢNH)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background-color: #f4f8fb;
  background-image: url('../images/hero-bg-full.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  min-height: 480px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eef3f8;
  overflow: hidden;
}

/* Overlay gradient for readability on left while keeping right clear */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.92) 42%, rgba(255,255,255,0.15) 75%, rgba(255,255,255,0) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 30px;
  padding: 60px 0;
}

/* Left Hero Content */
.hero-content {
  max-width: 650px;
}

.hero-pretitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-pretitle span.badge-invest {
  color: var(--gold-dark);
  font-style: italic;
  text-transform: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-main-title {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  line-height: 1.08;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.hero-slogan {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  line-height: 1.3;
}

.hero-slogan .gold-word {
  color: var(--gold-accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Right Hero Callout & Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 280px;
}

.hero-script-callout {
  position: relative;
  text-align: right;
  padding-right: 20px;
  padding-bottom: 30px;
}

.script-line-1 {
  font-family: var(--font-cursive);
  font-size: 2.3rem;
  color: var(--primary-blue);
  line-height: 1.2;
  font-style: italic;
  display: block;
}

.script-line-2 {
  font-family: var(--font-cursive);
  font-size: 2.6rem;
  color: var(--primary-navy);
  line-height: 1.2;
  font-weight: 700;
  font-style: italic;
  display: block;
}

.script-swoosh {
  width: 140px;
  height: 4px;
  background: var(--gold-gradient);
  margin-left: auto;
  margin-top: 6px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   7. PRACTICE AREAS SECTION (8 CARDS GRID BÁM SÁT MẪU ẢNH)
   -------------------------------------------------------------------------- */
.practice-section {
  padding: 60px 0 80px 0;
  background-color: #ffffff;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* The Service Card */
.practice-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(11, 27, 61, 0.08);
  border: 1px solid #e6ecf3;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}

.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 27, 61, 0.16);
  border-color: rgba(197, 155, 39, 0.5);
}

.practice-card-img-wrap {
  position: relative;
  height: 138px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.practice-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.practice-card:hover .practice-card-img-wrap img {
  transform: scale(1.08);
}

/* Bottom Navy Bar */
.practice-card-bar {
  background: linear-gradient(180deg, #102754 0%, #0a1939 100%);
  color: #ffffff;
  padding: 10px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Icon Badge */
.practice-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(223, 183, 67, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f1f5f9;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.practice-card:hover .practice-card-icon {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.05);
}

/* Card Text */
.practice-card-info {
  overflow: hidden;
}

.practice-card-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  line-height: 1.25;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.practice-card-desc {
  font-size: 0.65rem;
  color: #cbd5e1;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Arrow Button */
.practice-card-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 0.65rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.practice-card:hover .practice-card-arrow {
  background: var(--gold-gradient);
  color: #ffffff;
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   8. STATS & ACHIEVEMENTS SECTION (SỐ LIỆU & THÀNH TỰU)
   -------------------------------------------------------------------------- */
.stats-section {
  background: linear-gradient(135deg, #07122b 0%, #0b1b3d 50%, #0d234c 100%);
  color: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.12) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-accent);
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 12px;
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 900;
  font-family: var(--font-sans);
  color: #ffffff;
  line-height: 1;
}

.stat-symbol {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-accent);
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* 4 Core Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(197, 155, 39, 0.15);
  border: 1px solid rgba(197, 155, 39, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pillar-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.pillar-content p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. ATTORNEYS & TEAM SECTION (ĐỘI NGŨ LUẬT SƯ)
   -------------------------------------------------------------------------- */
.team-section {
  padding: 90px 0;
  background-color: var(--bg-alt);
}

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

.attorney-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.attorney-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-accent);
}

.attorney-photo-box {
  position: relative;
  height: 330px;
  overflow: hidden;
  background-color: #cbd5e1;
}

.attorney-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-smooth);
}

.attorney-card:hover .attorney-photo-box img {
  transform: scale(1.05);
}

.attorney-badge-exp {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(11, 27, 61, 0.88);
  backdrop-filter: blur(6px);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
}

.attorney-info {
  padding: 22px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.attorney-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.attorney-name {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 10px;
  font-family: var(--font-serif);
  line-height: 1.3;
}

.attorney-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.attorney-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.attorney-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.btn-consult-attorney {
  flex: 1;
  font-size: 0.82rem;
  padding: 9px 14px;
  background-color: var(--bg-alt);
  color: var(--primary-navy);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-consult-attorney:hover {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
}

.btn-view-attorney {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  transition: all var(--transition-fast);
}

.btn-view-attorney:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. WORKFLOW PROCESS SECTION (QUY TRÌNH 4 BƯỚC)
   -------------------------------------------------------------------------- */
.process-section {
  padding: 90px 0;
  background-color: #ffffff;
}

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

.process-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  position: relative;
  border: 1px solid #e2e8f0;
  transition: all var(--transition-base);
}

.process-card:hover {
  background: #ffffff;
  border-color: var(--gold-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.process-number {
  font-size: 2.8rem;
  font-weight: 900;
  font-family: var(--font-serif);
  color: rgba(11, 27, 61, 0.12);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 24px;
  transition: color var(--transition-fast);
}

.process-card:hover .process-number {
  color: rgba(197, 155, 39, 0.3);
}

.process-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  font-size: 1.3rem;
  margin-bottom: 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.process-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.process-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. TESTIMONIALS & TRUST BADGES SECTION
   -------------------------------------------------------------------------- */
.trust-section {
  padding: 80px 0;
  background: #fdfbf7;
  border-top: 1px solid #f1ece1;
  border-bottom: 1px solid #f1ece1;
}

.trust-badges-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px dashed #e2d9c8;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #ffffff;
  border-radius: var(--radius-full);
  border: 1px solid #ecd8b1;
  box-shadow: 0 2px 8px rgba(197, 155, 39, 0.08);
}

.trust-badge-icon {
  font-size: 1.3rem;
  color: var(--gold-accent);
}

.trust-badge-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

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

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid #ecd8b1;
  box-shadow: 0 4px 18px rgba(11, 27, 61, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
}

.stars-row {
  color: #f59e0b;
  font-size: 0.95rem;
  margin-bottom: 16px;
  display: flex;
  gap: 3px;
}

.testimonial-quote {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid #f1ece1;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary-navy);
  font-size: 1rem;
}

.author-info h5 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. CONSULTATION BOOKING & CONTACT SECTION (FORM BẢO MẬT & VĂN PHÒNG)
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 90px 0;
  background-color: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: stretch;
}

/* Form Container */
.consultation-form-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
  position: relative;
}

.form-badge-security {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.consultation-form-box h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.consultation-form-box p.form-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.form-label span.req {
  color: #dc2626;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  background-color: #f8fafc;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(21, 51, 110, 0.1);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 22px;
  cursor: pointer;
}

.form-checkbox-label input {
  margin-top: 3px;
  accent-color: var(--primary-navy);
}

/* Office Info Cards */
.office-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.office-card {
  background: var(--primary-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.office-card.card-hcm {
  background: linear-gradient(145deg, #0b1b3d 0%, #112856 100%);
}

.office-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.office-card-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.office-card-header h4 i {
  color: var(--gold-accent);
}

.office-badge {
  background: var(--gold-gradient);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 800;
  text-transform: uppercase;
}

.office-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.office-detail-item i {
  color: var(--gold-light);
  font-size: 0.95rem;
  margin-top: 4px;
  width: 16px;
}

.office-detail-item a {
  color: #ffffff;
  font-weight: 700;
}

.office-detail-item a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
  background: #060e20;
  color: #94a3b8;
  padding-top: 70px;
  border-top: 3px solid var(--gold-accent);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4.footer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-gradient);
}

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 20px;
  color: #cbd5e1;
}

.footer-license-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--gold-accent);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--gold-gradient);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-links-list li {
  margin-bottom: 11px;
}

.footer-links-list a {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.footer-links-list a i {
  font-size: 0.65rem;
  color: var(--gold-accent);
  transition: transform var(--transition-fast);
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-links-list a:hover i {
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   14. FLOATING ACTION WIDGETS
   -------------------------------------------------------------------------- */
.floating-widgets {
  position: fixed;
  bottom: 30px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-base);
  position: relative;
}

.float-btn-phone {
  background: #dc2626;
  animation: pulse-ring 2s infinite;
}

.float-btn-phone:hover {
  background: #b91c1c;
  transform: scale(1.1);
}

.float-btn-zalo {
  background: #0284c7;
}

.float-btn-zalo:hover {
  background: #0369a1;
  transform: scale(1.1);
}

.float-btn-top {
  background: var(--primary-navy);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.float-btn-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-btn-top:hover {
  background: var(--gold-accent);
  transform: translateY(-3px);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* --------------------------------------------------------------------------
   15. MODALS (BOOKING & ATTORNEY DETAILS)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 43, 0.78);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 38px 32px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.92);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--primary-navy);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #ffffff;
  border-left: 4px solid #16a34a;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 300;
  transform: translateX(120%);
  transition: transform var(--transition-base);
}

/* Attorney Modal Custom Layout */
#attorneyModal .modal-card {
  max-width: 780px;
}

.attorney-modal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.attorney-modal-photo-col {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: #cbd5e1;
}

.attorney-modal-photo-col img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.attorney-modal-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-navy);
  font-family: var(--font-serif);
  margin-bottom: 4px;
}

.attorney-modal-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.attorney-modal-exp {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--primary-navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
  margin-bottom: 16px;
}

.attorney-modal-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.attorney-specs-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.attorney-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.attorney-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--primary-navy);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.attorney-spec-pill i {
  color: var(--gold-accent);
}

@media (max-width: 680px) {
  .attorney-modal-layout {
    grid-template-columns: 1fr;
  }
  .attorney-modal-photo-col img {
    height: 260px;
  }
}


.toast-notice.show {
  transform: translateX(0);
}

.toast-icon {
  font-size: 1.4rem;
  color: #16a34a;
}

.toast-text h6 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.toast-text p {
  font-size: 0.8rem;
  color: #475569;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1260px) {
  .nav-menu {
    gap: 13px;
  }
  .nav-link {
    font-size: 0.88rem;
    padding: 28px 1px;
  }
  .logo-title {
    font-size: 1.18rem;
  }
  .logo-pretext {
    font-size: 0.58rem;
  }
  .btn-header-consult {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
  .practice-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .attorneys-grid,
  .process-grid,
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .nav-menu {
    gap: 9px;
  }
  .nav-link {
    font-size: 0.83rem;
  }
  .brand-logo-link {
    gap: 8px;
  }
  .logo-symbol .hmc-logo-img {
    height: 32px;
  }
  .logo-title {
    font-size: 1.08rem;
  }
  .logo-pretext {
    font-size: 0.54rem;
  }
  .header-actions {
    gap: 8px;
  }
  .btn-header-consult {
    padding: 7px 12px;
    font-size: 0.74rem;
  }
}

/* Mobile Nav Drawer Backdrop */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 43, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 102;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.mobile-nav-backdrop.show {
  display: block;
  opacity: 1;
}

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 36px 0;
    gap: 24px;
  }

  .hero-visual {
    justify-content: flex-start;
    min-height: auto;
  }

  .hero-script-callout {
    text-align: left;
    padding-right: 0;
  }

  .script-swoosh {
    margin-left: 0;
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  /* Nav Menu Mobile */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 40px 24px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition-base), visibility var(--transition-base);
    z-index: 104;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-link {
    padding: 16px 0;
    width: 100%;
    justify-content: space-between;
  }

  .nav-link.active::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 10px 14px;
    display: none;
  }

  .dropdown-menu.mobile-show {
    display: block;
  }

  .header-actions .btn-header-consult {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .main-header {
    top: 0;
  }

  .header-inner {
    height: 64px;
    gap: 12px;
  }

  .logo-pretext {
    display: none;
  }

  .hero-main-title {
    font-size: 2.1rem;
    line-height: 1.15;
    letter-spacing: -0.3px;
  }

  .hero-slogan {
    font-size: 1.15rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-script-callout {
    padding: 10px 0 0 0;
  }

  .script-line-1 {
    font-size: 1.6rem;
  }

  .script-line-2 {
    font-size: 1.85rem;
  }

  .script-swoosh {
    width: 100px;
  }

  .section-title {
    font-size: 1.65rem;
    line-height: 1.3;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .practice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .practice-card-img-wrap {
    height: 160px;
  }

  .practice-card-title {
    font-size: 0.85rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .practice-card-desc {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .attorneys-grid,
  .process-grid,
  .testimonials-grid,
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 36px;
  }

  .stat-box {
    padding: 24px 16px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .consultation-form-box {
    padding: 28px 20px;
  }

  .consultation-form-box h3 {
    font-size: 1.5rem;
  }

  /* iOS Auto-zoom prevention: inputs must have font-size >= 16px */
  .form-control,
  select.form-control,
  textarea.form-control {
    font-size: 16px;
  }

  .floating-widgets {
    bottom: 20px;
    right: 16px;
  }

  .float-btn {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .modal-card {
    max-width: calc(100% - 32px);
    width: 100%;
    padding: 26px 20px;
    margin: 16px auto;
  }
}

/* Smartphone & Small Screens (<= 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .main-header .container {
    padding: 0 14px;
  }

  .header-inner {
    height: 60px;
    gap: 10px;
  }

  .brand-logo-link {
    gap: 8px;
  }

  .logo-symbol .hmc-logo-img {
    height: 30px;
  }

  .logo-divider {
    height: 22px;
  }

  /* Thu gọn/ẩn dòng pre-text dài trên màn hình hẹp để chống tràn header */
  .logo-pretext {
    display: none;
  }

  .logo-title {
    font-size: 1.12rem;
    letter-spacing: 0.2px;
  }

  .search-toggle-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 10px 0 30px 0;
  }

  .hero-inner {
    padding: 24px 0 30px 0;
  }

  .hero-pretitle {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
  }

  .hero-main-title {
    font-size: 1.65rem;
    margin-bottom: 10px;
    word-break: break-word;
  }

  .hero-slogan {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  /* Chuyển các nút CTA thành hàng dọc trên điện thoại */
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 13px 20px;
    white-space: normal;
    text-align: center;
    justify-content: center;
    font-size: 0.9rem;
  }

  /* Ẩn bớt visual callout chữ thư pháp để giao diện mobile gọn gàng */
  .hero-visual {
    display: none;
  }

  .section-tag {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .section-tag::before,
  .section-tag::after {
    width: 16px;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .section-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-box {
    padding: 18px 12px;
  }

  .stat-number {
    font-size: 1.85rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .consultation-form-box {
    padding: 22px 14px;
    border-radius: var(--radius-md);
  }

  .consultation-form-box h3 {
    font-size: 1.3rem;
  }

  .form-badge-security {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .footer-col h4.footer-title {
    font-size: 0.92rem;
    margin-bottom: 16px;
  }

  .footer-license-box {
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .floating-widgets {
    bottom: 14px;
    right: 12px;
    gap: 8px;
  }

  .float-btn {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

/* Extra Small Phones (<= 380px: iPhone 5/SE, Galaxy Fold folded) */
@media (max-width: 380px) {
  .logo-title {
    font-size: 0.98rem;
  }

  .hero-main-title {
    font-size: 1.45rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   17. LAW LIBRARY & STUDY PORTAL STYLES (CATEGORY.HTML)
   ========================================================================== */
.breadcrumbs-bar {
  background-color: var(--bg-alt);
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumbs-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs-inner a:hover {
  color: var(--primary-navy);
  text-decoration: underline;
}

.breadcrumbs-inner .sep {
  color: #94a3b8;
  font-size: 0.7rem;
}

.breadcrumbs-inner .current {
  color: var(--gold-dark);
  font-weight: 700;
}

/* Category Switcher Pills */
.category-pills-section {
  background-color: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid #eef2f6;
  position: sticky;
  top: 82px;
  z-index: 90;
}

.category-pills-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.category-pills-nav::-webkit-scrollbar {
  height: 4px;
}

.category-pills-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  border: 1px solid #cbd5e1;
  color: var(--primary-navy);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.cat-pill i {
  color: var(--gold-accent);
  font-size: 0.88rem;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(11, 27, 61, 0.15);
}

.cat-pill.active i {
  color: var(--gold-light);
}

/* Law Hero Banner */
.law-hero-banner {
  background: linear-gradient(135deg, #07122b 0%, #0b1b3d 60%, #152d5e 100%);
  color: #ffffff;
  padding: 46px 0;
  position: relative;
  overflow: hidden;
}

.law-hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.law-hero-inner {
  position: relative;
  z-index: 2;
}

.law-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 155, 39, 0.2);
  border: 1px solid rgba(197, 155, 39, 0.4);
  color: var(--gold-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.law-hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.law-main-code {
  font-size: 1.05rem;
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 16px;
}

.law-meta-chips {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-chip i {
  color: var(--gold-light);
}

.meta-chip.status-active {
  background: rgba(22, 163, 74, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.law-summary-p {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 820px;
  line-height: 1.6;
}

/* Law Portal Layout (2 columns) */
.law-portal-section {
  padding: 40px 0 80px 0;
  background-color: var(--bg-alt);
}

.law-portal-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 30px;
  align-items: flex-start;
}

/* Sticky TOC Sidebar */
.toc-sidebar-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 155px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.toc-sidebar-box h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-sidebar-box h4 i {
  color: var(--gold-accent);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toc-item .toc-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.toc-item:hover {
  background-color: var(--bg-subtle);
  color: var(--primary-navy);
}

.toc-item.active {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.toc-item.active .toc-num {
  background: var(--gold-gradient);
  color: #ffffff;
}

/* Main Reader Area */
.law-reader-area {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

/* Controls Bar (Search + Tools) */
.reader-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.law-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.law-search-box i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
}

.law-search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-full);
  border: 1.5px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.88rem;
  background-color: #f8fafc;
  transition: all var(--transition-fast);
}

.law-search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(21, 51, 110, 0.08);
}

.reader-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-tool-reader {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid #cbd5e1;
  color: var(--primary-navy);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-tool-reader:hover {
  background: var(--primary-navy);
  color: #ffffff;
}

/* Tabs Bar */
.reader-tabs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.tab-btn i {
  font-size: 0.95rem;
}

.tab-btn:hover {
  color: var(--primary-navy);
}

.tab-btn.active {
  color: var(--primary-navy);
  border-bottom-color: var(--gold-accent);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Chapter & Articles */
.chapter-block {
  margin-bottom: 36px;
}

.chapter-block-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary-navy);
  padding: 10px 16px;
  background-color: var(--primary-subtle);
  border-left: 4px solid var(--primary-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chapter-block-title i {
  color: var(--gold-accent);
}

.article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(11, 27, 61, 0.03);
  transition: all var(--transition-fast);
}

.article-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.article-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.article-badge-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.article-num {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--gold-dark);
  font-family: var(--font-serif);
}

.article-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.btn-copy-quote {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  transition: all var(--transition-fast);
}

.btn-copy-quote:hover {
  background: var(--primary-navy);
  color: #ffffff;
}

.article-content-body {
  font-size: inherit;
  color: #334155;
  line-height: 1.7;
}

.article-para {
  margin-bottom: 8px;
}

.article-para.indented {
  padding-left: 14px;
}

/* Study Note Box inside Article */
.study-note-box {
  background-color: #fdf8eb;
  border-left: 4px solid var(--gold-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 16px;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
}

.study-note-icon {
  color: var(--gold-accent);
  font-size: 1.15rem;
  margin-top: 2px;
}

.study-note-text strong {
  color: var(--gold-dark);
  display: block;
  margin-bottom: 4px;
}

.study-note-text p {
  color: #475569;
  line-height: 1.5;
}

/* Study Tab Materials */
.study-card {
  background: #ffffff;
  border: 1px solid #ecd8b1;
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.06);
}

.study-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.study-card-title i {
  color: var(--gold-accent);
}

.study-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.study-table th,
.study-table td {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.study-table th {
  background-color: var(--primary-navy);
  color: #ffffff;
  font-weight: 700;
}

.study-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.study-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-alt);
  border: 1px solid #e2e8f0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.step-bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Guidance Docs & Precedents */
.guidance-block-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guidance-block-heading i {
  color: var(--gold-accent);
}

.docs-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.docs-table th,
.docs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.docs-table th {
  background-color: var(--bg-alt);
  color: var(--primary-navy);
  font-weight: 700;
}

.doc-code {
  color: var(--primary-blue);
}

.badge-doc-type {
  background: var(--primary-subtle);
  color: var(--primary-navy);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.btn-read-doc {
  background: var(--bg-alt);
  border: 1px solid #cbd5e1;
  color: var(--primary-navy);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-read-doc:hover {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
}

.precedent-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.precedent-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.precedent-code {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.precedent-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.precedent-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.precedent-takeaway {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: #166534;
}

.empty-state-box {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}

.empty-state-box i {
  font-size: 2.8rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.empty-state-box h4 {
  font-size: 1.2rem;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

/* Badge on Homepage Cards */
.badge-study-link {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 27, 61, 0.85);
  backdrop-filter: blur(6px);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  z-index: 2;
  transition: all var(--transition-fast);
}

.practice-card:hover .badge-study-link {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
}

@media (max-width: 992px) {
  .law-portal-grid {
    grid-template-columns: 1fr;
  }
  .toc-sidebar-box {
    position: static;
    max-height: 320px;
  }
}

