/* ========================================================================== */
/* CPS DESIGN SYSTEM TOKENS (Bám sát cps-tokens.css & src/1-core.js)          */
/* ========================================================================== */
:root {
  /* L1 · Color Primitives */
  --navy-900: #062348;
  --navy-800: #082E63;
  --navy-700: #0B3A82;
  --navy-600: #124A9E;
  --navy-500: #1A5AB8;
  --navy-400: #2E70CE;

  --blue-700: #0E52AD;
  --blue-600: #1266D6;
  --blue-500: #3B84E5;
  --blue-400: #4E92EE;
  --blue-300: #9CC3F5;
  --blue-200: #C4DCFA;
  --blue-100: #DEEBFC;
  --blue-50: #EFF5FE;

  --sky-300: #A8D8F8;
  --sky-200: #C8E8F8;
  --sky-100: #DDF0FA;
  --sky-50: #EDF8FC;

  --gray-900: #101828;
  --gray-800: #1D2939;
  --gray-700: #344054;
  --gray-600: #475467;
  --gray-500: #667085;
  --gray-450: #6B7688;
  --gray-400: #98A2B3;
  --gray-300: #D0D5DD;
  --gray-200: #E4E7EC;
  --gray-150: #EDF0F4;
  --gray-100: #F2F4F7;
  --gray-50: #F7F9FC;
  --white: #FFFFFF;

  --green-700: #146B2E;
  --green-600: #1E8E3E;
  --green-100: #E3F5E8;

  --red-700: #B02318;
  --red-600: #E23B2E;
  --red-100: #FCE7E5;

  --amber-700: #9A5B00;
  --amber-600: #D98200;
  --amber-100: #FDF0DC;

  --teal-700: #0B6E75;
  --teal-600: #128E97;
  --teal-100: #DCF0F1;

  --brand: #2491D0;
  --brand-soft: #E7F2FA;

  --gold-600: #C9A227;
  --gold-100: #FAF3DC;

  /* L2 · Semantic Tokens */
  --bg-app: var(--gray-50);
  --bg-surface: var(--white);
  --bg-surface-2: var(--gray-50);
  --bg-hover: var(--gray-100);
  --bg-selected: var(--blue-50);
  --bg-disabled: var(--gray-100);
  --bg-chrome: var(--navy-700);
  --bg-chrome-2: var(--navy-800);
  --bg-chrome-3: var(--navy-900);
  --bg-tint: var(--blue-50);

  --line-default: var(--gray-200);
  --line-soft: var(--gray-150);
  --line-strong: var(--gray-300);

  --text-default: var(--gray-900);
  --text-2: var(--gray-700);
  --text-muted: var(--gray-600);
  --text-faint: var(--gray-500);
  --text-on-dark: var(--white);
  --text-link: var(--blue-600);
  --text-disabled: var(--gray-500);

  --action-default: var(--blue-600);
  --action-hover: var(--blue-700);
  --action-soft: var(--blue-50);

  /* Radii */
  --rad-xs: 2px;
  --rad-sm: 3px;
  --rad-md: 4px;
  --rad-lg: 6px;
  --rad-xl: 8px;
  --rad-pill: 999px;

  /* Grid & Container */
  --w-page: 1240px;
  --w-container: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 28px;
  color: var(--text-default);
  background-color: var(--bg-app);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

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

.content-box {
  width: 100%;
  max-width: var(--w-page);
  margin: 0 auto;
}

/* ========================================================================== */
/* PORTAL HEADER (4 TIERS)                                                    */
/* ========================================================================== */

/* Tier 1: Utility Bar */
.tier-1 {
  background-color: var(--bg-hover);
  border-bottom: 1px solid var(--line-default);
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-2);
}

.tier-1 .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tier-1-left,
.tier-1-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tier-1-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s;
}

.tier-1-item:hover {
  color: var(--text-default);
}

/* Tier 2: Brand Signage Bar */
.tier-2 {
  background-color: var(--bg-surface);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-default);
}

.tier-2 .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.official-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-sub {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-transform: uppercase;
}

.brand-main {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: var(--text-default);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--action-default);
  color: var(--text-on-dark);
  padding: 8px 18px;
  border-radius: var(--rad-md);
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-login:hover {
  background-color: var(--action-hover);
}

/* Tier 3: Main Navigation Bar */
.tier-3 {
  background-color: var(--bg-chrome);
  height: 46px;
  display: flex;
  align-items: center;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
}

.menu-item {
  height: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text-on-dark);
  opacity: 0.85;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, background-color 0.15s;
}

.menu-item:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.08);
}

.menu-item.active {
  opacity: 1;
  font-weight: 600;
}

.menu-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background-color: var(--gold-600);
  border-radius: 2px 2px 0 0;
}

