/* Custom Styles for News & Events Page */

/* Hero Section for News */
.hero-section-news {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../img/news-hero-bg-new.jpg") no-repeat center center/cover;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-section-news h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-section-news p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* News Grid */
.news-events-section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-header p {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.news-excerpt {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-item .btn {
    align-self: flex-start;
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 5px;
}

/* Single News Item Page Styles */
.hero-section-news-single {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../img/news-single-hero-bg.jpg") no-repeat center center/cover;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-section-news-single h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.news-meta {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.news-single-content {
    padding: 40px 0;
}

.news-single-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-full-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.news-full-content p {
    margin-bottom: 1em;
}

.back-to-news {
    text-align: center;
}

.back-to-news .btn {
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section-news h1 {
        font-size: 2.5rem;
    }
    
    .hero-section-news p {
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        height: 200px;
    }
    
    .hero-section-news-single h1 {
        font-size: 2.2rem;
    }
    
    .news-full-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section-news h1 {
        font-size: 2rem;
    }
    
    .hero-section-news p {
        font-size: 0.9rem;
    }
    
    .news-title {
        font-size: 1.3rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    .hero-section-news-single h1 {
        font-size: 1.8rem;
    }
}

