/* ==========================================================================
   BICA HOLDINGS — Employer Branding Website
   Design system + components
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand — lấy từ logo BICA #294EA0 */
  --brand: #294EA0;
  --brand-600: #21418a;
  --brand-700: #1a3470;
  --brand-800: #142a5c;
  --brand-900: #0e1d42;
  --brand-50: #eef2fb;
  --brand-100: #dce4f6;
  --brand-200: #b9c8ec;

  --accent: #FFB020;
  --accent-600: #e89a0c;

  --ink: #14161c;
  --ink-2: #3d4453;
  --ink-3: #6b7385;
  --line: #e5e8ef;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --bg-dark: #0d1428;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow: 0 4px 14px rgba(16,24,40,.08);
  --shadow-lg: 0 18px 44px rgba(13,20,40,.14);
  --shadow-brand: 0 14px 34px rgba(41,78,160,.28);

  --container: 1200px;
  --nav-h: 74px;

  --ease: cubic-bezier(.22,.68,.28,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; overflow-wrap: break-word; }
h1 { font-size: clamp(1.85rem, 6.4vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.1vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Layout ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #c6cde0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.section--dark .eyebrow { color: var(--accent); }
.section--dark .eyebrow::before { background: var(--accent); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--ink-2); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 54px); }
.section-head--center { margin-inline: auto; text-align: center; }
.text-brand { color: var(--brand); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .96rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-600); }
.btn--accent { background: var(--accent); color: #23180a; box-shadow: 0 14px 30px rgba(255,176,32,.32); }
.btn--accent:hover { background: var(--accent-600); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand-200); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-50); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--brand); border-color: #fff; }
.btn--white { background: #fff; color: var(--brand); }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- 6. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.header--transparent { background: linear-gradient(180deg, rgba(6,12,28,.55), rgba(6,12,28,0)); }
.header--solid { background: rgba(255,255,255,.94); backdrop-filter: saturate(150%) blur(12px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
.header__inner { width: min(100% - 40px, var(--container)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: flex; align-items: center; gap: 10px; }
.header__logo img { height: 40px; width: auto; transition: filter .3s; }
.header--transparent .header__logo img { filter: brightness(0) invert(1); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: .94rem;
  color: var(--ink-2); transition: color .2s, background .2s; position: relative;
}
.header--transparent .nav a { color: rgba(255,255,255,.9); }
.nav a:hover { color: var(--brand); background: var(--brand-50); }
.header--transparent .nav a:hover { color: #fff; background: rgba(255,255,255,.16); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.nav > .btn { display: none; }
@media (max-width: 1020px) { .nav > .btn { display: inline-flex; } }
.header--transparent .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.2); }
.header__cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span + span { margin-top: 6px; }
.header--transparent .nav-toggle span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .header__cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 18px 20px 26px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .28s var(--ease);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .header--transparent .nav a { color: var(--ink-2); }
  .nav a { padding: 13px 16px; font-size: 1rem; border-radius: 12px; }
  .nav .btn { margin-top: 12px; }
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; min-height: min(92vh, 780px); display: flex; align-items: center; padding: calc(var(--nav-h) + 60px) 0 70px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(9,17,40,.93) 0%, rgba(20,42,92,.86) 42%, rgba(41,78,160,.55) 100%);
}
.hero__inner { position: relative; max-width: 760px; color: #fff; }
.hero h1 { color: #fff; margin-bottom: 20px; text-wrap: balance; }
.hero p { color: rgba(255,255,255,.9); font-size: clamp(1.02rem, 1.7vw, 1.2rem); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26); backdrop-filter: blur(8px);
  border-radius: 999px; color: #fff; font-size: .86rem; font-weight: 600; margin-bottom: 22px;
}
.hero__badge b { background: var(--accent); color: #23180a; padding: 3px 11px; border-radius: 999px; font-size: .78rem; }

/* Hero — biến thể trang con */
.hero--page { min-height: min(58vh, 480px); padding: calc(var(--nav-h) + 54px) 0 54px; }
.hero--page h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }

/* ---------- 8. Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: #fff; padding: clamp(22px, 3vw, 34px) 20px; text-align: center; }
.stat__num { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.03em; }
.stat__num sup { font-size: .5em; vertical-align: super; }
.stat__label { font-size: .88rem; color: var(--ink-3); margin-top: 10px; font-weight: 500; }
.stats--float { margin-top: clamp(-70px, -5vw, -40px); position: relative; z-index: 5; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .stat { padding-inline: 12px; } .stat__label { font-size: .8rem; } }

/* ---------- 9. Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 32px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.card__icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); margin-bottom: 18px; font-weight: 800; font-size: 1.2rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card--dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #b9c2d8; }
.card--dark:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.card--dark .card__icon { background: rgba(255,176,32,.16); color: var(--accent); }

/* Value cards với số thứ tự */
.value-card { position: relative; overflow: hidden; }
.value-card__no {
  position: absolute; top: -12px; right: 6px; font-size: 5.4rem; font-weight: 800;
  color: var(--brand-50); line-height: 1; z-index: 0; pointer-events: none; transition: color .3s;
}
.value-card:hover .value-card__no { color: var(--brand-100); }
.value-card > * { position: relative; z-index: 1; }

/* ---------- 9b. Giá trị cốt lõi ---------- */
.manifesto {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700) 62%, var(--brand));
  color: rgba(255,255,255,.9); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.6vw, 40px) clamp(22px, 3.4vw, 44px);
  box-shadow: var(--shadow-brand); position: relative; overflow: hidden;
}
.manifesto::after {
  content: ''; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,176,32,.25), transparent 70%); pointer-events: none;
}
.manifesto__item { display: flex; gap: clamp(16px, 2.4vw, 26px); align-items: flex-start; position: relative; }
.manifesto__icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); color: #fff;
}
.manifesto__icon svg { width: 26px; height: 26px; }
.manifesto p { margin-bottom: .9rem; }
.manifesto p:last-child { margin-bottom: 0; }
.manifesto strong { color: #fff; font-weight: 700; }
@media (max-width: 560px) { .manifesto__icon { display: none; } }

.core-value {
  position: relative; overflow: hidden; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.core-value:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.core-value__no {
  position: absolute; top: -14px; right: 8px; font-size: 5.6rem; font-weight: 800;
  color: var(--brand-50); line-height: 1; z-index: 0; pointer-events: none; transition: color .3s;
}
.core-value:hover .core-value__no { color: var(--brand-100); }
.core-value > * { position: relative; z-index: 1; }
.core-value__head { display: flex; align-items: center; gap: 14px; }
.core-value__head h3 { margin: 0; }
.core-value__icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(41,78,160,.26);
}
.core-value__icon svg { width: 24px; height: 24px; }
.core-value__block { display: flex; flex-direction: column; gap: 8px; }
.core-value__label {
  align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--brand); color: #fff; padding: 4px 12px; border-radius: 6px;
}
.core-value__block p { margin: 0; font-size: .95rem; }
.core-value__list { margin: 0; padding-left: 1.1rem; font-size: .93rem; }
.core-value__list li { margin-bottom: .55rem; }
.core-value__list li::marker { color: var(--brand); font-weight: 700; }
.core-value__list li:last-child { margin-bottom: 0; }
.core-value--cta {
  background: linear-gradient(140deg, var(--brand), var(--brand-800)); border: 0; color: rgba(255,255,255,.88);
  justify-content: center;
}
.core-value--cta h3 { color: #fff; }

.slogan-band {
  margin-top: clamp(32px, 4vw, 48px); text-align: center;
  padding: clamp(26px, 3.4vw, 38px) 20px; border-radius: var(--radius-lg);
  background: var(--bg-soft); border: 1px dashed var(--brand-200);
  display: flex; flex-direction: column; gap: 6px;
}
.slogan-band span { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; color: var(--brand-700); text-transform: uppercase; letter-spacing: .06em; }
.slogan-band strong { font-size: clamp(1.3rem, 3.2vw, 2rem); color: var(--brand); text-transform: uppercase; letter-spacing: .02em; }

/* ---------- 10. Media + text split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 68px); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 880px) { .split, .split--reverse .split__media { grid-template-columns: 1fr; order: 0; } }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.media-stack { position: relative; }
.media-stack img:last-child {
  position: absolute; right: -6%; bottom: -12%; width: 46%; aspect-ratio: 1;
  border: 6px solid #fff; border-radius: var(--radius);
}
@media (max-width: 880px) { .media-stack img:last-child { position: static; width: 100%; border: 0; margin-top: 14px; } }

/* ---------- 11. Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .55s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0; padding: 30px 16px 14px; color: #fff; font-size: .88rem; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(8,14,30,.86));
}
.gallery .span-2 { grid-column: span 2; }
.gallery .span-2 img { aspect-ratio: 8/5; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery .span-2 { grid-column: span 2; } }

/* ---------- 12. Timeline ---------- */
.timeline { position: relative; padding-left: 0; list-style: none; margin: 0; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-200)); }
.timeline li { position: relative; padding: 0 0 30px 52px; margin: 0; }
.timeline li::before {
  content: ''; position: absolute; left: 8px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); box-shadow: 0 0 0 4px var(--brand-50);
}
.timeline__year { font-weight: 800; color: var(--brand); font-size: 1.12rem; display: block; margin-bottom: 3px; }
.section--dark .timeline::before { background: linear-gradient(180deg, var(--accent), rgba(255,176,32,.2)); }
.section--dark .timeline li::before { background: var(--bg-dark); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,176,32,.14); }
.section--dark .timeline__year { color: var(--accent); }

