/* Professional News Page Styles */

/* News Hero Section */
.news-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/community_app/images/oluyole-bg.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
}

.news-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="300" r="200" fill="url(%23a)"/><circle cx="400" cy="700" r="250" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.2;
}

.news-hero .container {
    position: relative;
    z-index: 2;
}

.news-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.news-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Professional News Cards */
.news-card-professional {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
}

.news-card-professional:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-card-professional .card-header {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card-professional .card-body {
    padding: 2rem;
}

.news-card-professional .card-footer {
    background: #f8f9fa;
    border: none;
    padding: 1.5rem;
}

/* News Image */
.news-image-professional {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: transform 0.3s ease;
}

.news-card-professional:hover .news-image-professional {
    transform: scale(1.05);
}

/* News Status Badges */
.news-status-published {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-status-draft {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-featured-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* News Statistics */
.news-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    border-radius: 20px;
    margin-bottom: 3rem;
}

.stat-item-professional {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-item-professional .stat-icon {
    font-size: 3rem;
    color: #1e3c72;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.stat-item-professional:hover .stat-icon {
    transform: scale(1.1);
    color: #ff6b6b;
}

.stat-item-professional .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item-professional .stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* News Content */
.news-content-professional {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.news-content-professional .news-meta {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #1e3c72;
}

.news-content-professional .news-meta .meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.news-content-professional .news-meta .meta-item:last-child {
    margin-bottom: 0;
}

.news-content-professional .news-meta .meta-icon {
    font-size: 1.1rem;
    color: #1e3c72;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.news-content-professional .news-meta .meta-label {
    font-weight: 600;
    color: #1e3c72;
    margin-right: 0.5rem;
}

.news-content-professional .news-meta .meta-value {
    color: #666;
}

.news-content-professional .news-body {
    line-height: 1.8;
    color: #333;
}

.news-content-professional .news-body h1,
.news-content-professional .news-body h2,
.news-content-professional .news-body h3,
.news-content-professional .news-body h4,
.news-content-professional .news-body h5,
.news-content-professional .news-body h6 {
    color: #1e3c72;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-content-professional .news-body p {
    margin-bottom: 1.5rem;
}

.news-content-professional .news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

/* Featured News */
.featured-news-professional {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.featured-news-professional::before {
    content: 'FEATURED';
    position: absolute;
    top: 1rem;
    right: -1rem;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.5rem 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.featured-news-professional .featured-content {
    position: relative;
    z-index: 2;
}

/* News Categories */
.news-categories {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-btn {
    background: transparent;
    border: 2px solid #1e3c72;
    color: #1e3c72;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* News Search */
.news-search-professional {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.25);
    outline: none;
}

.search-btn {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* No News Message */
.no-news-professional {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.2);
}

.no-news-professional .no-news-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.no-news-professional h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.no-news-professional p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* News Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-professional .page-link {
    background: white;
    border: 2px solid #1e3c72;
    color: #1e3c72;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-professional .page-link:hover,
.pagination-professional .page-link.active {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .news-card-professional .card-body {
        padding: 1.5rem;
    }
    
    .news-content-professional {
        padding: 1.5rem;
    }
    
    .stat-item-professional .stat-number {
        font-size: 2rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .category-filter {
        justify-content: center;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card-professional {
    animation: slideInUp 0.6s ease-out;
}

.news-card-professional:nth-child(2) { animation-delay: 0.1s; }
.news-card-professional:nth-child(3) { animation-delay: 0.2s; }
.news-card-professional:nth-child(4) { animation-delay: 0.3s; }
.news-card-professional:nth-child(5) { animation-delay: 0.4s; }
.news-card-professional:nth-child(6) { animation-delay: 0.5s; }
