@charset "utf-8";
.top-bar {
    background: #0e4f92;
    color: white;
    padding: 5px 0;
    font-size: 14px;
    text-align: right;
}
.banner{
    background: url("/webs/layout6/images/banner.jpg");
    background-size: cover;
    background-position: 0;
}
.banner a{
    display: flex;
    align-items: center;
    padding: 10px;
}
.main-menu{
    background: #f5ecb9;
}


.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Hiệu ứng mờ dần khi xuất hiện */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tạo hiệu ứng hover cho các mục menu */
.nav-link {
    transition: color 0.3s ease-in-out;
    text-transform: uppercase;
    color: #0e4f92 !important;
}
.nav-link:hover {
    color: #6fbeff !important; /* Màu xanh Bootstrap khi hover */
}
.ldld{
    display: none;
    margin-right: auto;
    margin-left: 25px;
    color: #0e4f92 !important;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}
@media (max-width: 768px) { /* Khi màn hình nhỏ hơn hoặc bằng 768px (tablet, mobile) */
    .ldld {
        display: block;
    }
}
@media (min-width: 768px) { /* Khi màn hình nhỏ hơn hoặc bằng 768px (tablet, mobile) */
    .ldld {
        display: block;
        font-size: 20px;
    }
}
@media (min-width: 1024px) { /* Khi màn hình nhỏ hơn hoặc bằng 768px (tablet, mobile) */
    .ldld {
        display: none;
    }
}
@media (max-width: 768px) { /* Khi màn hình nhỏ hơn hoặc bằng 768px (tablet, mobile) */
    .ldld {
        display: block;
        font-size: 10px;
    }
}
/* Hiệu ứng hover cho dropdown-item */
.dropdown-item {
    transition: background-color 1s ease-in-out, padding-left 1s;
}
.dropdown-item:hover {
    background-color: #6fbeff;
    color: white !important;
    padding-left: 15px;
}
.navbar-nav{
    font-size: 15px;
    flex-wrap: wrap;
}

.line-top{
    background: #f1f1f1;
}
.marquee-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    align-items: center;
    justify-content: center;
    height: 30px; /* Chiều cao cố định để tránh lệch */
}
@media (max-width: 768px) { /* Khi màn hình nhỏ hơn hoặc bằng 768px (tablet, mobile) */
    .marquee-container {
        display: none; /* Ẩn chữ chạy */
    }
}

.marquee {
    display: inline-block;
    color: #dc3545;
    white-space: nowrap;
    position: absolute;
    animation: marqueeScroll 40s linear infinite;
    font-weight: 700;
    font-size: 17px;
    font-family: 'Roboto Condensed', sans-serif;
}

@keyframes marqueeScroll {
    from {
        right: -50%;
    }
    to {
        right: 100%;
    }
}

/* Thanh tìm kiếm */
.search-box {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Căn sang bên phải */
    border: 1px solid #ccc;
    padding: 2px 10px;
    border-radius: 20px;
    background-color: white;
    height: 30px;
    margin-left: auto;
}
@media (max-width: 768px) { /* Khi màn hình nhỏ hơn hoặc bằng 768px (tablet, mobile) */
    .search-box {
        margin-top: 10px;
        width: 100%;
    }
}
.search-box input {
    border: none;
    outline: none;
    width: 100%;
}

.search-box i {
    padding: 5px;
    color: gray;
}
.news-item {
    position: relative;
    height: 100%;
}
.news-item a:hover .news-caption{
    color: #c4c4c4 !important;
}

.news-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(51, 51, 51, 0.65);
    color: white;
    padding: 10px;
    font-size: 14px;
}
.news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 200px;
    min-height: 120px;
}