/* Tier 4: Announcement Ticker Bar */
.tier-4 {
  background-color: var(--bg-tint);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

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

.tag-info {
  background-color: var(--teal-100);
  color: var(--teal-700);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--rad-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-text {
  flex: 1;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-close-ticker {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
}

/* ========================================================================== */
/* BANDS & LAYOUT SECTIONS                                                    */
/* ========================================================================== */
.band {
  width: 100%;
  padding: 40px 0;
}

.band-pt32-pb16 {
  padding-top: 32px;
  padding-bottom: 16px;
}

.band-pt0-pb32 {
  padding-top: 0px;
  padding-bottom: 32px;
}

.band-pt40-pb40 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.band-pt32-pb32 {
  padding-top: 32px;
  padding-bottom: 32px;
}

.bg-surface {
  background-color: var(--bg-surface);
}

.bg-surface-2 {
  background-color: var(--bg-surface-2);
}

.bg-chrome-3 {
  background-color: var(--bg-chrome-3);
  color: var(--text-on-dark);
}

/* Section Head */
.sec-head-sm {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.sec-head-sm-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.accent-bar {
  width: 36px;
  height: 4px;
  background-color: var(--action-default);
  border-radius: var(--rad-xs);
}

.sec-title-sm {
  font-size: 23px;
  line-height: 32px;
  font-weight: 700;
  color: var(--text-default);
}

.sec-subtitle {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.sec-link {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text-link);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sec-link:hover {
  text-decoration: underline;
}

/* ========================================================================== */
/* 1. RESEARCH-DRIVEN HERO HUB WITH OFFICIAL IMAGERY                          */
/* ========================================================================== */
.hero-hub-container {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  border-radius: var(--rad-lg);
  color: var(--text-on-dark);
  padding: 36px 40px;
  box-shadow: 0 12px 28px rgba(6, 35, 72, 0.2);
  position: relative;
  overflow: hidden;
}

/* Hero Tabs */
.hero-tabs-header {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.hero-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-on-dark);
  padding: 10px 20px;
  border-radius: var(--rad-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.hero-tab-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-tab-btn.active {
  background-color: var(--action-default);
  border-color: var(--action-default);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(18, 102, 214, 0.4);
}

.hero-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out forwards;
}

.hero-tab-panel.active {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-panel-title {
  font-size: 28px;
  line-height: 38px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-panel-subtitle {
  font-size: 15px;
  line-height: 24px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.hero-panel-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  list-style: none;
  margin-bottom: 24px;
}

.hero-panel-bullets li {
  font-size: 14px;
  line-height: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
}

.hero-panel-bullets li::before {
  content: "✓";
  color: var(--gold-600);
  font-weight: bold;
}

.hero-panel-action {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Hero Photo Card Frame */
.hero-photo-frame {
  position: relative;
  border-radius: var(--rad-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  height: 250px;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-photo-frame:hover .hero-photo-img {
  transform: scale(1.04);
}

.hero-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(6, 35, 72, 0.92) 0%, rgba(6, 35, 72, 0) 100%);
  color: var(--white);
}

.hero-photo-badge {
  display: inline-block;
  background-color: var(--gold-600);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--rad-xs);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Smart Search Sub-Bar inside Hero */
.smart-search-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.smart-search-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--sky-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.smart-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.smart-search-input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border-radius: var(--rad-md);
  border: 1px solid var(--gray-300);
  background-color: var(--bg-surface);
  font-size: 15px;
  color: var(--text-default);
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.smart-search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(36, 145, 208, 0.3);
}

.smart-search-btn {
  height: 48px;
  padding: 0 28px;
  background-color: var(--action-default);
  color: var(--text-on-dark);
  border: none;
  border-radius: var(--rad-md);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.smart-search-btn:hover {
  background-color: var(--action-hover);
}

.smart-search-tags {
  display: flex;
  gap: 16px;
  font-size: 13px;
  opacity: 0.85;
  align-items: center;
}

.smart-search-tag-item {
  cursor: pointer;
  text-decoration: underline;
}

.smart-search-tag-item:hover {
  color: var(--sky-300);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--action-default);
  color: var(--text-on-dark);
  padding: 10px 20px;
  border-radius: var(--rad-md);
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-primary:hover {
  background-color: var(--action-hover);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--text-on-dark);
  padding: 9px 18px;
  border-radius: var(--rad-md);
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line-strong);
  padding: 9px 16px;
  border-radius: var(--rad-md);
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  color: var(--action-default);
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-ghost:hover {
  background-color: var(--bg-hover);
}

/* ========================================================================== */
/* 2. RESEARCH-DRIVEN QUICK UTILITY TOOLS (BÀN LÀM VIỆC NHANH)               */
/* ========================================================================== */
.quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.quick-tool-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--line-default);
  border-radius: var(--rad-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.quick-tool-card:hover {
  border-color: var(--action-default);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.08);
}

.quick-tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--rad-pill);
  background-color: var(--bg-tint);
  color: var(--action-default);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.quick-tool-card:hover .quick-tool-icon {
  background-color: var(--action-default);
  color: var(--white);
}

.quick-tool-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text-default);
}

.quick-tool-desc {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-faint);
}

/* ========================================================================== */
/* 3. ABOUT US WITH REAL HEADQUARTERS & CENTER PHOTOS                         */
/* ========================================================================== */
.about-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-photo-card {
  border-radius: var(--rad-md);
  overflow: hidden;
  border: 1px solid var(--line-default);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  height: 180px;
}

.about-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

/* ========================================================================== */
/* 4. FEATURED TRAINING & EXAM CENTER WITH REAL COVER PHOTOS                  */
/* ========================================================================== */
.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.course-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--line-default);
  border-radius: var(--rad-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.course-card:hover {
  border-color: var(--blue-300);
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.1);
}

.course-cover-box {
  height: 160px;
  position: relative;
  overflow: hidden;
}

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

.course-card:hover .course-cover-img {
  transform: scale(1.05);
}

.course-card-header {
  padding: 12px 16px;
  background-color: var(--blue-50);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--rad-xs);
}

