﻿.bg-color-2375C0 {
    background-color: #2375C0;
}

@media (min-width: 992px) {
    .desktop-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-center-custom {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .mobile-header {
        display: none;
    }

    .desktop-header {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .nav-center-custom {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

.auth-buttons {
    padding-right: 10px;
    align-items: center;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}
.header-logo {
    padding-left: 20px;
}
@media (max-width: 991.98px) {
    #navbarCollapse {
        position: fixed !important;
        top: 56px;
        left: 0;
        width: 100%;
        background: #2375C0;
        z-index: 1000;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav {
        padding: 10px 0;
    }

    .nav-link {
        color: #fff !important;
        padding: 10px 15px;
    }

    body.navbar-open {
        overflow: hidden;
    }

    .desktop-header {
        display: none;
    }

    .header-logo-outside {
        display: none;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        width: 100%;
        position: relative;
    }

        .mobile-header .header-logo {
            margin-left: 10px;
        }

        .mobile-header .auth-buttons {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
        }

    .btn-custom {
        padding: 3px 10px;
        font-size: 0.9rem;
        margin-left: 5px;
    }

    .header-logo {
        width: 80%;
        text-align: center;
        padding-left:20px;
    }

    .sidebar-menu {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        background-color: #2375C0;
        z-index: 1000;
        transition: left 0.3s ease;
    }

        .sidebar-menu.show {
            left: 0;
        }

    .navbar-nav {
        flex-direction: column;
        padding: 20px;
    }

    .nav-item {
        margin: 10px 0;
    }
}

.btn-custom {
    border: 1px solid white;
    color: white;
    border-radius: 6px;
    padding: 5px 15px;
    margin-left: 10px;
}

    .btn-custom:hover {
        background-color: white;
        color: #2375C0;
    }

.nav-item {
    display: flex;
    margin: 0 10px;
    align-items: center;
}

.nav-link {
    color: white !important;
}

    .nav-link:hover {
        color: #ddd !important;
    }

.nav-item.active .nav-link {
    position: relative;
    color: white !important;
    display: inline-block;
}

    .nav-item.active .nav-link::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: white;
        bottom: 2px;
        left: 0;
    }

.pd-left-10 {
    padding-left: 10px;
}

.navbar-expand-lg .sidebar-menu.navbar-collapse {
    display: none;
}

.title-heading {
    padding: 20px 0px 8px 0px;
    text-align: center;
}

    .title-heading h1 {
        font-weight: 700;
        font-size: 20px;
        color: #0094DC;
    }

@media (max-width: 768px) {
    .navbar-expand-lg .sidebar-menu.navbar-collapse {
        display: none;
    }

    .article-body img {
        max-width: 100%;
    }

    .title-heading {
        font-size: 1.2rem;
        padding: 8px;
    }

    .search-bar .btn {
        margin: 5px 0;
        width: 100%;
    }

    .main-content {
        background-color: white;
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin: 10px 0;
    }

    .dimensions {
        font-size: 0.9rem;
        padding: 3px 8px;
    }

    .sidebar h5 {
        font-size: 1rem;
    }

    .sidebar ul li {
        font-size: 0.9rem;
    }

    .footer-btn {
        bottom: 10px;
        right: 10px;
    }

        .footer-btn .btn {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }

    .breadcrumb-container {
        padding: 8px 10px;
    }

    .breadcrumb-item {
        font-size: 0.8rem;
    }

    .article-content h1 {
        font-size: 1.3rem;
    }

    .article-meta {
        font-size: 0.8rem;
    }

    .article-body p {
        font-size: 0.9rem;
    }

    .article-actions .btn-reply {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .post-carousel-inner img {
        max-height: 60vh;
    }

    .post-carousel-control-prev,
    .post-carousel-control-next {
        width: 50px;
        height: 50px;
    }

    .post-carousel-control-prev-icon,
    .post-carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }

    .post-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
        line-height: 35px;
    }
}

@media (max-width: 576px) {
    .pagination-section {
        float: left;
    }

    .note {
        float: left;
    }

    .title-heading {
        font-size: 1rem;
    }

    .article-body img {
        max-width: 100%;
    }

    .search-bar input {
        font-size: 0.9rem;
    }

    .main-content {
        padding: 10px;
        height: 200px;
    }

    .dimensions {
        font-size: 0.8rem;
    }

    .breadcrumb-container {
        padding: 8px 10px;
    }

    .breadcrumb-item {
        font-size: 0.8rem;
    }

    .pagination-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .note-avatar img {
        width: 25px;
        height: 25px;
    }

    .note-title {
        font-size: 0.8rem;
    }

    .note-date,
    .note-status,
    .note-content,
    .note-link,
    .note-reply {
        font-size: 0.75rem;
    }

    .note-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .note-link {
        margin-top: 5px;
    }

    .pagination-section .total,
    .pagination-section .display-options {
        margin-bottom: 10px;
    }

    .pagination-section .display-options {
        margin-right: 0;
    }

    .pagination-section .pagination {
        width: 100%;
        justify-content: center;
    }

    .article-content h1 {
        font-size: 1.3rem;
    }

    .article-meta {
        font-size: 0.8rem;
    }

    .article-body p {
        font-size: 0.9rem;
    }

    .article-actions .btn-reply {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

.search-bar {
    background-color: #2375C0;
    padding: 10px;
    color: white;
}

    .search-bar input {
        width: 100%;
        padding: 7px;
        border: none;
        border-radius: 5px;
    }

    .search-bar .btn {
        margin: 5px 5px 0 0;
        width: 100%;
    }

.dimensions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.sidebar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.sidebar h5 {
    background-color: #1A6B9E;
    padding: 10px;
    color: white;
    margin-bottom: 10px;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 5px 18px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li a {
    font-weight: 700;
    font-size: 15px;
    color: #333333;
    text-decoration: none;
}
.sidebar ul li a:hover {
    color: #0056b3;
    text-decoration: underline;
}
.sidebar ul li .badge {
    float: right;
    color: #dc3545;
    font-weight: 700;
    font-size: 11px;
}

.footer-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.fixbtn-tk {
    background-color: #248BCC;
}

.fixbtn-tknc {
    background-color: #fff;
    color: #212529;
}

.footer {
    background-color: #0C3960;
    color: #fff;
}

.pad-20 {
    padding: 20px;
}

.lien-ket {
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #0094DC !important;
    text-decoration: none !important;
}

.bg-white {
    background-color: #fff;
}

.fix-boder {
    border: 1px solid #E2E8F0 !important;
}

.mg-top-5 {
    margin-top: 5px;
}

.search-bar input:focus-visible {
    outline: none;
}

.display-flex {
    display: flex;
}

/*gop y*/
@media (max-width: 768px) {
    .display-flex {
        display: block;
    }

    .pagination-section {
        float: left;
    }

    .note {
        float: left;
    }

    .pd-left-10 {
        padding-left: 0px;
    }

    .note-avatar {
        padding: 10px;
    }

        .note-avatar img {
            width: 30px;
            height: 30px;
        }

    .note-title {
        font-size: 0.9rem;
    }

    .note-date,
    .note-status,
    .note-content,
    .note-link {
        font-size: 0.8rem;
    }

    .pagination-section {
        flex-direction: column;
        align-items: flex-start;
    }

        .pagination-section .total {
            margin-bottom: 10px;
        }

        .pagination-section .pagination-wrapper {
            width: 100%;
            justify-content: flex-end;
        }

        .pagination-section .display-options {
            margin-right: 10px;
            margin-bottom: 10px;
        }

        .pagination-section .pagination {
            width: auto;
        }

    .article-content {
        float: left;
        width: 100%;
    }
}

@media (min-width: 900px) {
    .modal-dialog {
        min-width: 800px;
    }
}

@media (max-width: 576px) {
    .display-flex {
        display: block;
    }

    .pd-left-10 {
        padding-left: 0px;
    }

    .note-avatar {
        padding: 5px;
    }

        .note-avatar img {
            width: 25px;
            height: 25px;
        }

    .note-title {
        font-size: 0.8rem;
    }

    .note-date,
    .note-status,
    .note-content,
    .note-link {
        font-size: 0.75rem;
    }

    .note-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .note-link {
        margin-top: 5px;
    }

    .form-container {
        padding: 15px;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

        .form-group label {
            width: 100%;
            margin-bottom: 5px;
            margin-right: 0;
            text-align: left;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
        }

        .form-group textarea {
            height: 80px;
        }

    .btn-submit {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 8px 15px;
        font-size: 0.9rem;
        margin: 20px auto 0;
    }

    .pagination-section {
        flex-direction: column;
        align-items: flex-start;
    }

        .pagination-section .total {
            margin-bottom: 10px;
        }

        .pagination-section .pagination-wrapper {
            width: 100%;
            justify-content: flex-end;
        }

        .pagination-section .display-options {
            margin-right: 10px;
            margin-bottom: 10px;
        }

        .pagination-section .pagination {
            width: auto;
        }
}

.note-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

    .note-item:last-child {
        border-bottom: none;
    }

.note-avatar {
    flex-shrink: 0;
    padding: 20px;
}

    .note-avatar img {
        width: 66px;
        height: 66px;
        border-radius: 50%;
    }

.note-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.note-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.note-title {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.note-date {
    color: #666;
    font-size: 0.9rem;
    margin-right: 5px;
}

.note-status {
    color: #dc3545;
    font-size: 0.9rem;
}

    .note-status.answered {
        color: #28a745;
    }

.note-body {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.note-content {
    color: #333;
    margin-bottom: 5px;
}

.note-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    padding-right: 10px;
}

.pagination-section {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

    .pagination-section .total {
        color: #666;
        font-size: 0.9rem;
    }

    .pagination-section .pagination-wrapper {
        display: flex;
        align-items: center;
    }

    .pagination-section .display-options {
        display: flex;
        align-items: center;
        font-size: 0.9rem;
        color: #666;
        margin-right: 10px;
    }

        .pagination-section .display-options label {
            margin-right: 5px;
        }

        .pagination-section .display-options select {
            border: 1px solid #ced4da;
            border-radius: 5px;
            padding: 2px 5px;
            font-size: 0.9rem;
            background-color: #fff;
        }

    .pagination-section .pagination {
        margin: 0;
    }

        .pagination-section .pagination .page-link {
            color: #007bff;
        }

        .pagination-section .pagination .page-item.active .page-link {
            color: #fff;
            background-color: #007bff;
            border-color: #007bff;
        }

.sidebar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.note {
    border: 1px solid #e0e0e0;
}

/*end gop y*/
/*form*/
.form-container {
    border-radius: 10px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .form-group label {
        max-width: 200px;
        width: 30%;
        margin-right: 15px;
        font-weight: bold;
        color: #333;
        flex-shrink: 0;
        text-align: left;
    }


    .form-group input,
    .form-group textarea {
        flex-grow: 1;
        padding: 5px;
        border: 1px solid #ced4da;
        /* Thêm viền đầy đủ 4 cạnh */
        border-radius: 5px;
        /* Bo góc */
        background: transparent;
        font-size: 1rem;
    }

    .form-group textarea {
        height: 100px;
        resize: vertical;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border: 1px solid #007bff;
            box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #999;
        }

.btn-submit {
    background-color: #007bff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    margin: 20px 0 0 auto;
    display: block;
    color: white;
}

    .btn-submit:hover {
        background-color: #0056b3;
    }

/*end form*/
/*breadcrumb*/
.breadcrumb-container {
    padding: 20px 0px 0px 10px;
    border-radius: 5px;
    display: inline-block;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    background-color: white !important;
}

.breadcrumb-item {
    font-size: 16px;
    color: #000000;
}

    .breadcrumb-item a {
        color: #000000;
        text-decoration: none;
    }

        .breadcrumb-item a:hover {
            text-decoration: none;
        }

    .breadcrumb-item.active {
        color: #000000;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        content: "/";
        color: #666;
        margin: 0 5px;
    }

/*end breadcrumb*/
/*tin tức*/
.article-content h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

    .article-meta .author {
        margin-right: 10px;
    }

    .article-meta .date {
        margin-right: 10px;
    }

    .article-meta .status {
        color: #28a745;
    }

.article-body {
    margin-bottom: 20px;
}

    .article-body p {
        margin-bottom: 10px;
        line-height: 1.6;
        color: #333;
    }

    .article-body .image-container {
        display: flex;
        justify-content: center;
        /* Căn giữa ảnh */
        margin: 5px 0;
    }

    .article-body img {
        max-width: 100%;
        width: auto;
        height: auto;
        cursor: pointer;
    }

.article-actions {
    display: flex;
    justify-content: flex-end;
}

    .article-actions .btn-reply {
        background-color: #007bff;
        color: white;
        padding: 8px 15px;
        border: none;
        border-radius: 5px;
        font-weight: bold;
    }

        .article-actions .btn-reply:hover {
            background-color: #0056b3;
        }

.pagination-section {
    display: flex;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.head-article {
    background-color: #0094DC;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 10px;
}

.article-content {
    padding: 20px;
}

/*end tin tức*/

/* Post Modal và Post Carousel */
.post-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

    .post-modal.show {
        display: block;
    }

.post-modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.post-modal-lg {
    max-width: 90%;
    margin: 1.75rem auto;
}

.post-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
}

.post-modal-body {
    padding: 0;
    background: transparent;
    position: relative;
}

.post-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 1060;
}

    .post-modal-close:hover {
        background: rgba(0, 0, 0, 0.7);
    }

.post-carousel {
    position: relative;
}

.post-carousel-inner {
    padding: 0;
}

    .post-carousel-inner img {
        width: auto;
        height: auto;
        max-height: 80vh;
        max-width: 100%;
        object-fit: none;
        border-radius: 0;
        border: none;
        display: block;
        margin: 0 auto;
    }

.post-carousel-item {
    display: none;
    width: 100%;
    text-align: center;
}

    .post-carousel-item.active {
        display: block;
    }

.post-carousel-control-prev,
.post-carousel-control-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.post-carousel-control-prev {
    left: 20px;
}

.post-carousel-control-next {
    right: 20px;
}

    .post-carousel-control-prev:hover,
    .post-carousel-control-next:hover {
        opacity: 1;
    }

.post-carousel-control-prev-icon,
.post-carousel-control-next-icon {
    display: inline-block;
    width: 30px;
    height: 55px;
    background-size: 100% 100%;
}

.post-carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

.post-carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.user-menu-content {
    width: 250px; 
    right: 0 !important; 
    left: auto !important; 
    margin-right: 0 !important; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
}

div#headerNotification {
    position: absolute;
    top: 54px;
    right: 0;
    width: 350px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid #e5e5e5;
}

    .notification-item:last-child {
        border-bottom: none;
    }

.notification-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.user-menu-lg {
    min-width: 200px;
}

.user-menu-right {
    top: 66px;
    right: 0;
    left: auto;
}

.user-menu-divider {
    height: 1px;
    margin: 0.5rem 0;
    background-color: #e5e5e5;
}

.user-menu-item {
    padding: 0.5rem 1rem;
    display: block;
    color: #333;
}

    .user-menu-item:hover {
        background-color: #f8f9fa;
    }

.nav-link {
    position: relative;
}

.fas.fa-bell {
    position: relative;
}

.badge.header-badge {
    position: absolute;
    top: 0px;
    right: -8px;
    background-color: #ffc107;
    color: #212529;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}
.scroll_h250 {
    max-height: 250px;
    overflow-y: auto;
}
.link-title {
    display: inline-block;
    max-width: 150px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.custom_title {
    font-weight: 700;
    font-size: 15px;
    color: #333333;
    text-decoration: none;
}

.ul_ar_custom {
    list-style-type: none;
    line-height: 25px;
}

.li_ar_custom {
    padding: 10px 0px;
}
.head-article-cust {
    background-color: #1A6B9E;
    padding: 10px;
    color: white;
    margin-bottom: 10px;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.min-h-700{
    min-height:800px;
}
.custom_validate {
    line-height: 3;
    text-align: left;
    float: left;
    width: 100%;
}
.visually-hidden{
    display:none;
}