/*Ẩn lỗi capcha*/
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Phần header */

.head-background {
    background: url("../images/backgroundimg.jpg") !important;
    min-height: 130px;
}

.head-background-content {
    min-height: 130px;
    display: flex;
    align-items: center; /* căn giữa toàn bộ theo chiều dọc */
}

.head-background-content-left {
    display: flex;
    align-items: center; /* căn giữa logo và khối chữ */
    height: 100%;
}

.head-background-content-logo {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.head-background-content-left-title {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* căn giữa 2 dòng chữ */
}

.head-background-content-left-title1,
.head-background-content-left-title2 {
    margin: 0;
    line-height: 1.3;
}

.head-background-content-left-title1 {
    font-size: 24px;
    text-transform: uppercase;
    color: #005dae;
    font-weight: 700;
}

.head-background-content-left-title2 {
    font-size: 23px;
    text-transform: uppercase;
    color: #ec0000;
    font-weight: 900;
}

/* Khối bên phải */
.head-background-content-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding-right: 0 !important;
    margin-left: auto; /* đẩy toàn bộ khối sang phải */
}

/* Form tìm kiếm */
.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 260px;
    margin-left: auto; /* đẩy form sát bên phải */
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid #d60000;
    border-radius: 50px;
    overflow: hidden;
    /* box-shadow: 0 4px 12px rgba(214, 0, 0, 0.18); */
}

    /* Ô nhập liệu */
    .search-form .form-control {
        border: none;
        border-radius: 0;
        padding: 4px 16px;
        font-size: 15px;
        box-shadow: none;
        background: transparent;
    }

        .search-form .form-control:focus {
            box-shadow: none;
            outline: none;
        }

        .search-form .form-control::placeholder {
            color: #999;
            font-style: italic;
        }

    /* Nút tìm kiếm */
    .search-form .btn-search {
        background: linear-gradient(135deg, #ec0000, #c40000);
        color: #fff;
        border: none;
        padding: px 16px;
        border-radius: 0;
        transition: all 0.3s ease;
    }

        .search-form .btn-search:hover {
            background: linear-gradient(135deg, #c40000, #a80000);
            color: #fff;
        }

        .search-form .btn-search i {
            font-size: 16px;
        }

    /* Hiệu ứng khi focus */
    .search-form:focus-within {
        border-color: #ff3333;
        box-shadow: 0 6px 18px rgba(236, 0, 0, 0.28);
    }

.header-navbar {
/*    background-image: url("../images/bg_top.jpg");*/
    background-repeat: repeat-x;
    background-position: top left;
    background-size: auto 100%;
    padding: 6px;
    background-color: #577aee !important;
}

.slogan-top {
    background: #fea;
    padding-bottom: 4px;
}

.slogan-top-content {
    background: transparent !important;
    padding-top: 8px;
}

.slogan-top-content-date {
    font-weight: normal;
    font-size: 15px;
    font-style: italic;
    color: #b10511;
}

.slogan-top-content-slogan {
    color: #b10511;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 14px;
}

    .slogan-top-content-slogan span {
        display: inline-block;
        padding-left: 100%;
        animation: marquee 18s linear infinite;
    }

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Hiệu ứng icon */
.nav-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Fix hình ảnh reponsive */
.content-body img,
.content-body p img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content_post,
.content_post * {
    max-width: 100%;
}

    .content_post img {
        width: 100% !important;
        height: auto !important;
    }

    .content_post figure {
        margin: 10px 0;
    }


/*Bảng chứa các văn bản, lịch làm việc*/
.row-item {
    border-bottom: 1px solid #eee;
    padding: 12px 8px;
    transition: all 0.25s ease;
    border-radius: 6px;
}

    .row-item:hover {
        background: #f8f9fa;
        /*  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        transform: translateY(-2px);*/
    }

/* Icon */
.col-icon i {
    color: #000;
    transition: 0.2s;
}

.row-item:hover .col-icon i {
    transform: scale(1.1);
}

/* Title */
.col-title a {
    text-decoration: none;
    transition: 0.2s;
}

    .col-title a:hover {
        color: #0d6efd;
        text-decoration: underline;
    }

/* Button */
.row-item .btn {
    transition: 0.2s;
}

.row-item:hover .btn-link {
    color: #0d6efd;
}

/* Disabled button */
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-link {
    white-space: nowrap;
    text-decoration: none;
}

    .btn-link:hover {
        text-decoration: underline;
    }


/* Nút tải xuống nhỏ gọn */
.btn-download-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background-color: #fef2f2; /* đỏ nhạt nhẹ */
    color: #b91c1c !important; /* đỏ đậm chuyên nghiệp */
    border: 1px solid #e0e7ff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .btn-download-sm i {
        font-size: 14px;
    }

    .btn-download-sm:hover {
        background-color: #4f46e5;
        color: white !important;
        border-color: #4f46e5;
        box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
    }

/* Nút chi tiết dạng text link nhỏ */
.btn-detail-sm {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

/* Hover */
.btn-download-sm:hover {
    background-color: #dc2626; /* đỏ đậm */
    color: #ffffff !important; /* chữ trắng */

    border-color: #dc2626;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
    transform: translateY(-1px);
}

/* Mobile: Chỉ hiện icon để siêu gọn */
@media (max-width: 576px) {
    .btn-download-sm span {
        display: none;
    }

    .btn-download-sm {
        padding: 6px 10px;
    }
}

/*PHân trang*/
/* Container spacing */
.pagination {
    gap: 6px;
}

/* Item */
.page-item .page-link {
    border-radius: 6px;
    border: 1px solid #fecaca;
    color: #b91c1c;
    background-color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

    /* Hover */
    .page-item .page-link:hover {
        background-color: #fee2e2; /* đỏ nhạt */
        color: #991b1b;
        border-color: #fca5a5;
    }

/* Active */
.page-item.active .page-link {
    background-color: #dc2626; /* đỏ đậm */
    border-color: #dc2626;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

/* Next / Prev */
.page-item .next.page-link {
    font-weight: bold;
}

/* Disable */
.page-item.disabled .page-link {
    background-color: #f9fafb;
    color: #9ca3af;
    border-color: #e5e7eb;
}


/*---Ẩn lỗi version của CKEDITER-*/
.cke_notification_warning {
    display: none !important;
}

/*.img-fluid {
    object-fit: cover !important;
    width: 200px !important;
    height: 140px !important;
}*/
.head-background-content-left-title2 {
    font-size: 40px !important;
    font-weight: 900 !important;
    color: #e60000 !important;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    text-shadow: 2px 2px 0 #ffffff, -2px -2px 0 #ffffff, 3px 4px 5px rgba(0, 0, 0, 0.35);
    margin: 10px 0;
}