﻿:root {
    /* --primary-600: #0A54A8; */
    /* primary color */
    /* --primary: #005FAF; 
    --primary-300: #337ACC;
    --primary-bg: #F0F5FA; */

    --primary-600: #B70B00;
    /* primary color */
    --primary: #B70B00;
    --primary-400: #E50000;
    --primary-300: #FDE7C2;
    --primary-100: #F8F1BE;
    --primary-bg: #F0F5FA;

    --gradient-primary: linear-gradient(90deg, #005FAF 0%, #1483E0 100%);
    --gradient-primary-200: linear-gradient(90deg, #BED9F8 0%, #EDF5FF 100%);
    /* background-color */
    --primary-bg-200: #E5F1FE;
    --primary-100: #DBEBFC;
    /* secondary color */
    --secondary: #E15F08;
    --orange-600: #E78412;
    --orange: #DE9203;
    --orange-200: ##FED273;
    /* accent-color */
    --red: #E91319;
    /* text-color */
    --gray-800: #212121;
    --Gray-600: #333F51;
    --gray-700: #1B1D2D;
    --gray-500: #565656;
    --gray-100: #EEF0F3;
    --gray-date: #556987;
}

@font-face {
    font-family: 'UTMAvo';
    src: url('/fonts/UTM Avo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'UTMAvo';
    src: url('/fonts/UTM AvoBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Header */
.header .head-top {
    background-color: #fff;
    padding: 3px 0;
}

.header .head-top .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .head-top-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header .head-top-left .search-register {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px 3px 15px;
    background-color: var(--primary-300);
    border-radius: 20px;
    color: #490E0E;
    text-decoration: none;
    transition: all 0.3s
}

.header .head-top-left .search-register:hover {
    background-color: #ffd185;
}

.header .head-top-left .search-register span {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4285714285714286em;
    /* color: #FFFFFF; */
}

.header .head-top-left .search-register i {
    font-size: 20px;
    color: #490E0E;
}

.header .head-top-left .social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .head-top-left .social-icons .icon-wrapper {
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 50%;
}

.header .head-top-left .social-icons .icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header .head-top-left .date-display {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4666666666666666em;
    color: #2A3342;
}

.header .head-top-right {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.header .head-top-right .login-section {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 5px 0 0;
}

.header .head-top-right .login-section a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header .head-top-right .login-section a:hover span {
    color: var(--primary)
}

.header .head-top-right .login-section i {
    width: 17px;
    height: 17px;
    font-size: 17px;
    color: #2A3342;
}

.header .head-top-right .login-section span {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.171875em;
    color: #2A3342;
}

.header .head-top-right .language-select {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header .head-top-right .language-select .lang-switcher {
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    padding: 2px;
    border-radius: 3px;
}

.header .head-top-right .language-select .lang-switcher:hover {
    opacity: 1;
    transform: scale(1.1);
}

.header .head-top-right .language-select .lang-switcher img {
    width: 25px;
    height: 18px;
    opacity: 0.6;
    object-fit: cover;
    box-shadow: 0 0 1px 1px rgb(255 61 0, 0);
    transition: box-shadow 0.3s, opacity 0.3s;
}

.header .head-top-right .language-select .lang-switcher img.active, .header .head-top-right .language-select .lang-switcher:hover img {
    opacity: 1;
    box-shadow: 0 0 1px 1px rgb(255 61 0);
}

.header .header-middle {
    background-color: var(--primary);
    /* background-image: url('/images/bg-header.jpg');
    background-position: center right;
    background-repeat: no-repeat;
    background-size: auto 100%; */
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 10px;
    padding-bottom: 10px;
}

.header .header-middle>.container {
    z-index: 1;
}

/* .header .header-middle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/images/TrongDong-header.png) no-repeat;
    background-size: auto 100%;
    background-position: center left;
} */
/* .header .header-middle::before {
    content: '';
    position: absolute;
    top: 0;
    right: calc(1320px + (100vw - 1320px) / 2 - 355px);
    width: 567px;
    height: 100%;
    background: url(/images/bg-TrongDong-header.png) no-repeat;
    background-size: auto 100%;
    background-position: center center;
} */
@media(min-width: 1200px) and (max-width: 1365px) {
    .header .header-middle::before {
        right: calc(1140px + (100vw - 1140px) / 2 - 350px);
    }
}

@media(min-width: 992px) and (max-width: 1199px) {
    .header .header-middle::before {
        right: calc(960px + (100vw - 960px) / 2 - 350px);
    }
}

@media(min-width: 992px) {
    .header .header-middle>.container {
        padding-left: 0;
        padding-right: 0;
    }
}

.header .header-middle::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/bg-header-2.png');
    background-size: 98% auto;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.8;
}

.header .header-middle .container-fluid {
    position: relative;
    z-index: 1;
}

.header .header-middle .logo-area {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    text-decoration: none;
}

.header .header-middle .logo-area img {
    width: 110px;
    height: 110px;
    /* filter: drop-shadow(0px 0px 14px rgba(255, 255, 255, 1)); */
}

.header .header-middle .logo-text-content {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: 15px;
    /* padding-right: 110px; */
    width: 100%;
}

.header .header-middle .logo-text-content p {
    font-weight: 600;
    font-size: 21px;
    line-height: 1.2em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-align: left;
    margin: 0;
}

.header .header-middle .logo-text-content h1 {
    font-family: 'UTMAvo', Roboto;
    font-weight: bold;
    font-size: 38px;
    line-height: 1.26;
    text-transform: uppercase;
    color: #fff;
    text-align: left;
    margin: 0;
}

.header .header-middle .logo-text-content.logo-text-en {
    gap: 6px;
}

.header .header-middle .logo-text-content .portal-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

.header .header-middle .logo-text-content .portal-title {
    font-size: 30px;
    font-weight: 700;
    color: #E61E25;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.header-tkt .header-middle .logo-text-content h1 {
    font-size: 35px;
}

.header-tkt .search-input-form {
    background: var(--primary);
    border-radius: 100px;
    width: 150px;
}

.header-tkt .search-input-form .input-group {
    /* width: 130px; */
    min-width: 150px !important;
    display: flex;
    flex-wrap: nowrap;
}

.header-tkt .search-input-form .btn {
    color: #fff;
}

.header-tkt .search-input-form .btn.btn-clear {
    padding: 6px 0 6px 6px
}

.header-tkt .search-input-form input {
    background: transparent !important;
    color: #fff;
    box-shadow: none !important;
    border: none !important;
    width: 100%;
    min-width: initial !important;
    flex: 1 0 0%;
}

.header-tkt .search-input-form input::placeholder {
    color: #ffffff !important;
}

.header-tkt .navbar .navbar-brand {
    background: var(--primary);
    border-radius: 100px;
    display: block;
    height: 38px;
    padding: 3px 16px;
    display: flex;
    align-items: center;
    color: #fff;
}

.header .header-middle .logo-text-content .slogan {
    text-align: left;
    margin: 0;
    /* text-transform: none; */
    color: #FFF;
    font-family: Roboto;
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    line-height: 19px;
    letter-spacing: 0.75px;
}

.header .main-nav {
    background-color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 0.5px solid #ebc7c7;
    padding: 0;
}

.header .main-nav .navbar-nav .nav-item {
    /* margin-right: 24px; */
    display: flex;
    align-items: center;
    position: relative;
}

.header .main-nav .navbar-nav .nav-link {
    color: var(--primary-600);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 11px 12px;
    white-space: nowrap;
}

.header .main-nav .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    color: #fff;
    font-family: 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.header .main-nav .nav-right-search .search-dropdown {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #FFFFFF;
    border-radius: 6px;
    padding: 5px 10px;
}

.header .main-nav .nav-right-search .search-dropdown i {
    font-size: 16.66px;
    color: var(--primary-600);
}

/* Custom styles for navbar-toggler-icon to make it visible */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Responsive adjustments */


@media (min-width: 992px) {
    .header-tkt .navbar-expand-lg .navbar-nav {
        justify-content: center;
    }

    .header-tkt .main-nav .navbar-nav>.nav-item>.nav-link {
        display: flex;
        gap: 6px;
        align-items: center;
    }

    .header-tkt .main-nav .navbar-nav>.nav-item>.nav-link::before {
        width: 6px;
        height: 6px;
        background: var(--secondary);
        border-radius: 6px;
        content: '';
        display: inline-block;
    }
}

@media (max-width: 991.98px) {

    .header .head-top .container-fluid,
    .header .header-middle .container-fluid,
    .header .main-nav .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .header .head-top-left {
        gap: 10px;
    }

    .header .head-top-left .date-display {
        font-size: 13px;
    }

    .header .head-top-right {
        align-items: flex-end;
    }

    .header .header-middle {
        height: auto;
        padding: 10px 0;
    }

    .header .header-middle .logo-area {
        text-align: center;
    }

    .header .header-middle .logo-text-content {
        padding-right: 0;
    }

    .header .header-middle .logo-text-content p {
        font-size: 16px;
    }

    .header .header-middle .logo-text-content h1 {
        font-size: 28px;
    }

    .header .header-middle .logo-text-content .slogan {
        font-size: 14px;
    }

    .header .main-nav .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .header .main-nav .navbar-nav .nav-item {
        margin-right: 0;
        width: 100%;
    }
    .header .main-nav .navbar-nav > .nav-item {
        flex-wrap:wrap
    }
    .navbar .navbar-nav>li.nav-item>a {
        width: 100%;
        text-align: left;
    }

    .header .main-nav .navbar-nav .nav-link {
        padding: 8px 0;
    }
    .navbar-toggler {
        padding: 4px;
        margin-left: 10px;
        font-size: 1.15rem;
        line-height: 1;
        background-color: #d3363c;
        border: 1px solid transparent;
        border-radius: 100px;

    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px #ffffff20;
    }
    .navbar .navbar-collapse {
        position: absolute;
        top: calc(100% + 5px);
        left: 10px;
        right: 10px;
        width: initial;
        background: #fff;
        display: none;
    }
    .navbar .navbar-collapse.show {
        display: block;
    }
    
    .navbar .navbar-collapse nav.collapse {
        display: block;
    }
    .navbar .navbar-nav .dropdown-menu {
        position: relative;
        display: inline-block;
        visibility: initial;
    }
    #mainNav .header-nav .dropdown-menu {
        background: transparent;
        width: 100%;
        max-width: 100%;
        top: initial;
        left: initial;
        display: block;
    }
    .navbar>.container {
        position: relative;
    }
}

@media(max-width: 767px) {
    .header .header-middle .logo-text-content h1 {
        font-size: 22px;
    }

    .header-tkt .header-middle .logo-text-content h1 {
        letter-spacing: -0.8px;
    }

    .header .header-middle .logo-text-content p {
        font-size: 15px;
    }

    .header .header-middle::after {
        opacity: .3;
    }

    .header .header-middle {
        background-position: center center;
    }

    .header .header-middle .logo-text-content {
        gap: 8px;
    }

    .header .header-middle .logo-area img {
        width: auto;
        max-width: 80px;
        height: auto;
        filter: none
    }

    
    .navbar>.container {
        position: relative;
    }

    .header .nav-right-search .dropdown-menu>form>.input-group {
        min-width: 250px !important;
    }

    .navbar .navbar-nav>li.nav-item>a,
    .header .main-nav .navbar-nav .nav-link {
        color: var(--gray-800)
    }

    .header .main-nav .navbar-nav .nav-item {
        flex-direction: column;
        align-items: start;
    }

    

    .header .header-middle .logo-area {
        gap: 6px
    }

    .TD-link-img {
        margin-bottom: 16px;
    }

    .grid-container {
        display: inline-block;
        width: 100%;
    }

    .tong-kiem-toan .multimedia-section>.container,
    .tong-kiem-toan .organization-links-section>.container,
    .tong-kiem-toan .quick-links-section>.container {
        padding-left: 0;
        padding-right: 0;
    }

    .tong-kiem-toan .row#quickLinksRow {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .content-article-body {
        max-width: calc(100% - 50px);
    }
    .video-article-content video {
        height: 65vw;
    }
    .video-article-sub .slimScrollDiv {
        height: auto !important;
        max-height: 400px;
    }
    .video-article-sub .layout__vf-scroll {
        padding: 10px 0
    }
    .video-article-sub .tandan-span-date-publish {
        margin-bottom: 0;
    }
    .video-article-sub .tandan-p-article-news-title a {
        line-height: initial;
    }
    .captcha-submit-row {
        flex-direction: column;
    }
    .work-schedule #schedule-content {
        width: 100%;
        overflow: hidden;
        overflow-x: auto;
    }
}

@media(max-width: 480px) {
    .header .header-middle .logo-area img {
        max-width: 60px;
    }
    .header .header-middle .logo-text-content h1 {
        font-size: 20px;
    }
    .header.header-tkt .header-middle .logo-area img {
        max-width: 60px;
    }

    .header-tkt .header-middle .logo-text-content h1 {
        font-size: 19px;
    }

    .header .header-middle .logo-text-content .slogan {
        letter-spacing: -0.3px;
    }
    .pagination .page-link {
        padding: 4px 4px;
        min-width: 30px;
    }
}

.tra-loi-hoi-dap * {
    font-family: Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    font-size: 15px;
    line-height: initial;
}
/* Notification Section */
.notification-section {
    background-color: var(--primary-300);
    border-bottom: 1px solid #EDEDED;
    padding: 4px 0;
}

.notification-section .container-fluid {
    display: flex;
    align-items: center;
    gap: 30px;
}

.notification-section .notification-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-grow: 1;
    position: relative;
}

.notification-section .notification-content .title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: var(--primary);
    border-radius: 6px;
    height: 32px;
    position: relative;
    flex-direction: row;
    white-space: nowrap;
}

.notification-section .notification-content .title .bell-icon-bg {
    padding: 3px 6px 3px 10px;
    background-color: #F59E0B;
    border-radius: 6px 0 0 6px;
    height: 32px;
}

.notification-section .notification-content .title i {
    position: relative;
    z-index: 1;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
}

.notification-section .notification-content .title span {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-right: 10px;
}

.notification-section .notification-content .list {
    display: flex;
    align-items: center;
    gap: 17px;
    overflow: hidden;
    white-space: nowrap;
    flex-grow: 1;
    padding: 5px 0;
    position: relative;
}

.notification-section .notification-content marquee {
    display: flex;
    align-items: center;
    gap: 17px;
    overflow: hidden;
    white-space: nowrap;
    flex-grow: 1;
    flex-direction: row;
}

.notification-section .notification-content .list .item {
    display: inline-block;
    margin-right: 30px;
    text-decoration: none;
    color: #212529;
    transition: all 0.3s;
}

.notification-section .notification-content .list .item:hover {
    color: var(--red);
}

.notification-section .notification-content .list .item i {
    font-size: 12px;
    font-weight: 900;
    color: var(--red);
    display: inline-block;
    margin-top: -4px;
}

.notification-section .notification-content .list .item p {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    display: inline-block;
}

.notification-section .notification-content .list .over {
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--primary-300) 100%);
    z-index: 2;
}

