    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: 'Times New Roman', Times, serif;

        background-color: #ffffff;

    }

    .container {
        background-color: white;
        height: auto;

    }

    #Nhung {
        position: fixed;
        width: 100%;
        padding: 10px 80px 0 80px;
        background-color: #0A314f;
        z-index: 1000;

    }

    .Header {
        width: 100%;
    }

    .menu-toggle {
        display: none;
        background: transparent;
        border: none;
        color: white;
        font-size: 30px;
        cursor: pointer;
        padding: 0;
        margin-left: auto;
        /* Đẩy nút sang phải */
    }

   

    .Hang1 {
        font-size: 13px;
        background-color: #0A314f;
        color: white;
        padding-bottom: 5px;
    }


    .social li a {
        display: block;
        padding: 20px 10px 10px 10px;
        color: #ffffff;
        font-size: 20px;
    }

    .social li {
        list-style: none;
    }

    .Hang1 a {
        font-size: 13px;
        color: white;
        margin: 5px;
    }

    .dropdown-menu {
        background-color: #0A314f;
    }

    .Hang1 a:hover {
        color: #000000;
        background-color: white;
        border-radius: 5px;
    }

    .Hang2 {
        padding-top: 65px;

    }

    .slideshow-container {
        position: relative;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        overflow: hidden;
        width: 100%;
        z-index: 3;
    }

    .mySlides {

        height: 350px;
    }

    .mySlides img {
        width: 100%;
        /* Ảnh chiếm toàn bộ chiều rộng slide */
        height: 100%;
        /* Ảnh chiếm toàn bộ chiều cao slide (350px) */
        object-fit: cover;
        /* Đảm bảo ảnh lấp đầy không gian mà không bị méo */
    }

    .text {
        color: rgb(255, 255, 255);
        font-size: 15px;
        padding: 8px 12px;
        position: absolute;
        bottom: 0;
        width: 100%;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.6);
    }

    .prev,
    .next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding: 12px;
        color: rgb(255, 255, 255);
        font-weight: bold;
        font-size: 18px;
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 3px;
        text-decoration: none;
        z-index: 10;
    }

    .slideshow-container .next {
        right: 0;
    }

    .slideshow-container .prev {
        left: 0;
    }

    .input-group input {
        background-color: rgba(99, 150, 225, 0.3);
    }

    .NoiQuy1 {
        margin-top: 15px;
        font-size: 12px;
        border-radius: 5px;
        border: 1px solid black;
        padding: 8px;
        height: 60px;
        background: #799A5E;
        color: white;
    }

    .NoiQuy2 {
        margin-left: 45px;

    }

    .Hang3 .row {
        display: flex;
        align-items: stretch;
    }

    .Chung {
        margin-top: 10px;
        font-size: 17px;
        border-radius: 5px;
        border: 1px solid black;
        padding: 8px;
        background: rgba(12, 8, 8, 0.1);
        color: rgb(0, 0, 0);
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .Chung h3 {
        color: rgb(0, 0, 0);
        border-bottom: 2px solid white;
        padding-bottom: 5px;

    }

    .Chung button {
        display: flex;
        flex-direction: column;
        padding: 10px;
        border: none;
        border-radius: 5px;
        margin-top: auto;
        width: 150px;
    }

    .Chung button a {
        text-decoration: none;
        color: white;
    }

    .Hang4 {
        margin-top: 20px;
    }

    .Hang4 a {
        text-decoration: none;
        color: white;
        font-size: 16px;
    }

    .Chung1 {
        margin-top: 10px;
        font-size: 15px;
        border-radius: 5px;
        border: 1px solid black;
        padding: 8px;
        background: #799A5E;
        color: white;
        display: flex;
        flex-direction: column;
        height: 100%;
        margin-bottom: 15px;
    }

    .Chung1 h3 {
        color: white;
        border-bottom: 2px solid white;
        padding-bottom: 5px;
    }

    footer {
        background-color: #0A314f;
        color: white;
        margin: 30px 15px auto auto;
        width: 100%;
        padding: 30px;

    }

    .TinTuc {
        position: relative;
        width: 100%;
        margin: 20px auto;
        box-sizing: border-box;


    }

    .TinTuc h1 {
        padding: 15px 15px 0 10px;
        border-bottom: 2px solid #000000;
    }

    .tintuc-viewport {
        position: relative;
        overflow: hidden;
    }

    .Chung3 {
        display: flex;
        transition: transform 0.5s ease-in-out;

    }

    .Chung3 a {
        text-decoration: none;
        color: black;
        flex-direction: column;
        margin-top: auto;
        height: 100%;

    }

    .TinTuc-page {
        flex: 0 0 25%;
        /* Mỗi item chiếm 1/4 chiều rộng của track */
        max-width: 25%;
        padding: 10px;
        box-sizing: border-box;
    }

    .TinTuc-item {
        height: 100%;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
        padding: 15px;
        background: rgba(12, 8, 8, 0.1);
        border-radius: 10px;
        border: #000000 1px solid;
        color: #000000;
        font-size: 15px;
        display: flex;
        align-items: center;
        text-align: center;
        margin-top: 5px;
    }

    .TinTuc-item p {
        text-align: center;
        width: 100%;
        color: #000000;

    }

    .TinTuc-item img {

        object-fit: contain;
        max-height: 250px;
        margin-bottom: 10px;
        width: 100%;
        height: auto;
        border-radius: 4px;

    }

    .TinTuc-item h4 {
        font-weight: bold;
        margin: 5px 0;
        font-size: 16px;


    }

    .TinTuc-item:hover {
        scale: 1.05;
    }

    .arrow {
        border: solid white;
        border-width: 0 3px 3px 0;
        display: inline-block;
        padding: 5px;
    }

    .muiten {
        border: solid white;
        border-width: 0 3px 3px 0;
        display: inline-block;
        padding: 5px;
    }

    .right {
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
    }

    .left {
        transform: rotate(135deg);
        -webkit-transform: rotate(135deg);
    }

    .carousel-control.prev {
        left: 0;
        display: none;
    }

    .carousel-control.next {
        right: 0;
    }

    .nhan-control.prev {
        left: 0;
        display: none;
    }

    .nhan-control.next {
        right: 0;
    }

    .Sach h1 {

        padding: 15px 15px 0 10px;
        border-bottom: 2px solid #000000;
    }

    .Sach-page {
        flex: 0 0 25%;
        /* Mỗi item chiếm 1/4 chiều rộng của track */
        max-width: 25%;
        padding: 10px;
        box-sizing: border-box;
    }

    .Sach-item {
        height: 100%;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
        padding: 15px;
        background: rgba(12, 8, 8, 0.1);
        border-radius: 10px;
        border: #000000 1px solid;
        color: #000000;
        font-size: 15px;
        display: flex;
        align-items: center;
        text-align: center;

    }

    .Sach-item p {
        text-align: center;
        width: 100%;
        color: #000000;

    }

    .Sach-item img {

        object-fit: contain;
        max-height: 250px;
        margin-bottom: 10px;
        width: 100%;
        height: auto;
        border-radius: 4px;

    }

    .Sach-item h4 {
        font-weight: bold;
        margin: 5px 0;
        font-size: 16px;
    }

    .Sach-item:hover {
        scale: 1.05;
    }

    .carousel-header-title {
        text-align: center;
        margin-bottom: 5px;
        font-size: 30px;
        color: #ff0000;
        padding-left: 10px;
        background: rgba(12, 8, 8, 0.1);
        font-weight: bold;
    }

    .Sach {
        position: relative;
        width: 100%;
        margin: 20px auto;
        box-sizing: border-box;

    }

    .Sach-viewport {
        position: relative;
        overflow: hidden;
    }

    .Chung4 {
        display: flex;
        transition: transform 0.5s ease-in-out;


    }

    .Chung4 a {
        text-decoration: none;
        color: black;
        flex-direction: column;
        margin-top: auto;
        height: 100%;

    }

    .HuongDan h1 {
        padding: 15px 15px 0 10px;
        border-bottom: 2px solid #000000;
        margin-top: 10px;
    }

    .HuongDan p {
        font-size: 25px;
    }

    .HuongDan li {
        font-size: 18px;
    }

    label {
        width: 150px;
        margin-right: 5px;
        font-size: 18px;
        text-align: right;
        display: inline-block;
        margin-bottom: 10px;

    }

    .HuongDan input {
        width: 55%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        height: 25px;
        flex-grow: 1;
        margin-bottom: 10px;

    }

    .HuongDan .btn {
        background-color: #0A314f;
        color: white;
        padding: 8px 12px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        margin-left: 25%;
    }

    .btn:hover {
        background-color: #0e86cc;
    }


    .HuongDan h2 {
        border-bottom: 1px solid black;
        padding-bottom: 5px;
        font-weight: bold;

        font-size: 20px;
    }



    strong {
        color: #cc0000;
        font-size: 20px;
    }

    .note {
        background-color: #fff3cd;
        border-left: 5px solid #ffc107;
        padding: 15px;

        color: #000000;
        border-radius: 4px;
        font-size: 18px;
    }

    .BanDo {
        margin-top: 20px;
    }

    .BanDo h1 {
        padding: 15px 15px 0 10px;
        border-bottom: 2px solid #000000;
    }

    #Nhung {
        position: fixed;
        width: 100%;
        z-index: 1000;
    }

    .menu-toggle {
        display: none;
        background: transparent;
        border: none;
        color: white;
        font-size: 30px;
        cursor: pointer;
        padding: 0;
        margin-left: auto;
    }

   


    @media (max-width: 640px) {

        /* Ẩn col-md-9 mặc định */
        .Hang1 .col-md-9 {
            display: none;

        }

        /* Hiện khi nhấn 3 gạch */
        .Hang1 .col-md-9.active {

            display: flex !important;
            justify-content: center;
            align-items: center;
            flex-wrap: nowrap;
            /* Không xuống dòng */
            gap: 5px;
            background: #0A314f;
            padding: 10px 5px;
        }

        .Hang1 .col-md-9 .nav-item .dropdown {
            margin-left: 0;
        }

        /* Mỗi item menu cách nhau một chút */
        .Hang1 .col-md-9 .nav-link,
        .Hang1 .col-md-9 .dropdown-item {
            padding: 8px 10px !important;
            font-size: 14px;
            color: white !important;
            white-space: nowrap;
            /* Không bị xuống dòng */
        }

        .Hang1 .dropdown-menu {
            position: absolute;
            background: #0A314f;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .menu-toggle {
            display: inline-block;
            float: right;
            font-size: 30px;
            color: white;
        }

        #Nhung {
            padding: 5px 10px;
            height: auto;
        }


        .menu-toggle {
            display: block;
        }

        .Hang2 {
            padding-top: 90px;
        }





        .slideshow-container,
        .mySlides img {
            height: 180px;
        }

        .text {
            font-size: 13px;
        }


        .row>[class*="col-"] {
            width: 100%;
            margin-bottom: 20px;
        }


        .TinTuc-page,
        .Sach-page {
            flex: 0 0 50%;
            max-width: 50%;
            padding: 5px;
        }

        .TinTuc-item img,
        .Sach-item img {
            max-height: 150px;
        }


        .TinTuc-item,
        .Sach-item {
            font-size: 14px;
            padding: 10px;
        }

        .TinTuc-item h4,
        .Sach-item h4 {
            font-size: 14px;
        }

        footer{
            display: flex;
            text-align: center;
            gap: 15px;
        }

      
        
        
        .BanDo {
            width: 100%;
        }
    }
    @media (max-width: 768px) {

    /* HEADER */
    #Nhung {
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block !important;
    }

    .Hang1 .col-md-9 {
        display: none; /* Ẩn menu ngang */
    }

    .Hang1 .col-md-9.active {
        display: flex !important;
        justify-content: center;
        flex-wrap: nowrap;
        background: #0A314f;
        padding: 10px 5px;
        gap: 10px;
    }

    /* Slide */
    .slideshow-container,
    .mySlides img {
        height: 250px;
    }

    /* Tin Tức & Sách: 3 item / hàng */
    .TinTuc-page,
    .Sach-page {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }

    footer .footer-top {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 1200px) {

    /* Slide height giảm chút */
    .slideshow-container,
    .mySlides img {
        height: 300px;
    }

    /* Tin tức & Sách: 3 item 1 hàng */
    .TinTuc-page,
    .Sach-page {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }

    /* Footer chữ thu nhỏ nhẹ */
    footer .footer-info {
        font-size: 15px;
    }

    #current-datetime {
        max-width: 200px;
    }
}
@media (max-width: 1400px) {

    /* Slide vừa lại */
    .slideshow-container,
    .mySlides img {
        height: 330px;
    }

    /* Tin tức & Sách: 4 item/hàng (giữ nguyên) */

    .TinTuc-item h4,
    .Sach-item h4 {
        font-size: 15px;
    }

    .TinTuc-item p,
    .Sach-item p {
        font-size: 14px;
    }

    footer .footer-info {
        font-size: 16px;
    }
}