/**
 * Thinh Long Group — Corporate Trust design system
 * Modern enterprise SaaS: trustworthy, vibrant, polished, dimensional
 */

/* Design tokens */
:root {
  /* Colors (Light) — logo palette: #0688D3 blue · #BC3601 red-orange · #F4D9C0 warm peach */
  --color-bg: #F8FAFC;
  --color-bg-alt: #FDF9F6; /* warm tint from peach */
  --color-surface: #FFFFFF;
  --color-primary: #0688D3;       /* logo blue — màu chủ đạo */
  --color-primary-dark: #0570AE;
  --color-primary-light: #1A9DE8;
  --color-secondary: #BC3601;     /* logo red-orange — màu nhấn */
  --color-secondary-dark: #9C2E01;
  --color-accent: var(--color-primary);
  --color-accent-muted: rgba(6, 136, 211, 0.85);
  --color-warm: #F4D9C0;          /* logo peach — warm tints */
  --color-warm-dark: #ECC9A8;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --color-border-dark: rgba(226, 232, 240, 0.14);
  --color-link: var(--color-primary);
  --color-link-hover: var(--color-primary-light);
  --color-link-hover-bg: rgba(6, 136, 211, 0.08);

  /* Accent (sparingly) */
  --color-success: #10B981;
  --color-accent-orange: #BC3601; /* alias: logo red-orange */

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --text-h1: clamp(2.5rem, 5vw, 4rem); /* 40–64px */
  --text-h2: clamp(1.75rem, 3vw, 2.25rem);
  --text-h3: 1.5rem;
  --text-h4: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-label: 0.75rem;
  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.65;

  /* Spacing: 80–120px vertical rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --section-pad-y: 60px;      /* Standard mobile padding */
  --section-pad-y-lg: 80px;
  --section-pad-y-xl: 100px;
  --section-pad-lg: 6rem;
  --section-pad-md: 4rem;
  --container-max: 1600px;
  --container-pad: 1.5rem;
  --radius: 12px; /* cards */
  --radius-lg: 16px; /* hero mockup */
  --radius-input: 8px;

  /* Dark */
  --color-bg-dark: #0B1020;
  --color-surface-dark: rgba(255, 255, 255, 0.06);

  /* Effects: colored shadows + gradients — warm amber palette */
  --shadow-soft: 0 4px 20px -2px rgba(6, 136, 211, 0.10);
  --shadow-card: 0 10px 25px -5px rgba(6, 136, 211, 0.15), 0 8px 10px -6px rgba(6, 136, 211, 0.08);
  --shadow-btn: 0 4px 14px 0 rgba(217, 119, 6, 0.35);   /* amber shadow */
  --color-btn-primary: #F59E0B;         /* Amber 400 — button chủ đạo */
  --color-btn-primary-hover: #D97706;   /* Amber 500 hover */
  --color-btn-primary-text: #1C1917;    /* near-black for contrast on yellow */
  --gradient-primary: linear-gradient(90deg, #F59E0B 0%, #BC3601 100%); /* warm: amber → red-orange */
  --gradient-soft: radial-gradient(700px 420px at 15% 25%, rgba(245, 158, 11, 0.12), transparent 60%),
                   radial-gradient(600px 360px at 85% 30%, rgba(188, 54, 1, 0.10), transparent 55%);

  /* Layout constants */
  --header-h: 80px;
  /* Unified spacing: card grids + section title → lead → content */
  --layout-grid-gap: var(--space-6);
  --layout-stack-tight: var(--space-4);
  --layout-stack-loose: var(--space-8);

  /* Global transition duration */
  --transition-0_3: 0.3s;
}

@media (min-width: 768px) {
  :root {
    --section-pad-y: 100px;     /* Standard desktop padding */
    --section-pad-y-lg: 140px;
    --section-pad-y-xl: 160px;
    --container-pad: 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-pad-y: 8.5rem;
    --section-pad-y-lg: 10.5rem;
    --section-pad-y-xl: 12.5rem;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  /* Removed scroll-behavior: smooth to prevent conflict with JS scroll logic */
  -webkit-text-size-adjust: 100%;
}

/* Normalize transitions: hover/header/state changes should use 0.3s */
/* Removed global transition-duration !important as it interferes with JS-driven scroll animations */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

/*
 * Large-screen scaling:
 * Previously used `body{ zoom: ... }` for 2k/4k/8k, which distorts layout and
 * hero sizing/breakpoints on very wide screens.
 * Now we rely only on `clamp()`/`vw`/standard breakpoints for stable responsive behavior.
 */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--color-link-hover); }

