/* Ello Da Nang - Policy Site */
/* Full Design System: Typography, Layout, Components, Responsive */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================ */

:root {
  /* Colors */
  --brand: #0D9488;
  --brand-dark: #0F766E;
  --brand-light: #CCFBF1;
  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-muted: #475569;
  --text-inverse: #FFFFFF;

  /* Callout colors */
  --callout-info-bg: #EFF6FF;
  --callout-info-border: #3B82F6;
  --callout-info-text: #1E40AF;
  --callout-warning-bg: #FFFBEB;
  --callout-warning-border: #F59E0B;
  --callout-warning-text: #92400E;
  --callout-danger-bg: #FEF2F2;
  --callout-danger-border: #EF4444;
  --callout-danger-text: #991B1B;
  --callout-success-bg: #F0FDF4;
  --callout-success-border: #22C55E;
  --callout-success-text: #166534;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'Noto Sans CJK', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line height */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
}

/* ============================================================================
   2. WEB FONT (@font-face)
   ============================================================================ */

/* Be Vietnam Pro fallback — system fonts provide good Vietnamese support */
/* If woff2 files become available, uncomment below and remove web-safe fallback */

/*
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*/

/* ============================================================================
   3. RESET & NORMALIZATION
   ============================================================================ */

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

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text);
  background-color: var(--surface-alt);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--text);
}

h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--font-size-xl);
  border-bottom: 2px solid var(--brand-light);
  padding-bottom: var(--space-sm);
}

h3 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

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

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

a:visited {
  color: inherit;
}

.content a:visited {
  color: inherit;
}

ul, ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-relaxed);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
  background-color: var(--surface);
}

table th {
  background-color: var(--brand-light);
  padding: var(--space-md);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: var(--brand-dark);
  border-bottom: 2px solid var(--brand);
}

table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
}

table tbody tr:nth-child(even) {
  background-color: rgba(13, 148, 136, 0.03);
}

table tbody tr:hover {
  background-color: rgba(13, 148, 136, 0.06);
}

code {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  background-color: var(--surface-alt);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  color: #DC2626;
}

pre {
  background-color: #1F2937;
  color: #F3F4F6;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-normal);
}

pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

blockquote {
  border-left: 4px solid var(--brand);
  padding-left: var(--space-lg);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================================
   4. LAYOUT: Header, Sidebar, Main, Footer
   ============================================================================ */

body {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

/* ============================================================================
   NAVBAR (main site style)
   ============================================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.07);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #6B7280;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: #FF2D78;
}

.nav-cta {
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #FF2D78, #E5206A);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2D1B69;
  border-radius: 2px;
  transition: all 0.3s;
}

.version {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: var(--font-weight-normal);
}

/* TOC (Table of Contents) styles */
.toc-container {
  padding: var(--space-lg) 0;
}

.toc-container h3 {
  margin-top: 0;
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg);
  color: var(--text);
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li {
  margin-bottom: var(--space-sm);
}

.toc-list a {
  color: var(--brand);
  font-size: var(--font-size-sm);
  text-decoration: none;
  display: block;
  padding: var(--space-xs) 0;
}

.toc-list a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* Last updated metadata */
.last-updated {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* Audience badge styles */
.audience-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background-color: #DBEAFE;
  color: #1E40AF;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.audience-badge.guide-only {
  background-color: #E0E7FF;
  color: #3730A3;
}

.audience-badge.tourist-only {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.header-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-link {
  color: var(--text-inverse);
  font-size: var(--font-size-sm);
  transition: opacity var(--transition-fast);
}

.nav-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: var(--space-xs);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text-inverse);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

main {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
  max-width: var(--breakpoint-xl);
  margin: 0 auto;
  width: 100%;
  padding: var(--space-2xl);
  padding-top: calc(var(--space-2xl) + 64px);
}

.sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.sidebar-nav {
  background-color: var(--surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.sidebar-nav h3 {
  margin-top: 0;
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-sm);
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: var(--space-sm);
}

.sidebar-nav a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.sidebar-nav a:hover {
  background-color: var(--brand-light);
  color: var(--brand-dark);
}

.sidebar-nav a.active {
  background-color: rgba(255, 45, 120, 0.08);
  color: #FF2D78;
  font-weight: var(--font-weight-semibold);
}

.content {
  background-color: var(--surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.page-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.audience-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background-color: var(--brand-light);
  color: var(--brand-dark);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.audience-badge.guide {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.audience-badge.customer {
  background-color: #FEF3C7;
  color: #92400E;
}

/* old footer tag selector removed — replaced by .footer class (main site style) */

.footer-content {
  max-width: var(--breakpoint-xl);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
}

.footer-section {
  color: var(--text-inverse);
}

.footer-section h4 {
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: var(--text-inverse);
  font-weight: var(--font-weight-bold);
}

.footer-section p {
  color: var(--text-inverse);
  line-height: var(--line-height-relaxed);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  color: var(--text-inverse);
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--text-inverse);
  opacity: 0.95;
}

.footer-section a:hover {
  color: #A7F3D0;
  opacity: 1;
  font-weight: var(--font-weight-semibold);
}

/* .footer-bottom handled by main site footer CSS appended below */

/* ============================================================================
   5. COMPONENTS: Callouts, Badges, Accordion, Cards
   ============================================================================ */

.callout {
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border-left: 4px solid;
  border-radius: var(--radius-md);
  background-color: var(--callout-info-bg);
  border-color: var(--callout-info-border);
  color: var(--callout-info-text);
}

.callout.info {
  background-color: var(--callout-info-bg);
  border-color: var(--callout-info-border);
  color: var(--callout-info-text);
}

.callout.warning {
  background-color: var(--callout-warning-bg);
  border-color: var(--callout-warning-border);
  color: var(--callout-warning-text);
}

.callout.danger {
  background-color: var(--callout-danger-bg);
  border-color: var(--callout-danger-border);
  color: var(--callout-danger-text);
}

.callout.success {
  background-color: var(--callout-success-bg);
  border-color: var(--callout-success-border);
  color: var(--callout-success-text);
}

.callout strong {
  font-weight: var(--font-weight-bold);
}

.callout p {
  margin-bottom: 0;
}

.callout p:not(:last-child) {
  margin-bottom: var(--space-sm);
}

.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.badge.warning {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge.suspend {
  background-color: #FEDBA8;
  color: #B45309;
}

.badge.ban {
  background-color: #FEE2E2;
  color: #991B1B;
}

.badge.success {
  background-color: #DCFCE7;
  color: #166534;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  background-color: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--surface-alt);
}

.faq-question::after {
  content: '▼';
  display: inline-block;
  transition: transform var(--transition-fast);
  font-size: var(--font-size-sm);
  color: var(--brand);
}

.faq-question[aria-expanded='true']::after {
  transform: rotate(-180deg);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
  animation: slideDown var(--transition-base);
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.faq-answer[hidden] {
  display: none;
}

/* Policy Cards (for index.html) */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.policy-card {
  background-color: var(--surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--border);
}

.policy-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--brand);
}

.policy-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.policy-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-lg);
  color: var(--text);
}

.policy-card p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.policy-card a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--brand);
  font-weight: var(--font-weight-semibold);
}

.policy-card a::after {
  content: '→';
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--brand);
}

/* Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  background-color: var(--brand);
  color: var(--text-inverse);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: var(--brand-dark);
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   6. RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
  main {
    grid-template-columns: 1fr;
    padding: var(--space-lg);
    gap: var(--space-lg);
  }

  .sidebar {
    display: none;
  }

  .sidebar.mobile-open {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 60px;
    z-index: 900;
    background-color: var(--surface);
    max-width: 100%;
    height: auto;
    box-shadow: var(--shadow-lg);
    border-radius: 0;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    padding: 16px 24px 24px;
    gap: 16px;
    z-index: 999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  h1 {
    font-size: var(--font-size-xl);
  }

  h2 {
    font-size: var(--font-size-lg);
  }

  .content {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
  }

  main {
    padding: var(--space-md);
  }

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

  table {
    font-size: var(--font-size-sm);
  }

  table th,
  table td {
    padding: var(--space-sm);
  }

  .faq-question {
    padding: var(--space-md);
  }

  .faq-answer {
    padding: 0 var(--space-md) var(--space-md);
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: var(--space-md);
    right: var(--space-md);
    font-size: var(--font-size-base);
  }

  .page-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

@media (max-width: 640px) {
  html {
    font-size: 13px;
  }

  .header-nav {
    display: none;
  }

  main {
    padding: var(--space-sm);
    gap: var(--space-md);
  }

  .content {
    padding: var(--space-md);
  }

  h1 {
    font-size: var(--font-size-lg);
  }

  h2 {
    font-size: var(--font-size-base);
  }

  ul, ol {
    margin-left: var(--space-lg);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ============================================================================
   7. PRINT STYLES
   ============================================================================ */

@media print {
  .site-header,
  .sidebar,
  .back-to-top,
  .hamburger,
  site-footer {
    display: none !important;
  }

  body {
    grid-template-rows: 1fr;
  }

  main {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0;
  }

  .content {
    box-shadow: none;
    padding: 0;
    max-width: 100%;
  }

  h2 {
    page-break-before: always;
    page-break-after: avoid;
  }

  h2:first-of-type {
    page-break-before: auto;
  }

  h3, h4 {
    page-break-after: avoid;
  }

  p, li {
    orphans: 3;
    widows: 3;
  }

  table {
    page-break-inside: avoid;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    color: var(--text-muted);
    font-size: var(--font-size-xs);
  }

  a[href^='#']::after {
    content: '';
  }

  .callout {
    page-break-inside: avoid;
    border-left: 2px solid var(--text-muted);
    background-color: transparent;
  }

  .policy-card {
    page-break-inside: avoid;
  }
}