/* Weather Section */
.notification-section .weather-section {
    flex-shrink: 0;
}

.notification-section .weather-content {
    background: linear-gradient(90deg, #FFFCDA 0%, #FFFFFF 100%);
    border-radius: 6px;
    padding: 0px 6px;
    width: 180px;
    height: auto;
}

.notification-section .weather-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.notification-section .weather-details {
    display: flex;
    align-items: center;
    gap: 3px;
}

.notification-section .weather-city {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.067em;
    color: #001E46;
}

.notification-section .weather-temp {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.067em;
    color: #490E0E;
}

.notification-section .weather-icon {
    flex-shrink: 0;
}

.notification-section .weather-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Headnew Section */
.headnew-left .news-item:first-child {
    padding-bottom: 15px;
}

.headnew-left .news-item:first-child .news-date {
    display: none;
}

.headnew-left .news-item:first-child .news-meta {
    color: var(--gray-800);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
}
.headnew-left .news-item .news-date {
    margin-bottom: 0 !important;
    line-height: initial;
}
.headnew-left .news-item .news-date i {
    font-size: 12px;
}
.headnew-left .news-item:first-child .news-meta:hover {
    color: var(--primary);
}

.headnew-left .news-item:nth-child(n+2) .box-image {
    display: none;
}

.headnew-left .news-item:nth-child(n+2) {
    border-top: 1px dashed #757E8C;
    padding-top: 10px;
    padding-bottom: 10px;
}

.headnew-left .news-item:nth-child(n+2) .news-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    align-self: stretch;
    color: #222
}

.headnew-left .news-item:nth-child(n+2) .news-meta:hover {
    color: var(--primary);
}

.headnew-right .news-meta {
    color: var(--primary);
    font-size: 23px;
    font-weight: 700;
    line-height: 29px;
    text-decoration: none;
    transition: all 0.3s
}

.headnew-right .news-meta:hover {
    color: var(--red);
}

.headnew-right .news-decs {
    overflow: hidden;
    color: #565656;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    align-self: stretch;
    font-weight: 400;
    line-height: 22px;
}
.headnew-left .more-btn {
    padding: 7px 12px
}
.headnew-left .more-btn i {
    font-size: 13px;
}
.side-news .news-item {
    margin-bottom: 15px;
}

.side-news .news-item p {
    font-size: 15px;
    font-weight: 400;
}

.hot-news {
    border-radius: 8px;
    background: #FDF5EC;
    padding-left: 20px;
    padding-right: 20px;
}

.hot-news .news2-item {
    padding-left: 10px;
    padding-right: 10px;
}

.tieudiem-carousel-content.slick-slider {
    margin-bottom: 0 -10px 20px -10px;
    padding: 10px 0;
}

.hot-news .hot-news-header {
    background-color: transparent;
    padding: 10px 0px;
    border-radius: 0;
    text-align: center;
    justify-content: center;
    border-bottom: 1px solid var(--primary);
}

.hot-news .hot-news-header .title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
    background-color: transparent;
    color: var(--primary);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.hot-news .news-meta {
    /* color: #1B1D2D; */
    line-height: 20px;
    font-size: 15px;
    font-weight: normal;
}

.hot-news-content {
    padding: 0 20px;
}

.hot-news .news-item {
    margin-top: 15px;
}

.hot-news .news-item p {
    font-size: 15px;
    color: #0A54A8;
}

.hot-news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 0 8px;
    margin-top: 12px;
}

.hot-news-pagination .prev-btn,
.hot-news-pagination .next-btn {
    width: 24px;
    height: 24px;
    background-color: #CEE0FD;
    border-radius: 30px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.hot-news-pagination .prev-btn i,
.hot-news-pagination .next-btn i {
    font-size: 12px;
    color: #556987;
}

.hot-news-pagination .next-btn {
    background-color: #fff;
    border: 1px solid var(--primary);
}

.hot-news-pagination .next-btn i {
    color: #fff;
}

.hot-news-pagination .dots {
    display: flex;
    gap: 5px;
}

.hot-news-pagination .dot {
    width: 10px;
    height: 10px;
    background-color: #CEE0FD;
    border-radius: 10px;
}

.hot-news-pagination .dot.active {
    background-color: var(--primary);
}


.sidebar .auditor-general {
    background: linear-gradient(180deg, #FDE893 0%, #FFFADF 100%);
    padding: 15px;
    text-align: center;
    border-radius: 8px;
}

.sidebar .auditor-general h4 {
    font-size: 20px;
    font-weight: 800;
    color: #B70B00;
    text-transform: uppercase;
}

.sidebar .auditor-general p {
    font-size: 16px;
    color: #000;
}

/* Law Document Section */
.law-document-header .header-decoration,
.card .card-header .header-decoration {
    position: relative;
    width: auto;
    flex: 1 0 0%;
    height: 18px;
    background-image: url('/images/divider.svg');
    background-position: left center;
    background-repeat: repeat-x;
}

.law-document-header .header-decoration>img,
.card .card-header .header-decoration>img {
    display: none;
}

.header-decoration .rect-blue {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 19px;
    height: 35px;
}

.law-document-tabs {
    padding: 0 !important;
    margin: 20px 0;
    display: flex;
    gap: 8px;
}

.law-document-tabs .nav-tabs {
    border: none !important;
}

.law-document-tabs .btn,
.law-document-tabs .nav-link {
    background-color: var(--primary-300);
    color: var(--primary-600);
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    margin: 0 !important;
    border: none !important;
    margin-right: 8px !important;
}

.law-document-tabs .btn.active,
.law-document-tabs .nav-link.active,
.law-document-tabs .nav-link:hover {
    background-color: var(--primary-400);
    color: #fff;
}

.law-document-table {
    padding: 0;
}

.law-document-table .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
    /* Ensure table doesn't shrink too much */
}

.law-document-table th,
.law-document-table td {
    padding: 11px 12px;
    text-align: left;
    font-size: 16px;
    border-bottom: 1px solid #EEEEEE;
    vertical-align: middle;
}

.law-document-table th {
    padding: 10px 12px;
    border-color: #eee !important;
}

.law-document-table thead {
    background-color: #FDE7C2;
    color: #333F51;
}

.law-document-table th {
    font-weight: 700;
    text-align: center;
    background: #FDE7C2;
}

.law-document-table th:not(:first-child),
.law-document-table td:not(:first-child) {
    border-left: 1px solid #FFFFFF;
}

.law-document-table tbody tr:nth-child(even) {
    background-color: #EBF3FE;
}

.law-document-table tbody * {
    transition: all 0.3s;
}

.law-document-table tbody tr:hover {
    background-color: var(--primary-bg-200);
}

.law-document-table tbody tr:nth-child(even) td:not(:first-child) {
    border-left: 1px solid #EBF3FE;
}


.law-document-table td:first-child {
    color: #333;
    width: 153px;
}

.law-document-table td:first-child a {
    color: #333;
    text-decoration: none;
}

.law-document-table td:first-child a:hover {
    color: var(--primary);
}

.law-document-table td:nth-child(2) {
    width: 179px;
    text-align: center;
}

.image-section {
    margin-top: 10px;
}

/* News Events Section */
.news-events-section .card-news-kiemtoan {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    height: 100%;
}

.news-events-section .card-news-kiemtoan .card-head {
    display: flex;
    align-items: flex-end;
    align-self: stretch;
    gap: -1px;
    border-bottom: 1px solid #0A54A8;
}

.news-events-section .card-news-kiemtoan .card-head .title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 5px 2px 5px 8px;
    background-color: #0A54A8;
    color: #fff;
}

.news-events-section .card-news-kiemtoan .card-head .title img {
    width: 25px;
    height: 25px;
}

.news-events-section .card-news-kiemtoan .card-head .title h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5625em;
    text-transform: uppercase;
    margin: 0;
}

.news-events-section .card-news-kiemtoan .card-head .header-decoration {
    position: relative;
    width: 31.5px;
    height: 35px;
}

.news-events-section .card-news-kiemtoan .card-head .header-decoration .rect-blue {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 19px;
    height: 35px;
    fill: #7FB4F0;
}

.news-events-section .card-news-kiemtoan .card-head .header-decoration .rect-lightblue {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 28px;
    fill: #0A54A8;
}

.news-events-section .card-news-kiemtoan .card-content {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 10px;
}

.news-events-section .card-news-kiemtoan .card-content .thumb {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 10px;
}

.news-events-section .card-news-kiemtoan .card-content .thumb img {
    width: 100%;
    height: 276px;
    object-fit: cover;
    border-radius: 8px;
}

.news-events-section .card-news-kiemtoan .card-content .thumb .caption {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 8px;
    padding: 3px 0px 0px;
}

.news-events-section .card-news-kiemtoan .card-content .thumb .caption p {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2777777777777777em;
    color: #005FAF;
    margin: 0;
}

.news-events-section .card-news-kiemtoan .card-content .news-list {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.news-events-section .card-news-kiemtoan .card-content .news-list .news-item {
    display: flex;
    align-self: stretch;
    gap: 15px;
    padding: 14px 0px;
    border-bottom: 1px dashed #8896AB;
}

.news-events-section .card-news-kiemtoan .card-content .news-list .news-item:last-child {
    border-bottom: none;
}

.news-events-section .card-news-kiemtoan .card-content .news-list .news-item img {
    width: 150px;
    height: 94px;
    object-fit: cover;
    border-radius: 6px;
}

.news-events-section .card-news-kiemtoan .card-content .news-list .news-item .content {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 10px;
}

.news-events-section .card-news-kiemtoan .card-content .news-list .news-item .content p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.2em;
    color: #212121;
    margin: 0;
}

.news-events-section .card-news-kiemtoan .card-content .news-list .news-item .content .date-info {
    display: flex;
    gap: 6px;
    align-items: center;
}

.news-events-section .card-news-kiemtoan .card-content .news-list .news-item .content .date-info i {
    font-family: 'Font Awesome 5 Free', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.2307692307692308em;
    color: #556987;
}

.news-events-section .card-news-kiemtoan .card-content .news-list .news-item .content .date-info span {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.1428571428571428em;
    color: #556987;
}