/* Typography: H1 > H2 > body, high readability */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800; /* Bolder for premium look */
  line-height: var(--lh-heading);
  margin-top: 0;
  margin-bottom: var(--space-8); /* Increased for breathing room */
  letter-spacing: -0.02em;
}
h1 { font-size: var(--text-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--text-h2); margin-bottom: var(--space-12); } /* Major titles need space */
h3 { font-size: var(--text-h3); margin-bottom: var(--space-6); }
h4 { font-size: var(--text-h4); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

/* Typography rhythm utilities */
.section-header {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.section-header--left {
  text-align: left;
  margin-inline: 0;
}
.section-header .section-title {
  margin-bottom: var(--space-3);
  font-size: var(--text-h2);
}
.section-header .section-lead {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  line-height: var(--lh-body);
}
.mb-title { margin-bottom: var(--space-4) !important; }
.mb-section { margin-bottom: var(--space-12) !important; }
.btn-group { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* Layout: grid-based, max 1200px, large vertical rhythm */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}
.section--alt {
  background: var(--color-surface);
}
.section--dark {
  background: linear-gradient(180deg, #0B1020 0%, #070A14 100%);
  color: #EAF0FF;
  position: relative;
  overflow: hidden;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark p,
.section--dark .text-muted { color: #FAFAFA; }
.section--dark .text-muted { opacity: 0.85; }
.section--dark a:not(.btn) { color: rgba(250,250,250,0.9); }
.section--dark a:not(.btn):hover { color: #FAFAFA; }
.section--lg {
  padding-top: var(--section-pad-lg);
  padding-bottom: var(--section-pad-lg);
}
.section--md {
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
}

/* Optional column templates (chained selectors beat @media .footer-grid defaults) */
.footer-grid.footer-grid--minmax-240 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.footer-grid.footer-grid--minmax-260 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.footer-grid.footer-grid--minmax-200 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-grid.footer-grid--minmax-280 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.u-measure-narrow {
  max-width: 45rem;
  margin-left: auto;
  margin-right: auto;
}
.u-mt-loose {
  margin-top: var(--layout-stack-loose);
}
.trust-chips--center {
  justify-content: center;
  margin-top: var(--layout-stack-loose);
}

.container.container--narrow {
  max-width: 35rem; /* 560px */
}
.btn--full {
  width: 100%;
}

/* Scroll reveal (sections + footer) — activated via html.js-reveal-on-scroll from main.js */
html.js-reveal-on-scroll .reveal-on-scroll:not(.is-revealed) {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
html.js-reveal-on-scroll .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal-on-scroll .reveal-on-scroll:not(.is-revealed) {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}

/* Buttons: clean, no heavy borders, minimal */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  box-shadow: var(--shadow-soft);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--color-btn-primary);
  color: var(--color-btn-primary-text);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  background: var(--color-btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.40);
}
.btn--accent {
  background: var(--color-secondary);
  color: #fff;
}
.btn--accent:hover {
  background: var(--color-secondary-dark);
  box-shadow: 0 4px 14px rgba(188, 54, 1, 0.30);
}
.btn--secondary {
  background: var(--color-surface);
  color: #334155;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
.btn--secondary:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}
.section--dark .btn--primary {
  background: #FAFAFA;
  color: #18181B;
  box-shadow: var(--shadow-soft);
}
.section--dark .btn--primary:hover {
  background: #E4E4E7;
  color: #18181B;
  box-shadow: var(--shadow-card);
}
.section--dark .btn--primary .btn__icon-wrap {
  background: rgba(0,0,0,0.08);
  color: #18181B;
}
.section--dark .btn--secondary {
  color: #FAFAFA;
  border-color: rgba(255,255,255,0.4);
}
.section--dark .btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* Button expand hover (Get Started style: text fades, icon strip expands from right) */
.btn--expand {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  /* Reserve space so the right strip never overlaps text */
  padding-right: calc(var(--space-6) + 3.75rem);
}
.btn--expand .btn__text {
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease;
  display: inline-block;
  margin-right: 3.75rem;
  white-space: nowrap; /* Prevent 2 lines */
}

@media (max-width: 768px) {
  .btn--expand {
    padding-right: calc(var(--space-4) + 3.75rem); /* Closer for mobile */
  }
}
.btn--expand:hover .btn__text {
  opacity: 0;
}
.btn--expand .btn__icon-wrap {
  position: absolute;
  right: 0.25rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: clamp(44px, 25%, 80px);
  border-radius: 6px;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: width 0.5s ease;
  pointer-events: none;
}
.btn--expand .btn__icon-wrap svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn--expand:hover .btn__icon-wrap {
  width: calc(100% - 0.5rem);
}
.btn--expand:active {
  transform: scale(0.95);
}
/* Strip background per variant (Sync icon color with text) */
.btn--primary .btn__icon-wrap {
  background: transparent;
  color: inherit;
}
.btn--accent .btn__icon-wrap {
  background: transparent;
  color: inherit;
}
.btn--secondary .btn__icon-wrap {
  background: transparent;
  color: inherit;
}
.section--dark .btn--secondary .btn__icon-wrap {
  background: transparent;
  color: inherit;
}

.section--dark .btn--primary .btn__icon-wrap {
  background: transparent;
}

/* Cards: soft shadow, rounded 12–16px */
.card {
  background: var(--color-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(6, 136, 211, 0.28);
}
.card__image { aspect-ratio: 16/10; object-fit: cover; }
.card__body { padding: var(--space-6); }
.card__title { margin-bottom: var(--space-2); font-weight: 600; }
.card__meta { font-size: var(--text-small); color: var(--color-text-muted); margin-bottom: var(--space-2); }
.card:hover .card__title { color: var(--color-text); }

/* (Moved) Promo cards are defined in css/pages/index.css */

/* (Moved) Floating social is defined in css/shared/floating-social.css */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.site-logo { height: 48px; width: auto; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding-bottom: 4px;
  text-decoration: none;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left;
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.nav-list a:hover { color: var(--color-link-hover); }
.nav-list a:hover::after {
  opacity: 0.6;
  transform: scaleX(1);
}
.nav-list a.is-active {
  color: var(--color-text);
  font-weight: 600;
}
.nav-list a.is-active::after {
  opacity: 1;
  height: 2px;
  transform: scaleX(1);
}
.header-cta { display: flex; align-items: center; gap: var(--space-4); }
.header-hotline { font-weight: 600; color: var(--color-text); }
.social-links { display: flex; gap: var(--space-2); }
.social-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.social-btn:hover {
  transform: translateY(-1px);
  border-color: var(--color-text-muted);
  box-shadow: var(--shadow-soft);
  color: var(--color-text);
  text-decoration: none;
}
.social-btn svg { width: 16px; height: 16px; display: block; }

/* Dropdown Menu Styles */
.nav-list li {
  position: relative;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-2) 0;
  min-width: 200px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}
.dropdown li {
  padding: 0;
}
.dropdown a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.dropdown a:hover {
  background: var(--color-link-hover-bg);
  color: var(--color-primary);
  text-decoration: none;
}
.dropdown a::after {
  display: none !important; /* Remove the underline effect from dropdown links */
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown > a::after {
  content: "▾";
  margin-left: 4px;
  font-size: 0.8em;
  opacity: 0.5;
}

.site-header--over-hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.site-header--over-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Keep header transparent, but improve contrast over bright images */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.24) 55%, rgba(255, 255, 255, 0) 100%);
}
.site-header--over-hero .container { position: relative; z-index: 1; }
.site-header--over-hero .nav-list a,
.site-header--over-hero .header-hotline {
  color: var(--color-text);
  text-shadow: none;
}
.site-header--over-hero .nav-list a:hover {
  color: var(--color-primary-light);
}
.site-header--over-hero .social-btn {
  border-color: rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-text-muted);
  box-shadow: 0 8px 18px rgba(6, 136, 211, 0.14);
}
.site-header--over-hero .social-btn:hover {
  border-color: rgba(6, 136, 211, 0.35);
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-text);
}
.site-header--over-hero .menu-toggle {
  color: var(--color-text);
  text-shadow: none;
}
.site-header--over-hero .site-logo {
  filter: none;
}
.site-header--over-hero.site-header--scrolled {
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header--over-hero.site-header--scrolled::before { display: none; }
.site-header--over-hero.site-header--scrolled .nav-list a,
.site-header--over-hero.site-header--scrolled .header-hotline {
  color: var(--color-text);
}
.site-header--over-hero.site-header--scrolled .nav-list a:hover {
  color: var(--color-primary-light);
}
.site-header--over-hero.site-header--scrolled .social-btn {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
}
.site-header--over-hero.site-header--scrolled .social-btn:hover {
  border-color: rgba(6, 136, 211, 0.35);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}
.site-header--over-hero.site-header--scrolled .menu-toggle {
  color: var(--color-text);
}
.site-header--over-hero.site-header--scrolled .site-logo {
  filter: none;
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  font-size: 1.25rem;
}
@media (max-width: 767px) {
  .site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    height: 64px;
    gap: var(--space-2);
  }
  
  .menu-toggle { 
    display: block; 
    order: 1;
    font-size: 2rem; /* much larger burger */
    line-height: 1;
    padding: 0;
    margin: 0;
    flex: 1;
    text-align: left;
  }
  
  .site-logo-link {
    order: 2;
    flex: 2;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .site-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
  }
  
  .header-cta { 
    order: 3;
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  
  .header-cta .header-hotline,
  .header-cta .social-links { display: none; }
  
  /* Text-only contact button for mobile header */
  .header-cta .btn {
    padding: 6px 14px !important;
    font-size: 0.825rem;
    border-radius: 999px;
    min-width: unset;
    min-height: unset;
  }
  .header-cta .btn__text { display: block !important; opacity: 1 !important; margin: 0 !important; }
  .header-cta .btn__icon-wrap { display: none !important; }
  
  .nav { display: none; }
  .nav.is-open { 
    display: block; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: var(--color-surface); 
    border-bottom: 1px solid var(--color-border); 
    padding: var(--space-4); 
    box-shadow: var(--shadow-card);
  }
  .nav-list { flex-direction: column; gap: var(--space-4); }

  .site-header--over-hero .nav.is-open {
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .site-header--over-hero .nav.is-open .nav-list a {
    color: var(--color-text);
  }
  .site-header--over-hero.site-header--scrolled .nav.is-open {
    background: var(--color-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Hero: full-bleed under the header */
.hero {
  color: var(--color-text);
  text-align: left;
}
.hero.hero--fullbleed {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero.hero--fullbleed::before,
.hero.hero--fullbleed::after {
  content: none;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.12) 34%, rgba(0, 0, 0, 0.0) 62%, rgba(0, 0, 0, 0.0) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + var(--space-10));
  padding-bottom: var(--section-pad-y);
}
.hero__title {
  color: inherit;
  margin-bottom: var(--space-4);
  font-size: var(--text-h1);
  line-height: var(--lh-tight);
}
.text-gradient {
  background: linear-gradient(90deg, #D97706 0%, #BC3601 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-bottom: var(--space-8);
}
.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-12);
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(6, 136, 211, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
  font-size: var(--text-small);
  font-weight: 500;
  margin-bottom: var(--space-4);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}

.hero-inner {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}
.hero-left {
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.25rem, 2vw, 2rem);
  max-width: 42rem;
}
.hero-right { min-height: 1px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(6, 136, 211, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
  font-size: var(--text-small);
  font-weight: 500;
  margin-bottom: var(--space-4);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-8);
}
.hero-ctas .btn {
  padding: var(--space-3) var(--space-6);
  min-height: 44px;
}
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8); /* Added for breathing room */
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.85);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  box-shadow: var(--shadow-soft);
}
.chip strong { color: var(--color-text); font-weight: 600; }
.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Footer: neutral, clear structure */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(250,250,250,0.8);
  padding: var(--section-pad-y-lg) 0 var(--space-10);
  font-size: var(--text-small);
}
.site-footer a { color: rgba(250,250,250,0.8); }
.site-footer a:hover { color: #FAFAFA; text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: var(--layout-grid-gap);
  margin-bottom: var(--layout-stack-loose);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.footer__title { color: #FAFAFA; font-size: var(--text-h4); font-weight: 600; margin-bottom: var(--space-4); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: var(--space-2); }
.footer-bottom { padding-top: var(--space-8); border-top: 1px solid var(--color-border-dark); text-align: center; color: rgba(250,250,250,0.6); }

/* Form */
.form-group { margin-bottom: var(--space-4); }
.form-group label { display: block; font-weight: 500; margin-bottom: var(--space-2); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-surface);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(6, 136, 211, 0.18);
}
.form-row { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }

/* Stats block */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--layout-grid-gap);
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-item { text-align: center; }
.stat-number { font-size: var(--text-h2); font-weight: 700; color: var(--color-text); line-height: 1.2; }
.stat-label { font-size: var(--text-small); color: var(--color-text-muted); }

/* Accordion (FAQ) */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--color-text);
}
.accordion-trigger:hover { color: var(--color-link-hover); }
.accordion-panel { padding: 0 var(--space-4) var(--space-4); }
.accordion-panel p { margin-bottom: var(--space-2); }

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-small { font-size: var(--text-small); }
.mb-0 { margin-bottom: 0; }

