/* Mẫu B – chỉ tải khi SiteSetting Theme.Layout = "b". Nạp sau site.css: dùng lại biến màu và kiểu
   nội dung trang con của Mẫu A, thay header, footer, các khối trang chủ (lớp tiền tố b-).
   Điểm ngắt: ≤1200 (máy tính bảng ngang), ≤1024 (máy tính bảng), ≤767 (điện thoại). */

/* ---------- Font Maven Pro (tự host, SIL OFL – xem lib/fonts/maven-pro/LICENSE) ---------- */
@font-face { font-family: 'Maven Pro'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../lib/fonts/maven-pro/maven-pro-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Maven Pro'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../lib/fonts/maven-pro/maven-pro-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Maven Pro'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../lib/fonts/maven-pro/maven-pro-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

.theme-b {
    --b-primary: var(--navy);
    --b-primary-deep: var(--navy-deep);
    --b-accent: var(--accent);
    --b-gold: #FFB71C;
    --b-title: #2F3A44;
    --b-container: 1300px;
    --b-header-h: 84px;
    --b-heading-font: 'Maven Pro', 'Be Vietnam Pro', system-ui, sans-serif;

    color: var(--text-body);
    overflow-x: clip;
}
@media (min-width: 1900px) { .theme-b { --b-container: 1560px; } }
@media (max-width: 767px) { .theme-b { --b-header-h: 64px; } }

.b-boxed {
    width: 100%;
    max-width: var(--b-container);
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
}
@media (max-width: 767px) { .b-boxed { padding-inline: 16px; } }

/* Trang con: header cố định nên chừa chỗ phía trên; trang chủ để ảnh lớn nằm dưới header. */
.theme-b:not(.is-home) main { padding-top: var(--b-header-h); }
.theme-b [id] { scroll-margin-top: var(--b-header-h); }

.b-eyebrow {
    margin: 0 0 12px;
    color: var(--b-accent);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.b-eyebrow-light { color: var(--b-gold); }

.b-section-title {
    margin: 0;
    font-family: var(--b-heading-font);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--b-title);
}
.b-section-title-light { color: #FFFFFF; }
.b-section-lead {
    margin: 12px 0 0;
    max-width: 720px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
}
.b-section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 48px;
}
@media (max-width: 1024px) { .b-section-title { font-size: 34px; } }
@media (max-width: 767px) { .b-section-title { font-size: 28px; } .b-section-head { margin-bottom: 32px; } }

.b-arrow-icon { width: 36px; height: 36px; flex: none; }

.b-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-top: 20px;
    font-size: 17px;
    font-weight: 600;
    color: var(--b-primary);
    text-decoration: none;
}
.b-more-link .b-arrow-icon { color: var(--b-accent); transition: transform 0.25s; }
.b-more-link:hover { color: var(--b-accent); }
.b-more-link:hover .b-arrow-icon { transform: translate(3px, -3px); }
.b-more-link-light { color: #FFFFFF; }
.b-more-link-light .b-arrow-icon { color: var(--b-gold); }
.b-more-link-light:hover { color: var(--b-gold); }

.b-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 52px;
    padding: 0 22px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.b-btn .b-arrow-icon { width: 28px; height: 28px; margin-right: -6px; }
.b-btn-accent { background: var(--b-accent); color: #FFFFFF; }
.b-btn-accent:hover { background: #FFFFFF; color: var(--b-primary); }
.b-btn-ghost { border: 1px solid rgba(255, 255, 255, 0.7); color: #FFFFFF; }
.b-btn-ghost:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }

/* ---------- Header ---------- */
.b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}
.b-header-bar {
    display: flex;
    align-items: stretch;
    height: var(--b-header-h);
    background-image: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.55) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s, box-shadow 0.3s;
}
.b-header.is-scrolled .b-header-bar,
.theme-b:not(.is-home) .b-header-bar {
    background-color: rgba(255, 255, 255, 0.97);
    background-image: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.b-header-left,
.b-header-right {
    display: flex;
    align-items: center;
    width: 22%;
    flex: none;
}
.b-header-right {
    justify-content: flex-end;
    padding-right: 32px;
    box-sizing: border-box;
}
.b-header-center {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.b-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 40px;
    border: 0;
    background: transparent;
    color: var(--b-primary);
    font: 600 17px/1 var(--b-heading-font);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.b-menu-button:hover,
.b-menu-button:focus-visible { background-color: var(--b-primary); color: #FFFFFF; }

.b-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: var(--b-primary);
    text-decoration: none;
}
.b-brand:hover { color: var(--b-primary); }
.b-brand-logo { display: block; height: 56px; width: auto; }
.b-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: none;
    background: var(--b-accent);
    color: #FFFFFF;
    font: 800 20px/1 var(--b-heading-font);
    clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.b-brand-text { display: flex; flex-direction: column; min-width: 0; }
.b-brand-name {
    font: 800 22px/1.1 var(--b-heading-font);
    letter-spacing: 0.02em;
}
.b-brand-tagline {
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.b-hotline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding-left: 20px;
    border-left: 1px solid rgba(14, 42, 71, 0.12);
    color: var(--b-primary);
    font: 600 18px/1 var(--b-heading-font);
    text-decoration: none;
    white-space: nowrap;
}
.b-hotline svg { color: var(--b-accent); }
.b-hotline:hover { color: var(--b-accent); }

@media (max-width: 1200px) {
    .b-header-left, .b-header-right { width: auto; }
    .b-menu-button { padding: 0 24px; }
    .b-header-right { padding-right: 20px; }
}
@media (max-width: 1024px) {
    .b-hotline-text { display: none; }
    .b-hotline { padding-left: 0; border-left: 0; justify-content: center; width: 44px; }
    .b-brand-tagline { display: none; }
}
@media (max-width: 767px) {
    .b-menu-button { padding: 0 16px; font-size: 15px; }
    .b-menu-button span { display: none; }
    .b-brand-logo { height: 40px; }
    .b-brand-mark { width: 40px; height: 40px; font-size: 16px; }
    .b-brand-name { font-size: 15px; white-space: nowrap; }
    .b-brand { gap: 8px; }
    .b-header-right { padding-right: 10px; }
}

/* ---------- Menu trượt ---------- */
.b-off-canvas {
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}
.b-off-canvas.is-open { visibility: visible; opacity: 1; }
.b-off-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.b-off-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 480px;
    max-width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 31, 53, 0.94);
    background-image: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, 0.035) 46px 48px);
    transform: translateX(-100%);
    transition: transform 0.35s ease;
}
.b-off-canvas.is-open .b-off-panel { transform: none; }
.b-off-close {
    display: flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    min-height: 44px;
    margin: 32px 0 24px 32px;
    padding: 0;
    border: 0;
    background: none;
    color: #FFFFFF;
    font: 16px/1 'Be Vietnam Pro', system-ui, sans-serif;
    cursor: pointer;
}
.b-off-nav ul { margin: 0; padding: 0; list-style: none; }
.b-off-nav a {
    display: block;
    padding: 12px 40px;
    color: rgba(255, 255, 255, 0.72);
    font: 500 26px/1.5 var(--b-heading-font);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}
