    .news-container {
        font-family: Montserrat, sans-serif;
        background-color: #f7f8fa;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 1920px;    
    }

    .news {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        width: 90%;
    }

    .card-details {
        background-color: #ffffff;
        border-radius: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.2s;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .card-details:hover {
        transform: translateY(-5px);
    }

    .card-details .img-news {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 270px;
        /* Set the maximum height */
    }

    .card-details .img-news a {
        position: absolute;
        left: 40px;
        bottom: 15px;
        background-color: #ffffff;
        color: #1f64a5;
        font-size: 18px;
        line-height: 14px;
        padding: 10px 15px;
    }

    .card-details .img-news img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 250px;
        /* Set the maximum height */
        object-fit: cover;
        border-radius: 20px;
    }

    .card-content {
        padding: 15px;
        height: 130px;
    }

    .card-content h3 {
        margin: 0;
        font-size: 1.35em;
        color: #1f64a5;
        text-align: left;
    }

    .card-content p {
        margin: 10px 0;
        color: #777777;
        font-size: 18px;
    }

    .btn-details-card {
        display: inline-block;
        margin-top: 10px;
        padding: 10px 15px;
        background-color: #1f64a5;
        color: #ffffff;
        text-decoration: none;
        border-radius: 5px;
        transition: background-color 0.2s;
    }

    .btn-details-card:hover {
        background-color: #0056b3;
    }

    .news-container .load-more-btn {
        align-self: center;
        /* căn giữa theo chiều dọc */
        margin-top: 15px;
        margin-bottom: 10px;
        /* khoảng cách với các news phía trên */
        display: none;
        color: #1f64a5;
        border: 1px solid #1f64a5;
        padding: 5px 10px;
        background-color: white;
        border-radius: 10px;
    }

    @media (max-width: 900px) {
        .news {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 600px) {
        .news-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            /* căn giữa các news */
        }


        .news {
            grid-template-columns: 1fr;
        }

        .news-container .load-more-btn {
            display: block;
        }
    }