#social h3 {
    padding-top: 30px;
    padding-bottom: 20px;
}
#social .container {
    padding-top: 50px;
    background-color: #ccc;
}

/* All News Vertical List */
.news-list-vertical {
    margin-top: 40px;
}

.news-entry {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.news-entry .news-img {
    flex: 0 0 300px;
}

.news-entry .news-img img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.news-entry h2 {
    margin: 0 0 10px 0;
}

/* --- FIXING THE MISSING BRACKET HERE --- */
@media (max-width: 768px) {
    .news-entry {
        flex-direction: column;
    }
} /* <--- Added this bracket to close the media query */

.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}

ul.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    gap: 10px;
}

ul.pagination li a, 
ul.pagination li span {
    padding: 8px 16px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

ul.pagination li.active span {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

ul.pagination li a:hover {
    background-color: #f8f9fa;
}

/* --- Frontpage News Block --- */
.news-list {
    display: flex !important; 
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

.news-item {
    flex: 1;
    max-width: 31%; 
    display: flex;
    flex-direction: column;
    text-align: left;
}

.news-thumb img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Mobile fix for the frontpage block */
@media (max-width: 991px) {
    .news-list {
        flex-wrap: wrap !important;
        flex-direction: column !important;
    }
    .news-item {
        max-width: 100% !important;
        margin-bottom: 30px;
    }
}