/* ---------- 13. Testimonial / people ---------- */
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 18px; height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.quote-card__mark { font-size: 3rem; line-height: .6; color: var(--brand-200); font-family: Georgia, serif; }
.quote-card blockquote { margin: 0; font-size: 1rem; color: var(--ink-2); font-style: italic; }
.quote-card__person { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 8px; }
.quote-card__person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.quote-card__name { font-weight: 700; color: var(--ink); }
.quote-card__role { font-size: .84rem; color: var(--ink-3); }

/* ---------- 14. Job list ---------- */
.job-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: .89rem; color: var(--ink-2); transition: .2s;
}
.chip:hover { border-color: var(--brand-200); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.job-search {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 4px 6px 4px 18px; max-width: 420px; width: 100%;
}
.job-search input { border: 0; outline: 0; flex: 1; padding: 10px 0; font: inherit; background: transparent; color: var(--ink); }
.job-search svg { width: 20px; height: 20px; color: var(--ink-3); flex-shrink: 0; }

.job-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.job-card:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.job-card h3 { margin-bottom: 8px; font-size: 1.16rem; }
.job-card h3 a { color: inherit; }
.job-card h3 a:hover { color: var(--brand); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .87rem; color: var(--ink-3); }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 15px; height: 15px; opacity: .7; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  background: var(--brand-50); color: var(--brand-700); letter-spacing: .02em;
}
.tag--hot { background: #fff1e0; color: #b45309; }
.tag--new { background: #e6f7ee; color: #06744a; }
@media (max-width: 640px) { .job-card { grid-template-columns: 1fr; } .job-card .btn { width: 100%; } }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-3); }