/* Quick Links Section */
.quick-links-section {
    background: #fff;
    padding: 10px 0 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.quick-links-section .quick-links-header {
    width: 100%;
    border-top: 2px solid var(--secondary);
    margin-bottom: 10px;
}

.quick-links-section .quick-links-header h3 {
    font-size: 23px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0;
    padding: 15px 0;
    text-align: center;
}

.quick-links-section .row {
    justify-content: center;
}

.quick-links-section .quick-link-item {
    background-color: #FFFCDA;
    /* border: 1px solid #C4DDF9; */
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.3s
}

.quick-links-section .quick-link-item img {
    width: auto;
    max-width: 75px;
    height: 45px;
    object-fit: cover;
}

.quick-links-section .quick-link-item .content {
    flex-grow: 1;
}

.quick-links-section .quick-link-item h4 {
    font-size: 16px;
    font-weight: 500;
    /* text-transform: uppercase; */
    color: #404F65;
    margin: 0;
}

.quick-links-section .quick-link-item p {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2A3342;
    margin: 0;
}

.quick-links-section .view-more-btn {
    background: #F8F1BE;
    border-radius: 20px;
    border: none;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 138px;
    justify-content: center;
    margin: auto;
    color: #490E0E;
    transition: all 0.3s
}

.quick-links-section .view-more-btn span {
    font-size: 16px;
    font-weight: 400;
}

.quick-links-section .view-more-btn i {
    font-size: 11px;
    font-weight: 900;
    transition: all 0.3s
}

.quick-links-section .view-more-btn:hover {
    background: var(--primary);
    color: #fff
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

/* View more button styles reused in law document tabs */
.law-document-section .view-more-btn {
    background: linear-gradient(0deg, #BED9F8 0%, #BED9F8 100%);
    border-radius: 20px;
    border: none;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 138px;
    justify-content: center;
    margin: auto;
    color: #0E2449;
    transition: all 0.3s
}

.law-document-section .view-more-btn span {
    font-size: 16px;
    font-weight: 400;
}

.law-document-section .view-more-btn i {
    font-size: 11px;
    font-weight: 900;
    transition: all 0.3s
}

.law-document-section .view-more-btn:hover {
    background: var(--primary);
    color: #fff
}

.view-more-btn .btn-icon {
    transition: transform 0.3s ease;
}

.view-more-btn[aria-expanded="true"] .btn-icon {
    transform: rotate(180deg);
}

.view-more-btn[aria-expanded="true"] .btn-text {
    content: "Thu gọn";
}

/* Collapse animation */
.collapse {
    transition: all 0.3s ease;
}

.collapsing {
    transition: all 0.3s ease;
}

/* Other Links Section */
.other-links-section {
    padding: 20px 0;
}

.other-links-section .row {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.other-links-section .col-md-3 {
    flex: 0 0 calc(25% - 18px);
    /* Adjust for gap */
    max-width: calc(25% - 18px);
}

.other-links-section .other-link-item {
    background: linear-gradient(90deg, #005FAF 0%, #0E91CE 100%);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 107px;
    position: relative;
    overflow: hidden;
}

.other-links-section .other-link-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    /* Adjust as needed for background effect */
}

.other-links-section .other-link-item h4 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Organization Links Section */
.organization-links-section {
    background-color: #FFFFFF;
    padding: 30px 0;
}

.organization-links-section .section-content {
    background: linear-gradient(180deg, #FFFCDA 0%, #FFFCDA 100%);
    border-radius: 6px;
    padding: 14px 5px 14px 10px;
    position: relative;
}

.organization-links-section .row {
    justify-content: space-between;
    align-items: stretch;
}

.organization-links-section .col-md-2 {
    flex: 0 0 calc(16.666667% - 10px);
    /* Adjust for gap */
    max-width: calc(16.666667% - 10px);
}

.organization-links-section .link-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    text-decoration: none;
    color: var(--primary-600);
    transition: all 0.2s
}

.organization-links-section .link-item:hover {
    color: var(--red);
}

.organization-links-section .link-item .thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}

.organization-links-section .link-item .thumb img {
    height: 45px;
    max-width: 100%;
}

.organization-links-section .link-item p {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4375em;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

.organization-links-section .prev-btn,
.organization-links-section .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-color: #FFFFFF;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.organization-links-section .prev-btn {
    left: -15px;
}

.organization-links-section .next-btn {
    right: -15px;
}

.organization-links-section .prev-btn i,
.organization-links-section .next-btn i {
    font-size: 12px;
    color: #556987;
}

/* Footer */
.footer {
    background-color: #EEF0F3;
    /* background-image: url('/images/bg-TrongDong-footer.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 90% auto; */
    color: #234E94;
    position: relative;
    overflow: hidden;
    font-size: 15px;
}

/* Footer Traffic Section */
.footer-traffic-section {
    margin: 20px 0;
    padding: 20px 0;
}

/* New Traffic Container Design */
.traffic-container {
    width: 100%;
    height: 100%;
    padding-left: 10px;
    padding-right: 10px;
    border-left: 1px solid #BBC3CF;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    display: inline-flex;
}

.traffic-icon-container {
    width: 40px;
    height: 40px;
    background: #D5DAE1;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
}

.traffic-icon-wrapper {
    width: 30px;
    height: 30px;
    position: relative;
    overflow: hidden;
}

.traffic-icon-img {
    width: 24px;
    height: 23.62px;
    left: 3px;
    top: 3.19px;
    position: absolute;
    /* filter: brightness(0) invert(1); */
}

.traffic-content-wrapper {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    display: inline-flex;
}

.traffic-stat-line {
    align-self: stretch;
}

.traffic-label {
    color: #234E94;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 22px;
    word-wrap: break-word;
}

.traffic-value {
    color: #234E94;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 22px;
    word-wrap: break-word;
}

.footer-info {
    padding-bottom: 0px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ffffff30;
}

.footer-info p {
    margin-bottom: 6px;
}

.footer-info a {
    color: #234E94;
    text-decoration: none;
}

.footer-info a:hover {
    color: var(--primary);
}

/* Footer Bottom Section Layout */
.footer-bottom-section {
    display: flex;
    align-items: center;
    gap: 20px;
    /* padding: 20px 0; */
    border-top: 1px dashed #BBC3CF;
    padding-top: 20px;
}

.footer-bottom-section .col-12.col-md {
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-bottom-section .col-12.col-md p {
    color: #234E94;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    line-height: 22px;
    margin: 0;
    padding: 0;
    margin-bottom: 5px;
}

.footer-bottom-section .col-12.col-md p:last-child {
    margin-bottom: 0;
}

.footer-traffic-container {
    flex: 0 0 auto;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: flex-end;
}

.footer-links-container {
    flex: 0 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    border-left: 1px solid #BBC3CF;
}

.footer-link-item a {
    color: #234E94;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 22px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link-item a:hover {
    color: var(--primary);
}

.footer-link-item a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #234E94;
    border-radius: 50%;
    flex-shrink: 0;
}

.nav-footer {
    border-left: 1px solid #ffffff30;
}

.nav-footer a {
    color: #FFF;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    text-decoration: none;
    padding: 6px 10px 6px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-footer a:hover {
    color: yellow;
}

.nav-footer a:hover::before {
    background: yellow;
}

.nav-footer a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 10px;
}

.footer-copyright {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright p {
    color: white;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
}

.footer .footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.footer .footer-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 49% 0%, rgba(217, 217, 217, 1) 0%, rgba(115, 115, 115, 0) 100%);
}

.footer .footer-bg-image {
    position: absolute;
    top: -1078px;
    left: 73px;
    width: 1741px;
    height: 1741px;
    object-fit: cover;
    opacity: 0.1;
}

.footer .footer-main-content {
    padding: 20px 0 0;
    position: relative;
    /* To ensure content is above background */
    z-index: 1;
}

.footer .footer-main-content .container {
    padding: 0 320px;
}

.footer .footer-row-top {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    gap: 20px;
    padding: 10px 0 0;
}

.footer .footer-col-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.footer .footer-logo-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer .footer-logo-img {
    width: 139px;
    height: 139px;
}

.footer .footer-logo-text p {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4666666666666666em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
}

.footer .footer-contact-info p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4666666666666666em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 10px;
}

.footer .footer-col-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.footer .footer-license-info {
    margin-bottom: 20px;
}

.footer .footer-license-info p {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4666666666666666em;
    color: #FFFFFF;
    text-align: left;
    margin-bottom: 10px;
}

.footer .footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.footer .footer-links-group a {
    color: #fff;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4666666666666666em;
    text-align: left;
}

.footer .footer-bottom {
    background-color: #D5DAE1;
    padding: 10px 0;
    margin-top: 14px;
    position: relative;
    /* To ensure content is above background */
    z-index: 1;
}

.footer .footer-bottom .container {
    padding: 0 320px;
}

.footer .footer-bottom p {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5714285714285714em;
    color: #333F51;
    margin: 0;
}

/* Search Dropdown Styles */
.header .main-nav .nav-right-search .search-dropdown {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #fde8c5;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    border: none;
    z-index: 1001;
    /* Ensure it's above other elements */
}

.header .main-nav .nav-right-search .search-dropdown .search-icon {
    font-size: 16.66px;
    color: var(--primary-600);
}

.header .nav-right-search {
    position: relative;
}

.header .nav-right-search .dropdown-menu {
    left: auto;
    right: 0;
    padding: 0;
    border-radius: 6px;
    transition: all 0.3s;
    display: block;
    top: calc(100% + 20px);
    visibility: hidden;
}
.header .nav-right-search .dropdown-menu.show {
    visibility: inherit;
    top: 100%
}

.header .nav-right-search .dropdown-menu .input-group {
    flex-wrap: nowrap;
}
.header .nav-right-search .dropdown-menu .input-group input {
    box-shadow: none !important;
}

/* Breadcrumb styles for article layout */
.breadcrumb-article {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-article .breadcrumb-item a:hover {
    color: var(--primary);
}

/* Content article styles */
/* ==========================================================================
   SHADING BOX WRAPPER — Khối hộp nền màu bọc toàn bộ đoạn văn
   Phương án Wrapper Element: Background đặt trên thẻ <div> bao ngoài,
   các thẻ con (p, h1-h6, figure...) bên trong đều mang nền trong suốt.
   → Kết quả: khối hình chữ nhật liền mạch, không đứt gãy.
   ========================================================================== */

/* ── Container chính (.td-shading-box) ── */
/* CHỈ đổ nền — KHÔNG viền trắng, KHÔNG khoảng cách, trải kín hoàn toàn */
.td-shading-box,
.ck.ck-editor__editable .td-shading-box,
.ck-content .td-shading-box,
.detail-content .td-shading-box {
  display: flow-root;
  padding: 15px 20px;
  margin: 0;
  border-radius: 0;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
  position: relative;
}

/* Phần tử con bên trong wrapper → CHỈ reset nền trong suốt
   KHÔNG ghi đè margin, padding, text-align hay bất kỳ thuộc tính layout nào */
.td-shading-box > *,
.ck.ck-editor__editable .td-shading-box > *,
.ck-content .td-shading-box > *,
.detail-content .td-shading-box > * {
  background-color: transparent !important;
}

/* ──────────────────────────────────────────────
   XỬ LÝ <figure> BÊN TRONG WRAPPER
   figcaption phải trong suốt để kế thừa nền từ wrapper
   Cần specificity cao hơn rule editor gốc (.ck.ck-editor__editable figure.image>figcaption)
   ────────────────────────────────────────────── */
.td-shading-box > figure > figcaption,
.td-shading-box > figure.image > figcaption,
.td-shading-box figure figcaption,
.ck.ck-editor__editable .td-shading-box > figure > figcaption,
.ck.ck-editor__editable .td-shading-box > figure.image > figcaption,
.ck.ck-editor__editable .td-shading-box figure figcaption,
.ck-content .td-shading-box > figure > figcaption,
.ck-content .td-shading-box > figure.image > figcaption,
.ck-content .td-shading-box figure figcaption,
.detail-content .td-shading-box > figure > figcaption,
.detail-content .td-shading-box > figure.image > figcaption,
.detail-content .td-shading-box figure figcaption {
  background-color: transparent !important;
  border-color: transparent !important;
}

/* Khi figure nằm trong shading box → bỏ margin để không bị khoảng trắng */
.ck.ck-editor__editable .td-shading-box figure.image,
.ck-content .td-shading-box figure.image,
.td-shading-box figure.image,
.detail-content .td-shading-box figure.image {
  margin: 0 !important;
}

/* ──────────────────────────────────────────────
   SMART MERGE — Nối liền mạch 2 wrapper box kề nhau
   Khi 2 .td-shading-box cùng màu nằm cạnh nhau,
   chúng sẽ tự động merge thành 1 khối liền mạch
   ────────────────────────────────────────────── */

/* Wrapper nằm dưới liền kề wrapper phía trên → bẹt radius trên, xóa margin-top */
.td-shading-box + .td-shading-box,
.ck.ck-editor__editable .td-shading-box + .td-shading-box,
.ck-content .td-shading-box + .td-shading-box,
.detail-content .td-shading-box + .td-shading-box {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  padding-top: 0 !important;
}

/* Wrapper nằm trên liền kề wrapper phía dưới → bẹt radius dưới, xóa margin-bottom */
.td-shading-box:has(+ .td-shading-box),
.ck.ck-editor__editable .td-shading-box:has(+ .td-shading-box),
.ck-content .td-shading-box:has(+ .td-shading-box),
.detail-content .td-shading-box:has(+ .td-shading-box) {
  margin-bottom: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  padding-bottom: 0 !important;
}

/* ──────────────────────────────────────────────
   EDITOR MODE — Hiện viền nét đứt cho developer dễ nhận diện
   ────────────────────────────────────────────── */
.ck.ck-editor__editable .td-shading-box {
  outline: 2px dashed rgba(59, 130, 246, 0.25);
  outline-offset: -2px;
}

.ck.ck-editor__editable .td-shading-box:hover {
  outline-color: rgba(59, 130, 246, 0.5);
}

/* ──────────────────────────────────────────────
   TƯƠNG THÍCH NGƯỢC — Hỗ trợ content cũ
   Content cũ dùng class .td-shading-block (per-block) vẫn hiển thị đúng
   ────────────────────────────────────────────── */
.td-shading-block,
.ck.ck-editor__editable .td-shading-block,
.ck-content .td-shading-block,
.detail-content .td-shading-block {
  display: block;
  padding: 15px 20px;
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
}

/* Content cũ dùng inline style background-color trực tiếp */
.ck.ck-editor__editable [style*="background-color"]:not(.td-shading-box):not(.td-shading-block):not(figure):not(figcaption):not(span):not(mark):not(div),
.ck-content [style*="background-color"]:not(.td-shading-box):not(.td-shading-block):not(figure):not(figcaption):not(span):not(mark):not(div),
.detail-content [style*="background-color"]:not(.td-shading-box):not(.td-shading-block):not(figure):not(figcaption):not(span):not(mark):not(div) {
  display: block;
  padding: 15px 20px;
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 4px;
}

/* ──────────────────────────────────────────────
   MÀU TỐI → CHỮ TRẮNG ĐỂ DỄ ĐỌC
   ────────────────────────────────────────────── */
.td-shading-box[style*="background-color: #111827"],
.td-shading-box[style*="background-color: #1f2937"],
.td-shading-box[style*="background-color: #374151"],
.td-shading-box[style*="background-color: #1d4ed8"],
.td-shading-box[style*="background-color: #2563eb"],
.td-shading-box[style*="background-color: #15803d"],
.td-shading-box[style*="background-color: #16a34a"],
.td-shading-box[style*="background-color: #7e22ce"],
.td-shading-box[style*="background-color: #9333ea"],
.td-shading-box[style*="background-color: #ef4444"],
.td-shading-box[style*="background-color: #f97316"],
.td-shading-box[style*="background-color: #9ca3af"],
.ck-content .td-shading-box[style*="background-color: #111827"],
.ck-content .td-shading-box[style*="background-color: #1f2937"],
.ck-content .td-shading-box[style*="background-color: #374151"],
.ck-content .td-shading-box[style*="background-color: #1d4ed8"],
.ck-content .td-shading-box[style*="background-color: #2563eb"],
.ck-content .td-shading-box[style*="background-color: #15803d"],
.ck-content .td-shading-box[style*="background-color: #16a34a"],
.ck-content .td-shading-box[style*="background-color: #7e22ce"],
.ck-content .td-shading-box[style*="background-color: #9333ea"],
.ck-content .td-shading-box[style*="background-color: #ef4444"],
.ck-content .td-shading-box[style*="background-color: #f97316"],
.ck-content .td-shading-box[style*="background-color: #9ca3af"],
.detail-content .td-shading-box[style*="background-color: #111827"],
.detail-content .td-shading-box[style*="background-color: #1f2937"],
.detail-content .td-shading-box[style*="background-color: #374151"],
.detail-content .td-shading-box[style*="background-color: #1d4ed8"],
.detail-content .td-shading-box[style*="background-color: #2563eb"],
.detail-content .td-shading-box[style*="background-color: #15803d"],
.detail-content .td-shading-box[style*="background-color: #16a34a"],
.detail-content .td-shading-box[style*="background-color: #7e22ce"],
.detail-content .td-shading-box[style*="background-color: #9333ea"],
.detail-content .td-shading-box[style*="background-color: #ef4444"],
.detail-content .td-shading-box[style*="background-color: #f97316"],
.detail-content .td-shading-box[style*="background-color: #9ca3af"],
.ck.ck-editor__editable .td-shading-box[style*="background-color: #111827"],
.ck.ck-editor__editable .td-shading-box[style*="background-color: #1f2937"],
.ck.ck-editor__editable .td-shading-box[style*="background-color: #374151"],
.ck.ck-editor__editable .td-shading-box[style*="background-color: #1d4ed8"],
.ck.ck-editor__editable .td-shading-box[style*="background-color: #2563eb"],
.ck.ck-editor__editable .td-shading-box[style*="background-color: #15803d"],
.ck.ck-editor__editable .td-shading-box[style*="background-color: #16a34a"],
.ck.ck-editor__editable .td-shading-box[style*="background-color: #7e22ce"],
.ck.ck-editor__editable .td-shading-box[style*="background-color: #9333ea"],
.ck.ck-editor__editable .td-shading-box[style*="background-color: #ef4444"],
.ck.ck-editor__editable .td-shading-box[style*="background-color: #f97316"],
.ck.ck-editor__editable .td-shading-box[style*="background-color: #9ca3af"] {
  color: #ffffff;
}

/* Drop Cap - Chữ cái đầu lớn */
.drop-cap::first-letter {
    float: left;
    font-size: 4em;
    line-height: 0.8;
    margin: 0.1em 0.15em 0 0;
    font-weight: bold;
    color: #1a365d;
}

/* Lead Paragraph - Đoạn dẫn */
.lead-paragraph {
    font-size: 1.25em;
    font-weight: 500;
    color: #374151;
    border-left: 4px solid #3b82f6;
    padding-left: 1em;
    margin: 1.5em 0;
}

blockquote {
    position: relative;
    margin: 1.5em 0;
    padding: 1em 3em 1em 3em;
    border-left: 4px solid #007bff;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 8px 8px 0;
    color: #495057;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

blockquote::before {
    content: '❝';
    position: absolute;
    left: 8px;
    top: 20px;
    font-size: 3.5em;
    line-height: 0;
    font-family: Georgia, serif;
    color: #007bff;
    opacity: 0.4;
    pointer-events: none;
}

blockquote::after {
    content: '❞';
    position: absolute;
    right: 8px;
    bottom: 8px;
    font-size: 3.5em;
    line-height: 0;
    font-family: Georgia, serif;
    color: #007bff;
    opacity: 0.4;
    pointer-events: none;
}

blockquote p:last-child {
    margin-bottom: 0;
}

.pull-quote {
    font-size: 1.5em;
    font-style: italic;
    text-align: center;
    color: #1e40af;
    border: none;
    padding: 1.5em 2em;
    margin: 2em auto;
    max-width: 80%;
    position: relative;
    background: #f8fafc;
    border-radius: 8px;
}

.pull-quote::before {
    content: '❝';
    font-size: 2.5em;
    position: absolute;
    top: -0.1em;
    left: 0.2em;
    color: #8ca9cf;
    font-family: serif;
}

.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    padding: 1.5em;
    margin: 1.5em 0;
    border-left: 4px solid #f59e0b;
}

.author-info {
    font-style: italic;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-top: 1em;
    margin-top: 2em;
}

.two-columns {
    column-count: 2;
    column-gap: 2em;
    column-rule: 2px solid #e5e7eb;
    background: #f8fafc;
    padding: 1.5em;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.image-caption {
    font-size: 0.875em;
    color: #6b7280;
    text-align: center;
    font-style: italic;
    margin-top: 0.5em;
}

.stat-number {
    text-align: center;
    padding: 2em 1.5em;
    margin: 2em 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.stat-number strong,
.stat-number b {
    display: block;
    font-size: 3.5em;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-number p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.info-alert {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-left: 5px solid #0284c7;
    border-radius: 0 12px 12px 0;
    padding: 1.25em 1.5em;
    margin: 1.5em 0;
    color: #0c4a6e;
    position: relative;
}

.info-alert::before {
    content: 'ℹ️';
    position: absolute;
    left: -2px;
    top: -12px;
    font-size: 1.5em;
    background: white;
    border-radius: 50%;
    padding: 2px 6px;
}

.warning-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #d97706;
    border-radius: 0 12px 12px 0;
    padding: 1.25em 1.5em;
    margin: 1.5em 0;
    color: #92400e;
    position: relative;
}

.warning-alert::before {
    content: '⚠️';
    position: absolute;
    left: -2px;
    top: -12px;
    font-size: 1.5em;
    background: white;
    border-radius: 50%;
    padding: 2px 6px;
}

.success-alert {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 5px solid #059669;
    border-radius: 0 12px 12px 0;
    padding: 1.25em 1.5em;
    margin: 1.5em 0;
    color: #065f46;
    position: relative;
}

.success-alert::before {
    content: '✅';
    position: absolute;
    left: -2px;
    top: -12px;
    font-size: 1.5em;
    background: white;
    border-radius: 50%;
    padding: 2px 6px;
}

.section-divider {
    text-align: center;
    margin: 2em 0;
    display: flex;
    align-items: center;
    gap: 1em;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6);
}

.section-divider::after {
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, transparent);
}

.three-columns {
    column-count: 3;
    column-gap: 1.5em;
    column-rule: 2px solid #e5e7eb;
    background: #f8fafc;
    padding: 1.5em;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .three-columns {
        column-count: 1;
    }

    .two-columns {
        column-count: 1;
    }
}

.conclusion-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f1f5f9;
    padding: 2em;
    border-radius: 16px;
    margin: 2em 0;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.conclusion-box::before {
    content: '📌 KẾT LUẬN';
    display: block;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.1em;
    color: #fbbf24;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.conclusion-box p {
    margin: 0;
    line-height: 1.8;
}

.emphasis-paragraph {
    font-size: 1.15em;
    font-weight: 500;
    color: #1e40af;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.25em 1.5em;
    border-radius: 12px;
    margin: 1.5em 0;
    border-left: 4px solid #3b82f6;
    position: relative;
}

.emphasis-paragraph::before {
    content: '💡';
    position: absolute;
    left: 12px;
    top: -10px;
    font-size: 1.3em;
    background: white;
    border-radius: 50%;
    padding: 2px 4px;
}

.image-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 1.5em 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-grid-2x2 figure,
.image-grid-2x2 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
    transition: transform 0.3s ease;
}

.image-grid-2x2 figure:hover img,
.image-grid-2x2 img:hover {
    transform: scale(1.05);
}

.image-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 1.5em 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-grid-3col figure,
.image-grid-3col img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin: 0;
    transition: transform 0.3s ease;
}

