/**
 * Theme "solar" - Điện Mặt Trời Việt Nam
 * Bootstrap 5.x custom stylesheet
 * Dựa theo thiết kế: themes/solar-themes.html
 */

/* ============ 1. BRAND TOKENS ============ */
:root {
    --smt-orange: #f5921e;
    --smt-orange-dark: #dd7d0a;
    --smt-navy: #0f2b52;
    --smt-navy-deep: #112d5c;
    --smt-navy-darkest: #0a1c38;
    --smt-bg-soft: #f4f7fb;
    --smt-text: #1c2b3f;
    --smt-text-soft: #33465c;
    --smt-text-mute: #5b6b80;
    --smt-border: #e3e8ef;
    --smt-font-heading: 'Inter', sans-serif;
    --smt-font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--smt-font-body);
    color: var(--smt-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ---- Hiệu ứng cuộn-hiện (scroll reveal) + chuyển mượt khi lọc dự án ---- */
.smt-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.16,.8,.3,1), transform .6s cubic-bezier(.16,.8,.3,1);
}
.smt-reveal.is-visible { opacity: 1; transform: translateY(0); }

.smt-fade-toggle { transition: opacity .2s ease, transform .2s ease; }
.smt-fade-toggle.is-hidden { opacity: 0; transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .smt-reveal, .smt-fade-toggle { transition: none !important; opacity: 1 !important; transform: none !important; }
}

h1, h2, h3, h4, h5, h6,
.smt-heading {
    font-family: var(--smt-font-heading);
    font-weight: 800;
    color: var(--smt-navy);
}

/* Khai báo trùng nhóm pseudo-class với css/style.css (a, a:link, a:active, a:visited) để có
   cùng độ đặc trưng (specificity) — custom.css nạp sau nên thắng theo thứ tự nạp. Nếu chỉ viết
   `a { color: ... }` (specificity thấp hơn a:link) thì sẽ luôn thua quy tắc cũ trong style.css. */
a, a:link, a:active, a:visited { color: var(--smt-orange); text-decoration: none; }
a:hover, a:focus { color: var(--smt-orange-dark); }

::placeholder { color: #94a3b8; opacity: 1; }

.smt-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.smt-section-title {
    text-align: center;
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    margin: 0 0 44px;
}

a.btn-smt-primary, button.btn-smt-primary {
    background: var(--smt-orange);
    border-color: var(--smt-orange);
    color: #fff;
    font-weight: 700;
    padding: .8rem 1.75rem;
    border-radius: .5rem;
    transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
a.btn-smt-primary:hover, button.btn-smt-primary:hover,
a.btn-smt-primary:focus, button.btn-smt-primary:focus {
    background: var(--smt-orange-dark);
    border-color: var(--smt-orange-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(245,146,30,.32);
}
a.btn-smt-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 700;
    padding: .7rem 1.75rem;
    border-radius: .5rem;
    transition: background .25s ease, transform .25s ease;
}
a.btn-smt-outline:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }

/* ============ 2. HEADER / NAVBAR ============ */
.smt-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15,43,82,.08);
}
.smt-header .smt-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.smt-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; }
.smt-logo-img { max-height: 44px; width: auto; object-fit: contain; }
/* Logo thực tế đang dùng khá "ngang" (tỉ lệ dài/cao lớn) - chỉ giới hạn theo max-height thì ở màn
   hình hẹp nó vẫn chiếm quá nhiều bề ngang, đẩy nút gọi điện bên phải lọt ra ngoài màn hình (site
   có overflow-x:hidden nên phần lọt ra bị CẮT MẤT chứ không hiện thanh cuộn - đúng triệu chứng
   "icon phone bị che"). Giới hạn thêm max-width khi màn hình hẹp, co theo cả 2 chiều cho cân đối. */