.badge-open {
  background-color: var(--green-100);
  color: var(--green-700);
}

.badge-urgent {
  background-color: var(--amber-100);
  color: var(--amber-700);
}

.badge-location {
  background-color: var(--brand-soft);
  color: var(--text-link);
}

.course-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.course-title {
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  color: var(--text-default);
}

.course-title:hover {
  color: var(--text-link);
}

.course-info-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

.course-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-seats-bar {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seats-text {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: var(--gray-200);
  border-radius: var(--rad-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--action-default);
  border-radius: var(--rad-pill);
}

.course-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  background-color: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mock Exam Banner Card */
.mock-exam-banner {
  margin-top: 24px;
  background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-600) 100%);
  border-radius: var(--rad-md);
  padding: 24px 32px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(11, 110, 117, 0.25);
}

.mock-exam-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mock-exam-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--rad-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-exam-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.mock-exam-sub {
  font-size: 14px;
  opacity: 0.9;
}

/* ========================================================================== */
/* 5. BIDDING CONSULTANCY SERVICES                                            */
/* ========================================================================== */
.consultancy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.consult-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--line-default);
  border-radius: var(--rad-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.consult-card:hover {
  border-color: var(--action-default);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
}

.consult-card-img-box {
  height: 120px;
  overflow: hidden;
}

.consult-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consult-card-content {
  padding: 16px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.consult-num {
  width: 28px;
  height: 28px;
  border-radius: var(--rad-sm);
  background-color: var(--brand-soft);
  color: var(--text-link);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consult-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--text-default);
}

.consult-desc {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-muted);
  flex: 1;
}

.consult-cta-bar {
  margin-top: 24px;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  border-radius: var(--rad-md);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========================================================================== */
/* 6 & 7. GRID 8:4 - ENHANCED LEGAL DATABASE & EXPERT Q&A                     */
/* ========================================================================== */
.grid-8-4-layout {
  display: grid;
  grid-template-columns: 811px 405px;
  gap: 24px;
}

.legal-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}

.legal-filter-tabs {
  display: flex;
  gap: 6px;
  background: var(--gray-200);
  padding: 4px;
  border-radius: var(--rad-md);
}