.swiper-container {
    width: 100%;
    overflow: hidden;
}
.swiper-slide {
    color: rgb(255, 255, 255);
    overflow: hidden;
}
.swiper-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.news-bg{
    background-color: #0066cc;
}
.swiper-slide a p{
    text-decoration: none; /* Bỏ gạch chân */
    color: white;
}
.swiper-slide a:hover p{
    color: #c4c4c4 !important;
}
/*.card {
    height: 400px;
    overflow: hidden;
}
.card-body {
    height: 330px;
    overflow-y: auto;
}*/
.list-group-item a {
    color: #1f388b;
}
.list-group-item a:hover {
    color: #dc3545;
    text-decoration: none;
}
.news-title {
    font-weight:bold;
    font-size: 16px;
    text-align: center;
    color: #1f388b;
    border-bottom: 2px solid #1f388b;
    padding-bottom: 5px;
}
@media (min-width: 768px) and (max-width: 912px) {
    .news-title {
        font-weight:600;
        font-size: 13px;
    }
}
.list-unstyled a {
    text-decoration: none;
    color: black;
}
.list-unstyled a:hover {
    color: red;
    text-decoration: none;
}
.news-card {
    padding: 10px;
    overflow: hidden;
    overflow-y: auto;
}
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-card ul li {
    overflow-y: auto;
    border-top: 1px dashed #ddd;
    padding-top: 5px;
    padding-bottom: 5px;
}

.fw-bold.mt-2 a:hover {
    color: blue !important;
}

.news-title:hover {
    color: red;
    text-decoration: none;
}

/* footer {
    background-color: #31783e;
    background: url("/webs/layout6/images/footer.png") no-repeat;
    background-size: cover;
} */
 .bg-footer{
    background-color: rgb(0, 152, 219) !important;
 }

footer a{color: white; text-decoration: none; margin-right: 10px}
footer a:hover{color: white}

.list_sub_cate {
    border-bottom: 1px solid #e8d3c3;
    margin: 0 15px 15px;
    padding: 8px 0 5px;
}

.blog-news {
    border: 1px solid #eee;
    border-radius: 5px; /* Thêm bo góc */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ */
}

.blog-news .list_sub_cate a.active {
    background: #fff;
    margin-bottom: -1px;
    color: #e26f2c;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
}

.blog-news .list_sub_cate a.active:hover {
    color: rgb(221, 28, 28);
}

.blog-news-content {
    padding: 0 15px;
}

.item-first h2 a {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4; /* Điều chỉnh khoảng cách giữa các dòng */
    font-family: 'Roboto Condensed', sans-serif;
    text-decoration: none;
    color: #0060a1; /* Màu chữ mặc định */
}

.item-first h2 a:hover {
    color: rgb(221, 28, 28);
}


.sapo {
    margin-top: 0;
    text-align: justify;
    color: #555; /* Màu chữ xám nhẹ */
    line-height: 1.6; /* Khoảng cách dòng */
    font-size: 15px;
}

.item-first .col-md-4 img {
    width: 100%; /* Chiều rộng đầy đủ */
    height: 100%; /* Tự điều chỉnh theo tỉ lệ */
    object-fit: cover; /* Đảm bảo ảnh phù hợp với khung */
    border-radius: 5px; /* Bo góc hình ảnh */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Đổ bóng cho hình ảnh */
}
.item-first {
    display: flex;
    gap: 15px; /* Khoảng cách giữa hình và chữ */
    align-items: stretch; /* Hình và chữ cùng chiều cao */
}
@media screen and (max-width: 767px) {
    .item-first {
        flex-direction: column;
        gap: 0;
    }
}

.item-first .col-md-4 {
    flex: 0 0 30%; /* Hình chiếm 30% chiều rộng */
}
.item-first .col-md-8 {
    flex: 1; /* Phần chữ chiếm không gian còn lại */
    display: flex;
    flex-direction: column; /* Nội dung xếp theo cột */
    justify-content: flex-start
}
.item-first h2 {
    margin: 0 0 10px; /* Khoảng cách giữa tiêu đề và sapo */
    font-size: 16px;
    font-weight: bold;
    line-height: 20px;
    margin-bottom: 15px;
}
.blog-news-content > ul {
    list-style-type: none; /* Loại bỏ ký hiệu mặc định của danh sách */
    margin: 15px 0;
    padding-left: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
}

/* Thêm dấu chấm trước mỗi mục <li> */
.blog-news-content ul li {
    position: relative;
    padding-left: 20px; /* Khoảng cách nội dung lùi vào so với dấu chấm */
    margin-bottom: 10px;
    text-align: justify; /* Căn đều nội dung */
}

.blog-news-content > ul li::before {
    content: "•"; /* Dấu chấm (hoặc bạn có thể thay bằng ký tự khác) */
    position: absolute;
    left: 0; /* Vị trí dấu chấm */
    top: 0;
    color: #e26f2c; /* Màu sắc của dấu chấm */
    font-size: 25px; /* Kích thước dấu chấm */
    line-height: 0.6;
}

