@charset "utf-8";
/* Assets/css/sitemaster.css */
/* ===== Bootstrap Grid Override ===== */
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    --bs-gutter-x: 0.2rem !important;
}

/* ===== Google Translate Customization ===== */
/* Hide Google Translate banner */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

.skiptranslate {
    display: none !important;
}

#goog-gt-tt {
    display: none !important;
}

/* Hide default Google Translate element */
#google_translate_element {
    display: none;
}

/* ===== Language Switcher Styles ===== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .language-switcher a.lang-btn {
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        padding: 6px 10px;
        border-radius: 5px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
        font-size: 0.9rem;
        color: inherit;
    }

        .language-switcher a.lang-btn:hover {
            background-color: rgba(255,255,255,0.2);
            transform: translateY(-2px);
        }

        .language-switcher a.lang-btn.active {
            font-weight: bold;
            background-color: rgba(255,255,255,0.3);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

    /* CÁCH 1: Flag Icons CSS */
    .language-switcher .fi {
        width: 20px;
        height: 15px;
        border-radius: 2px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    /* CÁCH 2: Flag Images */
    .language-switcher .flag-img {
        width: 20px;
        height: 15px;
        border-radius: 2px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
        object-fit: cover;
    }

.lang-code {
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
}



/* Desktop: hiện cả cờ và code */
@media (min-width: 768px) {
    .language-switcher a.lang-btn {
        padding: 6px 12px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .language-switcher a.lang-btn {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}

/* ===== Mobile Menu Toggle Button ===== */
.custom-toggler {
    border: 2px solid rgba(255,255,255,0.8);
    padding: 8px 12px;
    background: transparent;
    border-radius: 5px;
    position: relative;
}

.navbar-toggler-icon {
    width: 25px;
    height: 20px;
    position: relative;
    display: inline-block;
}

    .navbar-toggler-icon span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: white;
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transition: .25s ease-in-out;
    }

        .navbar-toggler-icon span:nth-child(1) {
            top: 0px;
        }

        .navbar-toggler-icon span:nth-child(2) {
            top: 8px;
        }

        .navbar-toggler-icon span:nth-child(3) {
            top: 16px;
        }

/* Hamburger menu animation when active */
.custom-toggler.active .navbar-toggler-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.custom-toggler.active .navbar-toggler-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.custom-toggler.active .navbar-toggler-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.custom-toggler:focus {
    box-shadow: none;
}

/* ===== Dropdown Menu Improvements ===== */
.navbar-nav .dropdown-menu {
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

@media (min-width: 992px) {
    .navbar-nav .user-nav-dropdown:hover > .dropdown-menu,
    .navbar-nav .user-nav-dropdown > .dropdown-menu.show {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 991px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: none;
        opacity: 0;
    }

    .navbar-nav .dropdown-menu.show {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 0;
}

@media (min-width: 992px) {
    .navbar-nav .dropdown-menu.admin-user-menu {
        right: 0;
        left: auto;
    }
}

/* ===== Mobile Menu Responsive Styles ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255,255,255,0.98);
        padding: 20px;
        margin-top: 15px;
        border-radius: 5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .navbar-nav .nav-link {
        color: #333 !important;
    }

        .navbar-nav .nav-link:hover {
            color: #007bff !important;
        }

    .navbar-nav .dropdown-menu {
        background: #f8f9fa;
    }

    .navbar-nav .dropdown-item {
        color: #333;
    }

        .navbar-nav .dropdown-item:hover {
            background: #e9ecef;
            color: #007bff;
        }
}

/* ===== Search Icon Button ===== */
.search-icon-btn {
    color: inherit;
    font-size: 1.2rem;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .search-icon-btn:hover {
        color: #007bff;
    }

    .search-icon-btn i {
        display: flex;
        align-items: center;
    }

/* Mobile: Search icon before menu button */
@media (max-width: 991.98px) {
    .search-icon-btn {
        order: 0;
    }

    .custom-toggler {
        order: 1;
    }
}

/* Desktop: Search icon after language switcher */
@media (min-width: 992px) {
    .search-icon-btn {
        order: 2;
    }
}

/* ===== Search Modal Styles ===== */
#searchModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

#searchModal .modal-header {
    padding: 1.5rem;
}

#searchModal .modal-title {
    font-weight: 600;
    color: #333;
}

#searchModal .modal-body {
    padding: 1.5rem;
}

#searchModal .form-control {
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 10px 0 0 10px;
    transition: border-color 0.3s ease;
}

    #searchModal .form-control:focus {
        border-color: #007bff;
        box-shadow: none;
    }

