/* ==========================================================================
   DHHOME PUBLIC PORTAL — PHỐI MÀU PHONG THỦY CHUẨN HSNL 2026
   Ngũ Hành: Hỏa sinh Thổ (#5E1A18 Đỏ Đô Trầm) -> Thổ bản mệnh (#C89B3C Vàng Đồng,
   #F5A600 Vàng Hổ Phách, #6E3208 Nâu Đất) -> Thổ sinh Kim (#FAF8F4 Trắng Ngà,
   #FFFFFF Bạch Kim, #241F1D Xám Kiến Trúc). Tuyệt đối không dùng xanh lá/xanh dương.
   ========================================================================== */

:root {
  --dh-maroon: #5e1a18;
  --dh-maroon-deep: #3f100f;
  --dh-maroon-bright: #82221e;
  --dh-maroon-tint: #f8efef;

  --dh-amber: #f5a600;
  --dh-gold: #c89b3c;
  --dh-gold-deep: #9c7420;
  --dh-gold-soft: #fbf4e2;
  --dh-earth: #6e3208;

  --dh-bg: #faf8f4;
  --dh-surface: #ffffff;
  --dh-surface-alt: #f4efe7;
  --dh-ink: #241f1d;
  --dh-ink-soft: #4a423d;
  --dh-muted: #6e645d;
  --dh-border: #e6ddd0;
  --dh-border-strong: #d4c6b2;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(63, 16, 15, 0.06);
  --shadow-md: 0 10px 30px rgba(63, 16, 15, 0.1);
  --shadow-lg: 0 20px 50px rgba(63, 16, 15, 0.16);
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--dh-ink);
  background: var(--dh-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

/* ==================== TOP UTILITY BAR ==================== */
.top-strip {
  background: var(--dh-maroon-deep);
  color: rgba(255, 250, 240, 0.88);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(245, 166, 0, 0.25);
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  flex-wrap: wrap;
}

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

.top-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-strip-dot {
  color: var(--dh-amber);
}

.top-strip-slogan {
  color: #f6d584;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ==================== STICKY HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dh-border);
  box-shadow: 0 2px 14px rgba(63, 16, 15, 0.05);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--dh-gold);
  background: #fff;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--dh-maroon);
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--dh-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--dh-ink-soft);
  transition: color 0.18s ease, background 0.18s ease;
}

.main-nav a:hover {
  color: var(--dh-maroon);
  background: var(--dh-maroon-tint);
}

/* ==================== STAFF LOGIN CORNER (TOP-RIGHT) ==================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-login-wrap {
  position: relative;
}

.btn-staff-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--dh-maroon);
  background: linear-gradient(135deg, var(--dh-maroon) 0%, var(--dh-maroon-bright) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(94, 26, 24, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  white-space: nowrap;
}

.btn-staff-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(94, 26, 24, 0.3);
  border-color: var(--dh-amber);
}

.btn-staff-login .caret {
  font-size: 10px;
  color: var(--dh-amber);
}

.staff-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--dh-surface);
  border: 1px solid var(--dh-border-strong);
  border-top: 3px solid var(--dh-amber);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: none;
  z-index: 80;
}

.staff-dropdown.open {
  display: block;
  animation: fadeSlide 0.16s ease-out;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.staff-dropdown-head {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dh-maroon);
  padding: 2px 6px 8px;
  border-bottom: 1px solid var(--dh-border);
  margin-bottom: 8px;
}

.staff-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.staff-option:hover {
  background: var(--dh-gold-soft);
}

.staff-option-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--dh-maroon-tint);
  color: var(--dh-maroon);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.staff-option strong {
  display: block;
  font-size: 13.5px;
  color: var(--dh-ink);
}

.staff-option span {
  display: block;
  font-size: 12px;
  color: var(--dh-muted);
}

.staff-dropdown-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--dh-border);
  font-size: 11.5px;
  color: var(--dh-muted);
  line-height: 1.45;
}

.btn-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--dh-border-strong);
  background: var(--dh-surface);
  color: var(--dh-maroon);
  font-size: 20px;
  cursor: pointer;
}

/* ==================== HERO (HSNL 2026 COVER AESTHETIC) ==================== */
.hero {
  position: relative;
  background: linear-gradient(112deg, var(--dh-maroon-deep) 0%, var(--dh-maroon) 52%, #4c1514 100%);
  color: #fff;
  overflow: hidden;
  border-bottom: 4px solid var(--dh-amber);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(245, 166, 0, 0.16), transparent 44%),
    radial-gradient(circle at 82% 85%, rgba(200, 155, 60, 0.14), transparent 46%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 58px 0 54px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 166, 0, 0.14);
  border: 1px solid rgba(245, 166, 0, 0.45);
  color: #ffd573;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.hero h1 .accent-gold {
  color: var(--dh-amber);
}