.legal-tab-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--rad-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.legal-tab-btn.active {
  background: var(--white);
  color: var(--action-default);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legal-doc-card-v2 {
  background-color: var(--bg-surface);
  border: 1px solid var(--line-default);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--rad-md);
  padding: 18px 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.legal-doc-card-v2:hover {
  border-color: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

.legal-doc-card-v2.seal-luat {
  border-left-color: var(--gold-600);
}

.legal-doc-card-v2.seal-nghidinh {
  border-left-color: var(--blue-600);
}

.legal-doc-card-v2.seal-thongtu {
  border-left-color: var(--teal-600);
}

.legal-doc-card-v2.seal-quyetdinh {
  border-left-color: var(--navy-600);
}

.doc-seal-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--rad-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-seal-badge.luat {
  background: var(--gold-100);
  color: var(--amber-700);
}

.doc-seal-badge.nghidinh {
  background: var(--blue-50);
  color: var(--blue-700);
}

.doc-seal-badge.thongtu {
  background: var(--teal-100);
  color: var(--teal-700);
}

.doc-seal-badge.quyetdinh {
  background: var(--sky-100);
  color: var(--navy-700);
}

.legal-doc-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-seal {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--rad-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-seal.luat {
  background: var(--gold-100);
  color: var(--amber-700);
}

.tag-seal.nghidinh {
  background: var(--blue-50);
  color: var(--blue-700);
}

.tag-seal.thongtu {
  background: var(--teal-100);
  color: var(--teal-700);
}

.tag-seal.quyetdinh {
  background: var(--sky-100);
  color: var(--navy-700);
}

.tag-status-active {
  font-size: 12px;
  color: var(--green-700);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.legal-title-v2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--text-default);
  transition: color 0.15s;
}

.legal-title-v2:hover {
  color: var(--action-default);
}

.legal-meta-v2 {
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Expert Q&A Box */
.qa-box-v2 {
  background: var(--bg-surface);
  border: 1px solid var(--line-default);
  border-radius: var(--rad-md);
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.expert-avatar-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 14px 16px;
  border-radius: var(--rad-md);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.expert-avatars-group {
  display: flex;
}

.expert-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--navy-800);
  object-fit: cover;
  margin-left: -10px;
}

.expert-avatar-img:first-child {
  margin-left: 0;
}

.qa-item-card-v2 {
  background-color: var(--bg-surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--rad-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.qa-item-card-v2:hover {
  border-color: var(--blue-300);
  background-color: var(--white);
  transform: translateX(2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.qa-badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--rad-xs);
  background: var(--teal-100);
  color: var(--teal-700);
  align-self: flex-start;
}

/* Tender Cards & Visual News */
.tender-card-v2 {
  background-color: var(--bg-surface);
  border: 1px solid var(--line-default);
  border-radius: var(--rad-md);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.tender-card-v2:hover {
  border-color: var(--action-default);
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.06);
}

.tender-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--rad-md);
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--rad-pill);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.badge-status.warn {
  background-color: #FFF4E5;
  color: #B06000;
  border: 1px solid #FFE0B2;
}

.badge-status.info {
  background-color: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
}

.badge-status.success {
  background-color: var(--green-100);
  color: var(--green-700);
  border: 1px solid rgba(30, 142, 62, 0.25);
}

.news-visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-default);
  border-radius: var(--rad-md);
  overflow: hidden;
  display: flex;
  gap: 14px;
  padding: 12px;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.news-visual-card:hover {
  border-color: var(--blue-300);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.news-thumb-box {
  width: 120px;
  height: 85px;
  border-radius: var(--rad-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

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

.news-visual-card:hover .news-thumb-box img {
  transform: scale(1.08);
}

/* ========================================================================== */
/* 8. ENHANCED STATS & OFFICIAL PARTNER LOGOS                                 */
/* ========================================================================== */
.stat-blocks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card-box-v2 {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-surface-2) 100%);
  border: 1px solid var(--line-default);
  border-top: 3px solid var(--action-default);
  border-radius: var(--rad-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.stat-card-box-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.08);
  border-color: var(--action-default);
}

.stat-icon-top {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--action-default);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* Modern Clients & Partners Logo Showcase Bar */
.clients-showcase-box {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.clients-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.client-logo-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-default);
  border-radius: var(--rad-md);
  height: 100px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

.client-logo-card:hover {
  border-color: var(--action-default);
  box-shadow: 0 8px 20px rgba(18, 102, 214, 0.12);
  transform: translateY(-3px);
  background-color: var(--white);
}

.client-logo-img {
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.75);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.client-logo-card:hover .client-logo-img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

.client-brand-caption {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  text-transform: uppercase;
  transition: color 0.2s;
}

.client-logo-card:hover .client-brand-caption {
  color: var(--text-default);
}

/* Newsletter */
.newsletter-banner-v2 {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  border-radius: var(--rad-lg);
  padding: 36px 40px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 12px 28px rgba(6, 35, 72, 0.18);
  position: relative;
  overflow: hidden;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

/* Portal Footer */
.portal-footer {
  background-color: var(--bg-chrome);
  color: var(--text-on-dark);
}

.footer-top {
  padding: 40px 0;
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 64px;
}

.footer-c1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-name {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.footer-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  opacity: 0.8;
}

.footer-link-cols {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  gap: 48px;
}

.footer-col-title {
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-list a {
  font-size: 14px;
  line-height: 20px;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.footer-col-list a:hover {
  opacity: 1;
}

.footer-divider {
  height: 1px;
  background-color: var(--white);
  opacity: 0.15;
}

.footer-bottom-bar {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  line-height: 20px;
  opacity: 0.75;
}

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

/* Modal Styling for Live Interaction */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 35, 72, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--rad-lg);
  width: 560px;
  max-width: 90%;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-default);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}