body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

header {
    background-color: #e95d8b;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 36px;
    margin: 0;
}

header p {
    font-size: 18px;
    margin: 5px 0 0;
}

.news-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.news-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Sử dụng flexbox */
    flex-direction: column; /* Sắp xếp theo cột */
    justify-content: space-between; /* Đẩy nội dung xuống cuối */
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item h2 {
    font-size: 20px;
    color: #de487a;
    margin: 15px;
}

.news-item p {
    font-size: 16px;
    color: #555;
    margin: 0 15px 15px;
    line-height: 1.6;
    min-height: 120px; /* Đặt chiều cao tối thiểu để đồng bộ */
    flex-grow: 1; /* Cho phép đoạn văn mở rộng để đẩy nút xuống */
}

.news-item .read-more {
    display: block;
    text-align: center;
    background-color: #e91e63;
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    margin: 0 15px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.news-item .read-more:hover {
    background-color: #d81b60;
}

footer {
    background-color: #f8f8f8;
    text-align: center;
    padding: 15px 0;
    color: #999;
    font-size: 14px;
    margin-top: 30px;
}