.header-logo-cs a img{
    width: 100px !important;
}

:root{
    --brand-red:#e60000;
    --brand-text:#212529;
    --brand-muted:#6c757d;
    --brand-bg:#f8f9fa;
}
body{color:var(--brand-text); background: #fff;}

.row-container {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .row-container { max-width: 100%; }
}

@media (min-width: 768px) {
    .row-container { max-width: 100%; }
}

@media (min-width: 992px) {
    .row-container { max-width: 95%; }
}

@media (min-width: 1200px) {
    .row-container { max-width: 95%; }
}

@media all and (min-width: 1200px) and (max-width:1400px){
    .countdown-title {
        font-size: 26px !important;
    }
    /*.count-box {*/
    /*    min-width: 100px !important;*/
    /*    font-size: 30px !important;*/
    /*}*/

}

@media (min-width: 1400px) {
    .row-container { max-width: 1320px; }

}
@media (max-width: 1400px) {
    .countdown-container {
        padding: 10px !important;
    }

}

/* Header */
.topbar{border-top:4px solid var(--brand-red)}
.brand-strip{background:var(--brand-red); color:#fff;}
.brand-strip a{color:#fff; text-decoration:none}
/* Utility */
.object-cover{object-fit:cover}
.hover-up{transition:transform .2s ease, box-shadow .2s ease}
.hover-up:hover{transform:translateY(-2px); box-shadow:0 .25rem .75rem rgba(0,0,0,.06)}
.badge-cat{font-size:.7rem}
/* Section titles */
.section-title{font-weight:500; text-transform:uppercase; letter-spacing:.02em}
/* Carousel caption dark gradient */
.caption-gradient{
    background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.75) 100%);
}
/* Footer */
.footer-top{background:var(--color-brand);}
.footer-bottom{background:#eaa545; color:#5f3f00}

.header-height-2 {
    min-height: unset !important;
}
.header-middle {
    margin: 0 auto;
    width: 100%;
    background: url(../images/bg-header.png) no-repeat center center;
    background-size: cover;
}
.section-footer-top {
    display: inline-block;
    text-align: justify;
    width: 100%;
    margin: 0 auto;
    background: url(https://datafiles.hanoi.gov.vn/gov-hni/themes/default/panelstylesheet/top-twocolumn-footer/images/bg-footer.png) no-repeat center top #d6bc68;
}
/*.common-bg-bar-header{*/
/*    !*background: url('../images/banner_mobile.png') no-repeat center top var(--color-brand);*!*/
/*}*/
.common-bg-bar-header{
    background: url(https://datafiles.hanoi.gov.vn/gov-hni/themes/default/panelstylesheet/top-twocolumn-footer/images/bg-footer.png) no-repeat center top var(--color-brand);
}

.modal-header .btn-close {
    position: absolute;
    top: 5px;
    right: 5px;
}
.common-bg-bar-header .modal-title{
    color: #fff;
}
.section-copyright {
    background: #eaa545;
    color: #5f3f00;
}

.section-pt-60 {
    padding-top: 60px;
}

/* Back to top */
#backToTop{position:fixed; right:1rem; bottom:1rem; z-index:1030; display:none}
/* Small helpers for demo placeholders */
.ratio-600x400{--bs-aspect-ratio: calc(400 / 600 * 100%)}
.ratio-300x200{--bs-aspect-ratio: calc(200 / 300 * 100%)}
.ratio-1200x200{--bs-aspect-ratio: calc(200 / 1200 * 100%)}
.ratio-275x170{--bs-aspect-ratio: calc(170 / 275 * 100%)}
.ratio-200x140{--bs-aspect-ratio: calc(140 / 200 * 100%)}
.ratio-1200x600{--bs-aspect-ratio: calc(600 / 1200 * 100%)}
.ratio-275x176{--bs-aspect-ratio: calc(176 / 275 * 100%)}
.ratio-330x200{--bs-aspect-ratio: calc(200 / 330 * 100%)}
.ratio-180x120{--bs-aspect-ratio: calc(120 / 180 * 100%)}
.ratio-120x60 {--bs-aspect-ratio: calc(60 / 120 * 100%)}
.ratio-899x221 {--bs-aspect-ratio: calc(221 / 899 * 100%)}

/* ===== HERO 3-COLUMN EXACT MATCH ===== */
body, h1,h2,h3,h4,h5,h6,
.heading-font,
.main-heading{
    font-family: 'Roboto', sans-serif !important;
    /*font-family: "Merriweather" !important;*/
}

.text-justify {
    display: inline-block;
    text-align: justify;
}

.main-heading {
    color: var(--color-heading);
}
.news-panel-title{
    font-weight:500;
    text-transform:uppercase;
    letter-spacing:.5px;
    font-size: 20px;
}
.news-bullets{
    list-style:none;
    margin:0; padding:0;
    border-left:1px solid #e9ecef;
}
.news-bullets li{
    position:relative;
    padding: 10px 0;
    border-bottom:1px solid #f1f3f5;
    line-height:1.3;
    margin: 0 5px 0 25px;
}
.news-bullets li::marker {
    content: "";
}
.news-bullets li:last-child{ border-bottom:0; }
.news-bullets li::before{
    content:"";
    position:absolute; left:-1rem; top:1.05rem;
    width:6px; height:6px;
    background:#1f4e8c; border-radius:1px; /* vuông góc nhẹ */
}
.news-bullets a{
    font-size: clamp(12px, 3vw, 14px);
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    text-align: justify;
}
.news-scroll{
    max-height:600px;            /* cho ra scrollbar như ảnh */
    overflow:auto;
    scrollbar-width:thin;
}
.ratio-300x400{ --bs-aspect-ratio: calc(400/300*100%); } /* banner phải */

/* ===== Block Danh Mục Blog ===== */
.block-card{ border:1px solid #e9edf3; }

.block-title {
    color: var(--color-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin: 0;
}
.block-more a{ text-decoration:none; font-weight:500; }
.block-more i{ vertical-align:-2px; }

/* Featured media row */
.ratio-275x170{ --bs-aspect-ratio: calc(170/275*100%); }
.media-feature{ border-bottom:1px solid #edf0f5; }

.heading-first {
    text-transform: lowercase;
}
.heading-first::first-letter {
    text-transform: uppercase !important;
}

/* List links with blue square bullets like screenshot */
.bullet-links{ list-style:none; margin:0; padding:0; }

.btn-act-close{
    z-index: 1;
}

.current-date p{
    font-weight: 500;
    font-size: 0.9rem;
    align-items: center;
    color: #fff;
    display: flex;
    text-transform: capitalize;
}

#main-section{
    background: #fff;
    background: url(../images/bg-content.png) no-repeat center top;
    background-size: 100% auto;
    background-attachment: fixed;
}

.single-page h1 {
    font-size: x-large;
    text-align: justify;
}

.post-title a {
    font-size: medium;
}

.single-header {
    margin-bottom: 15px;
}

.bullet-links li {
    padding: .3rem 0 0.75rem;
    border-bottom: 1px solid #edf0f5;
    position: relative;

    list-style-type: square;
    cursor: pointer;
    border-bottom: 1px solid #EBEBEB;
    min-height: 45px;
    margin: 0 5px 0 10px;
    font-size: clamp(14px, 3vw, 16px);
    line-height: 22.4px;
    color: #2E2E2E;
    transition: all 0.2s;
    width: -webkit-fill-available;
}
.bullet-links li:last-child{ border-bottom:0; }

.bullet-links a {
    text-decoration: none;
    color: #1d1d1f;
}
.bullet-links a:hover {
    text-decoration: none !important;
}
.bullet-links a:hover{ text-decoration:underline; }

.blog-right-sidebar .bullet-links li{
    min-height: unset !important;
    text-align: justify;
}

.card .card-header {
    background: url(https://datafiles.hanoi.gov.vn/gov-hni/themes/default/panelstylesheet/top-twocolumn-footer/images/bg-footer.png) no-repeat center top #ff0000;
    color: #fff;
}

/* Card look */
.block-card{ border-radius:.75rem; }
.block-card .card-body{ padding:1rem 1.25rem 1.25rem; }
.shadow-soft{ box-shadow:0 .25rem 1rem rgba(16,24,40,.05); }

/* Fine-tune responsive spacing */
@media (min-width: 992px){
    .block-card .media-feature .col-img{ flex: 0 0 275px; max-width:275px; }
}

.block-wrap{ border:1px solid #e9edf3; border-radius:.75rem; box-shadow:0 .25rem 1rem rgba(16,24,40,.05); }
.block-head{ padding:1rem 1.25rem .5rem; }
.block-more a{ text-decoration:none; font-weight:500; }
.ratio-500x300{ --bs-aspect-ratio: calc(300/500*100%); }
.ratio-200x140{ --bs-aspect-ratio: calc(140/200*100%); }
.block-body{ padding:1rem; }
.feat-title{ font-weight:500; line-height:1.25; margin:.75rem 0 0; }

.video-card-heading {
    font-size: clamp(14px, 3vw, 15px);
    font-weight: 700;
}
.thumb-title {
    font-weight: 500;
    font-size: clamp(14px, 3vw, 15px);
    line-height: 1.25;
    margin-top: .5rem;
}
.partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
}
.partner-item a {
    display: flex;
}
.ratio-120x60 {
    --bs-aspect-ratio: calc(60 / 120 * 100%);
}
.partner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .5rem;
}

.heading-first-post {
    color: #111111;
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 700;
    line-height: 1.5;
}

.box-right-post {
    border-left: 1px solid rgba(244, 244, 244, 1);
}

.categories-posts-description-loop {
    display: -webkit-box; /* Bắt buộc phải có */
    -webkit-box-orient: vertical; /* Bắt buộc phải có */
    -webkit-line-clamp: 4; /* Số dòng hiển thị */
    overflow: hidden; /* Ẩn nội dung thừa */
    line-height: 1.2rem; /* Điều chỉnh để hiển thị đúng */
    height: 75px;
}

.blog-posts-category .main-heading {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 25px;
    height: 50px;
}

#faqForm .form-label,
#faqForm .form-select,
#faqForm input,
#faqForm .btn,
#filterForm .form-label,
#filterForm .form-select,
#filterForm input,
#filterForm .btn {
    font-size: clamp(0.5rem, 1vw, 1rem);
}

#faqForm input,
#faqForm .form-select,
#filterForm input,
#filterForm .form-select {
    line-height: 2.5;
}

#faqForm .btn,
#filterForm .btn {
    margin-left: .5rem;
    white-space: nowrap;
}
#faqForm .btn:first-child,
#filterForm .btn:first-child {
    margin-left: unset;
}

.page-item .page-link {
    color: var(--color-brand);
}
.page-item.active .page-link {
    color: #fff;
    background-color: var(--color-brand);
    border-color: var(--color-brand);
}

#documentResults .document-results table>tbody>tr>td{
    padding: 5px 20px !important;
}
#backToTop .right_sidebar {
    border-left: 1px solid rgba(244, 244, 244, 1);
}