/* Gallery asym layout (1 large + 2 small) */
.gallery-asym {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .gallery-asym { grid-template-columns: 2fr 1fr; align-items: stretch; }
}
.gallery-asym__big,
.gallery-asym__small {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.gallery-asym__big img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.gallery-asym__stack {
  display: grid;
  gap: var(--space-4);
}
.gallery-asym__stack img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Jobs Grid & Cards */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.job-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.job-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-primary-light);
}

.job-card__tag {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-secondary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
}

.job-card__market {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.market-flag {
  font-size: 1.5rem;
}
.market-name {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.job-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-6);
  line-height: 1.25;
}

.job-card__info {
  margin-bottom: var(--space-8);
  flex-grow: 1;
}
.info-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--color-border);
}
.info-item:last-child {
  border-bottom: none;
}
.info-label {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}
.info-val {
  font-weight: 700;
  color: var(--color-text);
}
.text-accent {
  color: var(--color-secondary);
}

.job-card__actions {
  margin-top: auto;
}

/* Jobs Filter */
.jobs-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: var(--text-small);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-link-hover-bg);
}
.filter-btn.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(6, 136, 211, 0.3);
}

/* Market Pages Styles */
.market-hero {
  color: #fff;
}
.market-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
}
.m-stat {
  display: flex;
  flex-direction: column;
}
.m-stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
}
.m-stat-label {
  font-size: var(--text-small);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-6);
}
.feature-list li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-4);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 800;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8);
}
.process-step {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s ease;
}
.process-step:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-5px);
}
.step-num {
  font-size: 3rem;
  font-weight: 900;
  opacity: 0.1;
  position: absolute;
  top: 10px;
  right: 20px;
}

