.news-block {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;

    height: 650px;
    max-width: 1000px;
}

.item-1 {
    grid-area: 1 / 1 / 3 / 3;
}

.item-2 {
    grid-area: 1 / 3 / 2 / 5;
}

.item-3 {
    grid-area: 2 / 3 / 3 / 5;
}

.item-text-block {
    position: absolute;
    bottom: 0;
    color: white;
    font-size: 1.5em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    white-space: pre-wrap; /* Allow line breaks */
    background: rgba(0, 0, 0, 0.5); /* Optional: Add background to enhance text readability */
    padding: 5px; /* Optional: Add padding around text */
    border-radius: 5px; /* Optional: Add border radius */
    width: 100%;
}


.category {
    color: #ffffff;
    text-align: left;
    width: fit-content;
    padding: 5px;
    margin-bottom: 5px;
}

.news-block2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    width: 90%;
    max-width: 1000px;
}

.post-creation-date {
    font-size: 0.5em;
    text-align: left;
}

.header-text {
    color: #b91c1c;
}

#header h1 {
    color: #b91c1c;
}

#post .post-link {
    color: white;
    text-decoration: none;
}

.grid-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
}

.grid-item img {
    width: 186px;
    height: 186px;
    margin-right: 20px;
}

.text {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 186px;
    text-align: left;
}

.text p {
    margin: 0;
    text-align: center;
    color: #333;
}

#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1080px;
}

.category-list {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin: 0 10px;
}

.pagination {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination .page-numbers {
    display: block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.pagination .page-numbers.current {
    background-color: #333;
    color: #fff;
}

.pagination .page-numbers:hover {
    background-color: #eee;
}