/*videos*/
.video-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.12);
}
.video-thumbnail {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    overflow: hidden;
    position: relative;
}
.video-duration {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 0.75rem;
}
.video-title {
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    min-height: calc(1.05rem * 1.2 * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-meta {
    font-size: 0.875rem;
    color: #6b7280;
}
.search-wrapper {
    max-width: 480px;
}
@media (max-width: 575.98px) {
    .search-wrapper {
        max-width: 100%;
    }
}

.images-grid .card .ratio img,
.videos-grid .card .ratio img{
    height: auto !important;
}
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .5rem;
}

#document_detail .comments-list i.bi{
    font-size: 1rem;
    margin-left: 10px;
}

.mobile_site_title_custom_description div{
    background-color: unset !important;
    line-height: unset !important;
}
.mobile_site_title_custom_description div,
.mobile_site_title_custom_description>div>span{
    text-align: center;
}

.mobile-header-border {
    padding-top: 0;
}

.header-wrap,
.main-menu.main-menu-lh-2>nav>ul>li{
    min-height: 40px !important;
}

.main-menu.main-menu-lh-2>nav>ul>li {
    line-height: 40px !important;
}

.font-size-20 {
    font-size: 20px;
}

.text-limit-3-row {
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    line-height: 1.4;
    max-height: 5em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-results table a:not(.btn) {
    color: unset !important;
}

.document-results table .text-secondary {
    font-size: 0.9rem;
}

#page-home .section--document-category-list {
    padding-top: 1.5rem !important;
}
.section--document-category-list h2 {
    /*font-size: clamp(14px, 3vw, 30px); conflict block heading*/
    font-weight: 700;
    line-height: 25.2px;
}