.b-off-nav a:hover,
.b-off-nav a:focus-visible { color: #FFFFFF; padding-left: 48px; }
.b-off-nav .b-off-nav-button { color: var(--b-gold); }
.b-off-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding: 32px 40px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.b-off-contact a { color: rgba(255, 255, 255, 0.8); font-size: 15px; line-height: 2; text-decoration: none; }
.b-off-contact a:hover { color: #FFFFFF; }
@media (max-width: 767px) { .b-off-nav a { font-size: 22px; padding: 10px 28px; } .b-off-close { margin-left: 20px; } }

/* ---------- Ảnh lớn đầu trang ---------- */
.b-hero {
    position: relative;
    height: min(100vh, 880px);
    min-height: 560px;
    overflow: hidden;
    background: var(--b-primary-deep);
}
.b-hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 1s ease;
}
.b-hero-slide.is-active { opacity: 1; }
.b-hero-slide img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 6s ease-out;
}
.b-hero-slide.is-active img { transform: none; }
.b-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 31, 53, 0.6) 0%, rgba(10, 31, 53, 0) 65%),
        linear-gradient(0deg, rgba(10, 31, 53, 0.92) 0%, rgba(10, 31, 53, 0.55) 40%, rgba(10, 31, 53, 0.1) 75%);
    pointer-events: none;
}
.b-hero-caption {
    position: absolute;
    right: max(24px, calc((100% - var(--b-container)) / 2 + 24px));
    bottom: 48px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    max-width: 420px;
    color: #FFFFFF;
    font: 500 22px/1.35 var(--b-heading-font);
    text-align: right;
}
.b-hero-caption-icon { display: flex; width: 40px; height: 40px; flex: none; background: #FFFFFF; color: var(--b-accent); }
.b-hero-caption-icon .b-arrow-icon { width: 40px; height: 40px; }

.b-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 120px;
    z-index: 2;
}
.b-hero-text { max-width: 760px; color: #FFFFFF; animation: b-fade-left 1.2s both; }
.b-hero-eyebrow {
    margin: 0 0 16px;
    color: var(--b-gold);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.b-hero-title {
    margin: 0;
    font: 700 52px/1.15 var(--b-heading-font);
    color: #FFFFFF;
}
.b-hero-subtitle { margin: 18px 0 0; max-width: 620px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.88); }
.b-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.b-hero-dots {
    position: absolute;
    left: max(24px, calc((100% - var(--b-container)) / 2 + 24px));
    bottom: 48px;
    z-index: 3;
    display: flex;
    gap: 4px;
}
.b-hero-dots button {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.b-hero-dots button::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    height: 3px;
    background: rgba(255, 255, 255, 0.45);
    transition: background-color 0.3s;
}
.b-hero-dots button.is-active::before { background: var(--b-gold); }

/* Nút chuyển ảnh: viên thuốc nằm ngang, chấm trắng chạy sang phải gợi ý "ảnh tiếp theo". */
.b-hero-next {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 48px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transform: translateX(-50%);
}
.b-hero-next span {
    position: relative;
    width: 46px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    box-sizing: border-box;
    transition: background-color 0.25s, border-color 0.25s;
}
.b-hero-next span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 9px;
    width: 8px;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
    background: #FFFFFF;
    animation: b-next-dot 1.8s infinite;
}
.b-hero-next:hover span,
.b-hero-next:focus-visible span { background: rgba(255, 255, 255, 0.18); border-color: #FFFFFF; }

/* Chỉ trượt, không làm mờ: tiêu đề h1 luôn hiện ngay (tốt cho LCP, kể cả khi trình duyệt tạm dừng hiệu ứng). */
@keyframes b-fade-left { from { transform: translate3d(-60px, 0, 0); } to { transform: none; } }
@keyframes b-next-dot { 0% { opacity: 1; transform: none; } 70% { opacity: 0; transform: translateX(16px); } 100% { opacity: 0; } }

@media (max-width: 1200px) { .b-hero-caption { display: none; } }
@media (max-width: 1024px) { .b-hero-title { font-size: 40px; } }
@media (max-width: 767px) {
    .b-hero { height: auto; min-height: 640px; }
    .b-hero-content { bottom: 96px; }
    .b-hero-title { font-size: 30px; }
    .b-hero-subtitle { font-size: 16px; }
    .b-hero-dots { bottom: 24px; }
    .b-hero-next { left: auto; right: 8px; bottom: 22px; transform: none; }
    .b-btn { width: 100%; justify-content: center; }
}

/* ---------- Dải số liệu nổi bật ---------- */
.b-slogan {
    position: relative;
    padding: 72px 0;
    background-color: var(--b-primary);
    background-image:
        repeating-linear-gradient(115deg, transparent 0 58px, rgba(255, 255, 255, 0.04) 58px 60px),
        linear-gradient(102deg, #33496B 8%, var(--b-primary-deep) 40%);
    color: #FFFFFF;
}
.b-slogan-inner { display: flex; flex-direction: column; gap: 48px; }
.b-slogan-copy { max-width: 760px; }
.b-slogan-copy h2 { margin: 0; font: 700 40px/1.2 var(--b-heading-font); color: #FFFFFF; }
.b-slogan-copy p { margin: 18px 0 0; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.85); }
.b-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}
.b-counter {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.b-counter-number {
    font: 700 56px/1.1 var(--b-heading-font);
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.b-counter-title { margin-top: 10px; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--b-gold); }
@media (max-width: 1200px) { .b-counter-number { font-size: 44px; } }
@media (max-width: 767px) {
    .b-slogan { padding: 56px 0; }
    .b-counters { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .b-counter { padding-left: 14px; }
    .b-counter-number { font-size: 30px; white-space: normal; }
    .b-counter-title { font-size: 14px; }
    .b-slogan-copy h2 { font-size: 28px; }
}

/* ---------- Giới thiệu ---------- */
.b-intro { padding: 96px 0 40px; }
.b-intro-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.b-intro-body {
    max-width: 920px;
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.8;
    text-align: left;
}
.b-intro-body p { margin: 0 0 14px; }
.b-field-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
}
.b-field {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 5 / 7;
    background: var(--b-primary);
}
.b-field::before,
.b-field::after {
    content: "";
    position: absolute;
    z-index: 1;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}
.b-field::before { top: 0; bottom: 0; left: 20px; width: 1px; }
.b-field::after { left: 0; right: 0; bottom: 90px; height: 1px; }
.b-field img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center bottom;
    transition: transform 0.6s ease-out;
}
.b-field:hover img { transform: scale(1.25); }
.b-field-box {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    min-height: 70px;
    padding: 14px 20px;
    box-sizing: border-box;
    background: var(--b-primary);
    color: #FFFFFF;
    transition: background-color 0.3s;
}
.b-field:hover .b-field-box { background: var(--b-accent); }
.b-field-title { font: 500 19px/1.4 var(--b-heading-font); }
@media (max-width: 1200px) { .b-field-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
    .b-intro { padding-top: 64px; }
    .b-intro-body { font-size: 16px; }
    .b-field-grid { grid-template-columns: 1fr; margin-top: 36px; }
    .b-field { aspect-ratio: 4 / 3; }
}

/* ---------- Hạ tầng ---------- */
.b-infra { padding: 64px 0 96px; }
.b-infra .b-section-head { align-items: center; text-align: center; }
.b-infra .b-section-lead { margin-inline: auto; }
.b-infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.b-infra-card {
    position: relative;
    padding: 36px 32px 40px;
    background: #FFFFFF;
    transition: background-color 0.3s, color 0.3s;
}
.b-infra-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: var(--b-accent);
    transition: width 0.35s;
}
.b-infra-card:hover { background: var(--b-primary); color: rgba(255, 255, 255, 0.85); }
.b-infra-card:hover::after { width: 100%; }
.b-infra-icon { color: var(--b-accent); stroke: currentColor; }
.b-infra-card:hover .b-infra-icon { color: var(--b-gold); }
.b-infra-card h3 { margin: 20px 0 8px; font: 700 20px/1.35 var(--b-heading-font); color: var(--b-primary); transition: color 0.3s; }
.b-infra-card:hover h3 { color: #FFFFFF; }
.b-infra-card p { margin: 0; font-size: 15px; line-height: 1.65; }

/* ---------- Băng trượt dùng chung ---------- */
.b-carousel { position: relative; }
.b-track {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.b-track::-webkit-scrollbar { display: none; }
.b-track > li { flex: none; scroll-snap-align: start; }
.b-arrows {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}
.b-arrows::before {
    content: "";
    position: absolute;
    left: 56px;
    right: 56px;
    top: 50%;
    height: 1px;
    background: #E9E9E9;
}
.b-arrow {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--b-primary);
    cursor: pointer;
    transition: color 0.2s;
}
.b-arrow:hover { color: var(--b-accent); }
.b-arrow:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 1024px) { .b-track { gap: 20px; } }