.hero-desc {
  margin: 0 0 26px;
  font-size: 16px;
  color: rgba(255, 248, 238, 0.88);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--dh-amber) 0%, #e09200 100%);
  color: #241504;
  font-weight: 800;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(245, 166, 0, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(245, 166, 0, 0.42);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 244, 224, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--dh-amber);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 240, 215, 0.18);
}

.metric-item strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--dh-amber);
}

.metric-item span {
  font-size: 12px;
  color: rgba(255, 244, 224, 0.8);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(245, 166, 0, 0.45);
  box-shadow: var(--shadow-lg);
  background: #1b1716;
}

.hero-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: contrast(1.06);
}

.hero-frame-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(44, 13, 12, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 166, 0, 0.35);
  border-radius: 12px;
  padding: 13px 16px;
}

.hero-frame-caption .cap-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dh-amber);
}

.hero-frame-caption .cap-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.hero-frame-caption .cap-sub {
  font-size: 12px;
  color: rgba(255, 244, 224, 0.82);
}

/* ==================== SECTION COMMON ==================== */
.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--dh-surface-alt);
  border-top: 1px solid var(--dh-border);
  border-bottom: 1px solid var(--dh-border);
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dh-gold-deep);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  color: var(--dh-ink);
  line-height: 1.24;
}

.section-title span {
  color: var(--dh-maroon);
}

.section-sub {
  margin: 8px 0 0;
  color: var(--dh-muted);
  max-width: 680px;
  font-size: 15px;
}

/* ==================== INTERACTIVE TOOLS HUB ==================== */
.tools-shell {
  background: var(--dh-surface);
  border: 1px solid var(--dh-border-strong);
  border-top: 4px solid var(--dh-maroon);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  background: #f5efe6;
  border-bottom: 1px solid var(--dh-border);
  padding: 10px 14px 0;
  gap: 8px;
}

.tool-tab {
  padding: 12px 18px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: var(--dh-ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tool-tab:hover {
  color: var(--dh-maroon);
  background: rgba(255, 255, 255, 0.65);
}

.tool-tab.active {
  background: var(--dh-surface);
  color: var(--dh-maroon);
  border-color: var(--dh-border);
  position: relative;
  top: 1px;
}

.tool-panel {
  display: none;
  padding: 28px;
}

.tool-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.tool-panel.tool-panel-wide.active {
  display: block;
}

/* ==================== CHECKLIST HỒ SƠ & THƯ VIỆN PHÁP LÝ ==================== */
.legal-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.proc-pill {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--dh-border-strong);
  background: var(--dh-bg);
  color: var(--dh-ink-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.proc-pill:hover {
  border-color: var(--dh-maroon);
  color: var(--dh-maroon);
  background: var(--dh-maroon-tint);
}

.proc-pill.active {
  background: var(--dh-maroon);
  color: #fff;
  border-color: var(--dh-maroon);
  box-shadow: 0 4px 12px rgba(94, 26, 24, 0.22);
}

.dossier-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}

.dossier-card {
  background: var(--dh-gold-soft);
  border: 1px solid #e7d1a0;
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.dossier-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5cfa0;
}

.dossier-head h4 {
  margin: 0 0 4px;
  font-size: 17.5px;
  color: var(--dh-maroon);
}

.dossier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid var(--dh-maroon);
  background: var(--dh-maroon);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dl:hover {
  background: var(--dh-maroon-bright);
  transform: translateY(-1px);
}

.btn-dl.secondary {
  background: #fff;
  color: var(--dh-maroon);
  border-color: var(--dh-border-strong);
}

.btn-dl.secondary:hover {
  border-color: var(--dh-maroon);
  background: var(--dh-maroon-tint);
}

.dossier-item-body {
  flex: 1;
  min-width: 0;
}

.dossier-item-title {
  font-weight: 700;
  color: var(--dh-ink);
  display: block;
  margin-bottom: 2px;
}

.dossier-item-law {
  display: inline-block;
  margin-top: 4px;
  font-size: 11.8px;
  font-weight: 700;
  color: var(--dh-earth);
  background: #f9eed4;
  border: 1px solid #e7cfa0;
  padding: 2px 8px;
  border-radius: 6px;
}

.dossier-sidebar {
  background: linear-gradient(160deg, var(--dh-maroon-deep) 0%, var(--dh-maroon) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  border: 1px solid rgba(245, 166, 0, 0.35);
}

.dossier-sidebar h5 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dh-amber);
}

.basis-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.basis-list li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 166, 0, 0.22);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 12.8px;
  line-height: 1.45;
}