.image-grid-3col figure:hover img,
.image-grid-3col img:hover {
    transform: scale(1.05);
}

.image-grid-2x1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 1.5em 0;
}

.image-grid-2x1 figure,
.image-grid-2x1 img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .image-grid-2x2,
    .image-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-grid-2x1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .image-grid-2x2,
    .image-grid-3col,
    .image-grid-2x1 {
        grid-template-columns: 1fr;
    }
}

.image-comparison {
    position: relative;
    margin: 2em 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #f1f5f9;
    min-height: 300px;
}

.image-comparison::before {
    content: '⚖️ Kéo thanh trượt để so sánh';
    display: block;
    text-align: center;
    padding: 1em;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9em;
}

.image-comparison figure {
    display: inline-block;
    width: 49%;
    margin: 0.5%;
    vertical-align: top;
}

.image-comparison figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-comparison figure figcaption {
    text-align: center;
    padding: 0.5em;
    font-weight: 600;
    color: #374151;
}

.image-comparison figure:first-of-type::after {
    content: 'TRƯỚC';
    position: absolute;
    top: 60px;
    left: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
}

.image-comparison figure:last-of-type::after {
    content: 'SAU';
    position: absolute;
    top: 60px;
    right: 10px;
    background: #22c55e;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
}

.td-grid-layout {
    display: grid;
    gap: 16px;
    margin: 1.5em 0;
}

.td-grid-layout .td-grid-col {
    min-height: 120px;
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.td-grid-1col {
    grid-template-columns: minmax(0, 1fr);
}

.td-grid-2col-equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-grid-3col-equal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.td-grid-4col-equal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.td-grid-5col-equal {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.td-grid-2col-33-67 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.td-grid-2col-67-33 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.td-grid-2col-25-75 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
}

.td-grid-2col-75-25 {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}

.td-grid-3col-25-50-25 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
}

.td-grid-3col-50-25-25 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.td-grid-3col-25-25-50 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
}

.td-grid-2col-sidebar-left {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.td-grid-2col-sidebar-right {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
}

.td-grid-3col-60-20-20 {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1fr);
}

.td-grid-layout-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: transparent;
}

.td-grid-layout-panel {
    position: fixed;
    z-index: 99999;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(229, 231, 235);
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 32px;
    padding: 0;
    min-width: 280px;
    max-width: 340px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: tdGridPanelFadeIn 0.15s ease;
}

.td-grid-layout-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgb(229, 231, 235);
    background: rgb(249, 250, 251);
    border-radius: 8px 8px 0 0;
}

.td-grid-layout-panel__title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.td-grid-layout-panel__close {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: rgb(107, 114, 128);
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}

.td-grid-layout-panel__close:hover {
    background: #f3f4f6;
}

.td-grid-layout-panel__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 14px 14px;
    overflow: auto;
}

.td-grid-panel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 5 / 3;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    color: #6b7280;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.td-grid-panel-item:hover {
    transform: scale(1.06);
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

.td-grid-panel-item svg {
    width: 100%;
    height: 100%;
}

@keyframes tdGridPanelFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .td-grid-layout,
    .td-grid-2col-equal,
    .td-grid-3col-equal,
    .td-grid-4col-equal,
    .td-grid-5col-equal,
    .td-grid-2col-33-67,
    .td-grid-2col-67-33,
    .td-grid-2col-25-75,
    .td-grid-2col-75-25,
    .td-grid-3col-25-50-25,
    .td-grid-3col-50-25-25,
    .td-grid-3col-25-25-50,
    .td-grid-2col-sidebar-left,
    .td-grid-2col-sidebar-right,
    .td-grid-3col-60-20-20 {
        grid-template-columns: 1fr;
    }

    .td-grid-layout-panel {
        left: 12px !important;
        right: 12px;
        width: auto;
        max-width: none;
    }
}

.category {
    font-weight: bold;
    color: #ef4444;
    text-transform: uppercase;
    font-size: 0.9em;
}

.document-title {
    font-size: 2.25em;
    font-weight: 800;
    margin-bottom: 0.5em;
    color: #111827;
    line-height: 1.2;
}

