body {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    background-color: #5987a8;
    color: #000000;
}

.Chinh {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;


}

html {
    scroll-behavior: smooth;
}

.TinNoiBat {
    background-color: white;
    padding: 20px 20px 30px;
    border: 1px solid #5987a8;
    box-shadow: 5px 5px 12px 0px rgb(0, 0, 0);
    -moz-box-shadow: 5px 5px 12px 0px black;
    -webkit-box-shadow: 5px 5px 12px 0px black;
    margin-bottom: 15px;
}

.TinNoiBat h2 {
    font-weight: bold;
    font-size: 28px;
    border-bottom: 2px solid black;
    margin-bottom: 20px;
}

.TinNoiBat img {
    max-width: 100%;
    height: 300px;
    margin-bottom: 10px;
    border-radius: 5px;
}


.TinNoiBat p {
    font-size: 18px;
}

.TinMoi {
    background-color: white;
    padding: 20px;
    border: 1px solid #5987a8;
    box-shadow: 5px 5px 12px 0px black;
    -moz-box-shadow: 5px 5px 12px 0px black;
    -webkit-box-shadow: 5px 5px 12x 0px black;

}



.TinMoi h2 {
    font-weight: bold;
    font-size: 28px;
    border-bottom: 2px solid black;
    margin-bottom: 20px;
}

.Phu {
    background-color: white;
    padding: 20px;
    border: 1px solid #5987a8;
    box-shadow: 5px 5px 12px 0px black;
    -moz-box-shadow: 5px 5px 12px 0px black;
    -webkit-box-shadow: 5px 5px 12px 0px black;
    margin-top: 20px;
}

.Phu h3 {
    font-weight: bold;
    font-size: 20px;
    border-bottom: 2px solid black;

    text-align: center;
}

.Phu a {
    text-decoration: none;
    color: #000000;
}

.BaiVietNho {
    flex-grow: 1;
    padding: 20px;
    background: rgba(12, 8, 8, 0.1);
    border-radius: 10px;
    border: #000000 1px solid;
    color: #000000;
    font-size: 13px;
    margin: 10px;
    box-shadow: 0 5px 15px black;
    margin-bottom: 0;
    flex-basis: calc(33.33% - 20px);

}

.BaiVietNho a {
    text-decoration: none;
    color: #000000;
}

.BaiVietNho img {
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    border-radius: 5px;
    height: 150px;
}

.BaiVietNho h4 {
    font-size: 15px;
    padding-left: 10px;
}

.BaiVietNho:hover {
    scale: 1.05;
}

.Chung {

    padding: 20px;
    justify-content: center;
    border-radius: 5px;
    box-sizing: border-box;
    width: 100%;
    display: flex;

}

.Chung a {
    font-weight: bold;
    justify-items: center;
}


footer {
    background-color: #0A314f;
    color: white;
    margin: 30px 15px auto auto;
    width: 100%;
    padding: 30px;

}

footer a {
    color: #000000;
    text-decoration: none;
}

.TheLoai {
    font-weight: bold;
    font-size: 15px;
    margin: 10px;
    padding: 15px;
}

.Chu {
    color: crimson;
}

.Chung1 {
    background-color: #fff3cd;
    padding: 15px;
    border-radius: 5px;
}

.Chung1 h3 {
    border-bottom: 1px solid black;
}

.TomTat {
    background-color: #fff3cd;
    padding: 15px;
}

.TomTat p {
    font-size: 18px;
}

.TomTat ul {
    font-size: 18px;
}



@media (max-width: 640px) {
    .TinNoiBat img {
        width: auto;
        height: 350px;
        margin-left: 25%;

    }

    .container {
        padding: 10px;
    }

    .Chinh .row {
        flex-direction: column;
        /* Chuyển row thành cột dọc */
    }

    .col-md-9,
    .col-md-3 {
        width: 100%;
        /* Chiếm toàn bộ chiều rộng */
        margin-bottom: 20px;
    }

    .TinNoiBat h2,
    .TinMoi h2 {
        font-size: 1.2em;
    }

    .BaiVietHot h3 {
        font-size: 1.1em;
    }

    .TomTat p,
    .TomTat ul {
        font-size: 0.9em;
    }

    .Chung {
        display: flex;
        flex-direction: column;
    }

    .BaiVietNho {
        margin: 20px;
        margin-bottom: 15px;
    }

    .Phu h3 {
        font-size: 10px;
    }

    .Phu ul li {
        font-size: 0.9em;
    }

    footer .row {
        flex-direction: column;
        text-align: center;
    }

    footer .col-sm-1,
    footer .col-md-7,
    footer .col-md-4 {
        width: 100%;
        margin-bottom: 10px;
    }

    #current-datetime {
        width: 100%;
        font-size: 1.2em;
    }
}