@media (max-width: 480px) {
    .smt-logo-img { max-width: 150px; max-height: none; height: auto; }
}
.smt-logo-badge {
    width: 42px; height: 42px; border-radius: 10px;
    background: linear-gradient(135deg, var(--smt-orange), var(--smt-navy));
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.smt-logo-text {
    font-family: var(--smt-font-heading);
    font-weight: 800;
    font-size: 1.0625rem;
    line-height: 1.15;
    color: var(--smt-navy);
}
.smt-logo-text span { color: var(--smt-orange); display: block; }

/* ---- Menu Site (block theme global.bs5_menu - CSS chính nằm ở css/bs5_menu.css) ----
   Chỉ khai lại biến màu của BS5 Menu cho khớp bảng màu solar. */
.bs5-menu {
    --bs5-menu-link-color: var(--smt-text-soft);
    --bs5-menu-link-hover: var(--smt-orange);
    --bs5-menu-item-hover-bg: var(--smt-bg-soft);
    --bs5-menu-border: var(--smt-border);
    --bs5-menu-toggle-color: var(--smt-navy);
}

a.smt-hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--smt-navy);
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background .25s ease, transform .25s ease;
}
a.smt-hotline:hover { color: #fff; background: var(--smt-navy-deep); transform: translateY(-2px); }
.smt-hotline-icon {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--smt-orange);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.smt-hotline-number { font-size: 0.9375rem; display: block; }

a.smt-hotline-mobile {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--smt-navy); color: #fff;
    display: none; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Hotline: nút tròn trên mobile, nút đầy đủ từ lg trở lên (cùng mốc 992px với BS5 Menu) */
@media (min-width: 992px) {
    .smt-hotline-mobile { display: none !important; }
}
@media (max-width: 991.98px) {
    .smt-hotline.smt-hotline-desktop { display: none !important; }
    .smt-hotline-mobile { display: flex !important; }
}

/* ============ 3. HERO ============ */
.smt-hero { position: relative; }
.smt-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Ảnh nền lấy từ cấu hình block Hero (admin > Blocks), xem global.hero.tpl.
       Lớp phủ gradient để chữ dễ đọc được ghép cùng ảnh nền ngay trong style inline ở đó. */
    background-color: var(--smt-navy-deep);
    overflow: hidden;
}
.smt-hero-body {
    position: relative;
    z-index: 1;
    padding: 64px 24px 80px;
}
.smt-hero-body h1 {
    color: #fff;
    font-size: clamp(1.75rem, 4.2vw, 2.75rem);
    line-height: 1.2;
    margin: 0 0 18px;
    max-width: 640px;
}
.smt-hero-body p {
    color: #d7e0ec;
    font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 640px;
}
.smt-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.smt-stats-bar { position: relative; z-index: 1; background: var(--smt-navy-deep); padding: 22px 0; }
.smt-stats-bar .row { --bs-gutter-y: 1.25rem; }
/* Dưới ~360px, 2 cột (row-cols-2) không đủ chỗ cho icon + số liệu dạng "120MWp" (không có
   khoảng trắng để tự xuống dòng) nên bị tràn ra ngoài khung hình - chuyển về 1 cột/hàng cho
   màn hình quá hẹp. */