/* ---------- Doanh nghiệp (băng trượt kiểu dự án) ---------- */
.b-projects {
    --b-gutter: max(24px, calc((100% - var(--b-container)) / 2 + 24px));
    position: relative;
    padding: 104px 0;
}
/* Nền chéo phủ lề trái + 660px nội dung; tiêu đề giới hạn 600px nên luôn nằm gọn trong nền. */
.b-projects-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: min(100%, calc(var(--b-gutter) + 660px));
    height: 100%;
    background-image: linear-gradient(173deg, rgba(14, 42, 71, 0.28) -50%, #FFFFFF 115%);
}
.b-projects .b-section-head { position: relative; }
.b-projects .b-section-head > * { max-width: 600px; }
.b-projects-track { padding-left: var(--b-gutter); }
.b-projects-track .b-arrows { margin-right: var(--b-gutter); }
.b-project { width: min(560px, 42vw); }
.b-project:last-child { margin-right: 24px; }
.b-project-image {
    position: relative;
    height: 360px;
    overflow: hidden;
    background: var(--bg-soft);
}
.b-project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.b-project:hover .b-project-image img { transform: scale(1.06); }
.b-project-image.is-logo { display: flex; align-items: center; justify-content: center; background: #FFFFFF; border: 1px solid var(--border); }
.b-project-image.is-logo img { width: 60%; height: 60%; object-fit: contain; }
.b-project-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--b-primary);
    background-image: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255, 255, 255, 0.05) 40px 42px);
    color: rgba(255, 255, 255, 0.9);
    font: 800 96px/1 var(--b-heading-font);
}
.b-project-title { margin: 20px 0 0; font: 700 22px/1.4 var(--b-heading-font); color: var(--b-primary); }
.b-project-meta { margin: 6px 0 0; font-size: 15px; color: var(--text-muted); }
@media (max-width: 1200px) { .b-project-image { height: 280px; } }
@media (max-width: 767px) {
    .b-projects { padding: 64px 0; }
    .b-projects-track { padding-left: 16px; }
    .b-projects-track .b-arrows { margin-right: 16px; }
    .b-project { width: 82vw; }
    .b-project-image { height: 220px; }
    .b-project-title { font-size: 19px; }
}

