/* ==========================================================================
   Đại Thành Soft – Portal styles
   Brand colours come from the logo: teal #138a96 → green #8dc63f
   ========================================================================== */
:root {
    --brand: #138a96;
    --brand-dark: #0d6670;
    --brand-2: #8dc63f;
    --gradient: linear-gradient(135deg, #138a96 0%, #2fa58c 50%, #8dc63f 100%);
    --dark: #08202a;
    --dark-2: #0d2c38;
    --ink: #17303a;
    --muted: #5d7079;
    --line: #e3ecee;
    --bg-alt: #f2f8f8;
    --radius: 18px;
    --shadow-sm: 0 4px 14px rgba(8, 32, 42, .06);
    --shadow: 0 18px 40px rgba(8, 32, 42, .10);
    --header-h: 80px;
    --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font);
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
/* Clip sideways overflow (AOS slide-ins, decorative shapes) without overflow-x on <body>:
   that would break the sticky header. "clip" does not create a scroll container. */
main, .site-footer { overflow-x: clip; }
:lang(zh) body, body:lang(zh) { letter-spacing: .02em; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }
h1, h2, h3, h4, h5 { font-weight: 700; color: var(--ink); }
::selection { background: var(--brand); color: #fff; }

.skip-link { position: absolute; z-index: 2000; top: 8px; left: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; }
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-muted-light { color: rgba(255, 255, 255, .62); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .65rem 1.4rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-gradient {
    color: #fff; border: 0;
    background: var(--gradient); background-size: 200% 200%;
    box-shadow: 0 10px 24px rgba(19, 138, 150, .28);
    transition: background-position .5s, transform .25s, box-shadow .25s;
}
.btn-gradient:hover, .btn-gradient:focus-visible { color: #fff; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(19, 138, 150, .38); }
.btn-outline-light { border-width: 2px; }
.btn-outline-light:hover { color: var(--dark); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
/* The frosted background lives on a pseudo-element: backdrop-filter on the header itself would make it
   the containing block of the fixed mobile menu (offcanvas), squeezing the menu into the header. */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    transition: opacity .3s;
}
.site-header .navbar { min-height: var(--header-h); padding: 0; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(8, 32, 42, .08); border-color: var(--line); }
.navbar-brand img { height: 50px; width: auto; transition: height .3s; }
.site-header.is-scrolled .navbar-brand img { height: 44px; }

.navbar-nav .nav-link {
    position: relative; font-weight: 600; color: var(--ink);
    padding: .6rem 1rem !important;
}
.navbar-nav .nav-link::after {
    content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 2px;
    background: var(--gradient); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--brand); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }

/* Home: transparent header over the dark hero */
body.is-home .site-header.is-transparent {
    position: fixed; left: 0; right: 0;
}
body.is-home .site-header.is-transparent:not(.is-scrolled)::before { opacity: 0; }
body.is-home .site-header.is-transparent:not(.is-scrolled) .navbar-brand img { filter: brightness(0) invert(1); }
@media (min-width: 992px) {
    body.is-home .site-header.is-transparent:not(.is-scrolled) .nav-link { color: rgba(255, 255, 255, .85); }
    body.is-home .site-header.is-transparent:not(.is-scrolled) .nav-link:hover,
    body.is-home .site-header.is-transparent:not(.is-scrolled) .nav-link.active { color: #fff; }
}
body.is-home .site-header.is-transparent:not(.is-scrolled) .btn-lang { color: #fff; border-color: rgba(255, 255, 255, .35); }
body.is-home .site-header.is-transparent:not(.is-scrolled) .toggler-bar { background: #fff; }

.btn-lang {
    border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem;
    font-weight: 600; font-size: .85rem; color: var(--ink); gap: .45rem;
}
.btn-lang img, .lang-switch .dropdown-item img { border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.lang-switch .dropdown-menu { border: 0; border-radius: 14px; box-shadow: var(--shadow); padding: .5rem; min-width: 170px; }
.lang-switch .dropdown-item { border-radius: 10px; display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; font-weight: 500; }
.lang-switch .dropdown-item.active, .lang-switch .dropdown-item:active { background: var(--gradient); color: #fff; }

.navbar-toggler { border: 0; padding: .5rem; display: inline-flex; flex-direction: column; gap: 5px; box-shadow: none !important; }
.toggler-bar { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: background .3s; }
@media (min-width: 992px) { .navbar-toggler { display: none; } }

@media (max-width: 991.98px) {
    .offcanvas-lg { max-width: 82vw; }
    .offcanvas-lg .navbar-nav .nav-link { font-size: 1.05rem; padding: .85rem .5rem !important; border-bottom: 1px solid var(--line); }
    .offcanvas-lg .navbar-nav .nav-link::after { display: none; }
}

/* ---------- Shared decorative layers ---------- */
.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    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: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: orbFloat 14s ease-in-out infinite alternate; }
.hero-orb.orb-1 { width: 420px; height: 420px; background: #138a96; top: -120px; left: -80px; }
.hero-orb.orb-2 { width: 380px; height: 380px; background: #8dc63f; bottom: -140px; right: -60px; opacity: .35; animation-delay: -6s; }
@keyframes orbFloat { to { transform: translate(60px, 40px) scale(1.12); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.hero-static { min-height: min(100vh, 860px); display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-content { position: relative; z-index: 2; }
.hero-content > .row { flex: 1 1 auto; min-width: 0; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #d9f2e4;
    margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 rgba(141, 198, 63, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(141, 198, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(141, 198, 63, 0); } }
.hero-title { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.7rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.2rem; }
.hero-desc { font-size: 1.12rem; line-height: 1.75; color: rgba(255, 255, 255, .75); max-width: 620px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.code-window {
    background: rgba(13, 44, 56, .78); border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden;
    backdrop-filter: blur(8px); animation: floatY 6s ease-in-out infinite;
}
.code-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.code-head span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-head span:nth-child(2) { background: #febc2e; }
.code-head span:nth-child(3) { background: #28c840; }
.code-head em { margin-left: auto; font-style: normal; font-size: .78rem; color: rgba(255, 255, 255, .5); }
.code-body { margin: 0; padding: 20px 22px; font-family: "Cascadia Code", Consolas, monospace; font-size: .9rem; line-height: 1.75; color: #d4e6ea; white-space: pre; overflow: hidden; }
.c-k { color: #6fd3dc; } .c-t { color: #b6e27a; } .c-s { color: #f6c177; }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--brand-2); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes floatY { 50% { transform: translateY(-12px); } }

.hero-chips { position: relative; height: 0; }
.chip {
    position: absolute; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
    background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem;
    padding: .55rem 1rem; border-radius: 999px; box-shadow: var(--shadow);
    animation: floatY 5s ease-in-out infinite;
}
.chip i { color: var(--brand); }
.chip-1 { top: -320px; right: -20px; animation-delay: -1s; }
.chip-2 { top: -60px; left: -40px; animation-delay: -2.5s; }
.chip-3 { top: -10px; right: 30px; animation-delay: -4s; }

.scroll-down { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px; z-index: 2; }
.scroll-down span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* Banner slider variant */
.hero-slider .carousel-item { min-height: min(100vh, 860px); position: relative; }
.hero-slide-static { position: relative; overflow: hidden; }
.hero-slide-static .hero-content { min-height: min(100vh, 860px); display: flex; align-items: center; padding-top: var(--header-h); padding-bottom: 60px; }
.hero-slider .hero-particles { z-index: 1; }
.hero-slider .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hero-slider .carousel-item.active .hero-bg { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 32, 42, .94) 0%, rgba(8, 32, 42, .78) 45%, rgba(19, 138, 150, .35) 100%); }
.hero-slider .hero-content { min-height: min(100vh, 860px); display: flex; align-items: center; padding-top: var(--header-h); padding-bottom: 60px; }
.hero-slider .carousel-item.active .hero-badge,
.hero-slider .carousel-item.active .hero-title,
.hero-slider .carousel-item.active .hero-desc,
.hero-slider .carousel-item.active .hero-actions { animation: slideUp .9s both; }
.hero-slider .carousel-item.active .hero-title { animation-delay: .15s; }
.hero-slider .carousel-item.active .hero-desc { animation-delay: .3s; }
.hero-slider .carousel-item.active .hero-actions { animation-delay: .45s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero-slider .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 2px; border: 0; }
.hero-slider .carousel-indicators .active { background: var(--brand-2); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; padding: 90px 0 80px; }
.page-hero .hero-orb.orb-1 { width: 320px; height: 320px; }
.page-hero .hero-orb.orb-2 { width: 260px; height: 260px; }
.page-hero-title { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; max-width: 900px; margin-bottom: .6rem; }
.page-hero-sub { color: rgba(255, 255, 255, .72); font-size: 1.08rem; max-width: 720px; margin: 0; }
.page-hero .breadcrumb { margin-bottom: 1rem; font-size: .9rem; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .7); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: var(--brand-2); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .4); }

/* ---------- Sections ---------- */
.section-process {
   margin-bottom:100px;
}
.section {
    position: relative;
    padding: 100px 0;
}
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; overflow: hidden; }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-head { margin-bottom: 3.2rem; }
.section-head.text-center { max-width: 720px; margin-left: auto; margin-right: auto; }
.section-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand); margin-bottom: .8rem;
}
.section-tag::before { content: ""; width: 26px; height: 2px; background: var(--gradient); border-radius: 2px; }
.section-dark .section-tag { color: var(--brand-2); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.25; margin-bottom: 1rem; }
.section-desc, .lead-text { color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--brand); }
.link-arrow i { transition: transform .25s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Counters ---------- */
.section-counters { position: relative; z-index: 3; margin-top: -60px; }
.counter-wrap {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.counter-item { padding: 2rem 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.counter-item:last-child { border-right: 0; }
.counter-value { font-size: 2.4rem; font-weight: 800; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.counter-label { margin-top: .5rem; color: var(--muted); font-weight: 500; }
.page-hero + .section + .section-counters, .section + .section-counters { margin-top: 0; padding-bottom: 40px; }

/* ---------- Service cards ---------- */
.service-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    padding: 2.2rem 2rem; border-radius: var(--radius); background: #fff;
    border: 1px solid var(--line); color: var(--ink); overflow: hidden; isolation: isolate;
    transition: transform .35s, box-shadow .35s, border-color .35s, color .35s;
}
.service-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--gradient); opacity: 0; transition: opacity .35s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; color: #fff; }
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-title, .service-card:hover .service-desc, .service-card:hover .link-arrow { color: #fff; }
.service-icon {
    width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
    font-size: 1.6rem; color: #fff; background: var(--gradient); margin-bottom: 1.4rem;
    box-shadow: 0 10px 22px rgba(19, 138, 150, .25); transition: background .35s, transform .35s;
}
.service-card:hover .service-icon { background: rgba(255, 255, 255, .2); transform: rotate(-6deg) scale(1.05); box-shadow: none; }
.service-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .7rem; transition: color .35s; }
.service-desc { color: var(--muted); line-height: 1.7; margin-bottom: 1.3rem; transition: color .35s; }
.service-card .link-arrow { margin-top: auto; }
.service-num { position: absolute; right: 1.4rem; top: 1rem; font-size: 3.2rem; font-weight: 800; color: rgba(19, 138, 150, .07); transition: color .35s; }
.service-card:hover .service-num { color: rgba(255, 255, 255, .15); }

.service-card-img { padding: 0 0 2rem; }
.service-card-img .service-media { height: 200px; overflow: hidden; }
.service-card-img .service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card-img:hover .service-media img { transform: scale(1.08); }
.service-card-img .service-icon { margin: -32px 0 1.2rem 2rem; position: relative; }
.service-card-img .service-title, .service-card-img .service-desc, .service-card-img .link-arrow { padding: 0 2rem; }

/* ---------- About ---------- */
.about-visual { position: relative; padding: 0 60px 60px 0; }
.about-img-main { width: 100%; border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.about-img-sub {
    position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 20px; border: 8px solid #fff; box-shadow: var(--shadow);
    animation: floatY 7s ease-in-out infinite;
}
.section-alt .about-img-sub { border-color: var(--bg-alt); }
.about-badge {
    position: absolute; left: -16px; bottom: 90px; display: flex; align-items: center; gap: .7rem;
    background: var(--gradient); color: #fff; padding: .9rem 1.3rem; border-radius: 16px;
    font-weight: 700; box-shadow: var(--shadow);
}
.about-badge i { font-size: 1.5rem; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; padding: .45rem 0; font-weight: 500; }
.check-list i { color: var(--brand-2); font-size: 1.15rem; margin-top: .15rem; }

.value-card { height: 100%; padding: 2.2rem 2rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card h3 { font-size: 1.25rem; }
.value-card p { color: var(--muted); line-height: 1.75; margin: 0; }

/* ---------- Process ---------- */
.process-line { display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: 1.5rem; position: relative; }
.process-line::before {
    content: ""; position: absolute; top: 40px; left: 10%; right: 10%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(141, 198, 63, .6), transparent);
}
.process-step { text-align: center; position: relative; }
.process-icon {
    position: relative; width: 80px; height: 80px; margin: 0 auto 1.3rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.6rem; color: #fff;
    background: var(--dark-2); border: 2px solid rgba(141, 198, 63, .5);
    transition: background .3s, transform .3s;
}
.process-step:hover .process-icon { background: var(--gradient); transform: translateY(-6px); }
.process-icon span {
    position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--brand-2); color: var(--dark); font-size: .8rem; font-weight: 800; display: grid; place-items: center;
}
.process-step h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.process-step p { color: rgba(255, 255, 255, .65); font-size: .93rem; line-height: 1.65; margin: 0; }
@media (max-width: 991.98px) {
    .process-line { grid-template-columns: repeat(2, 1fr); }
    .process-line::before { display: none; }
}
@media (max-width: 575.98px) { .process-line { grid-template-columns: 1fr; } }

/* ---------- Technology ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tech-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
    aspect-ratio: 1; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line);
    font-weight: 600; transition: transform .3s, background .3s, color .3s, box-shadow .3s;
}
.tech-item i { font-size: 2.2rem; color: var(--brand); transition: color .3s; }
.tech-item img { height: 40px; max-width: 70%; object-fit: contain; transition: filter .3s; }
.tech-item:hover img { filter: brightness(0) invert(1); }
.tech-item:hover { transform: translateY(-6px); background: var(--gradient); color: #fff; box-shadow: var(--shadow); }
.tech-item:hover i { color: #fff; }
@media (max-width: 575.98px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } .tech-item { aspect-ratio: auto; padding: 1.4rem 0; } }

/* ---------- Customers ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1.5rem; width: max-content; animation: marquee 40s linear infinite; padding: .5rem 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - .75rem)); } }
.customer-logo {
    flex: 0 0 auto; width: 200px; height: 100px; display: grid; place-items: center; padding: 1rem 1.4rem;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); text-align: center;
}
.customer-logo img { max-height: 64px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.customer-logo:hover img { filter: none; opacity: 1; }
.customer-logo span { font-weight: 700; color: var(--brand-dark); line-height: 1.35; }

.customer-card {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
    padding: 2rem 1.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center;
    transition: transform .3s, box-shadow .3s;
}
.customer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.customer-card img { height: 80px; object-fit: contain; }
.customer-card h2 { font-size: 1rem; margin: 0; }
.customer-initial { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff; background: var(--gradient); }

/* ---------- Posts ---------- */
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-thumb img { transform: scale(1.07); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; display: flex; gap: .4rem; align-items: center; }
.post-title { font-size: 1.12rem; line-height: 1.45; margin-bottom: .6rem; }
.post-title a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-title a:hover { color: var(--brand); }
.post-excerpt { color: var(--muted); font-size: .95rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; }

.search-bar { display: flex; align-items: center; gap: .6rem; max-width: 620px; margin: 0 auto; padding: .4rem .4rem .4rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.search-bar i { color: var(--muted); }
.search-bar input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; padding: .5rem 0; }
.empty-state { text-align: center; padding: 4rem 0; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--line); margin-bottom: 1rem; }

.pagination { gap: .4rem; }
.pagination .page-link { border: 1px solid var(--line); border-radius: 12px !important; color: var(--ink); min-width: 44px; height: 44px; display: grid; place-items: center; font-weight: 600; }
.pagination .page-item.active .page-link { background: var(--gradient); border-color: transparent; color: #fff; }
.pagination .page-link:hover { color: var(--brand); background: var(--bg-alt); }

/* ---------- Article detail ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.article-meta i { color: var(--brand); margin-right: .3rem; }
.article-summary { font-size: 1.12rem; font-weight: 500; line-height: 1.8; padding: 1.2rem 1.4rem; border-left: 4px solid var(--brand-2); background: var(--bg-alt); border-radius: 0 14px 14px 0; }
.article-content { font-size: 1.05rem; line-height: 1.85; color: #263e48; overflow-wrap: anywhere; }
.article-content img { height: auto !important; border-radius: 12px; margin: 1rem 0; }
.article-content h2, .article-content h3 { margin: 2rem 0 1rem; }
.article-content table { width: 100%; margin: 1rem 0; border-collapse: collapse; display: block; overflow-x: auto; }
.article-content td, .article-content th { border: 1px solid var(--line); padding: .6rem .8rem; }
.article-content blockquote { border-left: 4px solid var(--brand); padding-left: 1rem; color: var(--muted); font-style: italic; }
.article-content iframe { max-width: 100%; }
.article-share { display: flex; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 600; }
.article-share a, .article-share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all .25s; }
.article-share a:hover, .article-share button:hover { background: var(--gradient); color: #fff; border-color: transparent; }

.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.5rem; }
.sidebar-box { padding: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sidebar-title { font-size: 1.1rem; padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 2px solid var(--line); position: relative; }
.sidebar-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 50px; height: 2px; background: var(--gradient); }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.related-list a { display: flex; gap: .9rem; align-items: center; color: var(--ink); font-weight: 600; font-size: .93rem; line-height: 1.45; }
.related-list a:hover { color: var(--brand); }
.related-list img { width: 78px; height: 58px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--bg-alt); }
.related-list span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-cta { background: var(--gradient); color: #fff; border: 0; text-align: center; }
.sidebar-cta i { font-size: 2.4rem; margin-bottom: .8rem; }
.sidebar-cta h3 { color: #fff; font-size: 1.15rem; }
.sidebar-cta p { color: rgba(255, 255, 255, .85); font-size: .93rem; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--bg-alt); transition: transform .3s, box-shadow .3s; }
.contact-list li:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.contact-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--gradient); }
.contact-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.contact-value { font-weight: 600; overflow-wrap: anywhere; }
.contact-value a { color: var(--ink); }
.contact-value a:hover { color: var(--brand); }
.form-card { padding: 2.5rem; border-radius: 24px; background: #fff; box-shadow: var(--shadow); border-top: 4px solid transparent; border-image: var(--gradient) 1; border-image-slice: 1 0 0 0; }
.form-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.contact-form .form-label { font-weight: 600; font-size: .92rem; }
.contact-form .form-control { border-radius: 12px; padding: .8rem 1rem; border-color: var(--line); background: #fbfdfd; }
.contact-form .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem rgba(19, 138, 150, .15); background: #fff; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.2); }
@media (max-width: 575.98px) { .form-card { padding: 1.6rem; } }

/* ---------- CTA ---------- */
.section-cta { padding: 0 0 100px; }
/* After a coloured section (dark process band, grey band) there is no white padding above to lean on */
.section-dark + .section-cta, .section-alt + .section-cta, .section-counters + .section-cta { padding-top: 100px; }
.cta-box { position: relative; overflow: hidden; padding: 3.5rem; border-radius: 28px; background: var(--gradient); color: #fff; box-shadow: 0 30px 60px rgba(19, 138, 150, .25); }
.cta-shape { position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .1); }
.cta-title { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
.cta-desc { color: rgba(255, 255, 255, .88); font-size: 1.05rem; }
.btn-cta { color: var(--brand-dark); font-weight: 700; }
.btn-cta:hover { transform: translateY(-2px); }
@media (max-width: 575.98px) { .cta-box { padding: 2.2rem 1.6rem; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--dark); color: rgba(255, 255, 255, .75); padding: 80px 0 0; }
.footer-glow { position: absolute; width: 600px; height: 600px; left: 50%; top: -400px; transform: translateX(-50%); background: radial-gradient(circle, rgba(19, 138, 150, .35), transparent 65%); pointer-events: none; }
.footer-logo img { filter: brightness(0) invert(1); height: 56px; width: auto; }
.footer-company { color: #fff; font-weight: 700; font-size: .95rem; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 1.3rem; position: relative; padding-bottom: .7rem; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--gradient); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .65rem; }
.footer-links a { color: rgba(255, 255, 255, .7); transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--brand-2); padding-left: 4px; }
.footer-contact li { display: flex; gap: .8rem; margin-bottom: .9rem; line-height: 1.6; font-size: .93rem; }
.footer-contact i { color: var(--brand-2); margin-top: .3rem; width: 16px; text-align: center; }
.footer-contact a { color: rgba(255, 255, 255, .8); }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { min-width: 40px; height: 40px; padding: 0 .6rem; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .08); transition: background .25s; font-weight: 700; font-size: .8rem; }
.footer-social a:hover { background: var(--gradient); }
.footer-bottom { margin-top: 60px; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; color: rgba(255, 255, 255, .55); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; }
.visit-stats { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0; padding: 0; }
.visit-stats li { display: inline-flex; align-items: center; gap: .4rem; }
.visit-stats i { color: var(--brand-2); }
.visit-stats b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px) { .footer-bottom { justify-content: center; text-align: center; } .visit-stats { justify-content: center; } }

/* ---------- Floating buttons ---------- */
.float-contact { position: fixed; left: 20px; bottom: 24px; z-index: 1020; display: grid; gap: .8rem; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .75rem; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); position: relative; }
.float-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; animation: ring 2s infinite; }
.float-zalo { background: #0068ff; }
.float-phone { background: var(--brand-2); font-size: 1.2rem; }
.float-btn:hover { color: #fff; transform: scale(1.08); }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.back-to-top {
    position: fixed; right: 20px; bottom: 24px; z-index: 1020; width: 48px; height: 48px; border: 0; border-radius: 14px;
    color: #fff; background: var(--gradient); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Error page ---------- */
.error-page { position: relative; overflow: hidden; background: var(--dark); color: #fff; min-height: 70vh; display: flex; align-items: center; padding: 100px 0; }
.error-code { font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-title { color: #fff; margin: 1rem 0; }
.error-desc { color: rgba(255, 255, 255, .7); max-width: 520px; margin: 0 auto 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    /* g-5 (3rem) is wider than the container padding on phones and pushes rows past the screen edge */
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
    :root { --header-h: 70px; }
    .section { padding: 72px 0; }
    .navbar-brand img { height: 42px; }
    .about-visual { padding: 0 30px 30px 0; }
    .about-badge { left: 8px; bottom: 50px; }
    .section-cta { padding-bottom: 72px; }
    .section-dark + .section-cta, .section-alt + .section-cta, .section-counters + .section-cta { padding-top: 72px; }
}
@media (max-width: 575.98px) {
    .hero-static { min-height: auto; padding-top: calc(var(--header-h) + 50px); }
    .hero-slider .carousel-item, .hero-slider .hero-content { min-height: min(88vh, 720px); }
    .counter-item { border-right: 0; border-bottom: 1px solid var(--line); }
    .scroll-down { display: none; }
    .float-contact { left: 14px; bottom: 16px; }
    .back-to-top { right: 14px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .marquee-track [aria-hidden="true"] { display: none; }
}