#searchModal .btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 0 10px 10px 0;
    font-weight: 500;
}

/* ===== General Styles ===== */
a {
    text-decoration: none;
}

.sidebar-date {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #4e73df, #1cc88a);
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
    text-align: center;
}


.chan-trang {
    background: white;
    padding: 60px 0 30px;
    border-top: 1px solid #e0e0e0;
}

.logo-chan-trang {
    margin-bottom: 20px;
}

.chu-logo {
    font-size: 42px;
    font-weight: bold;
    color: #e31e24;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 15px;
}

.chu-phu-logo {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.6;
}

.tieu-de-muc {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 600;
}

.thong-tin-lien-he {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.muc-lien-he {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.bieu-tuong-lien-he {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

    .bieu-tuong-lien-he svg {
        width: 100%;
        height: 100%;
        fill: #e31e24;
    }

.muc-lien-he a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

    .muc-lien-he a:hover {
        color: #e31e24;
    }

.lien-ket-mang-xa-hoi {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.nut-mang-xa-hoi {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
}

    .nut-mang-xa-hoi svg {
        width: 20px;
        height: 20px;
        fill: #999;
        transition: fill 0.3s;
    }

    .nut-mang-xa-hoi:hover {
        background: #e31e24;
    }

        .nut-mang-xa-hoi:hover svg {
            fill: white;
        }

.phan-dang-ky {
    margin-top: 30px;
}

.tieu-de-dang-ky {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.o-nhap-email {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    transition: border-color 0.3s;
}

    .o-nhap-email:focus {
        outline: none;
        border-color: #e31e24;
    }

    .o-nhap-email::placeholder {
        color: #ccc;
    }

.cuoi-chan-trang {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.ban-quyen {
    font-size: 11px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 767px) {
    .chan-trang {
        padding: 40px 0 20px;
    }

    .chu-logo {
        font-size: 36px;
    }

    .tieu-de-muc {
        margin-top: 30px;
    }
}

/* Mobile */
@media (max-width: 992px) {
    .top-header {
        background: #fff;
        color: #000;
    }
}

@media (max-width: 991.98px) {

    /* Cho phép xuống dòng */
    .header-actions {
        justify-content: flex-start;
    }

    /* Ngôn ngữ chiếm trọn 1 dòng */
    .mobile-full {
        width: 100%;
        order: 1;
        display: flex;
        gap: 8px;
    }

    /* Icon search + menu xuống dòng dưới */
    .mobile-icons {
        order: 2;
    }
}

@media (max-width: 991.98px) {
    .custom-toggler .navbar-toggler-icon span {
        background-color: #000;
    }
}


/* Assets/css/sotay-mobile.css */
/* =============================================================================
   Giao diện kiểu app trên điện thoại / máy tính bảng (≤991.98px, cùng mốc navbar-expand-lg).
   Header: logo + nút Tìm kiếm; thanh tab dưới; bottom sheet Tìm kiếm / Thêm.
   Theo mẫu CIAT (css/ciat-theme.css + js/ciat-mobile.js). JS: Assets/js/sotay-mobile.js
   ========================================================================== */
:root {
    --st-tab-h: 62px;
}

.st-appbar__btn,
.st-tabbar,
.st-sheet {
    display: none;
}

/* Nút cài ứng dụng (PWA) - js/pwa-install.js chèn vào footer khi trình duyệt cho phép cài */
.vs-pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
    background: var(--primary, #1B6B2A);
    border: 0;
    border-radius: 999px;
}

.vs-pwa-install-btn[hidden] {
    display: none !important;
}

.vs-pwa-install-btn:hover {
    background: var(--primary-dark, #0D4A1A);
}

@media (max-width: 991.98px) {
    body.st-app {
        padding-bottom: calc(var(--st-tab-h) + env(safe-area-inset-bottom, 0px));
    }

    /* Ẩn nút ☰ và menu thả xuống: thay bằng thanh tab + sheet */
    body.st-app .site-header #navMainToggler,
    body.st-app .site-header #navMain {
        display: none !important;
    }

    body.st-app .site-header .navbar {
        padding: 0.35rem 0;
    }

    body.st-app .site-header .navbar > .container-fluid {
        flex-wrap: nowrap !important;
    }

    body.st-app .site-header .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 4px;
    }

    body.st-app .site-header .brand-icon {
        width: 38px;
        height: 38px;
        flex: 0 0 auto;
    }

    body.st-app .site-header .brand-icon .bi {
        font-size: 26px !important;
        margin: 0 !important;
    }

    body.st-app .site-header .brand-text {
        min-width: 0;
        overflow: hidden;
    }

    body.st-app .site-header .brand-text span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .st-appbar__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        margin-right: -6px;
        padding: 0;
        font-size: 20px;
        color: #fff;
        background: transparent;
        border: 0;
        border-radius: 12px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .st-appbar__btn:active,
    .st-appbar__btn[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.16);
    }

    /* ----- Thanh tab dưới ----- */
    body.st-app .st-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: flex;
        height: calc(var(--st-tab-h) + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #fff;
        border-top: 1px solid var(--border, #D4E0D4);
        box-shadow: 0 -4px 16px rgba(13, 74, 26, 0.08);
    }

    .st-tabbar > a,
    .st-tabbar > button {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        padding: 0;
        font-family: var(--font, 'Be Vietnam Pro', sans-serif);
        font-size: 11.5px;
        font-weight: 600;
        line-height: 1.2;
        color: #5f6b66;
        text-decoration: none !important;
        background: transparent;
        border: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .st-tabbar > * .bi {
        font-size: 21px;
        line-height: 1;
    }

    .st-tabbar > * span {
        max-width: 100%;
        padding: 0 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .st-tabbar > .is-active,
    .st-tabbar > [aria-expanded="true"] {
        color: var(--primary, #1B6B2A);
    }

    .st-tabbar > .is-active::before {
        content: "";
        position: absolute;
        top: 0;
        left: 28%;
        right: 28%;
        height: 3px;
        background: var(--primary, #1B6B2A);
        border-radius: 0 0 3px 3px;
    }

    .st-tabbar > .is-loading .bi::before {
        content: "\f130"; /* bi-arrow-repeat */
    }

    .st-tabbar > .is-loading .bi {
        animation: st-xoay 0.8s linear infinite;
    }

    @keyframes st-xoay {
        to { transform: rotate(360deg); }
    }

    /* Bàn phím ảo mở: ẩn thanh tab */
    body.st-app.st-kb-mo .st-tabbar {
        display: none;
    }

    body.st-app.st-kb-mo {
        padding-bottom: 0;
    }

    /* Trang Chat: form cao 100dvh → chừa chỗ cho thanh tab */
    body.st-app.page-chat {
        padding-bottom: 0;
    }

    body.st-app.page-chat #form_admin {
        height: calc(100dvh - var(--st-tab-h) - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - var(--st-tab-h) - env(safe-area-inset-bottom, 0px));
        min-height: 0;
    }

    body.st-app.page-chat.st-kb-mo #form_admin {
        height: 100dvh;
        max-height: 100dvh;
    }

    body.st-sheet-mo {
        overflow: hidden;
    }

    /* Footer: chỉ hiện ở trang chủ (các trang khác đã có thanh tab) */
    body.st-app:not(.st-trang-chu) .site-footer {
        display: none !important;
    }

    /* ----- Bottom sheet ----- */
    .st-sheet {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1045;
    }

    .st-sheet[hidden] {
        display: none;
    }

    .st-sheet__nen {
        position: absolute;
        inset: 0;
        background: rgba(6, 30, 12, 0.45);
        opacity: 0;
        transition: opacity 0.2s;
    }

    .st-sheet__khung {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        max-height: 86vh;
        max-width: 720px;
        margin: 0 auto;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #fff;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
        transform: translateY(100%);
        transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .st-sheet.is-mo .st-sheet__nen {
        opacity: 1;
    }

    .st-sheet.is-mo .st-sheet__khung {
        transform: translateY(0);
    }

    .st-sheet__dau {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 12px 8px 18px;
        touch-action: none;
    }

    .st-sheet__keo {
        position: absolute;
        top: 8px;
        left: 50%;
        width: 40px;
        height: 4px;
        margin-left: -20px;
        background: #d3dcd7;
        border-radius: 2px;
    }

    .st-sheet__dau h2 {
        margin: 0;
        font-family: var(--font, 'Be Vietnam Pro', sans-serif);
        font-size: 18px;
        font-weight: 700;
        color: var(--primary-dark, #0D4A1A);
    }

    .st-sheet__dong {
        width: 40px;
        height: 40px;
        font-size: 16px;
        color: #3b4a42;
        background: #f1f5f3;
        border: 0;
        border-radius: 50%;
    }

    .st-sheet__than {
        padding: 4px 14px 20px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        font-family: var(--font, 'Be Vietnam Pro', sans-serif);
    }

    .st-sheet__h {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 16px 4px 8px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #6b7a72;
    }

    .st-sheet__luoi {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .st-sheet__o {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 80px;
        padding: 8px 4px;
        font-size: 12.5px;
        font-weight: 600;
        line-height: 1.25;
        text-align: center;
        color: var(--text-main, #1A2E1A) !important;
        text-decoration: none !important;
        background: var(--success-bg, #E8F5E9);
        border: 0;
        border-radius: 14px;
    }

    .st-sheet__o .bi {
        font-size: 22px;
        color: var(--primary, #1B6B2A);
    }

    .st-sheet__ds {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid var(--border, #D4E0D4);
        border-radius: 14px;
    }

    .st-sheet__ds a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 46px;
        padding: 8px 14px;
        font-size: 14.5px;
        line-height: 1.35;
        color: var(--text-main, #1A2E1A) !important;
        text-decoration: none !important;
        border-top: 1px solid #eef2ef;
    }

    .st-sheet__ds a:first-child {
        border-top: 0;
    }

    .st-sheet__ds a .bi {
        width: 18px;
        margin: 0 !important;
        color: var(--primary, #1B6B2A);
    }

    .st-sheet__ds a.text-danger,
    .st-sheet__ds a.text-danger .bi {
        color: #c62828 !important;
    }

    /* Tìm kiếm */
    .st-search {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 6px 6px 14px;
        background: #fff;
        border: 1.5px solid #cfdad3;
        border-radius: 999px;
    }

    .st-search:focus-within {
        border-color: var(--primary, #1B6B2A);
        box-shadow: 0 0 0 3px rgba(27, 107, 42, 0.15);
    }

    .st-search > .bi {
        color: #8a9a91;
    }

    .st-search input {
        flex: 1;
        min-width: 0;
        height: 40px;
        padding: 0;
        font-size: 16px;
        color: var(--text-main, #1A2E1A);
        background: transparent;
        border: 0;
        outline: 0;
    }

    .st-search input.is-loi {
        animation: st-lac 0.3s 2;
    }

    @keyframes st-lac {
        25% { transform: translateX(-4px); }
        75% { transform: translateX(4px); }
    }

    .st-search button {
        height: 40px;
        padding: 0 18px;
        font-size: 14.5px;
        font-weight: 700;
        color: #fff;
        background: var(--primary, #1B6B2A);
        border: 0;
        border-radius: 999px;
    }

    .st-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .st-chips button {
        padding: 8px 14px;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--primary-dark, #0D4A1A);
        background: var(--success-bg, #E8F5E9);
        border: 0;
        border-radius: 999px;
    }
}

/* ---------- Flipbook PDF trong nội dung (App_Code/FlipbookHelper.vb, plugin CKEditor flipbook) ---------- */
.news-flipbook-embed {
    margin: 18px 0 22px;
    overflow: hidden;
    background: #1e1e1e;
    border: 1px solid var(--border, #D4E0D4);
    border-radius: 14px;
    box-shadow: var(--shadow, 0 2px 8px rgba(27,107,42,0.10));
}

.news-flipbook-embed iframe,
iframe.hmu-flipbook {
    display: block;
    width: 100% !important;
    height: 620px;
    max-width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
}

.news-flipbook-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin: 0 !important;
    padding: 10px 14px;
    background: #fff;
}

.news-flipbook-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 14px !important;
    font-weight: 700;
    color: var(--primary, #1B6B2A) !important;
    text-decoration: none !important;
    background: var(--success-bg, #E8F5E9);
    border-radius: 999px;
}

.news-flipbook-actions a:hover {
    color: #fff !important;
    background: var(--primary, #1B6B2A);
}

@media (max-width: 767px) {
    .news-flipbook-embed iframe,
    iframe.hmu-flipbook {
        height: 460px;
    }

    .news-flipbook-actions {
        justify-content: center;
    }
}