/* ---------- Năng lực – Lĩnh vực hoạt động (thẻ dọc dùng lại .b-field) ---------- */
.b-capabilities { padding: 96px 0 40px; }
.b-capabilities-lead { margin-inline: auto; text-align: center; }
.b-capability .b-field-title { display: block; margin: 0; }
.b-capability .b-field-title a { color: inherit; text-decoration: none; }
.b-capability .b-field-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.b-capability-desc {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    transition: max-height 0.4s ease, margin-top 0.4s ease;
}
.b-capability:hover .b-capability-desc,
.b-capability:focus-within .b-capability-desc { max-height: 160px; margin-top: 8px; }
.b-capability-arrow {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 2;
    display: flex;
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    color: var(--b-accent);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s;
}
.b-capability-arrow .b-arrow-icon { width: 40px; height: 40px; }
.b-capability:hover .b-capability-arrow { opacity: 1; transform: none; }
.b-capability:not(:has(img)) { background-image: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255, 255, 255, 0.05) 40px 42px); }
@media (hover: none) { .b-capability-desc { max-height: none; margin-top: 8px; } }
@media (max-width: 767px) { .b-capabilities { padding-top: 64px; } }

/* ---------- Doanh nghiệp trong cụm (lưới thẻ logo) ---------- */
.b-tenants { padding: 96px 0; background: var(--bg-soft); }
.b-tenants-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 40px;
}
.b-tenants-head .b-more-link { margin-top: 0; flex: none; }
.b-tenant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.b-tenant {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.b-tenant:hover { border-left-color: var(--b-accent); box-shadow: 0 10px 30px rgba(14, 42, 71, 0.08); }
.b-tenant-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex: none;
}
.b-tenant-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.b-tenant-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--b-primary);
    color: #FFFFFF;
    font: 800 26px/1 var(--b-heading-font);
}
.b-tenant-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.b-tenant-text strong { font: 700 17px/1.35 var(--b-heading-font); color: var(--b-primary); }
.b-tenant-text span { font-size: 14px; color: var(--text-muted); }
@media (max-width: 1024px) { .b-tenants-head { flex-direction: column; align-items: flex-start; } }
@media (max-width: 767px) { .b-tenants { padding: 64px 0; } .b-tenant-grid { grid-template-columns: 1fr; } }

