/**
 * Events & News Styles
 */

/* Section Styling */
.events-news-section {
    background-color: #f8f9fa;
}

/* Card Styling */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Event Card Specific */
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f8f9fa;
    border-radius: 50%;
    margin-right: 15px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* News Card Specific */
.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

/* Read More Button */
.btn-read-more {
    font-weight: 500;
    padding: 0.375rem 1rem;
    border-radius: 50px;
}

/* Section Headers */
.section-header {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-header:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
    margin: 15px auto 0;
}

/* Pagination Styling */
.pagination-container {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Reset and improve the default WordPress pagination */
.pagination-container ul.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.pagination-container li {
    margin: 0;
    display: inline-flex;
}

.pagination-container .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: #495057;
    background-color: #fff;
    border: 1px solid #eee;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-size: 0.9rem;
}

.pagination-container .page-numbers.current {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    font-weight: 500;
}

.pagination-container .page-numbers:hover:not(.current) {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.pagination-container .prev,
.pagination-container .next {
    padding: 0.25rem 0.75rem;
    font-weight: 500;
    min-width: auto;
    width: auto;
}

/* Screen reader text - hide visually but keep for screen readers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .card-img-top {
        height: 180px;
    }
    
    .event-date {
        width: 50px;
        height: 50px;
    }
    
    .event-date .day {
        font-size: 1.2rem;
    }
    
    .pagination-container .page-numbers {
        min-width: 1.8rem;
        height: 1.8rem;
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}