/* === BPN BUILDER CSS === */

/* From tin_tuc_faq_bpn.php */
.ttfaq-section {
    background: #ffffff; /* Nền trắng toàn khung */
    padding: 70px 0;
    font-family: "Roboto", "Inter", sans-serif;
}
.ttfaq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.ttfaq-row {
    display: flex;
    gap: 40px;
}
.ttfaq-col {
    flex: 1;
    min-width: 0; /* fixes flexbox text overflow */
}

/* Headers */
.ttfaq-header {
    margin-bottom: 30px;
    text-align: center;
}
.ttfaq-heading {
    font-size: 26px;
    font-weight: 800;
    color: #0f2044; /* Dark blue */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.ttfaq-heading a {
    color: #1a56db; /* Màu xanh vì là link */
    text-decoration: none;
    transition: color 0.2s;
}
.ttfaq-heading a:hover {
    color: #0f2044;
}

/* News List */
.ttfaq-news-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ttfaq-news-item {
    display: flex;
    align-items: center;
    background: #f8fafc; /* Nền xám nhạt */
    border-radius: 16px;
    padding: 20px;
    gap: 20px;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
}
.ttfaq-news-item:hover {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}
.ttfaq-news-date {
    background: #f0f4f8; /* Nền mốc như thiết kế */
    border-radius: 12px;
    width: 55px;
    height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ttfaq-date-d {
    font-size: 18px;
    font-weight: 800;
    color: #0f2044;
    line-height: 1.1;
}
.ttfaq-date-m {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.ttfaq-news-content {
    flex: 1;
}
.ttfaq-news-title {
    font-size: 16px;
    font-weight: 500; /* Bỏ tô đậm 700 */
    color: #1a56db; /* Màu xanh link ngay từ đầu */
    margin: 0 0 6px 0;
    line-height: 1.5;
    transition: color 0.2s;
}
.ttfaq-news-item:hover .ttfaq-news-title {
    color: #0d3896; /* Hover thì đậm hơn 1 xíu */
}
.ttfaq-news-excerpt {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    /* Giới hạn 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FAQ List */
.ttfaq-faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ttfaq-faq-item {
    background: #f8fafc; /* Nền xám nhạt */
    border-radius: 14px;
    border: none;
    overflow: hidden;
    transition: box-shadow 0.2s, background 0.2s;
}
.ttfaq-faq-item.active {
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(26, 86, 219, 0.08); /* Sáng bật lên khi click */
}
.ttfaq-faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 22px 25px;
    font-size: 16px;
    font-weight: 700;
    color: #0f2044;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
}
.ttfaq-faq-question:hover {
    color: #1a56db;
}
.ttfaq-chevron {
    color: #94a3b8;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.ttfaq-faq-item.active .ttfaq-chevron {
    transform: rotate(180deg);
    color: #1a56db;
}
.ttfaq-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.ttfaq-faq-answer-inner {
    padding: 0 25px 25px 25px;
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .ttfaq-section {
        padding: 20px 0;
    }
    .ttfaq-row {
        flex-direction: column;
        gap: 50px;
    }
    .ttfaq-heading {
        font-size: 22px;
        text-align: center;
    }
}

/* From weekly_stats_bpn.php */
/* Font Inter/Roboto for modern look */
.ws-bpn-container {
    background: #ffffff;
    font-family: "Roboto", "Inter", sans-serif;
    color: #0f2044;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header */
.ws-bpn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.ws-bpn-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.ws-bpn-heading {
    font-size: 26px;
    font-weight: 800;
    color: #0f2044;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}
.ws-bpn-subtitle {
    font-weight: 700;
    color: #8c9bb7;
    font-size: 15px;
}

/* Pills */
.ws-bpn-stats {
    display: flex;
    gap: 12px;
}
.ws-bpn-pill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    padding: 10px 16px;
    min-width: 130px;
}
.ws-bpn-pill-blue {
    background: #f0f7ff;
}
.ws-bpn-pill-blue .ws-bpn-pill-label {
    color: #3b82f6; 
    font-size: 11px;
    font-weight: 800;
}
.ws-bpn-pill-blue .ws-bpn-pill-val {
    color: #1e3a8a;
    font-size: 24px;
    font-weight: 800;
    margin-top: 2px;
}

.ws-bpn-pill-red {
    background: #fff5f5;
}
.ws-bpn-pill-red .ws-bpn-pill-label {
    color: #ef4444; 
    font-size: 11px;
    font-weight: 800;
}
.ws-bpn-pill-red .ws-bpn-pill-val {
    color: #991b1b;
    font-size: 24px;
    font-weight: 800;
    margin-top: 2px;
}

/* Tabs */
.ws-bpn-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.ws-bpn-tab {
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.ws-bpn-tab-active {
    background: #1e3a8a;
    color: #ffffff;
}
.ws-bpn-tab:hover:not(.ws-bpn-tab-active) {
    background: #f1f5f9;
    color: #0f2044;
}

/* Panels */
.ws-bpn-panel {
    display: none;
}
.ws-bpn-panel.active {
    display: block;
    animation: fadeInBpn 0.3s ease;
}
@keyframes fadeInBpn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.ws-bpn-row {
    margin-bottom: 22px;
}
.ws-bpn-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}
.ws-bpn-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ws-bpn-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #0f2044;
}
.ws-bpn-rank.rank-1 {
    background: #ffc107;
}
.ws-bpn-rank.rank-other {
    background: #94a3b8;
    color: #ffffff;
}
.ws-bpn-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

/* Biển số specials */
.ws-bpn-plate-badge {
    background: #0f2044;
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.ws-bpn-vtype {
    background: #f1f5f9;
    color: #64748b;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.ws-bpn-row-right {
    white-space: nowrap;
}
.ws-bpn-val-num {
    font-weight: 800;
    font-size: 14px;
    color: #1e3a8a;
}
.ws-bpn-val-lbl {
    font-weight: 700;
    font-size: 12px;
    color: #64748b;
    margin-left: 2px;
}

/* Bars */
.ws-bpn-bar-wrapper {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}
.ws-bpn-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fill-gradient {
    background: linear-gradient(90deg, #3b82f6 0%, #ef4444 100%);
}
.fill-green {
    background: #10b981;
}
.fill-red {
    background: #ef4444;
}

/* Footer */
.ws-bpn-footer {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.ws-bpn-empty {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 900px) {
    .ws-bpn-section {
        padding: 20px 0 !important;
    }
    .ws-bpn-stats {
        width: 100%;
        justify-content: space-between;
    }
    .ws-bpn-pill {
        flex: 1;
    }
    .ws-bpn-tabs {
        flex-wrap: wrap;
    }
    .ws-bpn-name {
        line-height: 1.3;
        font-size: 13px;
        max-width: 250px;
    }
}

/* From comments_bpn.php */
.cmtbpn-section {
    background: #f8fafc; /* Nền xám nhạt toàn khu vực */
    padding: 70px 0;
    font-family: "Roboto", "Inter", sans-serif;
}
.cmtbpn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.cmtbpn-row {
    display: flex;
    gap: 60px;
}
.cmtbpn-col-left {
    flex: 6;
}
.cmtbpn-col-right {
    flex: 4;
}

.text-red { color: #ef4444; }

/* Left Side: Comments */
.cmtbpn-heading {
    font-size: 26px;
    font-weight: 800;
    color: #0f2044;
    text-transform: uppercase;
    margin: 0 0 40px 0;
    display: flex;
    align-items: center;
}
.cmtbpn-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cmtbpn-item {
    margin-bottom: 30px;
}
.cmtbpn-item-inner {
    display: flex;
    gap: 20px;
}
.cmtbpn-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}
.cmtbpn-body {
    flex: 1;
}
.cmtbpn-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}
.cmtbpn-author {
    font-size: 15px;
    font-weight: 700;
    color: #0f2044;
}
.cmtbpn-time {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}
.cmtbpn-content {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 12px;
}
.cmtbpn-content p {
    margin: 0 0 8px 0;
}
.cmtbpn-content p:last-child {
    margin-bottom: 0;
}
.cmtbpn-reply a {
    font-size: 11px;
    font-weight: 800;
    color: #1a56db;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}
.cmtbpn-reply a:hover {
    color: #0f2044;
}

/* Threaded comments offset */
.cmtbpn-list .children {
    list-style: none;
    margin: 25px 0 0 68px; /* Offset avatar */
    padding: 0;
}

/* Right Side: Form */
.cmtbpn-form-box {
    background: #ffffff; /* Ô form màu trắng trên nền xám */
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.cmtbpn-form-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f2044;
    margin: 0 0 10px 0;
}
.cmtbpn-form-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 25px 0;
    line-height: 1.5;
}
.cmtbpn-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.cmtbpn-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cmtbpn-field label {
    font-size: 11px;
    font-weight: 800;
    color: #0f2044;
    text-transform: uppercase;
}
.cmtbpn-field input,
.cmtbpn-field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    color: #334155;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cmtbpn-field input:focus,
.cmtbpn-field textarea:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}
.cmtbpn-field input::placeholder,
.cmtbpn-field textarea::placeholder {
    color: #94a3b8;
}

.cmtbpn-cookies {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.cmtbpn-cookies input {
    margin-top: 3px;
}
.cmtbpn-submit {
    width: 100%;
    margin-top: 10px;
}
.cmtbpn-submit-btn {
    background: #1e3a8a; /* Màu dark blue */
    color: #ffffff;
    border: none;
    padding: 16px 30px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.2s;
    width: 100%;
}
.cmtbpn-submit-btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* Base WP overrides to fix red bar and stray tags */
.logged-in-as { margin: 0 0 20px 0; font-size: 13px; color: #64748b; width: 100%; }
.comment-reply-title { margin: 0 0 10px 0; font-size: 16px; font-weight:700; border: none !important; padding: 0 !important; }
.comment-reply-title::before, .comment-reply-title::after { display: none !important; }
#reply-title { border: none !important; padding: 0 !important; background: transparent !important; }
#reply-title::before, #reply-title::after { display: none !important; }
.comment-reply-title small { margin-left: 10px; }

@media (max-width: 900px) {
    .cmtbpn-section {
        padding: 20px 0;
    }
    .cmtbpn-row {
        flex-direction: column;
    }
    .cmtbpn-heading {
        font-size: 22px;
        justify-content: center;
    }
}

/* From gioi_thieu_tra_cuu.php */
@media (max-width: 768px) {
        .gttc-wrapper {
            flex-direction: column;
            text-align: left;
        }
        .gttc-text h1 {
            font-size: 1.5rem !important;
            margin-bottom: 12px !important;
        }
        .gttc-desc {
            font-size: 0.95rem !important;
            margin-bottom: 25px !important;
        }
        .gttc-features {
            justify-content: flex-start;
        }
        .row-gioi-thieu-tra-cuu {
            padding: 40px 0 20px 0 !important;
        }
        .gttc-form {
            width: 100% !important;
            min-width: 100% !important;
        }
    }

/* From search_gioi_thieu.php */
:root {
        --navy:        #da2c38; /* Changed to red for new UI */
        --navy-mid:    #b9252f;
        --navy-light:  #e0505a;
        --gold:        #f5f6f8;
        --gold-light:  #ffffff;
        --gold-pale:   #f5edd8;
        --red-state:   #c0392b;
        --text-dark:   #2b3240;
        --text-mid:    #4a5568;
        --text-light:  #a0aec0;
        --bg-page:     #f0f2f7;
        --bg-white:    #ffffff;
        --border:      #e2e8f0;
        --border-gold: #e2e8f0;
        --danger:      #da2c38;
        --success:     #38a169;
        --shadow-md:   0 8px 30px rgba(0,0,0,0.08);
        --shadow-lg:   0 10px 40px rgba(0,0,0,0.12);
    }

    .gov-wrapper {
        width: 100%;
        max-width: 500px; /* Thinner like the screenshot */
        margin: 0 auto;
        font-family: "Roboto", sans-serif;
        color: var(--text-dark);
        background: var(--bg-white);
        border-radius: 16px;
        box-shadow: var(--shadow-md);
        overflow: hidden;
    }

    /* ── HEADER BANNER ─────────────────────── */
    .gov-header {
        background: #ffffff;
        padding: 2.2rem 2.5rem 1rem;
        position: relative;
    }

    .gov-header-inner {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 0.875rem;
    }

    .gov-header::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            repeating-linear-gradient(
                45deg,
                transparent,
                transparent 40px,
                rgba(184,145,58,0.04) 40px,
                rgba(184,145,58,0.04) 41px
            );
    }

    .gov-form-panel h2 {
        font-size: 26px;
        font-weight: 800;
        text-transform: uppercase;
        color: #0f2044;
        margin: 0 0 25px 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .gov-emblem {
        color: var(--navy);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gov-header-text {
        flex: 1;
    }

    .gov-header-text h2 {
        font-family: "Roboto", sans-serif;
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--text-dark);
        margin: 0;
    }

    .gov-header-text p {
        display: none; /* Hide subtitle */
    }

    .gov-gold-line {
        width: 40px;
        height: 2px;
        background: var(--gold);
        margin: 0.5rem 0;
    }

    /* ── FORM PANEL ─────────────────────────── */
    .gov-form-panel {
        background: transparent;
        border: none;
        padding: 0 2.5rem 2.25rem;
        border-radius: 0 0 16px 16px;
        box-shadow: none;
        margin-bottom: 0;
    }

    .gov-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .gov-field {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .gov-field.full {
        grid-column: 1 / -1;
    }

    .gov-label {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-mid);
        font-family: "Roboto", sans-serif;
    }

    .gov-label span {
        color: var(--danger);
        margin-left: 2px;
    }

    .gov-select,
    .gov-input {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid var(--border);
        border-radius: 2px;
        font-size: 0.95rem;
        font-family: "Roboto", sans-serif;
        color: var(--text-dark);
        background: #fafbfd;
        transition: border-color 0.15s, box-shadow 0.15s;
        appearance: none;
        -webkit-appearance: none;
    }

    .gov-select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a9e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        padding-right: 2.5rem;
        cursor: pointer;
    }

    .gov-select:focus,
    .gov-input:focus {
        outline: none;
        border-color: var(--navy-mid);
        box-shadow: 0 0 0 3px rgba(26,50,96,0.08);
        background: #fff;
    }

    .gov-input.invalid {
        border-color: var(--danger);
        background: #fdf5f5;
    }

    .gov-input.invalid:focus {
        box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
    }

    .gov-field-error {
        font-size: 0.72rem;
        color: var(--danger);
        display: none;
        font-weight: 400;
        font-style: italic;
    }

    .gov-divider {
        height: 1px;
        background: linear-gradient(to right, transparent, var(--border), transparent);
        margin: 1.5rem 0;
    }

    .gov-btn {
        width: 100%;
        padding: 0.9rem 2rem;
        background: var(--navy);
        color: #fff;
        border: none;
        border-radius: 2px;
        font-family: "Roboto", sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        transition: background 0.2s, transform 0.1s;
        position: relative;
        overflow: hidden;
    }

    .gov-btn::before {
        content: '';
        position: absolute;
        left: 0; top: 0; bottom: 0;
        width: 4px;
        background: var(--gold);
    }

    .gov-btn:hover {
        background: var(--navy-mid);
    }

    .gov-btn:active {
        transform: translateY(1px);
    }

    .gov-btn:disabled {
        background: var(--text-light);
        cursor: not-allowed;
        transform: none;
    }

    /* ── LOADING ────────────────────────────── */
    .gov-loading {
        display: none;
        margin-top: 1.25rem;
        padding: 1.25rem 1.5rem;
        background: #f4f6fb;
        border: 1px solid var(--border);
        border-left: 3px solid var(--navy-mid);
        border-radius: 2px;
        display: none;
        align-items: center;
        gap: 1rem;
    }

    .gov-loading-spinner {
        width: 28px;
        height: 28px;
        border: 2px solid var(--border);
        border-top-color: var(--navy);
        border-radius: 50%;
        animation: gov-spin 0.9s linear infinite;
        flex-shrink: 0;
    }

    .gov-loading-text strong {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--navy);
        margin-bottom: 0.2rem;
    }

    .gov-loading-text small {
        font-size: 0.78rem;
        color: var(--text-light);
    }

    .gov-loading-text a {
        color: var(--gold);
        text-decoration: none;
    }

    @keyframes gov-spin {
        to { transform: rotate(360deg); }
    }

    /* ── ERROR ──────────────────────────────── */
    .gov-error-box {
        padding: 1rem 1.25rem;
        background: #fdf5f5;
        border: 1px solid #e8c5c5;
        border-left: 3px solid var(--danger);
        border-radius: 2px;
        font-size: 0.875rem;
        color: var(--danger);
        margin-top: 1rem;
    }

    /* ── RESULTS ────────────────────────────── */
    .gov-results-wrap {
        margin-top: 0.25rem;
    }

    .gov-notice {
        font-size: 0.75rem;
        color: var(--text-light);
        text-align: center;
        margin-bottom: 1rem;
        font-style: italic;
        letter-spacing: 0.02em;
    }

    .gov-notice.warning {
        color: #8a6200;
        background: #fffbeb;
        border: 1px solid #f0d080;
        padding: 0.6rem 1rem;
        border-radius: 2px;
        font-style: normal;
    }

    .gov-results-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.7rem 1.25rem;
        background: var(--navy);
        border-radius: 2px 2px 0 0;
        color: #fff;
    }

    .gov-results-title {
        font-family: "Roboto", sans-serif;
        font-size: 0.85rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.9);
    }

    .gov-results-count {
        font-size: 0.75rem;
        background: var(--gold);
        color: var(--navy);
        font-weight: 700;
        padding: 0.2rem 0.65rem;
        border-radius: 999px;
        letter-spacing: 0.05em;
    }

    .gov-empty {
        background: var(--bg-white);
        border: 1px solid var(--border);
        border-top: none;
        border-radius: 0 0 4px 4px;
        padding: 2.5rem 2rem;
        text-align: center;
        box-shadow: var(--shadow-md);
    }

    .gov-empty-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
        display: block;
    }

    .gov-empty h3 {
        font-family: "Roboto", sans-serif;
        font-size: 1.1rem;
        color: var(--success);
        margin-bottom: 0.5rem;
    }

    .gov-empty p {
        font-size: 0.85rem;
        color: var(--text-light);
    }

    /* ── VIOLATION CARD ─────────────────────── */
    .gov-violation {
        background: var(--bg-white);
        border: 1px solid var(--border);
        border-top: none;
        transition: box-shadow 0.2s;
    }

    .gov-violation:last-child {
        border-radius: 0 0 4px 4px;
        box-shadow: var(--shadow-md);
    }

    .gov-violation + .gov-violation {
        border-top: 1px solid var(--border);
    }

    .gov-violation.unpaid {
        border-left: 3px solid var(--danger);
    }

    .gov-violation.paid {
        border-left: 3px solid var(--success);
    }

    .gov-violation-head {
        padding: 1.1rem 1.5rem;
        cursor: pointer;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 1rem;
        user-select: none;
        transition: background 0.15s;
    }

    .gov-violation-head:hover {
        background: #f8f9fc;
    }

    .gov-violation.active .gov-violation-head {
        background: #f4f6fb;
        border-bottom: 1px solid var(--border);
    }

    .gov-status-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
        flex-wrap: wrap;
    }

    .gov-badge {
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        padding: 0.25rem 0.75rem;
        border-radius: 1px;
    }

    .gov-badge.unpaid {
        background: #fde8e8;
        color: var(--danger);
        border: 1px solid #f5c6c6;
    }

    .gov-badge.paid {
        background: #e6f4ec;
        color: var(--success);
        border: 1px solid #b8dfc8;
    }

    .gov-time {
        font-size: 0.78rem;
        color: var(--text-light);
        font-weight: 300;
        letter-spacing: 0.03em;
    }

    .gov-violation-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-dark);
        line-height: 1.45;
        margin-bottom: 0.4rem;
    }

    .gov-violation-location {
        font-size: 0.78rem;
        color: var(--text-light);
        display: flex;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .gov-chevron {
        width: 18px;
        height: 18px;
        color: var(--text-light);
        transition: transform 0.25s ease, color 0.15s;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .gov-violation.active .gov-chevron {
        transform: rotate(180deg);
        color: var(--navy-mid);
    }

    /* ── VIOLATION DETAILS ──────────────────── */
    .gov-violation-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .gov-violation.active .gov-violation-body {
        max-height: 700px;
    }

    .gov-details-inner {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .gov-detail-section {
        margin-bottom: 0.75rem;
    }

    .gov-detail-label {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--text-light);
        margin-bottom: 0.3rem;
        display: block;
    }

    .gov-detail-value {
        font-size: 0.875rem;
        color: var(--text-dark);
        font-weight: 600;
        line-height: 1.5;
    }

    .gov-unit-card {
        background: #f8f9fc;
        border: 1px solid var(--border);
        border-top: 2px solid var(--navy-mid);
        padding: 1rem 1.25rem;
        margin-top: 0.75rem;
    }

    .gov-unit-type {
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--navy-mid);
        margin-bottom: 0.5rem;
        display: block;
    }

    .gov-unit-name {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .gov-unit-meta {
        font-size: 0.78rem;
        color: var(--text-light);
        line-height: 1.8;
    }

    .gov-unit-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-top: 0.75rem;
    }

    /* ── FOOTER NOTE ─────────────────────────── */
    .gov-footer-note {
        text-align: center;
        font-size: 0.72rem;
        color: var(--text-light);
        margin-top: 1.5rem;
        letter-spacing: 0.03em;
        line-height: 1.7;
    }

    .gov-footer-note strong {
        color: var(--text-mid);
    }

    /* ── SCROLL TOP BTN ─────────────────────── */
    .gov-scroll-top {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        margin-top: 1.25rem;
        font-size: 0.78rem;
        color: var(--navy-mid);
        background: none;
        border: 1px solid var(--border);
        border-radius: 2px;
        padding: 0.5rem 1rem;
        cursor: pointer;
        font-family: "Roboto", sans-serif;
        letter-spacing: 0.05em;
        transition: background 0.15s, border-color 0.15s;
        width: 100%;
        justify-content: center;
    }

    .gov-scroll-top:hover {
        background: #f4f6fb;
        border-color: var(--navy-mid);
    }

    @media (max-width: 540px) {
        .gov-form-row { grid-template-columns: 1fr; }
        .gov-header { padding: 1.5rem; }
        .gov-form-panel { padding: 1.5rem; }
        .gov-unit-grid { grid-template-columns: 1fr; }
        .gov-header-text h1 { font-size: 1.1rem; }
    }

    /* ── CAPTCHA WIDGET ────────────────────────────── */
    .gov-captcha-box {
        border: 1px solid var(--border);
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 0.75rem;
        background: #f8fafc;
    }

    .gov-captcha-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0.875rem;
        background: var(--navy);
        color: #fff;
    }

    .gov-captcha-label {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        opacity: 0.9;
    }

    .gov-captcha-refresh {
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        padding: 2px 4px;
        opacity: 0.75;
        transition: opacity 0.15s;
        display: flex;
        align-items: center;
    }

    .gov-captcha-refresh:hover { opacity: 1; }

    .gov-captcha-body {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 0.875rem;
    }

    .gov-captcha-img-wrap {
        position: relative;
        flex-shrink: 0;
        border-radius: 3px;
        overflow: hidden;
        border: 1px solid var(--border);
        background: #fff;
        width: 200px;
        height: 70px;
    }

    .gov-captcha-img {
        width: 200px;
        height: 70px;
        display: block;
        /*object-fit: contain;*/
    }

    .gov-captcha-loading {
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.85);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gov-captcha-spinner {
        width: 20px;
        height: 20px;
        border: 2px solid var(--border);
        border-top-color: var(--navy);
        border-radius: 50%;
        animation: gov-spin 0.7s linear infinite;
    }

    .gov-captcha-answer-wrap {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .gov-captcha-input { width: 100%; }

    .gov-captcha-submit-btn {
        width: 100%;
        padding: 0.55rem 1rem;
        background: var(--gold);
        color: #fff;
        border: none;
        border-radius: 2px;
        font-size: 0.8rem;
        font-weight: 600;
        font-family: 'Roboto', sans-serif;
        cursor: pointer;
        letter-spacing: 0.04em;
        transition: background 0.15s, opacity 0.15s;
    }

    .gov-captcha-submit-btn:hover    { background: var(--gold-light); }
    .gov-captcha-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

    .gov-captcha-msg {
        padding: 0.35rem 0.875rem 0.5rem;
        font-size: 0.75rem;
        border-top: 1px solid var(--border);
    }

    .gov-captcha-msg.success { color: var(--success); }
    .gov-captcha-msg.error   { color: var(--danger);  }

    @media (max-width: 480px) {
        .gov-captcha-body    { flex-direction: column; align-items: flex-start; }
        .gov-captcha-img-wrap { width: 100%; }
        .gov-captcha-img      { 
            width: 100%; 
            /*height: auto; */
        }
        .gov-captcha-input    { width: 100%; }
    }

    /* ── SUBSCRIBE BOX ─────────────────────────── */
    .gov-subscribe-box {
        margin-top: 1rem;
        border-radius: 4px;
        overflow: hidden;
        border: 1px solid var(--border-gold);
        background: var(--gold-pale);
        box-shadow: var(--shadow-md);
    }

    .gov-subscribe-inner {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .gov-subscribe-icon {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        border-radius: 50%;
        background: var(--gold);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 2px;
    }

    .gov-subscribe-content { flex: 1; min-width: 0; }

    .gov-subscribe-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 0.3rem;
        font-family: 'Source Serif 4', Georgia, serif;
    }

    .gov-subscribe-desc {
        font-size: 0.78rem;
        color: var(--text-mid);
        margin-bottom: 0.875rem;
        line-height: 1.5;
    }

    .gov-subscribe-desc strong { color: var(--navy); }

    .gov-subscribe-fields {
        display: flex;
        gap: 0.5rem;
    }

    .gov-subscribe-input {
        flex: 1;
        padding: 0.6rem 0.875rem;
        border: 1px solid var(--border-gold);
        border-radius: 2px;
        font-size: 0.85rem;
        font-family: 'Source Serif 4', Georgia, serif;
        color: var(--text-dark);
        background: #fff;
        transition: border-color 0.15s, box-shadow 0.15s;
        min-width: 0;
    }

    .gov-subscribe-input:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(184,145,58,0.12);
    }

    .gov-subscribe-btn {
        padding: 0.6rem 1.25rem;
        background: var(--navy);
        color: white;
        border: none;
        border-radius: 2px;
        font-size: 0.8rem;
        font-weight: 600;
        font-family: 'Source Serif 4', Georgia, serif;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.15s, opacity 0.15s;
        letter-spacing: 0.03em;
    }

    .gov-subscribe-btn:hover    { background: var(--navy-mid); }
    .gov-subscribe-btn:disabled { opacity: 0.6; cursor: not-allowed; }

    .gov-subscribe-msg {
        margin-top: 0.6rem;
        font-size: 0.78rem;
        border-radius: 2px;
        padding: 0.4rem 0.75rem;
    }

    .gov-subscribe-msg.success {
        background: rgba(26,107,58,0.1);
        color: var(--success);
        border: 1px solid rgba(26,107,58,0.2);
    }

    .gov-subscribe-msg.error {
        background: rgba(192,57,43,0.08);
        color: var(--danger);
        border: 1px solid rgba(192,57,43,0.2);
    }

    @media (max-width: 540px) {
        .gov-subscribe-inner  { padding: 1rem; }
        .gov-subscribe-fields { flex-direction: column; }
        .gov-subscribe-btn    { width: 100%; text-align: center; }
    }

