.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 80%;
}

.news-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
}

.news-day {
    display: block;
    font-size: 20px;
    font-weight: bold;
}

.news-month {
    display: block;
    font-size: 12px;
}

.news-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 10px;
    display: none;
}

.news-item img[onerror] + .placeholder {
    display: block;
}

.news-content {
    margin-top: 10px;
}

.news-title {
    font-size: 18px;
    margin: 10px 0;
    text-align: left;
    font-family: 'Geologica';
}

.read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000;
    border: 1px solid black;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.read-more-button:hover {
    background-color: #ffffff;
    color: #000000;
}

.pagination {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 20px;
}


.pagination-button {
    display: flex;
    align-items: center;
    height: 50px;
    font-size: 17px;
    border-radius: 10px;
    width: 250px;
    justify-content: center;
    margin-bottom: 20px;
}

.button-container {
    text-align: center;
    margin-bottom: 20px;
}

.button-container button {
    background-color: #f0f0f0;
    border: none;
    color: #000;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 8px;
}


.load-more-button {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
}


.button-container button:hover,
.button-container button.current {
    background-color: #000;
    color: #fff;
}

@media(max-width: 768px) {
    .news-grid {
        width: 90%;
    }
}