/* ---------- 15. Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field label .req { color: #d92d20; }
.field input, .field select, .field textarea {
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50);
}
.field textarea { resize: vertical; min-height: 116px; }
.field__hint { font-size: .8rem; color: var(--ink-3); }
.field__error { font-size: .82rem; color: #d92d20; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d92d20; }
.field.has-error .field__error { display: block; }
.file-drop {
  border: 2px dashed var(--brand-200); border-radius: var(--radius); padding: 26px 20px; text-align: center;
  background: var(--brand-50); cursor: pointer; transition: .2s;
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--brand); background: var(--brand-100); }
.file-drop input { display: none; }
.file-drop__name { font-weight: 600; color: var(--brand-700); margin-top: 8px; word-break: break-all; }
.form-note { font-size: .84rem; color: var(--ink-3); }
.form-status { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: #e6f7ee; color: #06744a; }
.form-status.is-err { display: block; background: #fee4e2; color: #b42318; }

/* ---------- 16. Accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.accordion + .accordion { margin-top: 12px; }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: #fff; border: 0; text-align: left; font-weight: 700; color: var(--ink); font-size: 1rem;
}
.accordion__btn:hover { background: var(--bg-soft); }
.accordion__btn svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand); transition: transform .3s var(--ease); }
.accordion__btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.accordion__panel > div { overflow: hidden; }
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__panel .inner { padding: 0 22px 22px; }

/* ---------- 17. News ---------- */
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; height: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.news-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: .8rem; color: var(--ink-3); margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.news-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--brand); }
.news-card p { font-size: .93rem; color: var(--ink-3); }
.news-card .more { margin-top: auto; font-weight: 700; color: var(--brand); font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.news-card:hover .more svg { transform: translateX(4px); }
.news-card .more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }

/* ---------- 18. CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 66px); color: #fff;
  background: linear-gradient(115deg, var(--brand-900), var(--brand-700) 55%, var(--brand));
}
.cta-band::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,176,32,.28), transparent 68%);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 620px; position: relative; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; position: relative; }

/* ---------- 19. Footer ---------- */
.footer { background: var(--bg-dark); color: #98a2bd; padding: clamp(48px, 6vw, 72px) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer a { color: #98a2bd; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer__logo img { height: 42px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__bottom {
  margin-top: 44px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .86rem;
}
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: .25s;
}
.social a:hover { background: var(--brand); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; fill: currentColor; color: #fff; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: .93rem; }
.contact-line svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ---------- 20. Animation ---------- */
/* Chỉ ẩn khi trình duyệt thực sự chạy được JS — nếu JS lỗi/bị chặn, nội dung vẫn hiện */
@media (scripting: enabled) {
  [data-reveal] { opacity: 0; transform: translateY(26px); }
}
[data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 21. Misc ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .87rem; color: rgba(255,255,255,.72); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 12px 20px; z-index: 200; border-radius: 0 0 12px 0; }
.skip-link:focus { left: 0; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose ul li::marker { color: var(--brand); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading { pointer-events: none; opacity: .8; }