/* Bento Grid for Markets */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.bento-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-primary-light);
}

.bento-item--japan { grid-column: span 8; grid-row: span 2; }
.bento-item--taiwan { grid-column: span 4; grid-row: span 2; }
.bento-item--europe { grid-column: span 6; grid-row: span 1; }
.bento-item--korea { grid-column: span 6; grid-row: span 1; }

@media (max-width: 768px) {
  .bento-item--japan, .bento-item--taiwan, .bento-item--europe, .bento-item--korea {
    grid-column: span 12;
    grid-row: span 1;
  }
}

.bento-content {
  position: absolute;
  inset: 0;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  color: #fff;
  z-index: 2;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.bento-item:hover .bento-img { transform: scale(1.05); }

/* Advanced Filter Bar */
.filter-hub {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2);
  display: flex;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: -2.5rem auto 4rem;
  position: relative;
  z-index: 10;
}

.filter-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  border-right: 1px solid var(--color-border);
}
.filter-group:last-child { border-right: none; }

.filter-select {
  width: 100%;
  border: none;
  background: transparent;
  padding: var(--space-3) 0;
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--color-text);
  cursor: pointer;
}
.filter-select:focus { outline: none; }

.filter-btn--search {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0 var(--space-8);
  border-radius: var(--radius-lg);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.filter-btn--search:hover { background: var(--color-primary-dark); }

@media (max-width: 768px) {
  .filter-hub { flex-direction: column; padding: var(--space-4); }
  .filter-group { border-right: none; border-bottom: 1px solid var(--color-border); padding: var(--space-2) 0; }
  .filter-btn--search { padding: var(--space-4); margin-top: var(--space-2); }
}

/* Header Scroll State - Turn White on Scroll */
.site-header {
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.site-header--scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0 !important;
}

.site-header--scrolled .nav-list > li > a {
  color: #1a1a1a !important;
}

.site-header--scrolled .logo__text,
.site-header--scrolled .logo__subtext {
  color: #1a1a1a !important;
}

/* Ensure Logo Image is always visible */
.site-logo {
  max-height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-header--scrolled .site-logo {
  transform: scale(0.9);
}

/* Responsive fix for scrolled header */
@media (max-width: 991px) {
  .site-header--scrolled .nav {
    background: #ffffff;
  }
}

/* Job Slider Styles */
.jobs-slider-wrapper {
  position: relative;
  margin: var(--space-8) 0;
}

.jobs-slider {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 2rem;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.jobs-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.jobs-slider .job-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* Main Job Grid System */
.jobs-container {
  min-height: 400px;
}

.job-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card.is-hidden {
  display: none;
}

.job-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Empty State */
.jobs-empty {
  text-align: center;
  padding: 4rem 0;
  display: none;
}

/* Search Results Modal / Popup */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.search-modal--visible {
  display: flex;
}

.search-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.search-modal__content {
  position: relative;
  background: #f8faff;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.search-modal__header {
  padding: 2rem;
  background: white;
  border-bottom: 1px solid #eef2f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-modal__body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.search-modal__close {
  background: #f1f3f7;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.2s;
}

.search-modal__close:hover {
  background: #e1e4e9;
  transform: rotate(90deg);
}

.modal-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Enhanced Job Card with Images */
.job-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #edf2f7;
}

.job-card__image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.job-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.job-card:hover .job-card__image img {
  transform: scale(1.1);
}

.job-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Slider Overrides */
.jobs-slider {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 5px 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) #f0f4f8;
}

.jobs-slider::-webkit-scrollbar {
  height: 6px;
  display: block; /* Show scrollbar on Chrome */
}

.jobs-slider::-webkit-scrollbar-track {
  background: #f0f4f8;
  border-radius: 10px;
}

.jobs-slider::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 10px;
}

