.article {
    background: #ffffff;
}

.article-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
}

.article-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(4, 24, 45, 0.92),
            rgba(4, 24, 45, 0.55)
        );
}

.article-hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0;
}

.article-hero-content span {
    display: inline-block;
    margin-bottom: 18px;
    color: #f5b82e;
    font-weight: 700;
    letter-spacing: 2px;
}

.article-hero-content h1 {
    max-width: 900px;
    margin: 0 0 24px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.12;
}

.article-hero-content p {
    max-width: 760px;
    margin: 0;
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.article-layout {
    padding-top: 70px;
    padding-bottom: 80px;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-content p {
    margin: 0 0 22px;
    color: #334155;
    font-size: 17px;
    line-height: 1.85;
}

.article-content p a {
    color: #c98a00;
    font-weight: 700;
    text-decoration: none;
}

.article-content p a:hover {
    text-decoration: underline;
}

.article-content .article-lead {
    color: #0b2545;
    font-size: 20px;
    font-weight: 600;
}

.article-content h2 {
    margin: 50px 0 18px;
    color: #082544;
    font-size: 32px;
    line-height: 1.3;
}

.article-content h3 {
    margin: 30px 0 12px;
    color: #0f355e;
    font-size: 23px;
    line-height: 1.35;
}

.article-content ul {
    margin: 0 0 26px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 10px;
    color: #334155;
    font-size: 17px;
    line-height: 1.7;
}

.article-cta {
    margin-top: 55px;
    padding: 42px;
    background: #082544;
    border-radius: 18px;
    color: #ffffff;
}

.article-cta h2 {
    margin-top: 0;
    color: #f5b82e;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.82);
}

.article-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.article-cta-actions a {
    display: inline-flex;
    min-height: 52px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.article-cta-actions .btn-primary {
    color: #082544;
    background: #f5b82e;
}

.article-cta-actions .btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Tiêu đề lồng <strong> bị đẩy lên độ đậm 900, Windows thay bằng Arial Black làm lệch dấu tiếng Việt */
.article-content h1 strong,
.article-content h2 strong,
.article-content h3 strong,
.article-content h2 b,
.article-content h3 b {
    font-weight: inherit;
}

/* Bài viết chuyển từ quangcaobaoanh.vn */
.article-breadcrumb {
    margin-bottom: 28px;
    color: #94a3b8;
    font-size: 14px;
}

.article-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: #c98a00;
}

.imported-content figure {
    margin: 26px 0 8px;
}

.imported-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(8, 37, 68, 0.1);
}

.imported-content figure + h3 {
    margin-top: 0;
    color: #64748b;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
}

.imported-content ol,
.imported-content ul {
    margin: 0 0 26px;
    padding-left: 24px;
}

.imported-content table {
    width: 100%;
    margin: 0 0 26px;
    border-collapse: collapse;
}

.imported-content td {
    padding: 10px 12px;
    border: 1px solid #e4eaf0;
    color: #334155;
}

.imported-content a {
    color: #c98a00;
    font-weight: 600;
}

.article-content .article-more {
    margin-top: 22px;
    text-align: center;
}

/* Trang danh sách bài viết */
.post-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    background: #ffffff;
    border-bottom: 1px solid #e4eaf0;
}

.post-nav .container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-nav a {
    padding: 9px 16px;
    color: #082544;
    background: #f7f9fc;
    border: 1px solid #e4eaf0;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.post-nav a:hover {
    background: #f5b82e;
    border-color: #f5b82e;
}

.post-section {
    padding: 60px 0 20px;
    scroll-margin-top: 70px;
}

.post-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.post-section-heading h2 {
    color: #082544;
    font-size: 30px;
}

.post-section-heading span {
    color: #c98a00;
    font-weight: 700;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(8, 37, 68, 0.06);
    transition: 0.3s ease;
}

.post-card:hover {
    border-color: #f5b82e;
    transform: translateY(-5px);
}

.post-card img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.post-card-body {
    padding: 16px 18px 20px;
}

.post-card h3 {
    margin-bottom: 8px;
    color: #082544;
    font-size: 17px;
    line-height: 1.4;
}

.post-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.article-posts {
    margin-top: 55px;
}

.post-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-content .post-card h3 {
    margin: 0 0 8px;
}

.article-content .post-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Thư viện ảnh công trình */
.article-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 10px 0 34px;
}

.article-gallery figure {
    margin: 0;
}

.article-gallery-wide {
    grid-column: 1 / -1;
}

.article-gallery img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(8, 37, 68, 0.1);
}

.article-gallery-wide img {
    height: 420px;
}

/* Ảnh có chữ (ảnh ghép, infographic): hiển thị trọn khung, không cắt */
.article-gallery-full img {
    height: auto;
}

/* Bảng số liệu trong bài */
.article-table-wrap {
    overflow-x: auto;
    margin: 0 0 26px;
    border: 1px solid #e4eaf0;
    border-radius: 12px;
}

.article-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
}

.article-table th,
.article-table td {
    padding: 13px 16px;
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
}

.article-table th {
    color: #ffffff;
    background: #082544;
    font-weight: 700;
}

.article-table td {
    color: #334155;
    border-top: 1px solid #e4eaf0;
}

.article-table tbody tr:nth-child(even) td {
    background: #f7f9fc;
}