.basis-list li strong {
  color: #ffd573;
  display: block;
}

.basis-tip {
  background: rgba(245, 166, 0, 0.14);
  border-left: 3px solid var(--dh-amber);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: rgba(255, 248, 236, 0.92);
  margin-bottom: 14px;
}

/* Thư viện văn bản pháp luật theo lĩnh vực */
.law-lib-box {
  border-top: 2px solid var(--dh-border);
  padding-top: 22px;
}

.law-lib-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.law-lib-head h4 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--dh-maroon);
}

.law-lib-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--dh-muted);
}

.law-lib-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.law-search {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--dh-border-strong);
  font-family: inherit;
  font-size: 13px;
  min-width: 240px;
  outline: none;
}

.law-search:focus {
  border-color: var(--dh-maroon);
}

.law-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.law-item {
  background: var(--dh-bg);
  border: 1px solid var(--dh-border);
  border-left: 4px solid var(--dh-gold);
  border-radius: 11px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.law-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.law-code {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--dh-maroon);
}

.law-eff {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dh-earth);
  background: #f9eed4;
  padding: 2px 8px;
  border-radius: 999px;
}

.law-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dh-ink);
  margin: 4px 0;
}

.law-note {
  font-size: 12.6px;
  color: var(--dh-muted);
  margin: 0;
  line-height: 1.5;
}

.law-replaces {
  font-size: 11.8px;
  color: #8a231e;
  margin-top: 4px;
}

.law-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--dh-border-strong);
}

.law-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--dh-border-strong);
  background: #fff;
  color: var(--dh-ink-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.law-link-btn:hover {
  border-color: var(--dh-maroon);
  color: var(--dh-maroon);
  background: var(--dh-maroon-tint);
}

.law-link-btn.primary {
  background: var(--dh-maroon);
  border-color: var(--dh-maroon);
  color: #fff;
}

.law-link-btn.primary:hover {
  background: var(--dh-maroon-bright);
  color: #fff;
}

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

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

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dh-ink);
}

.field input,
.field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--dh-border-strong);
  background: #fff;
  color: var(--dh-ink);
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--dh-maroon);
  box-shadow: 0 0 0 3px rgba(94, 26, 24, 0.12);
}

.calc-result {
  background: linear-gradient(155deg, var(--dh-maroon-deep) 0%, var(--dh-maroon) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(245, 166, 0, 0.35);
}

.calc-result-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6d584;
}

.calc-result-big {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--dh-amber);
  margin: 6px 0 4px;
  line-height: 1.15;
}

.calc-result-sub {
  font-size: 13.5px;
  color: rgba(255, 246, 232, 0.86);
  margin-bottom: 16px;
}

.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 240, 215, 0.2);
  border-bottom: 1px solid rgba(255, 240, 215, 0.2);
  margin-bottom: 16px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.calc-row span {
  color: rgba(255, 244, 224, 0.84);
}

.calc-row strong {
  color: #fff;
  text-align: right;
}

.calc-note {
  font-size: 12px;
  color: rgba(255, 244, 224, 0.74);
  margin: 0 0 14px;
}

.checklist-box {
  background: var(--dh-gold-soft);
  border: 1px solid #e7d1a0;
  border-radius: var(--radius-md);
  padding: 22px;
}

.checklist-box h4 {
  margin: 0 0 6px;
  color: var(--dh-maroon);
  font-size: 16.5px;
}

.checklist-box .cl-meta {
  font-size: 13px;
  color: var(--dh-muted);
  margin-bottom: 14px;
}

.checklist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.checklist-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  background: #fff;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--dh-border);
}

.checklist-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dh-maroon);
  color: var(--dh-amber);
  font-size: 11.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==================== SPONSOR / ADSENSE-READY CLEAN SLOT ==================== */