/* ============================================================================
   8. ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.faq-question:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

/* Dark mode disabled - force light mode always */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #FFFFFF;
    --surface-alt: #F8FAFC;
    --border: #E2E8F0;
    --text: #0F172A;
    --text-muted: #475569;
    --text-inverse: #FFFFFF;
  }

  body {
    background-color: #F8FAFC;
    color: #0F172A;
  }

  .sidebar-nav {
    background-color: #FFFFFF;
  }

  .content {
    background-color: #FFFFFF;
  }

  table {
    background-color: #FFFFFF;
  }

  table th {
    background-color: #CCFBF1;
    color: #0F766E;
  }

  table td {
    color: #0F172A;
    border-bottom-color: #E2E8F0;
  }

  table tbody tr:nth-child(even) {
    background-color: rgba(13, 148, 136, 0.03);
  }

  table tbody tr:hover {
    background-color: rgba(13, 148, 136, 0.06);
  }

  code {
    background-color: #F8FAFC;
    color: #DC2626;
  }

  pre {
    background-color: #1F2937;
    color: #F3F4F6;
  }

  strong,
  strong[style*="color"],
  p[style*="color"],
  div[style*="color"],
  span[style*="color"] {
    color: inherit !important;
  }

  .text-muted,
  [class*="muted"] {
    color: #475569 !important;
  }

  .page-meta {
    background-color: #F8FAFC !important;
  }

  .page-meta span {
    color: #0F172A !important;
  }

  .breadcrumb {
    color: #475569 !important;
  }

  .breadcrumb a {
    color: #0D9488 !important;
  }

  .sidebar-nav a {
    color: #0D9488 !important;
  }

  .sidebar-nav a:hover {
    color: #0F766E !important;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #0F172A !important;
  }

  a {
    color: #0D9488 !important;
  }

  a:visited {
    color: inherit !important;
  }
}

/* ============================================================================
   FOOTER (main site style)
   ============================================================================ */

.footer {
    background: #2D1B69;
    padding: 64px 0 32px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: rgba(255,255,255,0.6);
}

.footer .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin: 16px 0 24px;
    max-width: 280px;
    line-height: 1.7;
}

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

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-btn:hover {
    background: #FF2D78;
    border-color: #FF2D78;
    color: white;
    transform: translateY(-2px);
}

.footer-links-group h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-group a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links-group a:hover {
    color: white;
    padding-left: 4px;
}

.footer-company-info {
    padding: 24px 0;
    margin-bottom: 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-company-info p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-company-info .company-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
}

.footer-email {
    color: #FF2D78;
    transition: all 0.3s;
}

.footer-email:hover { color: #FF6B9D; }

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

.footer-bottom span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
}

.footer-store-mini {
    display: flex;
    gap: 12px;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s;
}

.footer-store-mini:hover { opacity: 0.8; }

.footer-store-mini img {
    height: 28px;
    width: auto;
}

@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================================
   LANGUAGE SWITCHER + BILINGUAL CONTENT
   ============================================================================ */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 8px;
}

.lang-divider {
  width: 1px;
  height: 16px;
  background: rgba(0,0,0,0.15);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6B7280;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: #f3f4f6;
  color: #111;
}

.lang-btn.active {
  color: #FF2D78;
  background: rgba(255,45,120,0.06);
}

.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { font-size: 0.75rem; letter-spacing: 0.04em; }

/* Hide/show lang blocks — default vi visible, en hidden */
[data-lang="en"] { display: none; }
[data-lang="en"]:not([hidden]) { display: revert; }
[data-lang="vi"][hidden] { display: none; }

/* ============================================================================
   FOOTER OVERRIDES — force correct colors over policy base CSS
   ============================================================================ */

/* H4 column headings */
.footer .footer-links-group h4 {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: rgba(255,255,255,0.4) !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Links */
.footer .footer-links-group a,
.footer .footer-links-group a:link,
.footer .footer-links-group a:visited {
    color: rgba(255,255,255,0.6) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    background: none !important;
}

.footer .footer-links-group a:hover {
    color: #fff !important;
    padding-left: 4px !important;
}

/* Brand text */
.footer .footer-brand p {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.9rem !important;
    margin: 16px 0 24px !important;
    line-height: 1.7 !important;
}

/* Company info */
.footer .footer-company-info p {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.82rem !important;
}

.footer .footer-company-info .company-name {
    color: rgba(255,255,255,0.55) !important;
    font-weight: 700 !important;
}

.footer .footer-company-info a,
.footer .footer-company-info a:visited {
    color: #FF2D78 !important;
}

/* Footer bottom */
.footer .footer-bottom span {
    color: rgba(255,255,255,0.35) !important;
    font-size: 0.85rem !important;
}

/* btn-primary text color fix — override policy a { color: var(--brand) } */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover {
    color: #fff !important;
}

.table-of-contents { display: none !important; }

/* Sidebar link color — override global a { color: var(--brand) } */
.sidebar-nav a,
.sidebar-nav a:link,
.sidebar-nav a:visited {
    color: var(--text) !important;
    text-decoration: none !important;
}

.sidebar-nav a:hover {
    color: var(--brand-dark) !important;
    background-color: var(--brand-light) !important;
}

.sidebar-nav a.active,
.sidebar-nav a.active:visited {
    color: #FF2D78 !important;
    background-color: rgba(255,45,120,0.08) !important;
}
