/* News Card Styles */
.news-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.news-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.news-card-date {
    background: #147929;
    color: #fff;
    padding: 16px 20px;
    text-align: center;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.news-date-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.news-date-month {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date-year {
    font-size: 12px;
    opacity: 0.8;
}

.news-card-body {
    padding: 20px 24px;
    flex: 1;
    min-width: 0;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.news-card-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.news-card-desc strong {
    display: none;
}

/* Search input styling */
.news-content-row .input-group {
    max-width: 400px;
    margin-top: 20px;
}

/* Responsive: stack date above body on mobile */
@media (max-width: 576px) {
    .news-card {
        flex-direction: column;
    }

    .news-card-date {
        flex-direction: row;
        min-width: auto;
        padding: 10px 16px;
        gap: 8px;
        justify-content: flex-start;
    }

    .news-date-day {
        font-size: 18px;
    }

    .news-card-body {
        padding: 16px;
    }
}

/* Pagination Styles */
.pagination {
    margin: 30px 0;
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #0066cc;
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.page-link:hover {
    z-index: 2;
    color: #004499;
    text-decoration: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.page-link:focus {
    z-index: 3;
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #0066cc;
    border-color: #0066cc;
    font-weight: 600;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Pagination wrapper */
.pagination-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.pagination-wrapper .pagination {
    justify-content: flex-end;
    margin: 0;
}

@media (max-width: 768px) {
    .pagination-wrapper .pagination {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
    }

    .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 13px;
    }

    .pagination-wrapper .pagination {
        justify-content: center;
    }

    .pagination-wrapper.text-right {
        text-align: center !important;
    }
}