@media (max-width: 359.98px) {
    .smt-stats-bar .row > * { flex: 0 0 100%; max-width: 100%; }
}
.smt-stat { display: flex; align-items: center; gap: 14px; }
.smt-stat-icon {
    width: 46px; height: 46px; border-radius: 10px;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.smt-stat-value { font-family: var(--smt-font-heading); font-weight: 800; font-size: 1.5rem; color: #fff; line-height: 1.1; }
.smt-stat-label { font-size: 0.7813rem; color: #c9d6e6; font-weight: 600; margin-top: 2px; letter-spacing: .3px; }

/* Grid tùy chỉnh cho các khu cần nhiều hơn 6 cột trên desktop
   (Bootstrap 5 mặc định chỉ build sẵn row-cols-1..6 nên không dùng row-cols được ở đây).
   Dùng flexbox + justify-content:center (không dùng display:grid) để khi số phần tử không
   lấp đầy hết 1 hàng thì các ô còn lại tự canh giữa thay vì dồn về bên trái. */
.smt-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.smt-grid-6 { gap: 16px; }
.smt-grid-8 > * { flex: 0 0 calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); }
.smt-grid-6 > * { flex: 0 0 calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); }
@media (min-width: 576px) {
    .smt-grid-8 > * { flex-basis: calc((100% - 3 * 12px) / 4); max-width: calc((100% - 3 * 12px) / 4); }
    .smt-grid-6 > * { flex-basis: calc((100% - 2 * 16px) / 3); max-width: calc((100% - 2 * 16px) / 3); }
}
@media (min-width: 992px) {
    .smt-grid-8 > * { flex-basis: calc((100% - 7 * 12px) / 8); max-width: calc((100% - 7 * 12px) / 8); }
    .smt-grid-6 > * { flex-basis: calc((100% - 5 * 16px) / 6); max-width: calc((100% - 5 * 16px) / 6); }
}

/* ============ 4. GENERIC SECTIONS ============ */
.smt-section { padding: 80px 0 60px; }
.smt-section-soft { background: var(--smt-bg-soft); padding: 80px 0; }

/* ---- Solutions grid (dữ liệu từ block global.da_nang + template global.solutions.tpl) ---- */
a.smt-solution-card {
    display: block;
    border: 1px solid var(--smt-border);
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
    /* Không đặt height cố định - để flexbox (align-items:stretch mặc định trên .smt-grid)
       tự giãn các thẻ trong cùng 1 hàng bằng nhau theo thẻ cao nhất. */
}
a.smt-solution-card:hover { box-shadow: 0 14px 32px rgba(15,43,82,.12); border-color: transparent; transform: translateY(-4px); color: inherit; }
.smt-solution-icon { transition: transform .3s ease; }
a.smt-solution-card:hover .smt-solution-icon { transform: scale(1.08); }
.smt-solution-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: #eef4ff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px; color: var(--smt-navy);
}
.smt-solution-icon img { width: 24px; height: 24px; object-fit: contain; }
.smt-solution-icon i { font-size: 1.25rem; line-height: 1; }
.smt-solution-title { font-weight: 700; font-size: 0.75rem; color: var(--smt-text); line-height: 1.3; }

/* ---- Reasons (why choose us) ---- */
.smt-reason-card {
    background: #fff; border-radius: 14px; padding: 26px 18px;
    text-align: center; box-shadow: 0 2px 10px rgba(15,43,82,.05);
    transition: box-shadow .3s ease, transform .3s ease;
}
.smt-reason-card:hover { box-shadow: 0 16px 34px rgba(15,43,82,.12); transform: translateY(-4px); }
.smt-reason-icon {
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; color: var(--smt-navy-deep);
}
.smt-reason-title { font-weight: 700; font-size: 0.875rem; color: var(--smt-text); line-height: 1.4; }

/* ---- Process steps ---- */
.smt-step { text-align: center; }
.smt-step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--smt-navy); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.875rem; margin: 0 auto 12px;
}
.smt-step-title { font-weight: 700; font-size: 0.8438rem; color: var(--smt-text); line-height: 1.4; }

