/* News List Page Styles */

/* Page Header */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-overlay {
    position: relative;
    z-index: 1;
}

.header-content h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header-content .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-flex;
}

.header-content .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-content .breadcrumb-item a:hover {
    color: white;
}

.header-content .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.header-content .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* News Filter Section */
.news-filter-section {
    border-bottom: 1px solid #e0e0e0;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 1;
}

.search-box .form-control {
    padding-left: 3rem;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.filter-btn.active {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: #dc3545;
    color: white;
}

/* News Grid Section */
.news-grid-section {
    background: white;
}

/* Enhanced News Card */
.news-card-enhanced {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.2);
}

.news-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card-enhanced:hover .news-card-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(200, 35, 51, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-card-enhanced:hover .image-overlay {
    opacity: 1;
}

.read-more-overlay {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 1.5rem;
    text-decoration: none;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.news-card-enhanced:hover .read-more-overlay {
    transform: scale(1);
}

.news-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-date i {
    color: #dc3545;
}

.news-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #dc3545;
}

.news-card-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    color: #dc3545;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-read-more:hover {
    color: #c82333;
    gap: 0.5rem;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* No News State */
.no-news {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 3rem;
}

.no-news i {
    opacity: 0.3;
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.page-item .page-link {
    border: 2px solid #e0e0e0;
    color: #666;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-item .page-link:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: #dc3545;
    color: white;
}

.page-item.disabled .page-link {
    background: #f8f9fa;
    border-color: #e0e0e0;
    color: #999;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #dc3545, #c82333);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border: none;
    background: white;
    color: #dc3545;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: #f8f9fa;
    transform: translateX(-3px);
}

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

.news-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content .lead {
        font-size: 1rem;
    }

    .filter-buttons {
        justify-content: center;
    }

    .search-box {
        margin-bottom: 1rem;
    }

    .news-card-image {
        height: 200px;
    }

    .news-card-title {
        font-size: 1.1rem;
    }

    .news-card-body {
        padding: 1.25rem;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: 15px;
    }

    .newsletter-form .form-control {
        border-radius: 15px 15px 0 0;
    }

    .newsletter-form .btn {
        border-radius: 0 0 15px 15px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .page-item .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}