.article-table td:last-child {
    color: #082544;
    font-weight: 700;
}

@media (max-width: 768px) {
    .article-table {
        min-width: 0;
    }

    .article-table th,
    .article-table td {
        padding: 10px 9px;
        font-size: 14px;
    }
}

/* Công cụ tự tính tiền điện */
.td-box {
    margin: 10px 0 40px;
    padding: 30px;
    background: #f7f9fc;
    border: 2px solid #f5b82e;
    border-radius: 16px;
}

.article-content .td-box h2 {
    margin-top: 0;
}

.article-content .td-mo-ta {
    font-size: 16px;
}

.td-form {
    display: grid;
    grid-template-columns: 1fr 1fr 140px;
    gap: 14px;
    margin-bottom: 20px;
}

.td-form label span {
    display: block;
    margin-bottom: 6px;
    color: #082544;
    font-size: 14px;
    font-weight: 700;
}

.td-form input,
.td-form select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    color: #082544;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
}

.td-form input:focus,
.td-form select:focus {
    border-color: #f5b82e;
    outline: 3px solid rgba(245, 184, 46, 0.3);
}

.td-ket-qua .article-table-wrap {
    background: #ffffff;
}

.td-tong,
.td-tiet-kiem {
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e4eaf0;
}

.td-tiet-kiem {
    margin-top: 16px;
    border-color: #86efac;
    background: #f0fdf4;
}

.td-tong > div,
.td-tiet-kiem > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    color: #334155;
}

.td-tong strong,
.td-tiet-kiem strong {
    color: #082544;
    white-space: nowrap;
}

.td-tong .td-tong-chinh {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
    font-size: 18px;
}

.td-tong .td-tong-chinh strong {
    color: #c2410c;
    font-size: 24px;
}

.td-tiet-kiem .td-xanh {
    color: #15803d;
    font-size: 20px;
}

.article-content .td-tong p,
.article-content .td-tiet-kiem p,
.article-content .td-goi-y,
.article-content .td-ghi-chu {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .td-box {
        padding: 20px 16px;
    }

    .td-form {
        grid-template-columns: 1fr;
    }

    .td-tong .td-tong-chinh strong {
        font-size: 20px;
    }
}

/* Thẻ bài viết nổi bật (ảnh trái, chữ phải) */
.article-feature {
    display: grid;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
    margin: 30px 0 10px;
    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(8, 37, 68, 0.08);
    color: inherit;
    text-decoration: none;
    transition: 0.3s ease;
}

.article-feature:hover {
    border-color: #f5b82e;
    transform: translateY(-4px);
}

.article-feature img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.article-feature-body {
    padding: 24px 26px;
}

.article-content .article-feature-body span {
    display: block;
    margin-bottom: 8px;
    color: #c98a00;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.article-content .article-feature-body h3 {
    margin: 0 0 10px;
    color: #082544;
    font-size: 21px;
}

.article-content .article-feature-body p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.7;
}

.article-content .article-feature-body strong {
    color: #082544;
}

@media (max-width: 768px) {
    .article-feature {
        grid-template-columns: 1fr;
    }

    .article-feature img {
        height: 200px;
    }
}

/* Ảnh poster khổ nhỏ: giữ kích thước gốc, căn giữa */
.article-gallery .article-figure-poster {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 504px;
    margin: 0 auto;
}

.article-gallery .article-figure-poster img {
    height: auto;
}

/* Lưới ảnh dọc có băng tiêu đề: 3 cột, giữ nguyên tỉ lệ ảnh */
.article-gallery-portrait {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-gallery-portrait img {
    height: auto;
}

.article-gallery figcaption {
    margin-top: 10px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

/* Hộp nhấn mạnh */
.article-content .article-note {
    padding: 20px 24px;
    border-left: 4px solid #f5b82e;
    border-radius: 0 10px 10px 0;
    background: #f7f9fc;
    color: #0b2545;
    font-weight: 600;
}

/* Dịch vụ khác */
.article-services {
    margin-top: 55px;
}

.article-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.article-services-grid a {
    display: block;
    padding: 22px 24px;
    border: 1px solid #e4eaf0;
    border-radius: 12px;
    color: #082544;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.article-services-grid a span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.article-services-grid a:hover {
    border-color: #f5b82e;
    box-shadow: 0 12px 30px rgba(8, 37, 68, 0.1);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .article-hero {
        min-height: 480px;
    }

    .article-gallery,
    .article-services-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-section-heading h2 {
        font-size: 24px;
    }

    .article-gallery img,
    .article-gallery-wide img {
        height: 240px;
    }

    .article-gallery-full img,
    .article-gallery-portrait img,
    .article-gallery .article-figure-poster img {
        height: auto;
    }

    .article-gallery-portrait {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-hero-content {
        width: min(100% - 32px, 680px);
        padding: 65px 0;
    }

    .article-hero-content h1 {
        font-size: 40px;
    }

    .article-hero-content p {
        font-size: 17px;
    }

    .article-layout {
        padding-top: 45px;
        padding-bottom: 55px;
    }

    .article-content h2 {
        font-size: 27px;
    }

    .article-content h3 {
        font-size: 21px;
    }

    .article-cta {
        padding: 28px 22px;
    }

    .article-cta-actions {
        flex-direction: column;
    }

    .article-cta-actions a {
        width: 100%;
    }
}