/* ---- Project filter + cards ---- */
.smt-filter-btn {
    padding: 10px 24px; border-radius: 999px; font-size: 0.8438rem; font-weight: 600;
    border: none; background: #f2f5f9; color: var(--smt-text-mute);
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.smt-filter-btn:hover:not(.active) { background: #e7ecf3; transform: translateY(-1px); }
.smt-filter-btn.active {
    background: var(--smt-navy-deep); color: #fff;
    box-shadow: 0 6px 16px rgba(17,45,92,.22);
}
.smt-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(15,43,82,.06);
    height: 100%;
    transition: box-shadow .3s ease, transform .3s ease;
}
.smt-card:hover { box-shadow: 0 16px 34px rgba(15,43,82,.12); transform: translateY(-4px); }
.smt-card-media {
    height: 170px;
    background: #eef1f5;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    color: #9aa7ba; font-size: 0.7813rem; text-align: center; padding: 10px;
}
.smt-card-media svg { opacity: .7; }
.smt-card-media.is-news { height: 150px; }
.smt-card-body { padding: 18px; }
.smt-card-title {
    font-weight: 700; font-size: 0.9688rem; color: var(--smt-navy); margin-bottom: 8px;
    /* Luôn chừa đúng chỗ cho 2 dòng (dù tiêu đề ngắn 1 dòng hay dài 2 dòng) để các dòng
       Địa điểm/Tiết kiệm/Hoàn vốn bên dưới luôn bắt đầu cùng 1 vị trí trên mọi thẻ cùng hàng. */
    min-height: 2.6em; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.smt-card-meta { font-size: 0.8125rem; color: var(--smt-text-mute); margin-bottom: 4px; }
/* Card có ảnh thật (vd. block "Tin tức mới nhất" ở trang chủ, module posts) */
.smt-card-media.post-card-media { padding: 0; overflow: hidden; }
.smt-card-media.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* height:100% ở .smt-card chỉ có tác dụng khi phần tử cha (.smt-card-link) cũng có chiều cao rõ
   ràng - thiếu dòng này thì % không có gì để tính theo, card tự co theo nội dung (tiêu đề dài/
   ngắn khác nhau khiến các thẻ trong cùng 1 hàng cao thấp không đều). */
.smt-card-link { display: block; height: 100%; }
.smt-card-link:hover .smt-card-title { color: var(--smt-orange); }

/* ---- Product cards ---- */
.smt-product-card {
    background: #fff; border: 1px solid var(--smt-border); border-radius: 14px;
    overflow: hidden; transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease; height: 100%;
}
.smt-product-card:hover { box-shadow: 0 16px 34px rgba(15,43,82,.12); border-color: transparent; transform: translateY(-4px); }
.smt-product-body { padding: 18px; }
.smt-product-name { font-weight: 700; font-size: 0.9375rem; color: var(--smt-navy); margin-bottom: 6px; line-height: 1.35; }
.smt-product-spec { font-size: 0.8125rem; color: var(--smt-text-mute); margin-bottom: 14px; }
a.smt-product-link, .smt-product-link { color: var(--smt-orange); font-weight: 700; font-size: 0.8438rem; }
/* Thẻ sản phẩm thật (block "Sản phẩm" trang chủ - modules/products/blocks/global.products_home.php):
   cả thẻ là 1 link, ảnh vuông object-fit:contain vì ảnh sản phẩm thường nền trắng/tách nền. */
a.smt-product-item { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.smt-product-item .smt-product-body { display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--smt-border); }
.smt-product-item .smt-product-name {
    min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s ease;
}
.smt-product-item:hover .smt-product-name { color: var(--smt-orange); }
.smt-product-media { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.smt-product-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .35s ease; }
.smt-product-item:hover .smt-product-media img { transform: scale(1.04); }
.smt-product-badge {
    position: absolute; top: 10px; padding: 3px 8px; border-radius: 6px;
    font-size: 0.75rem; font-weight: 700; color: #fff; line-height: 1.4;
}
.smt-product-badge.is-sale { left: 10px; background: #e03131; }
.smt-product-badge.is-hot { right: 10px; background: var(--smt-orange); }
.smt-product-brand { font-size: 0.75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--smt-text-mute); margin-bottom: 4px; }
.smt-product-price { margin-top: auto; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.smt-price { font-weight: 800; color: #d9480f; font-size: 1.05rem; }
.smt-price.is-contact { color: var(--smt-orange); }
.smt-price-old { color: var(--smt-text-mute); font-size: 0.85rem; }
@media (max-width: 575.98px) {
    .smt-product-item .smt-product-body { padding: 10px 10px 12px; }
    .smt-product-item .smt-product-name { font-size: 0.875rem; }
    .smt-price { font-size: 0.95rem; }
    .smt-product-media img { padding: 8px; }
}

/* ---- ROI calculator ---- */
.smt-roi-form { border: 1px solid var(--smt-border); border-radius: 14px; padding: 30px; height: 100%; }
.smt-roi-form label { font-size: 0.8438rem; font-weight: 700; color: var(--smt-text-soft); margin-bottom: 6px; }
.smt-roi-form .form-control {
    padding: 12px 14px; border: 1px solid #dbe2ea; border-radius: 8px;
    font-size: 0.875rem; margin-bottom: 20px; font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.smt-roi-form .form-control:focus {
    border-color: var(--smt-orange); box-shadow: 0 0 0 .18rem rgba(245,146,30,.18); outline: none;
}
.smt-roi-result { background: var(--smt-navy); border-radius: 14px; padding: 30px; color: #fff; height: 100%; }
.smt-roi-result-title { font-weight: 700; font-size: 0.875rem; color: #c9d6e6; margin-bottom: 20px; }
.smt-roi-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.smt-roi-row:last-child { border-bottom: none; }
.smt-roi-row .lbl { font-size: 0.8438rem; color: #c9d6e6; }
.smt-roi-row .val { font-family: var(--smt-font-heading); font-weight: 800; font-size: 1.1875rem; }
.smt-roi-row .val small { font-size: 0.75rem; font-weight: 600; }
.smt-roi-row.is-payback .val { font-size: 1.375rem; color: #4ade80; }
.smt-roi-row .val.is-savings { color: #ffb85c; }

/* ---- Lead form ---- */
.smt-lead {
    background: var(--smt-navy-darkest);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}
.smt-lead-inner { max-width: 900px; margin: 0 auto; }
.smt-lead p { color: #a8b7cc; font-size: 0.9063rem; margin: 0 0 28px; }
.smt-lead-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.smt-lead-form .form-control {
    flex: 1; min-width: 180px; padding: 13px 16px; border-radius: 8px;
    border: none; font-size: 0.875rem; font-family: inherit;
    transition: box-shadow .2s ease;
}
.smt-lead-form .form-control:focus {
    box-shadow: 0 0 0 .18rem rgba(245,146,30,.35); outline: none;
}
.smt-lead-success {
    background: #123262; border: 1px solid #2a4874; border-radius: 10px;
    padding: 22px; color: #a8f0c6; font-weight: 600;
}
.smt-lead-error { color: #f3a6a6; font-size: 0.7813rem; margin-top: 10px; min-height: 1em; }

/* ---- Đối tác: slider 1 hàng cuộn ngang + nút mũi tên
   (dữ liệu từ block global.da_nang + template global.partners.tpl) ---- */
.smt-partners-slider { display: flex; align-items: center; gap: 12px; }
.smt-partners-track {
    display: flex; gap: 12px; flex: 1 1 auto; min-width: 0;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 4px 2px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge cũ */
}
.smt-partners-track::-webkit-scrollbar { display: none; } /* Chrome/Safari/Edge */
.smt-slider-arrow {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid var(--smt-border); background: #fff; color: var(--smt-navy);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.smt-slider-arrow:hover { background: var(--smt-navy); color: #fff; border-color: var(--smt-navy); }

/* Số logo hiển thị vừa khít 1 màn: 2 (mobile) -> 3 (tablet) -> 5 (desktop), phần dư
   xem bằng cách cuộn/bấm mũi tên. Tính theo % để luôn khít khung, không dư/thiếu nửa thẻ. */
a.smt-partner-card {
    flex: 0 0 calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); scroll-snap-align: start;
    border: 1px solid var(--smt-border); border-radius: 10px; padding: 22px 12px;
    text-align: center; text-decoration: none; color: var(--smt-text-soft);
    display: flex; align-items: center; justify-content: center; min-height: 80px;
    transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
a.smt-partner-card:hover { box-shadow: 0 12px 26px rgba(15,43,82,.1); border-color: transparent; transform: translateY(-3px); color: var(--smt-text-soft); }
a.smt-partner-card img {
    max-width: 100%; max-height: 44px; object-fit: contain;
    filter: grayscale(1); opacity: .75; transition: filter .25s ease, opacity .25s ease;
}
a.smt-partner-card:hover img { filter: grayscale(0); opacity: 1; }
.smt-partner-name { font-family: var(--smt-font-heading); font-weight: 800; font-size: 0.9375rem; }

@media (min-width: 576px) {
    a.smt-partner-card { flex-basis: calc((100% - 2 * 12px) / 3); max-width: calc((100% - 2 * 12px) / 3); }
}
@media (min-width: 992px) {
    a.smt-partner-card { flex-basis: calc((100% - 4 * 12px) / 5); max-width: calc((100% - 4 * 12px) / 5); }
}

/* ---- News tag colors ---- */
.smt-news-tag { display: inline-block; font-size: 0.6875rem; font-weight: 700; color: #fff; padding: 4px 10px; border-radius: 5px; margin-bottom: 10px; }
.smt-news-date { font-size: 0.7813rem; color: #94a3b8; }

/* ============ 5. FOOTER ============ */
.smt-footer { background: var(--smt-navy-darkest); color: #c9d6e6; padding: 60px 0 24px; }
.smt-footer h3 { color: #fff; font-family: var(--smt-font-heading); font-weight: 800; font-size: 0.9063rem; margin-bottom: 14px; }
.smt-footer .smt-footer-brand { color: #fff; font-family: var(--smt-font-heading); font-weight: 800; font-size: 1rem; margin-bottom: 14px; }
.smt-footer p { font-size: 0.8438rem; line-height: 1.7; color: #8ea0ba; }
.smt-footer a { color: #a8b7cc; }
.smt-footer a:hover { color: var(--smt-orange); }
.smt-footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 0.8438rem; }
.smt-footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 0.8438rem; color: #a8b7cc; }
.smt-social { display: flex; gap: 10px; margin-top: 16px; }
.smt-social a {
    width: 36px; height: 36px; border-radius: 50%; background: #123262;
    display: flex; align-items: center; justify-content: center; color: #fff;
    transition: background .25s ease, transform .25s ease;
}
.smt-social a:hover { background: var(--smt-orange); transform: translateY(-3px); }
.smt-footer-bottom {
    max-width: 1280px; margin: 36px auto 0; padding: 20px 24px 0;
    border-top: 1px solid #1e3557; text-align: center; font-size: 0.7813rem; color: #7a8ba3;
}

/* ============ 6. INNER MODULE PAGES (fallback content from theme default) ============ */
.smt-content-wrap { padding-top: 32px; padding-bottom: 64px; } /* chỉ trên/dưới: giữ padding ngang 24px của .smt-container */

/* Breadcrumb - dạng phẳng, thay cho hình mũi tên/ruy băng mặc định của theme gốc */
.smt-breadcrumb-wrap {
    background: var(--smt-bg-soft);
    border-top: 3px solid var(--smt-navy);
    padding: 10px 0;
}
.smt-breadcrumb { font-size: 0.8125rem; margin-bottom: 0; }
.smt-breadcrumb .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; }
.smt-breadcrumb .breadcrumbs li { float: none; margin: 0; display: flex; align-items: center; }
.smt-breadcrumb .breadcrumbs a,
.smt-breadcrumb .show-subs-breadcrumbs {
    background: none;
    padding: 0;
    float: none;
    color: var(--smt-text-soft);
}
.smt-breadcrumb .breadcrumbs a:before,
.smt-breadcrumb .breadcrumbs a:after,
.smt-breadcrumb .show-subs-breadcrumbs:before,
.smt-breadcrumb .show-subs-breadcrumbs:after {
    content: none;
}
.smt-breadcrumb .breadcrumbs a:hover,
.smt-breadcrumb .show-subs-breadcrumbs:hover {
    background: none;
    color: var(--smt-orange);
}
.smt-breadcrumb-sep {
    color: var(--smt-text-mute);
    margin: 0 8px;
}
.smt-page-title { font-size: clamp(1.25rem, 2.6vw, 1.75rem); margin-bottom: 24px; }

/* Mục lục tự động (TOC): xem css/nv-toc.css + js/nv-toc.js (file riêng, dùng chung mọi module) */

/* Pagination (theme.php theme_config expects: ul.pagination / li / a.page-link) */
.pagination { margin-top: 24px; }
.page-link { color: var(--smt-navy); }
.page-item.active .page-link { background-color: var(--smt-orange); border-color: var(--smt-orange); }

/* ============ 7. RESPONSIVE ============ */
@media (max-width: 575.98px) {
    .smt-lead-form { flex-direction: column; }
    .smt-roi-row .val { font-size: 1rem; }
}