.jobs-slider .job-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

/* Slider Controls */
.slider-nav-btns {
  display: flex;
  gap: 0.5rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.slider-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Fix: Layout spacing for Quiz and Bento Hub */
.quiz-main {
  padding-bottom: 6rem; /* Spacing from footer */
  min-height: 70vh;
}

.bento-grid {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: var(--space-6);
}

.bento-item--japan { grid-column: span 8; height: 350px; }
.bento-item--taiwan { grid-column: span 4; height: 350px; }
.bento-item--europe { grid-column: span 4; height: 350px; }
.bento-item--korea { grid-column: span 8; height: 350px; }

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr !important;
  }
  .bento-item--japan, .bento-item--taiwan, .bento-item--europe, .bento-item--korea {
    grid-column: span 1 !important;
    height: 250px;
  }
}

/* Fix Spacing for Quiz Page */
.quiz-container {
  padding-bottom: 10rem !important;
  margin-bottom: 4rem;
}

/* Fix Bento Grid Layout for Market Hub */
@media (min-width: 992px) {
  .bento-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 300px) !important;
    gap: 1.5rem !important;
  }
}

.bento-item {
  display: block;
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 100%;
}

/* Modern Asymmetric Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: var(--space-6);
}

.bento-item {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid rgba(255,255,255,0.1);
}

.bento-item--japan {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-item--taiwan {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-item--korea {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-item--europe {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-content {
  position: absolute;
  inset: 0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  color: white;
  z-index: 2;
}

.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.bento-item:hover .bento-img {
  transform: scale(1.08);
}

.bento-item h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bento-item p {
  opacity: 0.9;
  font-size: 1rem;
}

@media (max-width: 991px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 250px);
  }
  .bento-item--japan, .bento-item--europe {
    grid-column: span 1;
  }
}
