/* =========================================================================
   Nnmt.Portal — giao diện mô phỏng bố cục nt-tech.vn (theme Flatsome)
   Tự viết lại, không dùng CSS/ảnh của site gốc.
   ========================================================================= */
:root {
    /* Bảng màu theo logo EIS */
    --primary: #00a19a;          /* xanh ngọc: nền thanh menu, nút */
    --primary-dark: #00857f;
    --accent: #84c03c;           /* xanh lá mạ: nhấn, viền dropdown, breadcrumb */
    --secondary: #0d3b66;        /* navy chữ EIS: chữ, tiêu đề, banner */
    --secondary-dark: #0a2e50;
    --blue: #0d84ac;             /* xanh địa cầu */
    --green: #27a04a;
    --overlay: rgba(13, 59, 102, .85);
    --text: #0d3b66;
    --body: #4a4a4a;
    --muted: #777;
    --line: #e5e5e5;
    --bg-soft: #f4f7fb;
    --dark: #0a0a0a;
    --container: 1200px;
    --radius: 3px;
    --shadow: 0 2px 10px rgba(0, 0, 0, .08);
    --font-body: "Poppins", sans-serif;
    --font-head: "Montserrat", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--dark); }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--secondary); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; color: var(--secondary); line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
.ico { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: middle; flex: none; }
.ico-sm { width: .85em; height: .85em; }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 9999; background: #fff; padding: 8px 12px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.container.narrow { max-width: 900px; }
.center { text-align: center; }
.muted, .empty { color: var(--muted); }
.empty { text-align: center; padding: 20px 0; font-style: italic; }
.row { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-uppercase { text-transform: uppercase; }

/* ---------- Nút ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid transparent; border-radius: var(--radius); padding: 0 1.4em; min-height: 2.6em; font-weight: 600; font-size: .95em; letter-spacing: .02em; text-transform: uppercase; transition: all .25s; cursor: pointer; }
.button.primary { background: var(--primary); color: #fff; }
.button.primary:hover { background: var(--secondary); color: #fff; box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .05); }
.button.secondary { background: var(--secondary); color: #fff; }
.button.secondary:hover { background: var(--primary); color: #fff; }
.button.is-large { font-size: 1.05em; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.button.is-larger { font-size: 1.1em; min-height: 2.9em; padding: 0 2em; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.nut-xem-them { text-transform: none; }

/* ---------- Header ---------- */
.header { position: relative; z-index: 100; }
.header-main { background: #fff; height: 124px; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
#logo { width: 200px; flex: none; }
#logo img { max-height: 110px; width: auto; }
.logo-text { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--secondary); line-height: 1.1; }
.logo-text.light { color: #fff; }
.logo-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-size: 24px; flex: none; }
.header-blocks { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 22px; min-width: 0; }
.header-block { display: flex; align-items: flex-start; gap: 10px; max-width: 250px; }
.hb-icon { color: var(--primary); font-size: 34px; line-height: 1; flex: none; }
.hb-text p { margin: 0; font-size: 13px; line-height: 1.45; color: #555; }
.hb-text .hb-title { font-size: 15px; font-weight: 600; color: var(--secondary); }
.hb-text .hb-hotline { color: var(--secondary); }
.hb-text a { color: inherit; }
.header-search { position: relative; flex: none; }
.icon-btn { background: none; border: 0; color: #000; font-size: 20px; padding: 8px; }
.search-dropdown { position: absolute; right: 0; top: calc(100% + 10px); display: none; background: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, .15); border-top: 3px solid var(--accent); padding: 12px; width: 300px; z-index: 50; }
.header-search.open .search-dropdown { display: flex; }
.search-dropdown input, .ms-search input, .search-page-form input { flex: 1; border: 1px solid #ddd; border-right: 0; padding: 0 12px; height: 40px; font: inherit; min-width: 0; }
.search-dropdown button, .ms-search button { background: var(--primary); border: 0; color: #fff; width: 44px; height: 40px; font-size: 16px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--secondary); font-size: 26px; padding: 6px; }

.header-bottom { background: var(--primary); min-height: 80px; display: flex; align-items: center; }
.header-bottom-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.header-bottom-nav > li { position: relative; margin: 0 13px; }
.header-bottom-nav > li > a { position: relative; display: flex; align-items: center; gap: 4px; line-height: 59px; padding: 10px 0; color: #fff; font-weight: 600; font-size: 15px; text-transform: uppercase; white-space: nowrap; }
/* Hiệu ứng 2 góc khung khi hover (bản gốc: before/after border trên-trái & dưới-phải) */
.header-bottom-nav > li > a::before, .header-bottom-nav > li > a::after { content: ""; position: absolute; width: 80px; height: 60px; border: 1px solid #fff; opacity: 0; transition: all .2s ease-in-out; pointer-events: none; }
.header-bottom-nav > li > a::before { top: 20px; left: -12px; border-width: 1px 0 0 1px; }
.header-bottom-nav > li > a::after { bottom: 20px; right: -12px; border-width: 0 1px 1px 0; }
.header-bottom-nav > li > a:hover::before, .header-bottom-nav > li > a:hover::after,
.header-bottom-nav > li.active > a::before, .header-bottom-nav > li.active > a::after { width: 20px; height: 20px; opacity: 1; }
.header-bottom-nav > li > a:hover, .header-bottom-nav > li.active > a { color: var(--secondary); }

/* Dropdown nhiều cấp */
.nav-dropdown { list-style: none; margin: 0; padding: 0; position: absolute; top: 100%; left: -15px; min-width: 260px; background: #fff; border: 1px solid #ddd; border-bottom: 3px solid var(--accent); box-shadow: 1px 1px 15px rgba(0, 0, 0, .15); border-radius: 3px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; z-index: 60; }
.nav-dropdown li { position: relative; }
.nav-dropdown li + li { border-top: 1px solid #f0f0f0; }
.nav-dropdown a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 20px; font-size: 15px; font-weight: 600; color: #2f2f2f; text-transform: none; transition: all .3s linear; position: relative; }
.nav-dropdown a::before { content: ""; position: absolute; left: 15px; top: 50%; width: 14px; height: 2px; background: var(--accent); opacity: 0; transform: translateY(-50%) scaleX(0); transform-origin: left; transition: all .3s; }
.nav-dropdown a:hover { color: var(--accent); padding-left: 41px; }
.nav-dropdown a:hover::before { opacity: 1; transform: translateY(-50%) scaleX(1); }
.nav-dropdown .nav-dropdown-sub { top: -1px; left: 100%; }
.has-dropdown:hover > .nav-dropdown, .has-dropdown:focus-within > .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.header-bottom-nav > li:last-child .nav-dropdown, .header-bottom-nav > li:nth-last-child(2) .nav-dropdown { left: auto; right: -15px; }

/* Sticky: khối logo ẩn, thanh menu bám đỉnh (sticky-jump) */
.header.stuck .header-bottom { position: fixed; top: 0; left: 0; right: 0; min-height: 70px; box-shadow: 0 1px 6px rgba(0, 0, 0, .2); animation: stuckMoveDown .5s; }
.header.stuck .header-bottom-nav > li > a { line-height: 50px; }
@keyframes stuckMoveDown { from { transform: translateY(-100%); } to { transform: none; } }

.api-notice { background: #e6f6f4; color: #8a5a00; text-align: center; font-size: 14px; padding: 8px 15px; border-bottom: 1px solid #b3e3df; }

/* ---------- Slider trang chủ ---------- */
.slider-section { position: relative; overflow: hidden; background: #eef2f6; }
.slider-section .slides { position: relative; }
.slider-section .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.slider-section .slide.is-selected { position: relative; opacity: 1; z-index: 1; }
.slider-section .slide img { width: 100%; height: auto; max-height: 720px; object-fit: cover; }
.slide-placeholder { min-height: 460px; display: flex; align-items: center; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(0, 161, 154, .55), transparent 45%), linear-gradient(120deg, var(--secondary-dark), var(--secondary) 55%, #2f7ab8); }
.slide-placeholder .sp-kicker { font-size: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.slide-placeholder .sp-title { font-family: var(--font-head); font-size: 44px; font-weight: 700; line-height: 1.2; max-width: 760px; margin: 0; }
.slider-dots { list-style: none; margin: 0; padding: 0; position: absolute; right: 1.5%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 3; }
.slider-dots .dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #fff; background: transparent; padding: 0; opacity: .9; }
.slider-dots .dot.is-selected { background: var(--primary); border-color: var(--primary); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .35); color: #fff; font-size: 22px; opacity: 0; transition: opacity .3s, background .3s; }
.slider-arrow.prev { left: 20px; } .slider-arrow.next { right: 50px; }
.slider-section:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--primary); }

/* ---------- Section chung ---------- */
.section { position: relative; padding: 60px 0; }
.section.dark { color: #f1f1f1; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-title-container { margin: 50px 0 20px; }
.section-title { display: flex; align-items: center; gap: 15px; font-size: 26px; text-transform: uppercase; margin: 0; }
.section-title b { flex: 1; height: 2px; background: var(--primary); opacity: .45; }
.section-title-main { padding: 0 6px; text-align: center; }
.section-intro { text-align: center; max-width: 820px; margin: 0 auto 30px; color: var(--body); }
.center-title { text-align: center; font-size: 28px; text-transform: uppercase; margin-bottom: 35px; }

/* Về chúng tôi */
.about-block { text-align: center; }
.ribbon-title { display: inline-block; position: relative; color: var(--secondary) !important; font-size: 36px; padding: 18px 46px; margin-bottom: 25px; text-transform: uppercase; }
.ribbon-title::before, .ribbon-title::after { content: ''; position: absolute; width: 40px; height: 40px; border: 2px solid var(--primary); }
.ribbon-title::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.ribbon-title::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.about-text { max-width: 800px; margin: 0 auto; font-size: 16px; color: var(--body); }

/* Giải pháp 4 cột */
.solutions { margin-top: 10px; }
.solution-item { text-align: center; }
.solution-img { display: block; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; max-width: 230px; box-shadow: 0 8px 25px rgba(13, 59, 102, .18); border: 5px solid #fff; outline: 2px solid var(--primary); transition: transform .35s; }
.solution-img img { width: 100%; height: 100%; object-fit: cover; }
.solution-item:hover .solution-img { transform: translateY(-6px); }
.solution-item h3 { font-size: 17px; text-transform: uppercase; margin: 0; }
.solution-item h3 a { color: var(--secondary); }
.solution-item h3 a:hover { color: var(--primary); }

/* Dịch vụ 6 thẻ */
.services { margin-top: 10px; }
.service-item { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 30px 25px; text-align: center; transition: all .3s; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; }
.service-item::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--primary); transition: width .35s; }
.service-item:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .1); transform: translateY(-4px); }
.service-item:hover::after { width: 100%; }
.service-icon { width: 120px; height: 120px; margin-bottom: 10px; display: grid; place-items: center; }
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-item h3 { font-size: 17px; margin-top: 15px; }
.service-item p { color: var(--body); font-size: 14px; flex: 1; }

/* Placeholder ảnh */
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; background: linear-gradient(135deg, #e8eef5, #dbe5f0); color: #9db3ca; font-size: 40px; }
.ph-large { min-height: 300px; border-radius: 4px; }

/* Dự án nổi bật */
.section2 { background: linear-gradient(rgba(10, 46, 80, .92), rgba(10, 46, 80, .92)), repeating-linear-gradient(45deg, #0d3b66 0 2px, #174b80 2px 14px); padding: 80px 0 60px; }
.projects-head { grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; margin-bottom: 50px; }
.projects-head h2 { font-size: 32px; text-transform: uppercase; position: relative; padding-bottom: 15px; }
.projects-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 70px; height: 3px; background: var(--primary); }
.projects-head .text { margin-bottom: 30px; opacity: .9; }
.projects-image img { border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.project-card { display: block; position: relative; overflow: hidden; border-radius: 4px; color: #fff; }
.project-card .pc-img { aspect-ratio: 4 / 3; overflow: hidden; }
.project-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .pc-img img { transform: scale(1.08); }
.project-card h3 { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 15px 15px; font-size: 15px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.project-card:hover h3 { color: var(--accent); }

/* Carousel chung */
.carousel { position: relative; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 3); gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; }
.logo-carousel .car-track { grid-auto-columns: calc((100% - 150px) / 6); }
.press-carousel .car-track { grid-auto-columns: calc((100% - 90px) / 4); }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 2px solid currentColor; background: rgba(255, 255, 255, .9); color: var(--secondary); font-size: 18px; display: grid; place-items: center; opacity: .75; transition: all .25s; }
.car-btn:hover { opacity: 1; background: var(--primary); color: #fff; border-color: var(--primary); }
.car-btn.prev { left: -55px; } .car-btn.next { right: -55px; }
.dark .car-btn { background: transparent; color: #fff; }
.carousel.no-scroll .car-btn { display: none; }

/* Lý do chọn */
.section3 { background: var(--bg-soft); }
.why { grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-intro h2 { font-size: 34px; margin-bottom: 0; }
.why-sub { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: 18px; text-transform: uppercase; }
.why-intro .text { color: var(--body); }
.why-item { background: #fff; border-left: 4px solid var(--primary); padding: 22px 24px; margin-bottom: 25px; box-shadow: var(--shadow); transition: transform .3s; }
.why-item:hover { transform: translateX(6px); }
.why-item h3 { font-size: 17px; text-transform: uppercase; margin-bottom: 8px; }
.why-item div { color: var(--body); font-size: 14px; }

/* Số liệu */
.section4 { background: linear-gradient(rgba(13, 59, 102, .93), rgba(13, 59, 102, .93)), linear-gradient(120deg, #0a2e50, #0d84ac); padding: 55px 0; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; text-align: center; }
.stat { flex: 1 1 180px; padding: 10px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .2); }
.display-4 { display: block; font-family: var(--font-head); font-size: 48px; font-weight: 700; color: var(--primary); line-height: 1.1; margin-bottom: 8px; }
.stat p { margin: 0; text-transform: uppercase; font-size: 14px; font-weight: 500; }

/* Khách hàng / đối tác */
.section9 { padding: 50px 0; }
.logo-item { background: #fff; border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; height: 110px; padding: 10px; transition: all .3s; }
.logo-item img { max-height: 90px; width: auto; filter: grayscale(.3); transition: filter .3s; }
.logo-item:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.logo-item:hover img { filter: none; }

/* Tin tức */
.section6 { background: #fff; }
.news-head { text-align: center; margin-bottom: 35px; }
.news-head h2 { font-size: 30px; margin-bottom: 0; }
.news-sub { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.news-text { max-width: 760px; margin: 0 auto; color: var(--body); }
.blog-grid { margin-bottom: 30px; }
.post-item .box { display: block; color: inherit; height: 100%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); transition: box-shadow .3s, transform .3s; }
.post-item .box:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .14); transform: translateY(-3px); }
.box-image { position: relative; }
.image-cover { aspect-ratio: 16 / 9; overflow: hidden; }
.image-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-item .box:hover .image-cover img { transform: scale(1.06); }
.badge.post-date { position: absolute; top: 7%; left: -.6em; width: 2.8em; height: 2.8em; background: var(--primary); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; box-shadow: 1px 1px 4px rgba(0, 0, 0, .25); z-index: 2; }
.badge.post-date::after { content: ""; position: absolute; left: 0; bottom: -.45em; border-style: solid; border-width: 0 .6em .45em 0; border-color: transparent var(--primary-dark) transparent transparent; }
.badge.post-date.large { font-size: 1.25em; }
.post-date-day { font-weight: 700; font-size: 1.15em; }
.post-date-month { font-size: .72em; text-transform: uppercase; }
.box-text { padding: 18px 20px 20px; text-align: center; }
.post-title { font-size: 16px; margin: 0; color: var(--secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-item .box:hover .post-title { color: var(--primary); }
.is-divider { width: 30px; height: 3px; background: rgba(0, 0, 0, .1); margin: 12px auto; }
.from_the_blog_excerpt { color: var(--body); font-size: 14px; margin: 0; }

/* Báo chí */
.press { background: var(--bg-soft); padding: 50px 0; }
.press-item { display: block; color: var(--secondary); background: #fff; box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; height: 100%; }
.press-img { aspect-ratio: 16 / 9; overflow: hidden; background: #fff; }
.press-img img { width: 100%; height: 100%; object-fit: cover; }
.press-item p { padding: 14px 16px; margin: 0; font-size: 14px; }
.press-item:hover { color: var(--primary); }

/* Liên hệ */
.section8 { background: linear-gradient(180deg, #fff 0, var(--bg-soft) 100%); }
.contact-head { text-align: center; margin-bottom: 30px; }
.contact-head .kicker { color: var(--primary); font-weight: 600; letter-spacing: .12em; margin-bottom: 4px; }
.contact-head .big { font-family: var(--font-head); font-size: 32px; margin: 0; }
.contact-head h2 { font-size: 30px; }
.contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.contact-col { background: #fff; text-align: center; padding: 30px 20px; border-radius: 6px; box-shadow: var(--shadow); border-top: 3px solid var(--primary); }
.contact-col h3 { font-size: 17px; margin: 12px 0 8px; }
.contact-col p, .contact-col div { margin: 0; color: var(--body); }
.contact-col a { color: var(--secondary); font-weight: 600; }
.cc-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--secondary); color: #fff; font-size: 24px; }
.form-title { text-align: center; font-size: 24px; margin: 10px 0 25px; }
.contact-form-wrap { max-width: 900px; margin: 0 auto; }
.contact-form { display: grid; gap: 15px; }
.cf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #ddd; border-radius: var(--radius); padding: 10px 14px; font: inherit; font-size: 15px; color: #333; background: #fff; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05); transition: border-color .2s, box-shadow .2s; }
.contact-form input { height: 46px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 161, 154, .2); }
.contact-form .button { justify-self: center; min-width: 200px; }
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 15px; font-size: 15px; }
.alert-success { background: #e8f6ec; color: #1f6b37; border: 1px solid #b9e3c6; }
.alert-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f3c0c0; }
.map-section iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Trang con ---------- */
.dau-trang-section { padding: 70px 0; background: linear-gradient(120deg, #0a2e50, #0d84ac) center / cover; color: #fff; overflow: hidden; }
.dau-trang-section::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 16px); }
.section-bg-overlay { position: absolute; inset: 0; background: var(--overlay); }
.banner-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.page-title { color: #fff !important; font-size: 30px; text-transform: uppercase; margin: 0; }
.breadcrumb { font-size: 14px; color: #eaeaea; text-align: right; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .separator { margin: 0 8px; opacity: .7; }
.breadcrumb .last { color: var(--accent); }
.taxonomy-description { padding: 0 10px 30px; color: var(--body); }
.subcat-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0; margin: 0 0 30px; }
.subcat-tabs li a, .subcat-tabs li span { display: block; padding: 6px 16px; border: 1px solid var(--line); border-radius: 30px; font-size: 14px; color: var(--secondary); }
.subcat-tabs li.active span, .subcat-tabs li a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.page-number { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 2px solid var(--line); border-radius: 50%; color: var(--secondary); font-weight: 600; }
.page-number.current, .page-number:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.dots { align-self: center; color: var(--muted); }

/* Chi tiết bài */
.post-single { margin-bottom: 30px; }
.entry-image { position: relative; margin-bottom: 25px; }
.entry-image img { width: 100%; }
.entry-header-text { text-align: center; }
.entry-category { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.entry-category a { color: var(--muted); }
.entry-title { font-size: 28px; }
.entry-meta { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 25px; }
.entry-summary { font-weight: 500; font-size: 16px; color: var(--secondary); }
.toc { border: 1px solid #aaa; background: #f9f9f9; border-radius: 4px; padding: 12px 18px; margin: 20px 0 30px; display: inline-block; min-width: 60%; max-width: 100%; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
.toc[hidden] { display: none; }
.toc-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.toc-title { font-weight: 700; margin: 0; color: #333; }
.toc-toggle { border: 1px solid #ccc; background: #fff; border-radius: 3px; width: 32px; height: 28px; color: #333; transition: transform .2s; }
.toc.collapsed .toc-toggle { transform: rotate(-90deg); }
.toc.collapsed nav { display: none; }
.toc-list { margin: 10px 0 0; padding-left: 20px; counter-reset: none; }
.toc-list li { margin: 4px 0; }
.toc-list li.lvl-3 { margin-left: 18px; list-style: circle; }
.toc-list a { color: #333; }
.toc-list a:hover { color: var(--primary); }
.entry-content { color: #333; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.entry-content h2 { font-size: 24px; margin-top: 1.4em; scroll-margin-top: 90px; }
.entry-content h3 { font-size: 20px; margin-top: 1.2em; scroll-margin-top: 90px; }
.entry-content img { margin: 15px auto; height: auto; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 15px 0; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid #ddd; padding: 8px 10px; }
.entry-content blockquote { margin: 20px 0; padding: 12px 20px; border-left: 4px solid var(--primary); background: var(--bg-soft); }
.entry-content iframe, .entry-content video { max-width: 100%; }
.related { background: var(--bg-soft); }
.related-title { text-align: center; font-size: 24px; text-transform: uppercase; margin-bottom: 30px; }
.page-content .entry-content { max-width: 100%; }
.search-page-form { display: flex; max-width: 600px; margin: 0 auto 30px; }
.search-page-form .button { border-radius: 0; min-height: 40px; }
.result-count { color: var(--muted); text-align: center; }
.notfound .nf-code { font-family: var(--font-head); font-size: 110px; font-weight: 700; color: var(--primary); line-height: 1; margin: 0 0 10px; }

/* ---------- Footer ---------- */
.footer-section { background: #111 radial-gradient(circle at 10% 10%, rgba(0, 161, 154, .06), transparent 40%); padding: 60px 0 30px; color: #bbb; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr 1.3fr; gap: 35px; }
.footer-logo { display: inline-block; margin-bottom: 15px; }
.footer-logo img { max-height: 90px; width: auto; background: #fff; padding: 6px; border-radius: 4px; }
.footer-title { color: #fff; font-weight: 700; font-size: 16px; text-transform: uppercase; margin-bottom: 15px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-col p { margin-bottom: 10px; }
.footer-col a { color: #ddd; }
.footer-col a:hover { color: var(--primary); }
.footer-contact .company { color: #fff; font-weight: 600; }
.footer-contact .ic { color: var(--primary); margin-right: 8px; }
.footer-links { list-style: none; margin: 0 0 20px; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a::before { content: "›"; margin-right: 8px; color: var(--primary); }
.social { display: flex; gap: 10px; margin-top: 15px; }
.social .circle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 17px; transition: all .25s; }
.social .circle:hover { background: #fff; color: var(--primary); }
.footer-map iframe { width: 100%; height: 200px; border: 0; border-radius: 4px; }
.absolute-footer { background: var(--dark); color: #999; font-size: 13px; padding: 15px 0; }
.absolute-footer strong { color: #ddd; }

/* ---------- Nút nổi ---------- */
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--primary); color: var(--primary); background: #fff; display: grid; place-items: center; font-size: 18px; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s; }
.back-to-top.active { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary); color: #fff; }
.float-contact { position: fixed; right: 18px; bottom: 80px; z-index: 90; display: flex; flex-direction: column; gap: 14px; }
.fc-btn { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-size: 24px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.fc-btn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: inherit; opacity: .35; animation: pulse 1.6s infinite; z-index: -1; }
.fc-zalo { background: #0068ff; }
.fc-zalo span { position: absolute; bottom: -2px; font-size: 9px; font-weight: 700; background: #fff; color: #0068ff; padding: 0 4px; border-radius: 6px; }
.fc-phone { background: #e60808; }
.fc-phone .fc-label { position: absolute; right: 62px; background: #e60808; color: #fff; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 20px; white-space: nowrap; opacity: 0; transform: translateX(10px); transition: all .25s; pointer-events: none; }
.fc-phone:hover .fc-label { opacity: 1; transform: none; }
.fc-btn:hover { color: #fff; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .5; } 70% { transform: scale(1.35); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Menu mobile off-canvas ---------- */
.mobile-sidebar { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.mobile-sidebar.open { visibility: visible; }
.ms-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s; }
.mobile-sidebar.open .ms-backdrop { opacity: 1; }
.ms-panel { position: absolute; top: 0; bottom: 0; left: 0; width: 300px; max-width: 85vw; background: #fff; overflow-y: auto; transform: translateX(-100%); transition: transform .3s; padding: 50px 0 20px; }
.mobile-sidebar.open .ms-panel { transform: none; }
.ms-close { position: absolute; top: 8px; right: 8px; background: none; border: 0; font-size: 22px; color: #333; padding: 6px; }
.ms-search { display: flex; padding: 0 15px 15px; }
.ms-nav, .ms-nav ul { list-style: none; margin: 0; padding: 0; }
.ms-nav li { position: relative; border-top: 1px solid #ececec; }
.ms-nav a { display: block; padding: 13px 50px 13px 20px; color: var(--secondary); font-weight: 600; text-transform: uppercase; font-size: 14px; }
.ms-nav .children a { text-transform: none; font-weight: 500; padding-left: 35px; color: #444; }
.ms-nav .children .children a { padding-left: 50px; }
.ms-nav li.active > a { color: var(--primary); }
.ms-nav .toggle { position: absolute; right: 0; top: 0; width: 48px; height: 47px; background: none; border: 0; border-left: 1px solid #ececec; color: #555; transition: transform .2s; }
.ms-nav .children { display: none; background: #fafafa; }
.ms-nav li.open > .children { display: block; }
.ms-nav li.open > .toggle { transform: rotate(180deg); }
body.menu-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .car-btn.prev { left: -8px; } .car-btn.next { right: -8px; }
}
@media (max-width: 1100px) {
    .header-blocks { display: none; }
    .header-inner { justify-content: space-between; }
    .header-bottom-nav > li { margin: 0 10px; }
    .header-bottom-nav > li > a { font-size: 14px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 849px) {
    .header-main { height: 70px; }
    #logo { width: auto; flex: 1; text-align: center; }
    #logo img { max-height: 60px; margin: 0 auto; }
    #logo .logo-text { font-size: 17px; }
    .logo-mark { width: 38px; height: 38px; font-size: 20px; }
    .nav-toggle { display: block; }
    .header-bottom { display: none; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .why { grid-template-columns: 1fr; gap: 0; }
    .projects-head { grid-template-columns: 1fr; gap: 25px; }
    .car-track { grid-auto-columns: calc((100% - 30px) / 2); }
    .logo-carousel .car-track { grid-auto-columns: calc((100% - 60px) / 3); }
    .press-carousel .car-track { grid-auto-columns: calc((100% - 30px) / 2); }
    .contact-cols { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
    .slide-placeholder { min-height: 300px; }
    .slide-placeholder .sp-title { font-size: 28px; }
    .slider-arrow { display: none; }
    .banner-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .breadcrumb { text-align: left; }
    .stat + .stat { border-left: 0; }
}
@media (max-width: 549px) {
    body { font-size: 14px; }
    .section { padding: 40px 0; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .solutions { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .solution-item h3 { font-size: 14px; }
    .car-track { grid-auto-columns: 85%; }
    .logo-carousel .car-track { grid-auto-columns: calc((100% - 30px) / 2); }
    .press-carousel .car-track { grid-auto-columns: 85%; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 20px; }
    .ribbon-title { font-size: 24px; padding: 12px 30px; }
    .display-4 { font-size: 38px; }
    .stat { flex-basis: 45%; }
    .dau-trang-section { padding: 40px 0; }
    .page-title { font-size: 22px; }
    .entry-title { font-size: 22px; }
    .toc { min-width: 100%; }
    .notfound .nf-code { font-size: 80px; }
    .float-contact { right: 12px; bottom: 72px; }
    .fc-btn { width: 46px; height: 46px; font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Hồ sơ năng lực */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 3px solid var(--accent); }
.profile-head h2 { margin: 0; }
.profile-head .muted { margin: 4px 0 0; color: var(--muted); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-pages { display: grid; gap: 22px; }
.profile-page-item { margin: 0; box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; background: #fff; }
.profile-page-item img { width: 100%; height: auto; }
.profile-page-item figcaption { text-align: center; font-size: 13px; color: var(--muted); padding: 6px 0; }
.profile-bottom { text-align: center; margin-top: 30px; }
