/*-----tin tuc------*/
.news-posts1 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
}

.search-form-1 {
    width: 100%;
    max-width: 600px;
}

.search-form {
    display: flex;
    width: 100% !important;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-form button {
    font-size: 16px;
    border: none;
    background-color: #004c84;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #003360;
}


.news-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.news-post {
    border-radius: 5px;
    padding: 15px;
    width: calc(25% - 20px); /* Mỗi bài viết chiếm 1/4 hàng */
    box-sizing: border-box;
}

.news-thumbnail img {
    width: 100%;
    height: 150px;
    border-radius: 5px;
	object-fit: cover;
}

.news-title {
    font-size: 15px !important;
    margin: 15px 0 10px;
}
.news-title a, .news-title a:hover{
	color: inherit;
}

.read-more-button {
    display: inline-block;
    padding: 2px 15px;
    color: #004c84;
	border:2px solid #004c84;
    border-radius: 3px;
    text-decoration: none;
    margin-top: 10px;
	font-size: 15px !important;
}

.read-more-button:hover {
    color: #ffff;
	background-color:#004c84;
}
.read-more-button a:hover {
    background-color: #004c84;
}
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    color: #004c84;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pagination a:hover {
    background-color: #004c84;
    color: #fff;
}
.pagination .current {
    background-color: #004c84;
    color: #fff;
}
/* Điều chỉnh cho thiết bị di động */
@media (max-width: 768px) {
    /* Giảm khoảng cách và canh giữa cho tiêu đề và form tìm kiếm */
    .news-posts1 {
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px;
    }

    .news-posts1 h2 {
        text-align: center;
        margin-bottom: 10px;
    }

    .search-form-1 {
        max-width: 100%;
    }

    /* Điều chỉnh layout của grid cho bài viết */
    .news-grid {
        flex-direction: column;
        gap: 15px;
    }

    .news-post {
        width: 100%; /* Mỗi bài viết chiếm toàn bộ chiều ngang */
			padding:0;
    }

    .news-thumbnail img {
        height: 200px; /* Tăng chiều cao ảnh để phù hợp với màn hình nhỏ */
    }

    /* Điều chỉnh kích thước và canh giữa cho button */
    .read-more-button {
        font-size: 14px;
        padding: 4px 10px;
    }

    /* Điều chỉnh phân trang */
    .pagination {
        text-align: center;
        padding-top: 15px;
    }

    .pagination a {
        padding: 6px 10px;
    }
}


/*-----END tin tuc------*/
