/* HOSTVN About — brand tokens theo khachhang.hostvn.net */
:root {
  --hv-primary: #1c66fa;
  --hv-primary-hover: #0d52dc;
  --hv-primary-soft: #eef4ff;
  --hv-blue-100: #dce8ff;
  --hv-blue-900: #122f6a;
  --hv-blue-950: #0b1b3f;
  --hv-text: #131925;
  --hv-text-muted: #4c586c;
  --hv-text-subtle: #687489;
  --hv-border: #e7ebf1;
  --hv-bg-subtle: #f6f8fc;
  --hv-radius: 10px;
  --hv-radius-lg: 16px;
  --hv-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --hv-shadow-lg: 0 20px 48px rgba(13, 82, 220, .14);

  --bs-primary: var(--hv-primary);
  --bs-primary-rgb: 28, 102, 250;
  --bs-body-font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--hv-text);
  --bs-border-color: var(--hv-border);
  --bs-border-radius: var(--hv-radius);
  --bs-link-color: var(--hv-primary);
  --bs-link-color-rgb: 28, 102, 250;
  --bs-link-hover-color: var(--hv-primary-hover);
}

body { font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.01em; color: var(--hv-text); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
.text-muted { color: var(--hv-text-muted) !important; }
.text-primary { color: var(--hv-primary) !important; }
.bg-subtle { background: var(--hv-bg-subtle); }

/* Buttons */
.btn { font-weight: 600; border-radius: var(--hv-radius); padding: .7rem 1.25rem; }
.btn-primary { --bs-btn-bg: var(--hv-primary); --bs-btn-border-color: var(--hv-primary); --bs-btn-hover-bg: var(--hv-primary-hover); --bs-btn-hover-border-color: var(--hv-primary-hover); --bs-btn-active-bg: #0b43b3; }
.btn-outline-light:hover { color: var(--hv-blue-950); }
.btn-ghost { color: var(--hv-primary); background: var(--hv-primary-soft); }
.btn-ghost:hover { background: var(--hv-blue-100); color: var(--hv-primary-hover); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--hv-border); box-shadow: 0 4px 16px rgba(16, 24, 40, .05); }
.site-header .navbar { padding: .85rem 0; }
.site-header .navbar-brand img { height: 40px; width: auto; }
.site-header .nav-link { font-weight: 500; color: var(--hv-text-muted); padding: .5rem .9rem !important; border-radius: 8px; }
.site-header .nav-link:hover { color: var(--hv-primary); }
.site-header .nav-link.active { color: var(--hv-primary); background: var(--hv-primary-soft); }
.navbar-toggler { border: 0; padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* Sections */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hv-primary); margin-bottom: .75rem; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.2; margin-bottom: 1rem; }
.section-lead { font-size: 1.0625rem; color: var(--hv-text-muted); max-width: 640px; }
.section-head.text-center .section-lead { margin-inline: auto; }
.section-head { margin-bottom: 48px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, rgba(28, 102, 250, .55), transparent 60%), linear-gradient(160deg, var(--hv-blue-950) 0%, #0e2456 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero .container { position: relative; }
.hero h1, .hero h2 { color: #fff; }
.hero-home { padding: 96px 0 120px; }
.hero-home h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); line-height: 1.1; font-weight: 800; }
.hero-home h1 span { background: linear-gradient(90deg, #8fb5fd, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: rgba(255, 255, 255, .78); font-size: 1.125rem; max-width: 560px; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .875rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .875rem; color: #dce8ff; margin-bottom: 1.5rem; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--hv-radius-lg); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-media .float-card { position: absolute; left: -24px; bottom: -24px; background: #fff; color: var(--hv-text); border-radius: var(--hv-radius); padding: 14px 18px; box-shadow: var(--hv-shadow-lg); display: flex; align-items: center; gap: 12px; }
.hero-media .float-card i { font-size: 1.5rem; color: var(--hv-primary); }
.hero-media .float-card strong { display: block; font-size: 1.125rem; line-height: 1.2; }
.hero-media .float-card small { color: var(--hv-text-subtle); }

.page-hero { padding: 88px 0 80px; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; }
.breadcrumb-lite { font-size: .875rem; color: rgba(255, 255, 255, .6); margin-bottom: 1rem; }
.breadcrumb-lite a { color: rgba(255, 255, 255, .8); }
.breadcrumb-lite a:hover { color: #fff; }

/* Stats */
.stats-bar { position: relative; z-index: 2; margin-top: -56px; }
.stats-card { background: #fff; border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg); box-shadow: var(--hv-shadow); }
.stat { padding: 28px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--hv-border); }
.stat-value { font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--hv-primary); }
.stat-label { margin-top: .5rem; color: var(--hv-text-muted); font-weight: 500; }
@media (max-width: 767.98px) { .stat { padding: 20px 8px; } .stat-value { font-size: 1.75rem; } .stat-label { font-size: .8125rem; } }

/* Cards */
.hv-card { height: 100%; background: #fff; border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.hv-card { color: inherit; display: block; }
.hv-card:hover { transform: translateY(-4px); box-shadow: var(--hv-shadow-lg); border-color: var(--hv-blue-100); }
.hv-card h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.hv-card p { color: var(--hv-text-muted); margin-bottom: 0; }
.icon-box { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--hv-primary-soft); color: var(--hv-primary); font-size: 1.5rem; margin-bottom: 20px; }
.hv-card .card-link { display: inline-flex; align-items: center; gap: .375rem; margin-top: 1rem; font-weight: 600; color: var(--hv-primary); }
.hv-card .card-link i { transition: transform .2s; }
.hv-card:hover .card-link i { transform: translateX(4px); }

/* Feature list */
.feature { display: flex; gap: 16px; }
.feature .icon-box { flex: none; margin-bottom: 0; }
.feature h3 { font-size: 1.0625rem; margin-bottom: .25rem; }
.feature p { color: var(--hv-text-muted); margin: 0; }

/* Logo wall */
.logo-wall { --cols: 2; --gap: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.logo-wall .logo-item { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (min-width: 576px) { .logo-wall { --cols: 3; --gap: 16px; } }
@media (min-width: 992px) { .logo-wall { --cols: 5; } }
.logo-wall .logo-item { display: grid; place-items: center; height: 88px; padding: 16px; background: #fff; border: 1px solid var(--hv-border); border-radius: var(--hv-radius); }
.logo-wall img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logo-wall .logo-item:hover img { filter: none; opacity: 1; }

/* Tech highlight */
.tech-panel { background: linear-gradient(135deg, var(--hv-blue-950), #10398c); color: #fff; border-radius: 24px; padding: 56px; position: relative; overflow: hidden; }
.tech-panel::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(90, 145, 251, .45), transparent 70%); }
.tech-panel h2, .tech-panel h3 { color: #fff; }
.tech-panel p { color: rgba(255, 255, 255, .75); }
.tech-item { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--hv-radius-lg); padding: 24px; height: 100%; position: relative; z-index: 1; }
.tech-item .icon-box { background: rgba(255, 255, 255, .1); color: #8fb5fd; }
a.tech-item { display: block; color: #fff; transition: background .2s, border-color .2s, transform .2s; }
a.tech-item:hover { background: rgba(255, 255, 255, .1); border-color: rgba(143, 181, 253, .5); transform: translateY(-3px); color: #fff; }
@media (max-width: 767.98px) { .tech-panel { padding: 32px 20px; border-radius: 16px; } }

/* Press */
.press-card { display: flex; flex-direction: column; }
.press-card .press-logo { height: 28px; width: auto; align-self: flex-start; margin-bottom: 20px; }
.press-card h3 { font-size: 1.0625rem; line-height: 1.4; }
.press-card p { flex: 1; font-size: .9375rem; }
.press-card .meta { font-size: .875rem; color: var(--hv-text-subtle); margin-top: 1rem; }

/* CTA */
.cta { background: var(--hv-primary); color: #fff; border-radius: 24px; padding: 56px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .15) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(90deg, transparent, #000); }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); }
.cta .btn-light { color: var(--hv-primary); }
.cta-actions { display: grid; gap: 10px; }
@media (min-width: 992px) { .cta-actions { width: max-content; margin-left: auto; } }
@media (max-width: 767.98px) { .cta { padding: 36px 24px; border-radius: 16px; } }

/* Leaders */
.leader { text-align: center; }
.leader-photo { aspect-ratio: 37 / 40; border-radius: var(--hv-radius-lg); overflow: hidden; background: linear-gradient(180deg, var(--hv-primary-soft), #fff); margin-bottom: 20px; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.leader:hover .leader-photo img { transform: scale(1.04); }
.leader h3 { font-size: 1.125rem; margin-bottom: .125rem; }
.leader .role { color: var(--hv-primary); font-weight: 600; font-size: .9375rem; margin-bottom: .5rem; }
.leader p { color: var(--hv-text-muted); font-size: .9375rem; }

/* Timeline */
.timeline { position: relative; max-width: 920px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--hv-blue-100), var(--hv-primary)); transform: translateX(-50%); }
.timeline > li { position: relative; width: 50%; padding: 0 48px 40px 0; }
.timeline > li:nth-child(even) { margin-left: 50%; padding: 0 0 40px 48px; }
.timeline > li::before { content: ""; position: absolute; top: 10px; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--hv-primary); }
.timeline > li:nth-child(even)::before { left: -8px; right: auto; }
.timeline .tl-card { background: #fff; border: 1px solid var(--hv-border); border-radius: var(--hv-radius-lg); padding: 20px 24px; box-shadow: var(--hv-shadow); }
.timeline .tl-year { font-size: 1.5rem; font-weight: 800; color: var(--hv-primary); line-height: 1; margin-bottom: .5rem; }
.timeline .tl-card p { margin: 0; color: var(--hv-text-muted); }
.timeline .tl-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline .tl-card ul li { position: relative; padding-left: 18px; color: var(--hv-text-muted); }
.timeline .tl-card ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--hv-primary); }
@media (max-width: 767.98px) {
  .timeline::before { left: 8px; }
  .timeline > li, .timeline > li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 28px 40px; }
  .timeline > li::before, .timeline > li:nth-child(even)::before { left: 0; right: auto; }
}

/* Core values */
.value-card { position: relative; border-radius: var(--hv-radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--hv-border); height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.value-card:hover { box-shadow: var(--hv-shadow-lg); transform: translateY(-4px); }
.value-card img { aspect-ratio: 37 / 25; object-fit: cover; width: 100%; }
.value-card .body { padding: 24px; flex: 1; }
.value-card .tag { display: inline-block; font-size: .8125rem; font-weight: 600; color: var(--hv-primary); background: var(--hv-primary-soft); padding: .25rem .625rem; border-radius: 6px; margin-bottom: .75rem; }
.value-card h3 { font-size: 1.25rem; }
.value-card p { color: var(--hv-text-muted); font-size: .9375rem; margin: 0; }

.principle { display: flex; gap: 16px; padding: 24px; border-radius: var(--hv-radius-lg); background: #fff; border: 1px solid var(--hv-border); height: 100%; }
.principle .num { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--hv-primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.principle h3 { font-size: 1.0625rem; margin-bottom: .25rem; }
.principle p { color: var(--hv-text-muted); font-size: .9375rem; margin: 0; }

/* Gallery */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.filter-bar button { border: 1px solid var(--hv-border); background: #fff; color: var(--hv-text-muted); font-weight: 500; padding: .5rem 1rem; border-radius: 999px; transition: all .15s; }
.filter-bar button:hover { border-color: var(--hv-primary); color: var(--hv-primary); }
.filter-bar button.active { background: var(--hv-primary); border-color: var(--hv-primary); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery-grid a { display: block; border-radius: var(--hv-radius); overflow: hidden; aspect-ratio: 3 / 2; position: relative; }
.gallery-grid a.is-hidden { display: none; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a::after { content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 24px 12px 10px; font-size: .8125rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); opacity: 0; transition: opacity .2s; }
.gallery-grid a:hover::after { opacity: 1; }

.lightbox .modal-content { background: transparent; border: 0; }
.lightbox .modal-body { padding: 0; position: relative; text-align: center; }
.lightbox img { max-height: 85vh; border-radius: var(--hv-radius); }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--hv-text); font-size: 1.25rem; display: grid; place-items: center; }
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }
.lightbox .lb-caption { color: #fff; margin-top: 12px; font-size: .9375rem; }
.lightbox .btn-close { position: absolute; top: -40px; right: 0; filter: invert(1); opacity: 1; }
.modal-backdrop.show { opacity: .9; }

/* Video (lite embed) */
.video-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--hv-radius-lg); overflow: hidden; background: #000 center / cover no-repeat; border: 0; padding: 0; cursor: pointer; }
.video-lite::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .65)); transition: background .2s; }
.video-lite .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--hv-primary); color: #fff; display: grid; place-items: center; font-size: 1.75rem; box-shadow: 0 8px 24px rgba(28, 102, 250, .5); transition: transform .2s; }
.video-lite:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-lite .title { position: absolute; left: 16px; bottom: 12px; color: #fff; font-weight: 600; text-align: left; }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Activity cards */
.activity { display: flex; flex-direction: column; height: 100%; border-radius: var(--hv-radius-lg); overflow: hidden; border: 1px solid var(--hv-border); background: #fff; }
.activity img { aspect-ratio: 3 / 2; object-fit: cover; }
.activity .body { padding: 24px; }
.activity .tag { font-size: .8125rem; font-weight: 600; color: var(--hv-primary); text-transform: uppercase; letter-spacing: .06em; }
.activity h3 { font-size: 1.125rem; margin: .375rem 0 .5rem; }
.activity p { color: var(--hv-text-muted); font-size: .9375rem; margin: 0; }

/* Contact */
.contact-card { padding: 32px; }
.contact-card .icon-box { width: 56px; height: 56px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px dashed var(--hv-border); }
.contact-line:first-of-type { border-top: 0; }
.contact-line i { color: var(--hv-primary); font-size: 1.125rem; margin-top: 2px; }
.contact-line a { color: var(--hv-text); font-weight: 600; }
.contact-line a:hover { color: var(--hv-primary); }
.quick-contact { display: grid; gap: 10px; }
.quick-contact a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--hv-radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: background .2s, border-color .2s; }
.quick-contact a:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.quick-contact a > i:first-child { font-size: 1.375rem; color: #8fb5fd; }
.quick-contact strong { display: block; font-size: 1.0625rem; line-height: 1.3; }
.quick-contact small { color: rgba(255, 255, 255, .65); }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--hv-radius-lg); background: var(--hv-bg-subtle); }

/* Footer */
.site-footer { background: var(--hv-blue-950); color: rgba(255, 255, 255, .7); padding: 72px 0 0; font-size: .9375rem; }
.site-footer h4 { color: #fff; font-size: .9375rem; font-weight: 600; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .625rem; }
.site-footer .footer-logo { height: 40px; width: auto; margin-bottom: 1rem; }
.site-footer .social a { width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; margin-right: 8px; transition: background .2s; }
.site-footer .social a:hover { background: var(--hv-primary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding: 20px 0; font-size: .875rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; } }

@media (max-width: 991.98px) {
  .section { padding: 72px 0; }
  .hero-home { padding: 64px 0 104px; }
  .hero-media { margin-top: 48px; }
  .hero-media .float-card { left: 12px; bottom: -20px; }
  .site-header .navbar-collapse { padding: 12px 0; }
}