.lastNews {
    font-weight:bold;
    font-size: 16px;
    text-align: center;
    color: white;
    background-color: #1f388b;
    padding: 10px 5px;
}

.new-content {
    text-align: justify;
}

.new-content img {
    max-width: 95%;
    display: block;
    margin: auto;
}

.group-path,
.group-path * {
    color: #999;
    text-decoration: none;
}

.other-title {
    padding: 20px 0 10px 0;
    border-bottom: 1px solid;
    color: red;
}

.others {
    padding: 10px 20px;
}

.others li {
    list-style-type: square;
    padding: 3px 0;
}

.others li a {
    color: black;
    text-decoration: none;
}
.read-mode body>*:not(.page-contentt) {
    filter: blur(8px);
}
.read-mode #readModeOverlay {
    display: block;
}

.read-mode .page-contentt {
    position: relative !important;
    transition: background 0.3s ease;
    background-color: #fff !important;
    z-index: 10000 !important;
}

#readModeOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
}

#zoomPercentage {
    font-weight: bold;
    font-size: 16px;
    min-width: 50px;
    text-align: center;
    display: inline-block;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #333;
    font-size: 20px;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.share-icon:hover {
    background-color: #ddd;
}

.share-icon i {
    pointer-events: none;
    /* Đảm bảo bấm vào icon không bị lỗi */
}

#shareFacebook {
    background-color: #1877F2;
    color: #fff;
}

#shareFacebook:hover {
    background-color: #135abe;
}

.tip {
    position: absolute;
    top: -30px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    height: 24px;
    line-height: 24px;
    background: #17191a;
    color: #fff !important;
    font-size: 12px !important;
    text-decoration: none !important;
    white-space: nowrap;
    padding: 0 10px;
    border-radius: 3px;
}
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}
.profile-sidebar {
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding-top: 20px;
    border-right: 1px solid #dee2e6;
    /* min-height: 50vh; */
}

.profile-sidebar .nav-link {
    color: #333;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.profile-sidebar .nav-link i {
    margin-right: 10px;
}

.profile-sidebar .nav-link.active {
    background-color: #e9ecef;
    font-weight: bold;
}

.profile-sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.profile-main-content {
    padding: 20px;
    height: 100%;
}

.profile-main-content .news-item {
    display: flex;
    align-items: top;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.profile-main-content .news-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
}

.profile-main-content .news-item .news-info {
    flex-grow: 1;
}

.profile-main-content .news-item .news-info h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
}

.profile-main-content .news-item .news-info h5 a {
    color: #333;
    text-decoration: none;
}

.profile-main-content .news-item .news-info h5 a:hover {
    color: #007bff;
}

.profile-main-content .news-item .news-info .meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.profile-main-content .news-item .actions {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.profile-main-content .news-item .actions a {
    color: #6c757d;
    text-decoration: none;
}

.profile-main-content .news-item .actions a:hover {
    color: #007bff;
}

/* profile-sidebar trên mobile: hiển thị dạng hàng ngang, cuộn trái-phải */
@media (max-width: 767.98px) {
    .profile-sidebar {
        width: 100%;
        overflow-x: auto;
        /* Cho phép cuộn ngang */
        white-space: nowrap;
        /* Giữ các mục trên cùng một hàng */
        -webkit-overflow-scrolling: touch;
        /* Hỗ trợ cuộn mượt trên iOS */
    }

    .profile-sidebar .nav {
        display: inline-flex;
        flex-wrap: unset !important;
        flex-direction: row !important;
        justify-content: flex-start;
    }

    .profile-main-content {
        margin-left: 0;
        padding: 20px;
    }
}

.position-relative {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}
.position-relative img {
    width: 100%;
    height: 274px;
    display: block;
    transition: transform 0.5s ease;
  }
.position-relative:hover img {
    transform: scale(1.05); /* Zoom-out nhẹ khi hover */
}
.overlay-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.video-link-container {
    width: 100%;
    height: 274px;
    border-radius: 0.5rem;
}
.overlay-title {
    color: rgb(0, 0, 0);
    font-size: 1.15rem;
}
.p-3 {padding: 1rem 0 !important}
