/* =============================================================================
   PAGE NEWS STYLES
   ============================================================================= */

/* Visually Hidden (Accessibility) */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Typography */
.wp-block-columns h1 {
    font-size: 64px !important;
    font-weight: 900 !important;
    line-height: 64px !important;
    padding-bottom: 50px;
}

.content h2 {
    padding-top: 24px !important;
}

/* Search Form Styling */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .bi-search {
    font-size: 18px;
    color: #6c757d;
    pointer-events: none;
}

.search-input-wrapper .form-control {
    padding-left: 3rem;
}

/* Loading States */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Page Layout */
.news-page-container {
    padding-top: 77px;
    padding-bottom: 100px;
}

/* News Item Styling */
.news-item {
    padding-top: 30px;
    align-items: flex-start;
}

.news-item hr {
    margin: 2rem 0;
}

/* Image Column */
.img-col {
    position: relative;
}

.blurred-overlay {
    background-size: cover;
    background-position: center;
    filter: blur(10px);
}

.main-portrait-image {
    max-width: 100%;
    height: auto;
}

/* Text Column */
.news-text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

/* Top pagination specific styling */
#news-top-pagination {
    /*background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;*/
}

#news-top-pagination .news-pagination {
    margin: 0;
}

.news-pagination .pagination {
    margin-bottom: 0;
    display: flex;
    justify-content: flex-end !important;
}

.news-pagination .page-link {
    color: #004d4b;
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 14px;;
}

.news-pagination .page-link:hover {
    background-color: #004d4b;
    color: #fff;
    border-color: #004d4b;
    text-decoration: none;
}

.news-pagination .page-item.active .page-link {
    background-color: #004d4b;
    border-color: #004d4b;
    color: #fff;
}

.news-pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.news-pagination .pagination-link {
    cursor: pointer;
}

.news-pagination .bi {
    font-size: 14px;
    margin: 0 2px;
}

.news-title {
    margin-bottom: 0.5rem;
}

.news-title a {
    text-decoration: none;
    color: inherit;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-date {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    margin-bottom: 0;
}

/* Pagination */
.pagination-wrap {
    margin-top: 2rem;
    text-align: center;
}

.pagination-links {
    display: inline-block;
}

.pagination-links .page-numbers {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

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

.pagination-links .page-numbers.current {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

/* Search Results Info */
.search-results-info {
    margin: 1rem 0;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
}

/* Form Labels and Help Text */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* News Item Structure */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    margin-bottom: 2rem;
}

.news-item-header {
    margin-bottom: 1rem;
}

.news-item-footer {
    margin-top: 1rem;
}

.news-item-divider {
    margin: 2rem 0;
    border-color: #e9ecef;
}

/* Read More Button */
.btn-outline-primary {
    border-color: #007cba;
    color: #007cba;
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover {
    background-color: #007cba;
    border-color: #007cba;
    color: white;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

/* Focus Management */
.news-title a:focus,
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Skip Links for Keyboard Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: transparent;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    
    .img-col {
        margin-bottom: 1rem;
    }
    
    .wp-block-columns h1 {
        font-size: 48px !important;
        line-height: 48px !important;
    }
    
    .news-item-header {
        text-align: center;
    }
    
    .news-item-footer {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .wp-block-columns h1 {
        font-size: 36px !important;
        line-height: 36px !important;
    }
    
    .news-page-container {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .form-label {
        text-align: center;
    }
}