.sponsor-band {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--dh-surface);
  border: 1px dashed var(--dh-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sponsor-band.ad-disabled-placeholder {
  background: linear-gradient(90deg, #fffdf8 0%, var(--dh-gold-soft) 100%);
}

.sponsor-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dh-gold-deep);
  background: #fff;
  border: 1px solid #e7d1a0;
  padding: 3px 9px;
  border-radius: 999px;
  margin-right: 10px;
}

.sponsor-text {
  font-size: 14px;
  color: var(--dh-ink-soft);
}

.sponsor-text strong {
  color: var(--dh-maroon);
}

/* ==================== KNOWLEDGE ARTICLES HUB ==================== */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-btn {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--dh-border-strong);
  background: var(--dh-surface);
  color: var(--dh-ink-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-btn:hover {
  border-color: var(--dh-maroon);
  color: var(--dh-maroon);
}

.cat-btn.active {
  background: var(--dh-maroon);
  color: #fff;
  border-color: var(--dh-maroon);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  background: var(--dh-surface);
  border: 1px solid var(--dh-border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--dh-gold);
}

.article-thumb {
  position: relative;
  height: 186px;
  overflow: hidden;
  background: var(--dh-maroon-deep);
  border-bottom: 1px solid var(--dh-border);
  flex-shrink: 0;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.article-card:hover .article-thumb img {
  transform: scale(1.04);
}

.article-body {
  padding: 18px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.article-cat {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--dh-maroon);
  background: var(--dh-maroon-tint);
  padding: 4px 10px;
  border-radius: 999px;
}

.article-time {
  font-size: 12px;
  color: var(--dh-muted);
}

.article-card h3 {
  margin: 0 0 10px;
  font-size: 17.5px;
  line-height: 1.38;
  color: var(--dh-ink);
}

.article-card p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--dh-muted);
}

.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--dh-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--dh-maroon);
}

.articles-empty {
  grid-column: 1 / -1;
  padding: 28px 24px;
  text-align: center;
  background: var(--dh-surface);
  border: 1px dashed var(--dh-border-strong);
  border-radius: var(--radius-md);
  color: var(--dh-muted);
}

.articles-empty .cat-btn {
  margin-top: 12px;
}

.articles-archive {
  margin-top: 34px;
  background: var(--dh-surface);
  border: 1px solid var(--dh-border-strong);
  border-top: 3px solid var(--dh-gold);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.articles-archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--dh-border);
}

.archive-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dh-gold-deep);
  margin-bottom: 3px;
}

.articles-archive-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--dh-maroon);
}

.archive-count {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dh-earth);
  background: var(--dh-gold-soft);
  border: 1px solid var(--dh-border-strong);
  padding: 4px 10px;
  border-radius: 999px;
}

.articles-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.archive-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--dh-border);
  background: var(--dh-bg);
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.archive-link:hover {
  border-color: var(--dh-gold);
  background: var(--dh-gold-soft);
  transform: translateY(-1px);
}

.archive-link-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive-link-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dh-ink);
  line-height: 1.4;
}

.archive-link:hover .archive-link-title {
  color: var(--dh-maroon);
}

.archive-link-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--dh-muted);
}