/* ---------- Dự án: tiêu đề thẻ trong băng trượt là liên kết ---------- */
.b-project-image { display: block; }
.b-project-title a { color: inherit; text-decoration: none; }
.b-project-title a:hover { color: var(--b-accent); }

/* ---------- Quan trắc môi trường ---------- */
.b-monitoring {
    position: relative;
    padding: 96px 0;
    background-color: var(--b-primary-deep);
    background-image:
        repeating-linear-gradient(115deg, transparent 0 58px, rgba(255, 255, 255, 0.035) 58px 60px),
        linear-gradient(102deg, #2E4566 0%, var(--b-primary-deep) 45%);
    color: #FFFFFF;
}
.b-monitoring-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 40px;
}
.b-monitoring-head .b-more-link { margin-top: 0; flex: none; }
.b-monitoring-lead { margin: 16px 0 0; max-width: 680px; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); }
.b-station {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.b-station-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3DDC84;
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
    animation: b-pulse 2s infinite;
}
.b-station-dot.is-off { background: #9AA7B4; box-shadow: none; animation: none; }
.b-station-name { font: 700 19px/1.3 var(--b-heading-font); }
.b-station-updated { font-size: 15px; color: rgba(255, 255, 255, 0.75); }
.b-monitoring-notice { margin: 0 0 16px; font-size: 14px; color: var(--b-gold); }
.b-gauges {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.b-gauge {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px 22px;
    background: rgba(10, 31, 53, 0.72);
    transition: background-color 0.3s;
}
.b-gauge::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.18);
}
.b-gauge-status-ok::before { background: #3DDC84; }
.b-gauge-status-warning::before { background: var(--b-gold); }
.b-gauge-status-exceeded::before { background: #F04438; }
.b-gauge:hover { background: rgba(10, 31, 53, 0.45); }
.b-gauge-name { font-size: 15px; font-weight: 700; color: var(--b-gold); }
.b-gauge-value {
    font: 700 44px/1.05 var(--b-heading-font);
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
}
.b-gauge-value small { margin-left: 4px; font: 500 16px/1 'Be Vietnam Pro', system-ui, sans-serif; color: rgba(255, 255, 255, 0.72); }
.b-gauge-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
}
.b-gauge-limit { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }
.b-gauge .status-badge:not(.status-ok):not(.status-warning):not(.status-exceeded) { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
@keyframes b-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@media (max-width: 1024px) { .b-monitoring-head { flex-direction: column; align-items: flex-start; } }
@media (max-width: 767px) {
    .b-monitoring { padding: 64px 0; }
    .b-gauges { grid-template-columns: 1fr 1fr; }
    .b-gauge { padding: 20px 14px 16px; }
    .b-gauge-value { font-size: 30px; }
    .b-gauge-value small { display: block; margin: 4px 0 0; font-size: 13px; }
    .b-gauge-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Tin tức ---------- */
.b-news { padding: 96px 0 104px; }
.b-news-track .b-track > li { width: calc((100% - 80px) / 3); }
.b-news-card { display: flex; flex-direction: column; gap: 14px; }
.b-news-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; line-height: 1.6; }
.b-news-date { color: #767676; }
.b-news-category { color: var(--b-accent); font-weight: 600; }
.b-news-title { margin: 0; font: 700 20px/1.4 var(--b-heading-font); }
.b-news-title a { color: var(--b-title); text-decoration: none; }
.b-news-title a:hover { color: var(--b-accent); }
.b-news-image {
    display: block;
    margin-top: auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-soft);
}
.b-news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.b-news-image:hover img { transform: scale(1.12); }
@media (max-width: 1200px) { .b-news-track .b-track > li { width: calc((100% - 40px) / 2); } }
@media (max-width: 1024px) { .b-news-track .b-track > li { width: calc((100% - 20px) / 2); } }
@media (max-width: 767px) { .b-news { padding: 64px 0; } .b-news-track .b-track > li { width: 86%; } }

/* ---------- Liên hệ ---------- */
.b-contact {
    padding: 96px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-soft) 100%);
}
.b-contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.b-contact-info .b-section-title { margin-bottom: 24px; }
.b-contact-info .contact-line { font-size: 16px; line-height: 1.7; }
.b-contact-form {
    padding: 36px;
    background: #FFFFFF;
    border-top: 4px solid var(--b-accent);
    box-shadow: 0 20px 50px rgba(14, 42, 71, 0.08);
}
@media (max-width: 1024px) { .b-contact-inner { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 767px) { .b-contact { padding: 64px 0; } .b-contact-form { padding: 24px 18px; } }

/* ---------- Chân trang ---------- */
.b-footer {
    /* Phần logo nền sáng, chuyển nhanh sang xanh đậm trước dòng chữ trắng đầu tiên. */
    background-image: linear-gradient(180deg, #FFFFFF 0, #E8EEF4 90px, #2E4566 190px, var(--b-primary) 320px);
    color: #FFFFFF;
}
.b-footer-inner { display: flex; flex-direction: column; }
.b-footer-top { padding: 48px 0 32px; }
.b-footer-brand .b-brand-tagline { color: var(--text-muted); }
.b-footer-mid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 24px 0 40px;
}
.b-footer-office h2 { margin: 0 0 14px; font: 600 20px/1.35 var(--b-heading-font); color: #FFFFFF; }
.b-footer-office ul { margin: 0; padding-left: 20px; font-size: 15.5px; line-height: 1.9; }
.b-footer-office a { color: #FFFFFF; }
.b-footer-office a:hover { color: var(--b-gold); }
.b-footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 24px;
}
.b-footer-nav li { break-inside: avoid; }
.b-footer-nav a {
    display: block;
    padding: 10px 0;
    color: #FFFFFF;
    font-size: 15.5px;
    text-decoration: none;
}
.b-footer-nav a:hover { color: var(--b-gold); }
.b-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 20px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 14px;
}
.b-footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.9); }
@media (max-width: 1024px) { .b-footer-mid { grid-template-columns: 1fr; gap: 24px; } }