.section--document-category-list .card-header {
    display: inline-block;
    text-align: justify;
    width: 100%;
    margin: 0 auto;
    background: url(https://datafiles.hanoi.gov.vn/gov-hni/themes/default/panelstylesheet/top-twocolumn-footer/images/bg-footer.png) no-repeat center top #ff0000;
}

.section--document-category-list .card-header h2,
.section--document-category-list .card-header .block-more a{
    color: #fff;
}

.section--document-category-list .card-body{
    max-height: 400px;
    overflow: auto;
}

.qna-page-main .section--document-category-list .card-body{
    max-height: 750px;
    overflow: auto;
}

.section--document-category-list .card-body p{
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    max-height: 5em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-header-wrapper-style .mobile-header-wrapper-inner {
    display: inline-block;
    text-align: justify;
    width: 100%;
    margin: 0 auto;
    background: url(../images/navigation_mobile.png) no-repeat center top #d6bc68;
    background-size: cover;
}

.qna-form-wrapper{
    display: inline-block;
    text-align: justify;
    width: 100%;
    margin: 0 auto;
    background: url(https://datafiles.hanoi.gov.vn/gov-hni/themes/default/panelstylesheet/top-twocolumn-footer/images/bg-footer.png) no-repeat center #d6bc68;
}

.mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-top {
    background-color: unset !important;
    padding: 10px 30px 0;
}

.mobile-header-wrapper-style .mobile-header-wrapper-inner{
    background-color: var(--color-brand) !important;
}

.qna-form-wrapper {
    color: #fff !important;
}

.card-media * {
    transition: all 0.4s;
}

.card-media:hover img {
    transform: scale(1.05);
}

.page-header.breadcrumb-wrap{
    padding: 5px;
    background: unset !important;
}

.page-header.breadcrumb-wrap .container {
    height: 36px;
    overflow: auto;
    white-space: nowrap;
}

.page-header.breadcrumb-wrap .container::-webkit-scrollbar {
    display: none;
}

.qna-page-main .section--document-category-list {
    padding: unset !important;
}

.qna-page-main .section--document-category-list .block-card {
    border: 1px solid #e9edf3;
    border-radius: .75rem;
    box-shadow: 0 .25rem 1rem rgba(16, 24, 40, .05);
    padding-bottom: 20px;
}
.qna-page-main .section--document-category-list .block-card .card-header {
    text-align: center;
    display: ruby;
    /*background: #fff;*/
    border: unset;
}

.qna-page-main .qna-form-wrapper,
.qna-page-main .section--document-category-list .block-card .card-body {
    /*max-height: 750px;*/
    height: auto;
}

.qna-page-main .qna-form-wrapper #attachment {
    padding: 0;
}
.form-control::-webkit-file-upload-button{
    margin: 0 10px 0 0;
    height: 100%;
}

.document-heading {
    font-size: 1rem;
    font-weight: 500;
}
table.table-document-details {
    margin-bottom: 0 !important;
}
table.table-document-details>tbody>tr>td:first-child,
table.table-qna-details>tbody>tr>td:first-child{
    min-width: 200px;
    font-weight: bold;
}

#documentPreviewModal .modal-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*.header-bottom-bg-color {*/
/*    border-top: 1px solid rgb(228 228 228);*/
/*    border-bottom: 1px solid rgb(228 228 228);*/
/*}*/

.main-menu.main-menu-padding-1>nav>ul>li,
.main-menu>nav>ul>li ul.sub-menu li ul.level-menu {
    padding: 0 !important;
}
.main-menu.main-menu-padding-1>nav>ul>li>a {
    padding: 0 17px;
}

.main-menu.main-menu-lh-2>nav>ul>li>a:hover,
.main-menu>nav>ul>li>a.active
{
    background: #FD1D1D;
    background: linear-gradient(180deg,rgba(253, 29, 29, 1) 0%, rgba(255, 64, 64, 1) 42%, rgba(255, 110, 110, 1) 100%);
    color: #fff;
}

.main-menu>nav>ul>li ul.sub-menu li a:hover{
    background: #ff6969;
    color: #fff;
}

.main-menu>nav>ul>li ul.sub-menu {
    padding: 0 !important;
    font-weight: 600;
}

.main-menu>nav>ul>li ul.sub-menu li {
    margin-bottom: 0 !important;
    border-top: solid 1px #e9edf3;
}

.main-menu>nav>ul>li ul.sub-menu li:first-child {
    border-top: none ;
}

.main-menu>nav>ul>li ul.sub-menu li a {
    color: rgb(218, 0, 1);
    line-height: 1.3rem;
    padding: 10px 30px;
}

.block-row {
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
}

.marq {
    display: inline-block;
    will-change: transform;
    animation: mvar linear infinite;
    animation-duration: var(--marq-speed, 18s);
}

.marq > p {
    display: inline-block;
    margin: 0 32px 0 0;
}

.block-row:hover .marq {
    animation-play-state: paused;
}

.blog-posts-marquee {
    overflow: hidden;
    position: relative;
    text-align: right;
    height: 40px;
}

.blog-posts-marquee .item-title:before {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #DA251C;
    content: '';
    display: inline-block;
    margin-bottom: 2px;
    transform: rotate(90deg);
}

.card-body h2 a {
    color: var(--color-heading) !important;
}

.post__horizontal {
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
}
.post {
    position: relative;
}

.post__horizontal .post__thumbnail {
    float: left;
    position: relative;
    width: 350px;
    z-index: 20;
    height: 220px;
    overflow: hidden;
}
.post__horizontal .post__thumbnail .post__overlay {
    transition: all .4s
    ease-in;
    z-index: 20;
}
.post .post__overlay {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: all .4s
    ease;
    width: 100%;
    z-index: 10;
}

.post__horizontal .post__content-wrap {
    float: left;
    padding: 0 20px;
    width: calc(100% - 350px);
    height: 220px;
}

.post__horizontal .post__content-wrap:before {
    background-color: #fff;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}
.post--single .post__header {
    border-bottom: 1px solid #eee;
}
.post__horizontal .post__content, .post__horizontal .post__footer, .post__horizontal .post__header {
    position: relative;
}
/*.post--single .post__content {*/
/*    padding: 30px 0;*/
/*}*/
.post.post--single .post__content h3 {
    font-size: 1.5rem;
}
.post--single .post__title {
    color: #666;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .05em;
}
.post__horizontal .post__title {
    margin-bottom: 10px;
}
.post__horizontal .post__title a {
    color: #666;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    /*text-transform: uppercase;*/

}
.post--single .post__meta {
    margin-bottom: 10px;
}
.post__horizontal .post__meta {
    margin-bottom: 10px;
    font-size: smaller;
}
.post--single .post__meta span {
    color: var(--color-1st);
    margin-right: 15px;
}
.post__horizontal .post__meta span {
    color: var(--color-1st);
    margin-right: 15px;
}
.post--single .post__meta span svg {
    margin-right: 5px;
}
.post__horizontal .post__meta span svg {
    margin-right: 5px;
}
.post__meta span svg {
    width: 16px;
}
svg:not(:root) {
    overflow: hidden;
}
.post__horizontal .post__content {
    margin-bottom: 15px;
}
.post--single .post__content p {
    font-size: 13px;
    line-height: 1.8em;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    max-height: 9em;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Container chính */
.countdown-container {
    background-color: #df1900;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

table tr td:not(:first-child) {
    text-align: justify;
}

.countdown-title {
    font-size: clamp(1.5vw, 1.5vw, 30px);
    font-weight: 700;
    color: #f8d882;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/* Hàng chứa các ô */
#countdown {
    display: flex;
    justify-content: space-around;
}

/* Ô hiển thị từng giá trị */
.count-box {
    background: #90080a;
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    border-radius: 6px;
    min-width: 64px;
    font-size: clamp(18px, 1.5vw, 24px);
    width: 30%;
}

.count-box span.number {
    display: block;
    font-weight: 700;
    line-height: 1;
}

.count-box small {
    display: block;
    margin-top: 4px;
    opacity: 0.95;
}

.summary-first-post {
    max-width: 100% !important;
}

.hoidap-group {
    margin-top: 16px;
    margin-bottom: 16px;
}

.hoidap-group .hoidap-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
    border-bottom: 1px solid #aaa;
}

.hoidap-group .hoidap-group-header h2 {
    color: #ff0000;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    user-select: none;
    letter-spacing: 0.025em;
    cursor: pointer;
    padding: 8px 5px 0 0 !important;
}

.hoidap-group ul li div{
    font-weight: 700;
    width: 32px;
    height: 32px;
    background-color: #ff0000;
    color: #fff;
    border-radius: 0.375rem;
    user-select: none;
}

.pagination-wrapper ul.pagination {
    justify-content: center;
    gap: 4px;
}

/* Pagination styling theo theme #ff0000 */
.pagination-wrapper .custom-page-link {
    border: 1px solid #dee2e6;
    color: #ff0000;
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
}

.pagination-wrapper .page-item.active .custom-page-link {
    background-color: #ff0000;
    border-color: #ff0000;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(108, 46, 8, 0.3);
}

.pagination-wrapper .custom-page-link:hover:not(.active) {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #ff0000;
    transform: translateY(-1px);
}

.pagination-wrapper .page-item.disabled .custom-page-link {
    color: #6b7280;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.hoidap-item .hoidap-title {
    text-align: justify;
}
/* Hover effect cho hoi dap items */
.hoidap-item:hover .hoidap-title {
    color: #ff0000 !important;
    transition: color 0.2s ease;
}

/* Rotate icon and section styling */
.rotate-icon {
    transition: transform 0.3s ease;
}

[aria-expanded="true"] .rotate-icon {
    transform: rotate(90deg);
}

/* Button visibility */
.btn-sm {
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

[aria-expanded="true"]+.btn-sm {
    display: block !important;
    visibility: visible;
}

/* Smooth collapse animation */
.collapse {
    transition: all 0.35s ease;
}

.collapsing {
    transition: all 0.35s ease;
}

/* Optimize performance */
.faq-page .faq-filter-section {
    border-radius: 10px;
    background: #f0f1f2;
    margin-bottom: 20px;
    padding: 12px;
}
.faq-filter-section input, .faq-filter-section select {
    border-radius: 8px;
    box-shadow: none !important;
    border-color: #d0d5dd !important;
    padding: 10px 14px;
    height: auto;
    min-height: 38px;
}
.form-select {
    border-radius: 0px !important;
    padding: 0.2rem 2.25rem .2rem .75rem;
}
.form-control {
    background: #fff;
    border: 1px solid #b0adab;
    border-radius: 0px !important;
    padding: 10px 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1b1007;
    width: 100%;
    box-sizing: border-box;
}
.search-form button.btn.btn-outline-warning, .faq-filter-section .btn-danger {
    background: #ff0000;
    color: #fff;
    border-radius: 8px;
    border: 0;
    padding: 10px 14px;
    height: auto;
    min-height: 38px;
}

/* Đảm bảo khung chatbox có kích thước cố định hoặc giới hạn nếu cần */
.chatbox-card {
    overflow: hidden; /* Quan trọng để header và footer có góc bo tròn theo card */
}

/* Header */
.chatbox-header {
    padding: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Body (Khu vực hiển thị tin nhắn) */
.chatbox-body {
    height: 400px; /* Đặt chiều cao cố định để tạo hiệu ứng cuộn nếu cần */
    overflow-y: auto;
    background-color: #F8F9FA; /* Màu nền xám nhạt cho khu vực chat */
}
.chatbox-body * {
    font-size: 1rem;
}

/* Tin nhắn của AI */
.ai-message {
    background-color: #E6F0F6; /* Màu nền xanh nhạt cho tin nhắn AI */
    border: 1px solid #D1E7F1;
    max-width: 90%; /* Giới hạn chiều rộng tin nhắn */
    color: #495057;
    /* Dạng bo tròn đặc biệt: Góc trên-trái (10px), dưới-trái (10px), trên-phải (10px), dưới-phải (2px) */
    border-radius: 0.5rem 0.5rem 0.5rem 0.1rem;
}

/* Icon AI */
.chat-icon {
    font-size: 1.5rem;
    align-self: flex-start; /* Giữ icon ở trên cùng */
}

/* Input Group và các nút */
.card-footer .input-group .form-control {
    border-radius: 0.25rem 0 0 0.25rem !important;
}

.user-message {
    background-color: #DCF8C6; /* Màu xanh lá nhạt */
    max-width: 80%;
    color: #495057;
    /* Dạng bo tròn: Góc trên-trái (10px), dưới-trái (2px), trên-phải (10px), dưới-phải (10px) */
    border-radius: 0.5rem 0.5rem 0.1rem 0.5rem;
}

/* Quan trọng: Để đảm bảo tin nhắn người dùng nằm bên phải */
.justify-content-end {
    /* Đảm bảo khối tin nhắn nằm sát bên phải */
    margin-left: auto !important;
}

#send-button {
    margin-left: 10px;
    padding: 12px 20px;
}

.view_all,
.bi-three-dots-vertical{
    color: #ff0000;
}

#articleContent *{
    font-size: unset !important;
}


/* Article Toolbar Styles */
.article-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.article-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 16px;
    color: #333;
}
.article-tool-btn:hover {
    background: #f0f0f0;
    border-color: #df1a00;
    color: #df1a00;
}
.article-tool-btn:active {
    transform: scale(0.95);
}
.article-tool-btn.active {
    background: #df1a00;
    border-color: #df1a00;
    color: #ffffff;
}
.article-tool-btn .font-icon-small {
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}
.article-tool-btn .font-icon-medium {
    font-size: 16px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}
.article-tool-btn .font-icon-large {
    font-size: 20px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}
.article-tool-btn i {
    font-size: 16px;
}

/* Font size variations for article content */
#articleContent.font-small {
    font-size: 14px;
}
#articleContent.font-small h1 {
    font-size: 28px;
}
#articleContent.font-small h2 {
    font-size: 24px;
}
#articleContent.font-small h3 {
    font-size: 20px;
}
#articleContent.font-small h4 {
    font-size: 18px;
}
#articleContent.font-small h5 {
    font-size: 16px;
}
#articleContent.font-small h6 {
    font-size: 14px;
}
#articleContent.font-default {
    font-size: 16px;
}
#articleContent.font-default h1 {
    font-size: 32px;
}
#articleContent.font-default h2 {
    font-size: 28px;
}
#articleContent.font-default h3 {
    font-size: 24px;
}
#articleContent.font-default h4 {
    font-size: 20px;
}
#articleContent.font-default h5 {
    font-size: 18px;
}
#articleContent.font-default h6 {
    font-size: 16px;
}
#articleContent.font-large {
    font-size: 18px;
}
#articleContent.font-large h1 {
    font-size: 36px;
}
#articleContent.font-large h2 {
    font-size: 32px;
}
#articleContent.font-large h3 {
    font-size: 28px;
}
#articleContent.font-large h4 {
    font-size: 24px;
}
#articleContent.font-large h5 {
    font-size: 20px;
}
#articleContent.font-large h6 {
    font-size: 18px;
}
#articleContent.font-xlarge {
    font-size: 20px;
}
#articleContent.font-xlarge h1 {
    font-size: 40px;
}
#articleContent.font-xlarge h2 {
    font-size: 36px;
}
#articleContent.font-xlarge h3 {
    font-size: 32px;
}
#articleContent.font-xlarge h4 {
    font-size: 28px;
}
#articleContent.font-xlarge h5 {
    font-size: 22px;
}
#articleContent.font-xlarge h6 {
    font-size: 20px;
}

