/**
 * Professional News Listing Styles
 * Best-in-Class Government Website Design
 */

/* ============================================
   NEWS LISTING CONTAINER
   ============================================ */
.news-listing-professional {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
   NEWS CARD - PROFESSIONAL
   ============================================ */
.news-card-professional {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-left: 5px solid #003d82;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.news-card-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #003d82 0%, #0052a3 100%);
    transition: all 0.3s ease;
}

.news-card-professional:hover {
    border-left-color: #ff6600;
    box-shadow: 0 4px 16px rgba(0, 61, 130, 0.15);
    transform: translateY(-2px);
}

.news-card-professional:hover::before {
    background: linear-gradient(180deg, #ff6600 0%, #ff5500 100%);
    width: 6px;
}

/* ============================================
   NEWS CARD HEADER
   ============================================ */
.news-card-header {
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
    padding: 0.875rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.news-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #003d82 0%, #0052a3 100%);
    color: #ffffff;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Ek Mukta', sans-serif !important;
    box-shadow: 0 2px 4px rgba(0, 61, 130, 0.2);
}

.news-card-badge i {
    font-size: 0.9rem;
}

.news-card-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666666;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Ek Mukta', sans-serif !important;
}

.news-card-date i {
    color: #003d82;
    font-size: 1rem;
}

/* ============================================
   NEWS CARD BODY
   ============================================ */
.news-card-body {
    padding: 1.25rem 1.5rem;
}

.news-card-title {
    margin: 0 0 0.875rem 0;
    font-family: 'Ek Mukta', sans-serif !important;
}

.news-card-title a {
    color: #003d82 !important;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.news-card-title a:hover {
    color: #ff6600 !important;
    text-decoration: none;
}

.news-card-summary {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-family: 'Ek Mukta', sans-serif !important;
}

/* ============================================
   NEWS CARD FOOTER
   ============================================ */
.news-card-footer {
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.btn-news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #003d82 !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(0, 61, 130, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Ek Mukta', sans-serif !important;
}

.btn-news-read-more:hover {
    background: linear-gradient(135deg, #003d82 0%, #0052a3 100%);
    color: #ffffff !important;
    text-decoration: none;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.25);
}

.btn-news-read-more i {
    transition: transform 0.3s ease;
}

.btn-news-read-more:hover i {
    transform: translateX(4px);
}

/* ============================================
   PAGINATION - PROFESSIONAL
   ============================================ */
.pagination-wrapper {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.pagination-professional {
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
}

.pagination-professional .page-item {
    margin: 0;
}

.pagination-professional .page-link {
    color: #003d82 !important;
    border: 1px solid #e5e7eb;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: 'Ek Mukta', sans-serif !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pagination-professional .page-link:hover {
    background: #003d82 !important;
    color: #ffffff !important;
    border-color: #003d82 !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 61, 130, 0.2);
}

.pagination-professional .page-item.active .page-link {
    background: linear-gradient(135deg, #003d82 0%, #0052a3 100%) !important;
    color: #ffffff !important;
    border-color: #003d82 !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 61, 130, 0.3);
}

.pagination-professional .page-item.disabled .page-link {
    color: #999999 !important;
    background: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-professional .page-link i {
    font-size: 0.85rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
    border-left: 4px solid #2196f3;
    color: #1565c0;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    font-family: 'Ek Mukta', sans-serif !important;
}

.alert-info i {
    color: #1976d2;
    margin-right: 0.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .news-card-professional {
        border-radius: 8px;
    }
    
    .news-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .news-card-body {
        padding: 1rem;
    }
    
    .news-card-title a {
        font-size: 1.1rem;
    }
    
    .news-card-summary {
        font-size: 0.9rem;
    }
    
    .pagination-professional {
        flex-wrap: wrap;
    }
    
    .pagination-professional .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