/* From huong_dan_bpn.php */
.hdbpn-section {
    background: #f8fafc; /* Nền xám nhạt */
    padding: 70px 0;
    font-family: "Roboto", "Inter", sans-serif;
}
.hdbpn-container {
    max-width: 1200px; /* Rộng 1200px đồng bộ */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Wrap */
.hdbpn-header-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.hdbpn-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f2044;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 40px 0;
}

.hdbpn-subtitle {
    font-size: 16px;
    color: #000000;
    margin: 0;
    font-weight: 500;
}

/* Box */
.hdbpn-box {
    position: relative;
}

/* Tabs Menu - Apple-like Glassmorphism */
.hdbpn-tabs {
    display: flex;
    list-style: none;
    padding: 8px; /* Khoảng trống bao quanh các nút */
    margin: 0 0 50px 0;
    border-radius: 20px; 
    background: #f1f5f9; /* Solid background to prevent mobile blur glitch */
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.hdbpn-tab {
    flex: 1;
    padding: 18px 10px;
    font-size: 15px;
    font-weight: 800;
    color: #475569;
    background: transparent !important; /* Mặc định trong suốt */
    border: none;
    border-radius: 14px; /* Bo bo cho nút bên trong */
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    position: relative;
    letter-spacing: 0.5px;
}
.hdbpn-tab:hover:not(.active) {
    color: #1a56db;
    background: #e2e8f0 !important; 
}
.hdbpn-tab.active {
    background: #ffffff !important;
    color: #1a56db !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
}

/* Tab Content Window */
.hdbpn-tab-content-wrapper {
    background: transparent; /* Bỏ nền trắng */
    border-radius: 0; /* Bỏ bo góc do ko còn khung */
    padding: 0; /* Bỏ padding */
    box-shadow: none; /* Bỏ shadow */
}

/* Panels */
.hdbpn-panels-wrapper {
    position: relative;
    background: transparent; /* Đảm bảo không còn nền trắng */
}
.hdbpn-panel {
    display: none;
    position: relative;
}
.hdbpn-panel.active {
    display: block;
    animation: hdbpnFade 0.4s ease;
}
@keyframes hdbpnFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hdbpn-panel-inner {
    padding: 40px 50px;
    transition: max-height 0.4s ease;
}
.hdbpn-panel-collapsed {
    max-height: 480px; 
    overflow: hidden;
}

/* Steps List */
.hdbpn-steps-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.hdbpn-step-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}
.hdbpn-step-num {
    font-size: 48px;
    font-weight: 800;
    line-height: 0.8;
    flex-shrink: 0;
    width: 60px;
    letter-spacing: -2px;
}
/* Multi-color for step numbers (Vibrant & Darker) */
.hdbpn-step-item:nth-child(1) .hdbpn-step-num { color: #2563eb; } /* Blue */
.hdbpn-step-item:nth-child(2) .hdbpn-step-num { color: #16a34a; } /* Green */
.hdbpn-step-item:nth-child(3) .hdbpn-step-num { color: #d97706; } /* Yellow/Gold */
.hdbpn-step-item:nth-child(4) .hdbpn-step-num { color: #db2777; } /* Pink */
.hdbpn-step-item:nth-child(5) .hdbpn-step-num { color: #9333ea; } /* Purple */
.hdbpn-step-item:nth-child(n+6) .hdbpn-step-num { color: #ea580c; } /* Orange */

.hdbpn-step-content {
    flex: 1;
}
.hdbpn-step-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f2044;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hdbpn-step-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #000000;
    font-weight: 400;
}

/* Action Button */
.hdbpn-step-action {
    margin-top: 20px;
}
.hdbpn-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0ba360; /* Màu xanh lá như ảnh */
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(11, 163, 96, 0.2);
    transition: all 0.2s;
}
.hdbpn-action-btn:hover {
    background: #098e52;
    box-shadow: 0 6px 20px rgba(11, 163, 96, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}
.hdbpn-action-btn svg {
    margin-bottom: 2px;
}

/* Read More Overlay */
.hdbpn-readmore-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px; /* Fade gradient height */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 70%, rgba(255,255,255,1) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    pointer-events: none; /* Let clicks pass through the gradient */
}
.hdbpn-readmore-btn {
    pointer-events: auto; /* Re-enable clicks for the button */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1a56db;
    font-size: 12px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.hdbpn-readmore-btn:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

/* Responsive */
@media (max-width: 900px) {
    .hdbpn-section {
        padding: 20px 0;
    }
    .hdbpn-panel-inner {
        padding: 20px 0; /* Bỏ hẳn padding 2 bên để căn mép cực gắt với Menu Tabs */
    }
    .hdbpn-step-list {
        gap: 30px;
    }
    .hdbpn-step-item {
        gap: 12px;
    }
    .hdbpn-step-num {
        font-size: 32px;
        width: 38px;
    }
    .hdbpn-heading {
        font-size: 26px;
    }
    .hdbpn-tabs {
        flex-direction: column;
        padding: 6px;
        border-radius: 16px;
    }
    .hdbpn-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    .hdbpn-tab {
        width: 100%;
        margin-bottom: 4px;
        font-size: 13px;
        padding: 14px 10px;
        border-radius: 12px;
    }
    .hdbpn-tab:last-child {
        margin-bottom: 0;
    }
}