.b-scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: var(--b-primary);
    color: #FFFFFF;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
}
.b-scroll-top.is-visible { opacity: 1; visibility: visible; }
/* Nút Hotline/Zalo nổi (site.css) nằm phía trên nút lên đầu trang. */
.theme-b .float-contact { bottom: 80px; right: 18px; }
@media (max-width: 767px) { .theme-b .float-contact { right: 21px; bottom: 80px; } }
.b-scroll-top:hover { background: var(--b-accent); }

/* ---------- Trang con: thay phần đầu trang và tông chữ ---------- */
.theme-b .page-header {
    background-color: var(--b-primary);
    background-image:
        repeating-linear-gradient(115deg, transparent 0 58px, rgba(255, 255, 255, 0.04) 58px 60px),
        linear-gradient(102deg, #33496B 8%, var(--b-primary-deep) 40%);
    border-bottom: 0;
}
.theme-b .page-header .container { max-width: var(--b-container); padding-top: 48px; padding-bottom: 52px; }
.theme-b .page-title { font-family: var(--b-heading-font); font-size: 42px; color: #FFFFFF; }
.theme-b .page-lead { color: rgba(255, 255, 255, 0.82); }
.theme-b .breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.theme-b .breadcrumb a:hover { color: var(--b-gold); }
.theme-b .breadcrumb [aria-current] { color: #FFFFFF; }
.theme-b .breadcrumb li + li::before { color: rgba(255, 255, 255, 0.4); }
.theme-b main .container { max-width: var(--b-container); }
.theme-b .section-title { font-family: var(--b-heading-font); }
.theme-b .project-card { border-radius: 0; }
.theme-b .project-card h3 { font-family: var(--b-heading-font); font-size: 19px; }
.theme-b .project-facts { border-radius: 0; }
@media (max-width: 767px) { .theme-b .page-title { font-size: 28px; } }

@media (prefers-reduced-motion: reduce) {
    .theme-b *, .theme-b *::before, .theme-b *::after { animation: none !important; transition: none !important; }
    .b-hero-slide img { transform: none; }
}
