/* --- News Page Header --- */
.news-header {
    background: linear-gradient(rgba(87, 46, 125, 0.85), rgba(255, 255, 255, 0.85)), url('pics/Mithila International Centre/background.png');
    background-size: cover;
    background-position: center;
    height: 50vh;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin: 0;
}

.news-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0,0,0,0.3);
}

/* --- News Grid Layout --- */
.news-grid {
    display: grid;
    /* Responsive auto-fit: Creates as many columns as fit */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* --- News Card Styling --- */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(87, 46, 125, 0.05); /* Purple shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0e6ff;
    display: flex;
    flex-direction: column;
}

.news-card:hover { 
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(87, 46, 125, 0.15);
}

/* Image Area */
.news-img { 
    position: relative; 
    height: 220px;
    overflow: hidden;
}

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

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

/* Date Badge */
.date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #572e7d; /* Purple */
    color: white;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Content Area */
.news-content { 
    padding: 25px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.news-content h3 { 
    margin-bottom: 12px; 
    font-size: 1.3rem;
    line-height: 1.4;
    color: #222;
    font-family: 'Merriweather', serif;
}

.news-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1; 
}

.read-more { 
    color: #572e7d; /* Purple */
    font-weight: 700; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.read-more:hover {
    color: #3b1b5e;
    gap: 12px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .news-header { height: 40vh; min-height: 250px; }
    .news-header h1 { font-size: 2.2rem; }

    .news-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    .news-card {
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
}