.archive-link-cat {
  font-weight: 700;
  color: var(--dh-maroon);
  background: var(--dh-maroon-tint);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.archive-link-arrow {
  font-size: 13px;
  font-weight: 800;
  color: var(--dh-maroon);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==================== CORE VALUES & CERTIFICATIONS (HSNL 2026) ==================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.value-card {
  background: var(--dh-surface);
  border: 1px solid var(--dh-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.value-orb {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d7ae4e 0%, var(--dh-gold) 55%, var(--dh-gold-deep) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 0 0 5px rgba(200, 155, 60, 0.18);
  padding: 6px;
  line-height: 1.2;
}

.value-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dh-maroon);
}

.value-card p {
  margin: 0;
  font-size: 12.8px;
  color: var(--dh-muted);
  line-height: 1.55;
}

.cert-banner {
  background: var(--dh-surface);
  border: 1px solid var(--dh-border-strong);
  border-left: 5px solid var(--dh-amber);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.cert-banner h3 {
  margin: 0 0 8px;
  color: var(--dh-maroon);
  font-size: 20px;
}

.cert-meta {
  font-size: 13.5px;
  color: var(--dh-muted);
  margin: 0;
}

.cert-scopes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cert-scope-item {
  background: var(--dh-bg);
  border: 1px solid var(--dh-border);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 13px;
}

.cert-scope-item strong {
  display: block;
  color: var(--dh-maroon);
  margin-bottom: 2px;
}

/* ==================== PROJECTS SHOWCASE ==================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  background: var(--dh-surface);
  border: 1px solid var(--dh-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.project-card.featured {
  grid-column: span 2;
}

.project-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #2b2624;
}

.project-card.featured .project-img-wrap {
  height: 250px;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.04);
}

.project-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(63, 16, 15, 0.9);
  color: var(--dh-amber);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(245, 166, 0, 0.45);
}

.project-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--dh-maroon);
}

.project-body p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--dh-ink-soft);
}

.project-meta {
  font-size: 12.5px;
  color: var(--dh-muted);
  border-top: 1px solid var(--dh-border);
  padding-top: 10px;
}

/* ==================== CONTACT / LEAD CTA ==================== */
.cta-box {
  background: linear-gradient(125deg, var(--dh-maroon-deep) 0%, var(--dh-maroon) 60%, var(--dh-earth) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(245, 166, 0, 0.35);
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.5vw, 30px);
}

.cta-box p {
  margin: 0;
  color: rgba(255, 246, 232, 0.86);
  font-size: 15px;
}

.cta-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(245, 166, 0, 0.32);
  border-radius: 12px;
  padding: 13px 16px;
}

.cta-info-row small {
  display: block;
  font-size: 11.5px;
  color: #f6d584;
}

.cta-info-row strong {
  font-size: 15.5px;
  color: #fff;
}

.btn-copy-mini {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(245, 166, 0, 0.5);
  background: rgba(245, 166, 0, 0.18);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-copy-mini:hover {
  background: var(--dh-amber);
  color: #241504;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: #1f1615;
  color: rgba(255, 246, 235, 0.82);
  padding: 50px 0 26px;
  border-top: 3px solid var(--dh-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 240, 215, 0.14);
}

.footer-title {
  color: var(--dh-amber);
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.footer-company-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.footer-list button,
.footer-list a {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 246, 235, 0.82);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}

.footer-list button:hover,
.footer-list a:hover {
  color: var(--dh-amber);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 246, 235, 0.62);
}

/* ==================== ARTICLE & POLICY MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 14, 13, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 120;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: min(820px, 100%);
  max-height: 88vh;
  background: var(--dh-surface);
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--dh-maroon);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--dh-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: var(--dh-bg);
}

.modal-header h3 {
  margin: 4px 0 0;
  font-size: 20px;
  color: var(--dh-maroon);
  line-height: 1.3;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--dh-border-strong);
  background: #fff;
  color: var(--dh-maroon);
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-body {
  padding: 24px 28px 30px;
  overflow-y: auto;
  font-size: 15px;
  color: var(--dh-ink-soft);
}

.modal-body h4 {
  color: var(--dh-maroon);
  margin: 22px 0 8px;
  font-size: 17px;
}

.modal-body p {
  margin: 0 0 12px;
}

.modal-body ul, .modal-body ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 13.8px;
}

.modal-body th, .modal-body td {
  border: 1px solid var(--dh-border-strong);
  padding: 9px 12px;
  text-align: left;
}

.modal-body th {
  background: var(--dh-maroon-tint);
  color: var(--dh-maroon);
}

.modal-hero-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--dh-border);
  margin-bottom: 16px;
}

.modal-legal-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.modal-legal-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dh-earth);
  background: var(--dh-gold-soft);
  border: 1px solid var(--dh-border-strong);
  padding: 3px 10px;
  border-radius: 999px;
}

.callout-tip {
  background: var(--dh-gold-soft);
  border-left: 4px solid var(--dh-amber);
  padding: 13px 16px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  font-size: 14px;
  color: var(--dh-ink);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 980px) {
  .hero-grid,
  .tool-panel.active,
  .dossier-layout,
  .law-grid,
  .cert-banner,
  .cta-box,
  .footer-grid,
  .articles-archive-list {
    grid-template-columns: 1fr;
  }

  .articles-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.featured {
    grid-column: span 2;
  }

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

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--dh-surface);
    border-bottom: 1px solid var(--dh-border-strong);
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .btn-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-form,
  .cert-scopes,
  .articles-grid,
  .projects-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .article-thumb {
    height: 174px;
  }

  .articles-archive {
    padding: 18px 16px;
  }

  .archive-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .tool-panel {
    padding: 18px;
  }

  .cta-box {
    padding: 26px 20px;
  }

  .btn-staff-login span.label-long {
    display: none;
  }
}