/* Print styles */
@media print {
    .article-toolbar,
    .entry-bottom,
    .single-header-meta .entry-meta,
    header,
    footer,
    .primary-sidebar,
    nav,
    .breadcrumb {
        display: none !important;
    }
    #articleContent {
        font-size: 12pt;
        color: #000;
    }
    .single-page {
        max-width: 100%;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .article-toolbar {
        gap: 6px;
    }
    .article-tool-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .article-tool-btn .font-icon-small {
        font-size: 10px;
    }
    .article-tool-btn .font-icon-medium {
        font-size: 14px;
    }
    .article-tool-btn .font-icon-large {
        font-size: 18px;
    }
}


/* dừng khi hover */
@keyframes mvar {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* tôn trọng reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marq {
        animation: none;
    }
}

.main-menu.main-menu-padding-1 {
    /*height: 36px;*/
    /*overflow-x: auto;*/
    /*white-space: nowrap;*/
    /*width: 70%;*/
}

.mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-content-area .mobile-header-info-wrap,
.mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-content-area .mobile-menu-wrap nav .mobile-menu li {
    padding: 10px 0;
}
@media only screen and (max-width: 1200px) {
    .current-date {
        display: none !important;
    }
}
@media only screen and (max-width: 991px) {
    .countdown-title{
        font-size: 24px;
    }
    .mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-content-area .mobile-header-border,
    .mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-content-area .mobile-menu-wrap nav .mobile-menu li {
        border-bottom-color: #fff;
    }

    #documentResults .document-results table>tbody>tr>td,
    table td, table th {
        padding: 5px !important;
    }
    #faqForm .form-label, #faqForm .form-select, #faqForm input, #faqForm .btn,
    #filterForm .form-label, #filterForm .form-select, #filterForm input, #filterForm .btn {
        font-size: unset;
    }
    .display-mobile {
        display: block !important;
    }
    .display-desktop {
        display: none;
    }
    .header-bottom-mobile {
        /*background: url(../images/bg-header-mobile.png) no-repeat center top;*/
        border-bottom: 4px solid var(--color-brand);
    }
    .header-bottom-mobile strong,
    .header-bottom-mobile div,
    .mobile_site_title_custom_description div span{
        color: #fff !important;
    }
    .mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-content-area .mobile-menu-wrap nav .mobile-menu li ul {
        border-top: 1px solid #fff;
        margin-top: 10px;
        padding: 10px 0 0;
        margin-left: 15px;
    }
    .mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-content-area .mobile-menu-wrap nav .mobile-menu li ul li {
        border-bottom: 1px dashed #fff;
    }
    .mobile_site_title_custom_description div span {
        font-size: 20px !important;
    }
    .burger-icon.burger-icon-white>span:after, .burger-icon.burger-icon-white>span:before {
        /*background-color: #333333;*/
    }

    .news-scroll {
        max-height: 300px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .ratio-300x200 {
        --bs-aspect-ratio: calc(200 / 350 * 100%);
    }

    .blog-posts-category .main-heading {
        height: auto;
    }

    .mb-25 {
        margin-bottom: 15px !important;
    }

    .section-copyright,
    .section-copyright .text-footer-reserved {
        text-align: center !important;
    }

    .blog-right-sidebar .ck-content section:last-child {
        margin-bottom: 40px;
    }

    .qna-form-wrapper {
        padding: 20px !important;
    }

    .qna-form-wrapper form label{
        font-size: 1rem;
    }

    .qna-form-wrapper form textarea {
        height: 100px;
    }

    .qna-page-main .qna-form-wrapper {
        max-height: unset;
    }
    .qna-page-main .section--document-category-list .block-card .card-body {
        max-height: 400px;
    }

    .qna-page-main .section--document-category-list {
        padding-bottom: 30px !important;
    }

    .site-title-desktop {
        display: none !important;
    }

    table.table-document-details>tbody>tr>td:first-child, table.table-qna-details>tbody>tr>td:first-child {
        min-width: 100px;
        padding: 5px;
    }

    .bullet-links li{
        padding-right: 0;
        margin: 0 5px 0 0px;
    }

    .news-bullets{
        border-left: none !important;
    }

    .news-bullets li {
        margin: 0 0 0 16px !important;
    }

    .block-card .card-body {
        padding: 0 0.6rem !important;
    }

    .featured-news .mr-15 {
        margin: 0 !important;
    }

    .post__horizontal .post__thumbnail {
        float: left;
        position: relative;
        width: 350px;
        z-index: 20;
    }

    .post__horizontal .post__content-wrap {
        float: left;
        padding: 15px 0 0 0;
        width: calc(100% - 350px);
        height: auto;
    }

    .post__horizontal .post__content-wrap, .post__horizontal .post__thumbnail {
        float: none;
        width: 100%;
    }

    .post--single .post__header {
        border-bottom: none ;
    }
    .post__horizontal .post__title a {
        font-size: 14px;
    }

    .single-header {
        margin-bottom: 0;
    }
    .single-header.style-2 {
        padding-bottom: 0;
    }
    .post.post--single .post__content h3 {
        line-height: 20px;
    }
    .post--single .post__meta {
        font-size: x-small;
    }
    .post__horizontal .post__meta {
        margin-bottom: 0;
    }

    .post__horizontal .post__content {
        margin-bottom: 0;
    }

    .post--single .post__content p {
        margin-bottom: 0;
    }
    .post {
        overflow: hidden;
    }

    .right_sidebar {
        margin-top: 30px;
    }

    .header-bottom-bg-color {
        padding: 0;
        background-color: unset !important;
    }

    .header-bottom-mobile {
        border: unset !important;
    }
    .banner_mobile {
        display: block !important;
    }
    .mobile-search {
        padding: 15px 0 !important;
    }

    .group_btn {
        text-align: right;
        margin-top: 10px;
    }

    .ai-component {
        flex-direction: column;
    }
    .chat-icon {
        display: flex;
        margin-bottom: 10px;
    }
    .chat-icon .chat-name{
        display: block !important;
        font-size: 16px;
        font-weight: 500;
        margin-left: 10px;
    }

    .ai-message {
        flex-direction: column;
    }
    .view_all {
        display: none;
    }
}
@media screen and (min-width: 769px) {
    .mobile-header-wrapper-style.sidebar-visible {
        opacity: unset !important;
        transform: unset !important;
        visibility: unset !important;
    }

    .mobile-menu-active .body-overlay-1 {
        opacity: unset !important;
        visibility: unset !important;
    }
}
@media only screen and (max-width: 767px) {
    .countdown-container {
        margin-top: 20px;
    }
    .banner-tuyen-truyen {
        display: none !important;
    }
}
@media only screen and (max-width: 480px) {



}
