/* News Listing Page */
.news-listing-section {
    padding: 45px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* News Card Image */
.news-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(81, 177, 70, 0.3);
}

.featured-badge i {
    font-size: 0.7rem;
}

/* News Card Content */
.news-card-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.news-date,
.news-category {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666666;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-date i,
.news-category i {
    color: #51b146;
    font-size: 0.7rem;
}

.news-card-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-card-title a {
    color: #004b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #51b146;
}

.news-card-excerpt {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* News Card Footer */
.news-card-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.read-more-btn:hover::before {
    left: 100%;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.4);
}

.read-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    color: #004b6b;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    background: #ffffff;
    color: #004b6b;
    border-color: #e0e0e0;
    transform: none;
    box-shadow: none;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #004b6b;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(81, 177, 70, 0.3);
}

.pagination-number.active {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
    box-shadow: 0 3px 10px rgba(81, 177, 70, 0.3);
}

.pagination-dots {
    color: #999999;
    font-weight: 600;
    padding: 0 5px;
}

/* Dark Theme */
.dark-theme .news-listing-section {
    background: #1a1a1a;
}

.dark-theme .news-card {
    background: #2d2d2d;
}

.dark-theme .news-date,
.dark-theme .news-category {
    color: #cccccc;
}

.dark-theme .news-card-title a {
    color: #eeeff1;
}

.dark-theme .news-card-title a:hover {
    color: #51b146;
}

.dark-theme .news-card-excerpt {
    color: #cccccc;
}

.dark-theme .pagination-btn {
    background: #2d2d2d;
    color: #eeeff1;
    border-color: #444444;
}

.dark-theme .pagination-btn:hover {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
}

.dark-theme .pagination-number {
    background: #2d2d2d;
    color: #eeeff1;
    border-color: #444444;
}

.dark-theme .pagination-number:hover {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
}

.dark-theme .pagination-number.active {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
}

.dark-theme .pagination-dots {
    color: #999999;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .news-listing-section {
        padding: 60px 0;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .news-card-image {
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .news-listing-section {
        padding: 40px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pagination-numbers {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .pagination-btn {
        order: 1;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .news-card-image {
        height: 180px;
    }
    
    .news-card-title {
        font-size: 1.1rem;
    }
    
    .news-card-excerpt {
        font-size: 0.9rem;
    }
    
    .read-more-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