.document-subtitle {
    font-size: 1.5em;
    font-weight: 600;
    color: #4b5563;
    margin-top: 0.5em;
}

.info-box {
    background: #f3f4f6;
    border-radius: 6px;
    padding: 1.25em;
    border: 1px solid #e5e7eb;
    margin: 1em 0;
}

.side-quote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.25em;
    font-style: italic;
    color: #4b5563;
    margin: 1.5em 0;
}

.marker {
    background-color: #fef08a;
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

.spoiler {
    background-color: #1f2937;
    color: #1f2937;
    border-radius: 4px;
    padding: 0 0.2em;
    cursor: help;
}

.spoiler:hover {
    color: #ffffff;
}

.fancy-code {
    background: #111827;
    color: #f9fafb;
    padding: 1.25em;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    overflow-x: auto;
    font-size: 0.9em;
}

.fancy-code-dark {
    background: #111827;
    color: #f9fafb;
}

.fancy-code-bright {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.td-article-content,
.td-magazine-content,
.render-html-content,
.content-html {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    color: #1f2937;
}

.td-article-content p,
.td-magazine-content p,
.render-html-content p,
.content-html p {
    margin: 1em 0;
}

.td-article-content h1,
.td-magazine-content h1,
.render-html-content h1,
.content-html h1 {
    font-size: 2.25em;
    margin: 1em 0 0.5em;
    font-weight: 800;
}

.td-article-content h2,
.td-magazine-content h2,
.render-html-content h2,
.content-html h2 {
    font-size: 1.875em;
    margin: 1em 0 0.5em;
    font-weight: 700;
}

.td-article-content h3,
.td-magazine-content h3,
.render-html-content h3,
.content-html h3 {
    font-size: 1.5em;
    margin: 1em 0 0.5em;
    font-weight: 600;
}

.td-article-content h4,
.td-magazine-content h4,
.render-html-content h4,
.content-html h4 {
    font-size: 1.25em;
    margin: 1em 0 0.5em;
    font-weight: 600;
}

.td-article-content h5,
.td-magazine-content h5,
.render-html-content h5,
.content-html h5 {
    font-size: 1.125em;
    margin: 1em 0 0.5em;
    font-weight: 600;
}

.td-article-content h6,
.td-magazine-content h6,
.render-html-content h6,
.content-html h6 {
    font-size: 1em;
    margin: 1em 0 0.5em;
    font-weight: 600;
}

.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

.align-justify {
    text-align: justify;
}

.td-article-content ul,
.td-article-content ol,
.td-magazine-content ul,
.td-magazine-content ol,
.render-html-content ul,
.render-html-content ol,
.content-html ul,
.content-html ol {
    margin: 1em 0 1em 2em;
    padding: 0;
}

.td-article-content ul li,
.td-article-content ol li,
.td-magazine-content ul li,
.td-magazine-content ol li,
.render-html-content ul li,
.render-html-content ol li,
.content-html ul li,
.content-html ol li {
    margin: 0.25em 0;
}

.todo-list {
    list-style: none;
    padding-left: 0;
}

.todo-list li {
    position: relative;
    padding-left: 1.5em;
}

.todo-list li::before {
    content: '☐';
    position: absolute;
    left: 0;
    top: 0;
}

.todo-list li[data-checked='true']::before,
.todo-list li[data-checked=true]::before {
    content: '☑';
}

.td-article-content table,
.td-magazine-content table,
.render-html-content table,
.content-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.td-article-content table th,
.td-article-content table td,
.td-magazine-content table th,
.td-magazine-content table td,
.render-html-content table th,
.render-html-content table td,
.content-html table th,
.content-html table td {
    border: 1px solid #d1d5db;
    padding: 0.5em 0.75em;
    text-align: left;
    vertical-align: top;
}

.td-article-content table th,
.td-magazine-content table th,
.render-html-content table th,
.content-html table th {
    background: #f3f4f6;
    font-weight: 600;
}

.table-responsive-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 1em 0;
}

.table-responsive-wrapper table {
    margin: 0;
    min-width: 640px;
}

.page-break {
    display: block;
    width: 100%;
    text-align: center;
    border-top: 1px dashed #9ca3af;
    margin: 2em 0;
    padding-top: 0.5em;
    color: #6b7280;
    font-size: 0.875em;
}

figure.image {
    margin: 1em 0;
    display: table;
    max-width: 100%;
}

figure.image > img,
figure.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

figure.image > figcaption {
    display: block;
    min-height: auto;
    max-height: 100px;
    height: auto;
    padding: 8px 12px;
    margin: 0;
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-top: none;
    font-size: 0.875em;
    color: #6b7280;
    text-align: center;
    font-style: italic;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: normal;
}

figure.image.image-style-inline,
figure.image.image-style-left,
figure.image.image-style-right,
figure.image.image-style-wrapText {
    float: left;
    margin: 0 1em 1em 0;
    max-width: 50%;
}

figure.image.image-style-breakText,
figure.image.image-style-center,
figure.image.image_resized {
    display: block;
    margin: 1em auto;
}

figure.image.image_resized > figcaption {
    width: 100%;
}

.video-container,
figure.media,
.media {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 1.5em 0;
}

.video-container {
    padding-bottom: 56.25%;
}

.video-container iframe,
.video-container video,
figure.media iframe,
figure.media video,
.media iframe,
.media video {
    width: 100%;
    max-width: 100%;
    border: 0;
}

.video-container iframe,
.video-container video {
    position: absolute;
    inset: 0;
    height: 100%;
}

.media iframe,
figure.media iframe {
    min-height: 360px;
}

@media (max-width: 768px) {
    figure.image.image-style-inline,
    figure.image.image-style-left,
    figure.image.image-style-right,
    figure.image.image-style-wrapText {
        float: none;
        max-width: 100%;
        margin: 1em auto;
    }

    .media iframe,
    figure.media iframe {
        min-height: 220px;
    }
}

.ck-content,
.ck.ck-editor__editable {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    color: #1f2937;
}

.ck-content p,
.ck.ck-editor__editable p {
    margin: 1em 0;
}

.ck-content h1,
.ck.ck-editor__editable h1 {
    font-size: 2.25em;
    margin: 1em 0 0.5em;
    font-weight: 800;
}

.ck-content h2,
.ck.ck-editor__editable h2 {
    font-size: 1.875em;
    margin: 1em 0 0.5em;
    font-weight: 700;
}

.ck-content h3,
.ck.ck-editor__editable h3 {
    font-size: 1.5em;
    margin: 1em 0 0.5em;
    font-weight: 600;
}

.ck-content h4,
.ck.ck-editor__editable h4 {
    font-size: 1.25em;
    margin: 1em 0 0.5em;
    font-weight: 600;
}

.ck-content h5,
.ck.ck-editor__editable h5 {
    font-size: 1.125em;
    margin: 1em 0 0.5em;
    font-weight: 600;
}

.ck-content h6,
.ck.ck-editor__editable h6 {
    font-size: 1em;
    margin: 1em 0 0.5em;
    font-weight: 600;
}

.ck-content .align-left,
.ck.ck-editor__editable .align-left {
    text-align: left;
}

.ck-content .align-center,
.ck.ck-editor__editable .align-center {
    text-align: center;
}

.ck-content .align-right,
.ck.ck-editor__editable .align-right {
    text-align: right;
}

.ck-content .align-justify,
.ck.ck-editor__editable .align-justify {
    text-align: justify;
}

.ck-content ul,
.ck-content ol,
.ck.ck-editor__editable ul,
.ck.ck-editor__editable ol {
    margin: 1em 0 1em 2em;
    padding: 0;
}

.ck-content ul li,
.ck-content ol li,
.ck.ck-editor__editable ul li,
.ck.ck-editor__editable ol li {
    margin: 0.25em 0;
}

.ck-content .todo-list,
.ck.ck-editor__editable .todo-list {
    list-style: none;
    padding-left: 0;
}

.ck-content .todo-list li,
.ck.ck-editor__editable .todo-list li {
    position: relative;
    padding-left: 1.5em;
}

.ck-content .todo-list li::before,
.ck.ck-editor__editable .todo-list li::before {
    content: '☐';
    position: absolute;
    left: 0;
    top: 0;
}

.ck-content .todo-list li[data-checked]::before,
.ck.ck-editor__editable .todo-list li[data-checked]::before {
    content: '☑';
}

.ck-content table,
.ck.ck-editor__editable table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.ck-content table th,
.ck-content table td,
.ck.ck-editor__editable table th,
.ck.ck-editor__editable table td {
    border: 1px solid #d1d5db;
    padding: 0.5em 0.75em;
    text-align: left;
}

.ck-content table th,
.ck.ck-editor__editable table th {
    background: #f3f4f6;
    font-weight: 600;
}

.ck-content .page-break,
.ck.ck-editor__editable .page-break {
    display: block;
    width: 100%;
    text-align: center;
    border-top: 1px dashed #9ca3af;
    margin: 2em 0;
    padding-top: 0.5em;
    color: #6b7280;
    font-size: 0.875em;
}

.ck-content hr,
.ck.ck-editor__editable hr {
    border: none;
    border-top: 1px solid #d1d5db;
    margin: 1.5em 0;
}

.ck-content figure.image.image-style-inline,
.ck-content figure.image.image-style-left,
.ck-content figure.image.image-style-right,
.ck-content figure.image.image-style-wrapText,
.ck.ck-editor__editable figure.image.image-style-inline,
.ck.ck-editor__editable figure.image.image-style-left,
.ck.ck-editor__editable figure.image.image-style-right,
.ck.ck-editor__editable figure.image.image-style-wrapText {
    float: left;
    margin: 0 1em 1em 0;
    max-width: 50%;
}

.ck-content figure.image.image-style-breakText,
.ck.ck-editor__editable figure.image.image-style-breakText {
    display: block;
    margin: 1em auto;
}

.ck-content figure.image.image-style-center,
.ck.ck-editor__editable figure.image.image-style-center {
    display: block;
    margin: 1em auto;
}

.ck-content img,
.ck.ck-editor__editable img {
    max-width: 100%;
    height: auto;
}

.ck-content .video-container,
.ck.ck-editor__editable .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.ck-content .video-container iframe,
.ck-content .video-container video,
.ck.ck-editor__editable .video-container iframe,
.ck.ck-editor__editable .video-container video {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ck-content .marker,
.ck.ck-editor__editable .marker {
    background-color: #fef08a;
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

.ck.ck-style-panel .ck-style-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
    max-width: 600px !important;
}

.ck.ck-style-panel .ck-style-grid__button {
    min-height: 100px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 1 !important;
}

.ck.ck-style-panel .ck-style-grid__button:hover {
    transform: scale(1.15) !important;
    z-index: 100 !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview {
    flex: 1 !important;
    min-height: 65px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    word-wrap: break-word !important;
    font-size: 11px !important;
    transition: all 0.25s ease !important;
}

.ck.ck-style-panel .ck-style-grid__button:hover .ck-style-grid__button__preview {
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    background-color: #ffffff !important;
}

.ck.ck-style-panel .ck-style-grid__button__label {
    padding: 6px 8px !important;
    font-size: 11px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .drop-cap::first-letter {
    font-size: 1.6em !important;
    color: #1a365d !important;
    font-weight: bold !important;
    float: left !important;
    line-height: 1 !important;
    margin-right: 2px !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .lead-paragraph {
    border-left: 2px solid #3b82f6 !important;
    padding-left: 6px !important;
    font-size: 0.95em !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .pull-quote {
    background: #f1f5f9 !important;
    padding: 6px !important;
    font-style: italic !important;
    color: #1e40af !important;
    border-radius: 4px !important;
    font-size: 0.9em !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border-left: 2px solid #f59e0b !important;
    padding: 6px !important;
    border-radius: 4px !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .author-info {
    font-style: italic !important;
    color: #6b7280 !important;
    border-top: 1px solid #e5e7eb !important;
    padding-top: 4px !important;
    font-size: 0.85em !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .category {
    color: #ef4444 !important;
    font-weight: bold !important;
    font-size: 0.7em !important;
    text-transform: uppercase !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .document-title {
    font-weight: bold !important;
    font-size: 1.1em !important;
    color: #111827 !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .document-subtitle {
    font-weight: 600 !important;
    font-size: 0.95em !important;
    color: #4b5563 !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .info-box {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    padding: 4px !important;
    border-radius: 4px !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .side-quote {
    border-left: 2px solid #3b82f6 !important;
    padding-left: 6px !important;
    font-style: italic !important;
    color: #4b5563 !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .marker {
    background-color: #fef08a !important;
    padding: 1px 2px !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .spoiler {
    background-color: #1f2937 !important;
    color: #1f2937 !important;
    padding: 1px 2px !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .fancy-code {
    background: #1f2937 !important;
    color: #f9fafb !important;
    padding: 4px !important;
    font-family: monospace !important;
    border-radius: 4px !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .fancy-code-bright {
    background: #f9fafb !important;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb !important;
    padding: 4px !important;
    font-family: monospace !important;
    border-radius: 4px !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .stat-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    padding: 8px !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: bold !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .info-alert {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border-left: 3px solid #0284c7 !important;
    padding: 6px !important;
    border-radius: 0 6px 6px 0 !important;
    color: #0c4a6e !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .warning-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border-left: 3px solid #d97706 !important;
    padding: 6px !important;
    border-radius: 0 6px 6px 0 !important;
    color: #92400e !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .success-alert {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border-left: 3px solid #059669 !important;
    padding: 6px !important;
    border-radius: 0 6px 6px 0 !important;
    color: #065f46 !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .section-divider {
    text-align: center !important;
    position: relative !important;
    background: linear-gradient(90deg, transparent, #6366f1, transparent) !important;
    height: 2px !important;
    margin: 10px 0 !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .three-columns {
    column-count: 3 !important;
    column-gap: 4px !important;
    font-size: 0.6em !important;
    color: #6b7280 !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .conclusion-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: #f1f5f9 !important;
    padding: 8px !important;
    border-radius: 8px !important;
    font-size: 0.85em !important;
}

.ck.ck-style-panel .ck-style-grid__button__preview .emphasis-paragraph {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: #1e40af !important;
    padding: 6px !important;
    border-left: 3px solid #3b82f6 !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
}

.ck-content .drop-cap::first-letter {
    font-weight: bold;
}

.ck-content blockquote {
    position: relative;
    margin: 1.5em 0;
    padding: 1em 3em 1em 3em;
    border-left: 4px solid #007bff;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 8px 8px 0;
    color: #495057;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ck-content blockquote::before {
    content: '❝';
    position: absolute;
    left: 8px;
    top: 20px;
    font-size: 3.5em;
    line-height: 0;
    font-family: Georgia, serif;
    color: #007bff;
    opacity: 0.4;
    pointer-events: none;
}

.ck-content blockquote::after {
    content: '❞';
    position: absolute;
    right: 8px;
    bottom: 8px;
    font-size: 3.5em;
    line-height: 0;
    font-family: Georgia, serif;
    color: #007bff;
    opacity: 0.4;
    pointer-events: none;
}

.ck-content blockquote p {
    margin: 0 0 0.6em;
}

.ck-content blockquote p:last-child {
    margin-bottom: 0;
}

.ck-content figure.image {
    margin: 1em 0;
    display: table;
    max-width: 100%;
}

.ck-content figure.image > figcaption {
    display: block !important;
    min-height: auto !important;
    max-height: 100px !important;
    height: auto !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-top: none;
    font-size: 0.875em;
    color: #6b7280;
    text-align: center;
    font-style: italic;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: normal;
}

.ck-content figure.image > figcaption.ck-placeholder::before,
.ck.ck-editor__editable figure.image > figcaption.ck-placeholder::before {
    color: #9ca3af;
    font-style: italic;
}

.ck.ck-editor__editable figure.image {
    margin: 1em 0;
}

.ck.ck-editor__editable figure.image > figcaption {
    display: block !important;
    min-height: 1.5em !important;
    max-height: 100px !important;
    height: auto !important;
    padding: 8px 12px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #e5e7eb !important;
    border-top: none !important;
    font-size: 0.875em !important;
    color: #6b7280 !important;
    text-align: center !important;
    overflow-y: auto !important;
}

.ck-content figure.image img,
.ck.ck-editor__editable figure.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.ck-content figure.image.image_resized,
.ck.ck-editor__editable figure.image.image_resized {
    max-width: 100%;
    display: block;
    margin: 1em auto;
}

.ck-content figure.image.image_resized > figcaption,
.ck.ck-editor__editable figure.image.image_resized > figcaption {
    display: block !important;
    width: 100% !important;
    min-height: 1.5em !important;
    max-height: 100px !important;
    height: auto !important;
}

.content-article * {
    font-size: 16px;
    line-height: 24px;
}

/* Khôi phục typography cho nội dung từ editor trong bài viết.
   site.css khai báo các style này trước, nhưng bị rule .content-article *
   ở trên đè mất font-size/line-height khi render trong .detail-content. */
.content-article .detail-content h1 {
    font-size: 2.25em;
    line-height: 1.3;
}

.content-article .detail-content h2 {
    font-size: 1.875em;
    line-height: 1.35;
}

.content-article .detail-content h3 {
    font-size: 1.5em;
    line-height: 1.4;
}

.content-article .detail-content h4 {
    font-size: 1.25em;
    line-height: 1.45;
}

.content-article .detail-content h5 {
    font-size: 1.125em;
    line-height: 1.5;
}

.content-article .detail-content h6 {
    font-size: 1em;
    line-height: 1.5;
}

.content-article .detail-content p,
.content-article .detail-content ul,
.content-article .detail-content ol,
.content-article .detail-content li,
.content-article .detail-content blockquote,
.content-article .detail-content figure.image > figcaption,
.content-article .detail-content .image-caption {
    line-height: inherit;
}

.content-article .detail-content .lead-paragraph {
    font-size: 1.25em;
    line-height: 1.6;
}

.content-article .detail-content .pull-quote {
    font-size: 1.5em;
    line-height: 1.6;
}

.content-article .detail-content .image-caption {
    font-size: 0.875em;
}

.content-article .detail-content blockquote p:last-child {
    margin-bottom: 0;
}

.content-article #div_audio {
    line-height: 16px;
}

.content-article #div_audio audio, .detail-post-info #audio-player {
    height: 35px;
    max-width: 100%;
}

.content-article .detail-content [style^="font-size:"] {
    font-size: 16px !important;
    line-height: 24px;
}

/* Article contrast mode - Global styles */
body.article-contrast {
    background-color: #DCDCDC !important;
    color: inherit !important;
}

body.article-contrast .content-container,
body.article-contrast .content-container>.container,
body.article-contrast .row.content-article,
body.article-contrast .detail-top-info,
body.article-contrast .detail-info,
body.article-contrast .detail-content {
    background-color: #DCDCDC !important;
}

body.article-contrast .detail-content,
body.article-contrast .detail-content * {
    color: inherit !important;
}

/* Override inline styles in contrast mode */
body.article-contrast div[style*="background-color"],
body.article-contrast div[style*="color"],
body.article-contrast div[style*="background-color:rgb"],
body.article-contrast div[style*="color:rgb"],
body.article-contrast div[style*="background-color:rgb(255, 255, 255)"],
body.article-contrast div[style*="color:rgb(51, 51, 51)"] {
    background-color: #DCDCDC !important;
    color: inherit !important;
}

body.article-contrast div[style*="background-color"] *,
body.article-contrast div[style*="color"] *,
body.article-contrast div[style*="background-color:rgb"] *,
body.article-contrast div[style*="color:rgb"] *,
body.article-contrast div[style*="background-color:rgb(255, 255, 255)"] *,
body.article-contrast div[style*="color:rgb(51, 51, 51)"] * {
    color: inherit !important;
}

/* Force override for any div with inline styles */
body.article-contrast .detail-content div[style] {
    background-color: #DCDCDC !important;
    color: inherit !important;
}

body.article-contrast .detail-content div[style] * {
    color: inherit !important;
}

/* Maximum specificity override for inline styles */
body.article-contrast .detail-content div[style*="background-color:rgb(255, 255, 255)"] {
    background-color: #DCDCDC !important;
    color: inherit !important;
}

body.article-contrast .detail-content div[style*="background-color:rgb(255, 255, 255)"] * {
    color: inherit !important;
}

/* Universal override for any element with inline styles in contrast mode */
body.article-contrast *[style*="background-color"],
body.article-contrast *[style*="color"] {
    background-color: #DCDCDC !important;
    color: inherit !important;
}

body.article-contrast *[style*="background-color"] *,
body.article-contrast *[style*="color"] * {
    color: inherit !important;
}

/* Legacy support for old contrast classes */
.article-contrast {
    background-color: #DCDCDC !important;
    color: inherit !important;
}

.article-contrast .detail-content {
    background-color: #DCDCDC !important;
    color: inherit !important;
}

.article-contrast .detail-content * {
    color: inherit !important;
}

/* Font size controls for article */
.detail-content.font-12 {
    font-size: 12px !important;
    line-height: 18px !important;
}

.detail-content.font-16 {
    font-size: 16px !important;
    line-height: 24px !important;
}

.detail-content.font-20 {
    font-size: 20px !important;
    line-height: 30px !important;
}

/* Ưu tiên hiển thị bộ style editor của site.css khi render trong bài viết.
   Block này cố ý đặt ở kiemtoan.css vì file này load sau site.css. */
.content-article .detail-content {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    color: #1f2937;
}

.content-article .detail-content p {
    margin: 1em 0;
}

.content-article .detail-content h1,
.detail-content.font-12 h1,
.detail-content.font-16 h1,
.detail-content.font-20 h1 {
    font-size: 2.25em !important;
    margin: 1em 0 0.5em;
    font-weight: 800;
    line-height: 1.3 !important;
}

.content-article .detail-content h2,
.detail-content.font-12 h2,
.detail-content.font-16 h2,
.detail-content.font-20 h2 {
    font-size: 1.875em !important;
    margin: 1em 0 0.5em;
    font-weight: 700;
    line-height: 1.35 !important;
}

.content-article .detail-content h3,
.detail-content.font-12 h3,
.detail-content.font-16 h3,
.detail-content.font-20 h3 {
    font-size: 1.5em !important;
    margin: 1em 0 0.5em;
    font-weight: 600;
    line-height: 1.4 !important;
}

.content-article .detail-content h4,
.detail-content.font-12 h4,
.detail-content.font-16 h4,
.detail-content.font-20 h4 {
    font-size: 1.25em !important;
    margin: 1em 0 0.5em;
    font-weight: 600;
    line-height: 1.45 !important;
}

.content-article .detail-content h5,
.detail-content.font-12 h5,
.detail-content.font-16 h5,
.detail-content.font-20 h5 {
    font-size: 1.125em !important;
    margin: 1em 0 0.5em;
    font-weight: 600;
    line-height: 1.5 !important;
}

.content-article .detail-content h6 {
    font-size: 1em;
    margin: 1em 0 0.5em;
    font-weight: 600;
    line-height: 1.5;
}

.content-article .detail-content .align-left {
    text-align: left;
}

.content-article .detail-content .align-center {
    text-align: center;
}

.content-article .detail-content .align-right {
    text-align: right;
}

.content-article .detail-content .align-justify {
    text-align: justify;
}

.content-article .detail-content ul,
.content-article .detail-content ol {
    margin: 1em 0 1em 2em;
    padding: 0;
}

.content-article .detail-content ul li,
.content-article .detail-content ol li {
    margin: 0.25em 0;
}

.content-article .detail-content .todo-list {
    list-style: none;
    padding-left: 0;
}

.content-article .detail-content .todo-list li {
    position: relative;
    padding-left: 1.5em;
}

.content-article .detail-content .todo-list li::before {
    content: '☐';
    position: absolute;
    left: 0;
    top: 0;
}

.content-article .detail-content .todo-list li[data-checked]::before {
    content: '☑';
}

.content-article .detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.content-article .detail-content table th,
.content-article .detail-content table td {
    border: 1px solid #d1d5db;
    padding: 0.5em 0.75em;
    text-align: left;
    vertical-align: top;
}

.content-article .detail-content table th {
    background: #f3f4f6;
    font-weight: 600;
}

.content-article .detail-content .page-break {
    display: block;
    width: 100%;
    text-align: center;
    border-top: 1px dashed #9ca3af;
    margin: 2em 0;
    padding-top: 0.5em;
    color: #6b7280;
    font-size: 0.875em !important;
}

.content-article .detail-content hr {
    border: none;
    border-top: 1px solid #d1d5db;
    margin: 1.5em 0;
}

.content-article .detail-content figure.image {
    margin: 1em 0;
    display: table;
    max-width: 100%;
}

.content-article .detail-content figure.image > img,
.content-article .detail-content figure.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.content-article .detail-content figure.image > figcaption,
.detail-content.font-12 figure.image > figcaption,
.detail-content.font-16 figure.image > figcaption,
.detail-content.font-20 figure.image > figcaption {
    display: block;
    min-height: auto;
    max-height: 100px;
    height: auto;
    padding: 8px 12px;
    margin: 0;
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-top: none;
    font-size: 0.875em !important;
    color: #6b7280;
    text-align: center;
    font-style: italic;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: normal;
}

.content-article .detail-content figure.image.image-style-inline,
.content-article .detail-content figure.image.image-style-left,
.content-article .detail-content figure.image.image-style-right,
.content-article .detail-content figure.image.image-style-wrapText {
    float: left;
    margin: 0 1em 1em 0;
    max-width: 50%;
}

.content-article .detail-content figure.image.image-style-breakText,
.content-article .detail-content figure.image.image-style-center,
.content-article .detail-content figure.image.image_resized {
    display: block;
    margin: 1em auto;
}

.content-article .detail-content figure.image.image_resized > figcaption {
    width: 100%;
}

.content-article .detail-content :is(.video-container, figure.media, .media) {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 1.5em 0;
}

.content-article .detail-content .video-container {
    padding-bottom: 56.25%;
}

.content-article .detail-content :is(.video-container iframe, .video-container video, figure.media iframe, figure.media video, .media iframe, .media video) {
    width: 100%;
    max-width: 100%;
    border: 0;
}

.content-article .detail-content :is(.video-container iframe, .video-container video) {
    position: absolute;
    inset: 0;
    height: 100%;
}

.content-article .detail-content :is(.marker, .content-html .marker) {
    background-color: #fef08a;
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

.content-article .detail-content .drop-cap::first-letter {
    float: left;
    font-size: 4em !important;
    line-height: 0.8 !important;
    margin: 0.1em 0.15em 0 0;
    font-weight: bold;
    color: #1a365d;
}

.content-article .detail-content .lead-paragraph,
.detail-content.font-12 .lead-paragraph,
.detail-content.font-16 .lead-paragraph,
.detail-content.font-20 .lead-paragraph {
    font-size: 1.25em !important;
    font-weight: 500;
    color: #374151;
    border-left: 4px solid #3b82f6;
    padding-left: 1em;
    margin: 1.5em 0;
    line-height: 1.6 !important;
}

.content-article .detail-content blockquote {
    position: relative;
    margin: 1.5em 0;
    padding: 1em 3em 1em 3em;
    border-left: 4px solid #007bff;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 8px 8px 0;
    color: #495057;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: inherit;
}

.content-article .detail-content blockquote::before {
    content: '❝';
    position: absolute;
    left: 8px;
    top: 20px;
    font-size: 3.5em;
    line-height: 0;
    font-family: Georgia, serif;
    color: #007bff;
    opacity: 0.4;
    pointer-events: none;
}

.content-article .detail-content blockquote::after {
    content: '❞';
    position: absolute;
    right: 8px;
    bottom: 8px;
    font-size: 3.5em;
    line-height: 0;
    font-family: Georgia, serif;
    color: #007bff;
    opacity: 0.4;
    pointer-events: none;
}

.content-article .detail-content blockquote p {
    margin: 0 0 0.6em;
}

.content-article .detail-content blockquote p:last-child {
    margin-bottom: 0;
}

.content-article .detail-content .pull-quote,
.detail-content.font-12 .pull-quote,
.detail-content.font-16 .pull-quote,
.detail-content.font-20 .pull-quote {
    font-size: 1.5em !important;
    font-style: italic;
    text-align: center;
    color: #1e40af;
    border: none;
    padding: 1.5em 2em;
    margin: 2em auto;
    max-width: 80%;
    position: relative;
    background: #f8fafc;
    border-radius: 8px;
    line-height: 1.6 !important;
}

.content-article .detail-content .pull-quote::before {
    content: '❝';
    font-size: 2.5em;
    position: absolute;
    top: -0.1em;
    left: 0.2em;
    color: #8ca9cf;
    font-family: serif;
}

.content-article .detail-content .highlight-box,
.content-article .detail-content .info-alert,
.content-article .detail-content .warning-alert,
.content-article .detail-content .success-alert,
.content-article .detail-content .two-columns,
.content-article .detail-content .three-columns,
.content-article .detail-content .conclusion-box,
.content-article .detail-content .emphasis-paragraph {
    display: block;
}

.content-article .detail-content .highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    padding: 1.5em;
    margin: 1.5em 0;
    border-left: 4px solid #f59e0b;
}

.content-article .detail-content .author-info {
    font-style: italic;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-top: 1em;
    margin-top: 2em;
}

.content-article .detail-content .two-columns {
    column-count: 2;
    column-gap: 2em;
    column-rule: 2px solid #e5e7eb;
    background: #f8fafc;
    padding: 1.5em;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.content-article .detail-content .three-columns {
    column-count: 3;
    column-gap: 1.5em;
    column-rule: 2px solid #e5e7eb;
    background: #f8fafc;
    padding: 1.5em;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.content-article .detail-content .image-caption,
.detail-content.font-12 .image-caption,
.detail-content.font-16 .image-caption,
.detail-content.font-20 .image-caption {
    font-size: 0.875em !important;
    color: #6b7280;
    text-align: center;
    font-style: italic;
    margin-top: 0.5em;
}

.content-article .detail-content .stat-number {
    text-align: center;
    padding: 2em 1.5em;
    margin: 2em 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.content-article .detail-content .stat-number strong,
.content-article .detail-content .stat-number b,
.detail-content.font-12 .stat-number strong,
.detail-content.font-12 .stat-number b,
.detail-content.font-16 .stat-number strong,
.detail-content.font-16 .stat-number b,
.detail-content.font-20 .stat-number strong,
.detail-content.font-20 .stat-number b {
    display: block;
    font-size: 3.5em !important;
    font-weight: 800;
    line-height: 1.1 !important;
    margin-bottom: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.content-article .detail-content .stat-number p,
.detail-content.font-12 .stat-number p,
.detail-content.font-16 .stat-number p,
.detail-content.font-20 .stat-number p {
    margin: 0;
    font-size: 1.1em !important;
    opacity: 0.9;
}

.content-article .detail-content .info-alert {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-left: 5px solid #0284c7;
    border-radius: 0 12px 12px 0;
    padding: 1.25em 1.5em;
    margin: 1.5em 0;
    color: #0c4a6e;
    position: relative;
}

.content-article .detail-content .warning-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #d97706;
    border-radius: 0 12px 12px 0;
    padding: 1.25em 1.5em;
    margin: 1.5em 0;
    color: #92400e;
    position: relative;
}

.content-article .detail-content .success-alert {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 5px solid #059669;
    border-radius: 0 12px 12px 0;
    padding: 1.25em 1.5em;
    margin: 1.5em 0;
    color: #065f46;
    position: relative;
}

.content-article .detail-content :is(.info-alert, .warning-alert, .success-alert)::before {
    position: absolute;
    left: -2px;
    top: -12px;
    font-size: 1.5em;
    background: #ffffff;
    border-radius: 50%;
    padding: 2px 6px;
}

.content-article .detail-content .info-alert::before {
    content: 'ℹ️';
}

.content-article .detail-content .warning-alert::before {
    content: '⚠️';
}

.content-article .detail-content .success-alert::before {
    content: '✅';
}

.content-article .detail-content .section-divider {
    text-align: center;
    margin: 2em 0;
    display: flex;
    align-items: center;
    gap: 1em;
}

.content-article .detail-content .section-divider::before,
.content-article .detail-content .section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6);
}

.content-article .detail-content .section-divider::after {
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, transparent);
}

.content-article .detail-content .conclusion-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f1f5f9;
    padding: 2em;
    border-radius: 16px;
    margin: 2em 0;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.content-article .detail-content .conclusion-box::before {
    content: '📌 KẾT LUẬN';
    display: block;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.1em;
    color: #fbbf24;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-article .detail-content .conclusion-box p {
    margin: 0;
    line-height: 1.8 !important;
}

.content-article .detail-content .emphasis-paragraph {
    font-size: 1.15em !important;
    font-weight: 500;
    color: #1e40af;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.25em 1.5em;
    border-radius: 12px;
    margin: 1.5em 0;
    border-left: 4px solid #3b82f6;
    position: relative;
}

.content-article .detail-content .emphasis-paragraph::before {
    content: '💡';
    position: absolute;
    left: 12px;
    top: -10px;
    font-size: 1.3em;
    background: #ffffff;
    border-radius: 50%;
    padding: 2px 4px;
}

body.article-contrast .detail-content blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057 !important;
}

body.article-contrast .detail-content .pull-quote {
    background: #f8fafc !important;
    color: #1e40af !important;
}

body.article-contrast .detail-content .highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
}

body.article-contrast .detail-content .stat-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
}

body.article-contrast .detail-content .info-alert {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    color: #0c4a6e !important;
}

body.article-contrast .detail-content .warning-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
}

body.article-contrast .detail-content .success-alert {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #065f46 !important;
}

body.article-contrast .detail-content :is(.two-columns, .three-columns) {
    background: #f8fafc !important;
}

body.article-contrast .detail-content .conclusion-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: #f1f5f9 !important;
}

body.article-contrast .detail-content .conclusion-box::before {
    color: #fbbf24 !important;
}

body.article-contrast .detail-content .emphasis-paragraph {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: #1e40af !important;
}

body.article-contrast .detail-content .conclusion-box *,
body.article-contrast .detail-content .stat-number * {
    color: inherit !important;
}

/* Khóa lại background cho các block editor dễ bị rule tổng quát ghi đè. */
.content-article .detail-content blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.content-article .detail-content .pull-quote {
    background: #f8fafc !important;
}

.content-article .detail-content .highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
}

.content-article .detail-content .stat-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.content-article .detail-content .info-alert {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
}

.content-article .detail-content .warning-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
}

.content-article .detail-content .success-alert {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
}

.content-article .detail-content .two-columns,
.content-article .detail-content .three-columns {
    background: #f8fafc !important;
}

.content-article .detail-content .conclusion-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

.content-article .detail-content .emphasis-paragraph {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
}

.content-article .detail-content .image-comparison {
    background: #f1f5f9 !important;
}

.content-article .detail-content .image-comparison::before {
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%) !important;
}

.content-article .detail-content .image-comparison figure:first-of-type::after {
    background: #ef4444 !important;
}

.content-article .detail-content .image-comparison figure:last-of-type::after {
    background: #22c55e !important;
}

.content-article .detail-content .td-grid-layout .td-grid-col {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.content-article .detail-content .info-box {
    background: #f3f4f6 !important;
}

.content-article .detail-content .marker {
    background-color: #fef08a !important;
}

.content-article .detail-content .spoiler {
    background-color: #1f2937 !important;
}

.content-article .detail-content .fancy-code,
.content-article .detail-content .fancy-code-dark {
    background: #111827 !important;
}

.content-article .detail-content .fancy-code-bright {
    background: #ffffff !important;
}

.content-article .detail-content figure.image > figcaption {
    background-color: #f8f9fa !important;
}

/* Responsive adjustments for article layout */
@media (max-width: 991.98px) {
    .content-article {
        padding: 10px 15px;
        max-width: 100%;
    }

    .footer .footer-main-content .container,
    .footer .footer-bottom .container {
        padding: 0 15px;
    }

    /* Footer responsive */
    .footer-bottom-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        /* padding: 15px 0; */
    }

    .footer-license-info {
        order: 1;
    }

    .footer-traffic-container {
        order: 2;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0;
    }

    .footer-links-container {
        order: 3;
        flex-direction: initial;
        flex-wrap: wrap;
        padding: 0;
        border: none;
        justify-content: center;
    }
    .footer-bottom-section .col-12.col-md {
        padding: 0;
        text-align: center;
        align-items: center;
    }
    .footer-info {
        margin-bottom: 0;
    }
    .quick-links-section .quick-link-item {
        margin-bottom: 10px;
    }
    /* Footer traffic responsive */
    .traffic-container {
        padding-left: 8px;
        padding-right: 8px;
        gap: 8px;
    }
    .organization-links-section .prev-btn {
        left: 0;
    }
    .organization-links-section .next-btn {
        right: 0;
    }

    .traffic-icon-container {
        width: 35px;
        height: 35px;
    }

    .traffic-icon-wrapper {
        width: 25px;
        height: 25px;
    }

    .traffic-icon-img {
        width: 20px;
        height: 19.68px;
        left: 2.5px;
        top: 2.66px;
    }

    .traffic-label,
    .traffic-value {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 767.98px) {
    .content-article {
        padding: 10px;
    }

    .breadcrumb-article .breadcrumb-item, .breadcrumb-article .breadcrumb-item a {
        font-size: 15px;
    }
    .social_pin .tools li {
        width: 28px;
        height: 28px;
    }
    .social_pin .tools li.size-text a.text {
        width: 26px;
        height: 26px;
    }
    .social_pin .tools li, .social_pin .tools li.size-text .text2 {
        background: transparent;
    }
    .social_pin .tools li a, .social_pin .tools li i {
        font-size: 14px;
    }
    /* Footer mobile responsive */
    .footer-bottom-section {
        gap: 15px;
        padding: 10px 0;
    }

    .footer-license-info p {
        font-size: 14px;
        line-height: 20px;
    }

    .footer-link-item a {
        font-size: 14px;
        line-height: 20px;
        gap: 3px
    }

    /* Footer traffic mobile responsive */
    .traffic-container {
        padding-left: 5px;
        padding-right: 5px;
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.30);
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .traffic-icon-container {
        width: 30px;
        height: 30px;
        align-self: center;
    }

    .traffic-icon-wrapper {
        width: 20px;
        height: 20px;
    }

    .traffic-icon-img {
        width: 16px;
        height: 15.75px;
        left: 2px;
        top: 2.13px;
    }

    .tieudiem-carousel.hot-news .slick-list {
        margin-left: -10px;
        margin-right: -10px;
    }

    .law-document-tabs .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow: hidden;
        overflow-x: auto;
    }

    .law-document-tabs .nav-link {
        padding: 6px
    }

    table.table-van-ban .download-link>span {
        display: none;
    }

    table.dataTable thead th.text-nowrap {
        white-space: nowrap !important;
        width: initial !important;
    }

    .draft-document-detail .content-box {
        margin: 10px 0;
        border: none;
        padding: 0;
    }

    .draft-document-detail .content-box h5 {
        margin-right: 0;
    }

    .draft-document-detail .content-box .title-box {
        flex-wrap: wrap;
    }

    .traffic-content-wrapper {
        width: 100%;
        align-items: center;
    }

    .traffic-stat-line {
        text-align: center;
    }

    .traffic-label,
    .traffic-value {
        font-size: 13px;
        line-height: 18px;
    }
}

/* Dropdown menu styling for submenu items */
.header .main-nav .navbar-nav .dropdown-menu .nav-item {
    width: 100%;
    margin: 0;
}

.header .main-nav .navbar-nav .dropdown-menu .nav-link {
    color: #2A3342;
    font-weight: 400;
    font-size: 15px;
    padding: 0.5rem 0;
    transition: background 0.18s, color 0.18s;
    width: 100%;
    display: inline-block;
    text-transform: none;
    white-space: normal;
}

.header .main-nav .navbar-nav .dropdown-menu .nav-link:hover,
.header .main-nav .navbar-nav .dropdown-menu .nav-link:focus {
    color: var(--red);
}

/* Submenu styling */
.submenu {
    background: #005FAF;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 95, 175, 0.20);
}

.submenu .nav-link {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: background 0.18s, color 0.18s;
}

.submenu .nav-link:hover,
.submenu .nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Hide list markers for nav items */
li.nav-item {
    list-style: none;
}

li.nav-item::marker {
    display: none;
}

/* Search form - KTNN theme */
.search-form-ktnn {
    margin: 10px 0;
}

.search-form-ktnn .input-group {
    gap: 8px;
}

/* Base styling for all search form inputs and selects */
.search-form-ktnn .form-control,
.search-form.search-form-ktnn input,
.search-form.search-form-ktnn select {
    height: 42px;
    border-radius: 8px;
    color: #322920;
    min-height: 42px;
    box-shadow: none !important;
}

/* Specific styling for simple search forms (DanhSachTinNoiBat) */
.search-form-ktnn .form-control {
    border: 1.5px solid #0A54A8 !important;
}

/* Specific styling for complex search forms (TimKiem) */
.search-form.search-form-ktnn input,
.search-form.search-form-ktnn select {
    border: 1px solid #D0D5DD;
}

/* Normal state - gray border */
.search-form.search-form-ktnn input:not(:focus),
.search-form.search-form-ktnn select:not(:focus) {
    border-color: #D0D5DD !important;
}

.search-form.search-form-ktnn .form-select {
    height: 42px;
    min-height: 42px;
    border-radius: 8px;
}

/* Focus states */
.search-form-ktnn .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(10, 84, 168, 0.15);
}

.search-form.search-form-ktnn .form-select:focus,
.search-form.search-form-ktnn .form-control:focus {
    border-color: #0A54A8;
    outline: 0;
    box-shadow: 0px 0px 8px 0px rgba(10, 84, 168, 0.36) !important;
}

/* Button styling */
.search-form-ktnn .btn {
    height: 42px;
    border-radius: 8px !important;
    padding: 0 14px;
    font-weight: 600;
}


/* Clear button */
.search-form-ktnn #clearSearchKey {
    right: 10px !important;
    color: #8896AB;
}

/* Placeholder styling */
.search-form.search-form-ktnn input::-webkit-input-placeholder,
.search-form.search-form-ktnn select::-webkit-input-placeholder {
    color: #86807C;
}

.search-form.search-form-ktnn select.empty {
    color: gray;
}

/* Select options */
.search-form.search-form-ktnn select option {
    color: #5C544E;
    font-family: Roboto;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    min-height: 36px;
    padding: 8px;
    border-radius: 8px;
}

@media (max-width: 575.98px) {
    .search-form-ktnn .input-group {
        flex-wrap: nowrap;
    }

    .search-form-ktnn .btn {
        white-space: nowrap;
    }
}

.document-detail .question-link,
.document-detail .question-link:visited {
    color: #333
}

.document-detail .question-link:hover,
.document-detail .question-link:focus {
    color: var(--primary);
}

.table-van-ban .btn-outline-primary {
    color: #490E0E;
    background: #F8F1BE;
    border: none;
}

.table-van-ban .btn-outline-primary:hover {
    background: #FDE7C2;
}

.btn-ktnn-primary {
    min-height: 42px;
    background: var(--primary);
    border: none;
    color: #fff;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.btn-ktnn-primary:hover,
.btn-ktnn-primary:focus {
    background: var(--primary-400);
    color: #fff;
}

.btn-ktnn-primary:active {
    background: var(--primary) !important;
    border-color: none !important;
    color: #fff !important;
}

/* Inputs calendar icon spacing */
.search-form.search-form-ktnn #InputTuNgay,
.search-form.search-form-ktnn #InputDenNgay {
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 44px;
}

/* Bootstrap Datepicker theming */
.datepicker-dropdown {
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(10, 84, 168, 0.12);
    padding: 8px;
    z-index: 1090 !important;
}

.datepicker table {
    width: 100%;
}

.datepicker table tr td,
.datepicker table tr th {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
}

.datepicker table tr td.day:hover,
.datepicker table tr td.focused {
    background: rgba(10, 84, 168, 0.08);
    color: #0A54A8;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
    background-color: #0A54A8;
    border-color: #0A54A8;
    color: #fff;
}

.datepicker table tr td.range,
.datepicker table tr td.range:hover {
    background: rgba(0, 95, 175, 0.12);
    color: #005FAF;
}

.datepicker table tr td.today,
.datepicker table tr td.today:hover {
    background-color: rgba(51, 122, 204, 0.15);
    border-color: #337ACC;
    color: #0A54A8;
}

.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
    color: #A0A5AE;
    background: transparent;
}

.datepicker .datepicker-switch,
.datepicker .prev,
.datepicker .next,
.datepicker tfoot tr th {
    color: #0A54A8;
    border-radius: 6px;
}

.datepicker .prev:hover,
.datepicker .next:hover,
.datepicker .datepicker-switch:hover,
.datepicker tfoot tr th:hover {
    background: rgba(10, 84, 168, 0.08);
    color: #005FAF;
}

.datepicker .datepicker-switch {
    font-weight: 600;
}

.datepicker .active,
.datepicker .active:hover {
    border-radius: 8px !important;
}

/* Month/Year/Decade/Century views */
.datepicker-months .month,
.datepicker-years .year,
.datepicker-decades .decade,
.datepicker-centuries .century {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31%;
    margin: 1%;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: 500;
    color: #322920;
}

.datepicker-months .month:hover,
.datepicker-years .year:hover,
.datepicker-decades .decade:hover,
.datepicker-centuries .century:hover {
    background: rgba(10, 84, 168, 0.08);
    color: #0A54A8;
}

.datepicker-months .month.active,
.datepicker-years .year.active,
.datepicker-decades .decade.active,
.datepicker-centuries .century.active,
.datepicker-months .month.active:hover,
.datepicker-years .year.active:hover,
.datepicker-decades .decade.active:hover,
.datepicker-centuries .century.active:hover {
    background: #0A54A8;
    color: #fff;
}

.datepicker-months .month.disabled,
.datepicker-years .year.disabled,
.datepicker-decades .decade.disabled,
.datepicker-centuries .century.disabled {
    color: #A0A5AE;
    background: transparent;
    cursor: not-allowed;
}

/* Header controls spacing */
.datepicker .prev,
.datepicker .next,
.datepicker .datepicker-switch {
    padding: 8px 10px;
    font-size: 16px;
    line-height: 1.2;
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
}

/* Unified pagination styling (TimKiem, ChuyenMuc, DanhSachTinNoiBat, DanhSachTinMoi) */
.pagination {
    gap: 4px;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    border-radius: 30px !important;
    border: 1px solid #232B37 !important;
    background: #FFF;
    color: #232B37;
    font-size: 14px;
    line-height: 20px;
    padding: 7px 12px;
    min-width: 36px;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover,
.pagination .page-link:focus {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary) !important;
}

.pagination .page-item.disabled .page-link {
    color: #8896AB;
    background: #DBE7F8;
    border-color: #BFD6F5 !important;
    cursor: not-allowed;
}

.pagination .page-link:active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* --- Page Multimedia (Trang thành phần) --- */
.page-multimedia-host {
    margin-top: 32px;
}

.page-multimedia-wrapper {
    padding: 24px 0 56px;
}

.page-multimedia-card {
    background: #EDF4FF;
    border-radius: 24px;
    padding: 28px 30px 0px;
    box-shadow: 0 18px 50px rgba(10, 44, 94, 0.12);
}

.page-multimedia-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.page-multimedia-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: #0D2B63;
    font-size: 18px;
}

.page-multimedia-title img {
    width: 30px;
    height: 30px;
}

.page-multimedia-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.page-multimedia-tab {
    background-color: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.page-multimedia-tab img {
    width: 20px;
    height: 20px;
}

.page-multimedia-tab:hover {
    background: var(--primary-600);
    color: #fff;
}

.page-multimedia-hero {
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    margin-bottom: 26px;
}

.page-multimedia-hero .hero-cover {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

.page-multimedia-hero img {
    width: 100%;
    aspect-ratio: 1160 / 642;
    max-height: 642px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.page-multimedia-hero .hero-cover:hover img {
    transform: scale(1.04);
}

.page-multimedia-hero .hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #FF7A18;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.page-multimedia-hero .hero-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 28px;
    background: linear-gradient(180deg, rgba(5, 22, 49, 0) 0%, rgba(5, 22, 49, 0.9) 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.page-multimedia-slider {
    position: relative;
}

.page-multimedia-track {
    margin: 0 -12px;
}

.page-multimedia-item {
    margin: 0 12px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 38, 78, 0.1);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
}

.page-multimedia-item .item-thumb {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    display: block;
}

.page-multimedia-item .item-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.25s ease-in-out;
}

.page-multimedia-item .item-thumb:hover img {
    transform: scale(1.04);
}

.page-multimedia-item .item-type {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(13, 43, 99, 0.16);
}

.page-multimedia-item .item-type img {
    width: 22px;
    height: 22px;
}

.page-multimedia-item .item-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
}

.page-multimedia-item .item-title a {
    color: #0C1F3C;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-multimedia-item .item-more {
    margin-top: auto;
    color: #0A54A8;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-multimedia-nav {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #0D2B63;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.page-multimedia-nav.prev {
    background: #FFEBC1;
}

.page-multimedia-nav.next {
    background: #FDE7C2;
}

.page-multimedia-card .slick-list {
    padding: 6px 0;
}

.page-multimedia-nav img {
    width: 24px;
    height: 24px;
}

.page-multimedia-controls {
    width: 100%;
    padding-bottom: 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
}

.page-multimedia-dots .slick-dots {
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    display: flex !important;
    margin: 0 !important;
    position: relative !important;
    bottom: auto !important;
    padding: 0 !important;
}

.page-multimedia-dots .slick-dots li {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.page-multimedia-dots .slick-dots li button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 10px !important;
    background: #FFEBC1 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 1 !important;
}

.page-multimedia-dots .slick-dots li button:before {
    display: none !important;
}

.page-multimedia-dots .slick-dots li.slick-active button {
    background: #BB0707 !important;
}

/* --- Featured News Slider (Tin nổi bật trang thành phần) --- */
.page-featured-news__card {
    background: linear-gradient(180deg, #EFF5FF 0%, #FFFFFF 100%);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(10, 44, 94, 0.12);
}

.page-featured-news__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.page-featured-news__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-featured-news__title img {
    width: 48px;
    height: 48px;
}

.page-featured-news__title p {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0D2B63;
    line-height: 1.2;
}

.page-featured-news__title small {
    color: #51617F;
    font-size: 14px;
}

.page-featured-news__more {
    color: #0A54A8;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-featured-news__slider-wrapper {
    position: relative;
}

.page-featured-news__slider .page-featured-news__item {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
}

.page-featured-news__image {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.page-featured-news__image img {
    width: 100%;
    aspect-ratio: 863 / 539;
    max-height: 539px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.page-featured-news__image:hover img {
    transform: scale(1.04);
}

.page-featured-news__image-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-featured-news__image-title {
        padding: 24px 16px 16px;
        font-size: 18px;
    }
}

.page-featured-news__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-featured-news__item-title {
    font-size: 22px;
    font-weight: 600;
    color: #0D2B63;
    text-decoration: none;
    line-height: 1.4;
}

.page-featured-news__item-title:hover {
    color: #C44800;
}

.page-featured-news__desc {
    margin: 0;
    color: #4A5875;
    font-size: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.page-featured-news__controls {
    width: 100%;
    padding-bottom: 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
}

.page-featured-news__nav {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-featured-news__nav.prev {
    background: #FFEBC1;
}

.page-featured-news__nav.next {
    background: #FDE7C2;
}

.page-featured-news__nav img {
    width: 24px;
    height: 24px;
}

.page-featured-news__dots .slick-dots {
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    display: flex !important;
    margin: 0 !important;
    position: relative !important;
    bottom: auto !important;
    padding: 0 !important;
}

.page-featured-news__dots .slick-dots li {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.page-featured-news__dots .slick-dots li button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 10px !important;
    background: #FFEBC1 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 1 !important;
}

.page-featured-news__dots .slick-dots li button:before {
    display: none !important;
}

.page-featured-news__dots .slick-dots li.slick-active button {
    background: #BB0707 !important;
}

@media (max-width: 992px) {
    .page-multimedia-card {
        padding: 22px;
    }

    .page-multimedia-slider {
        padding: 0 32px;
    }

    .page-featured-news__nav img {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 576px) {
    .page-multimedia-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-multimedia-card {
        padding: 20px;
    }

    .page-multimedia-hero img {
        max-height: 360px;
    }

    .page-multimedia-slider {
        padding: 0 16px;
    }

    .page-featured-news__card {
        padding: 20px;
    }

    .page-featured-news__controls {
        gap: 12px;
    }

    .page-featured-news__nav img {
        width: 36px;
        height: 36px;
    }

    .page-featured-news__image img {
        max-height: 360px;
    }
}
