/* News & Events page */
.news-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
    color: #fff;
    padding: 64px 0 48px;
    text-align: center;
}
.news-hero h1 { font-size: 2.5rem; margin: 0 0 8px; color: #fff; }
.news-hero p { font-size: 1.125rem; opacity: 0.92; margin: 0; color: #fff; }

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 32px 0;
}
.news-filter-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--gray-300, #d1d5db);
    background: #fff;
    color: var(--gray-700, #374151);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.95rem;
}
.news-filter-btn:hover { border-color: #7c3aed; color: #7c3aed; }
.news-filter-btn.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 24px 0 48px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f3f4f6;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #7c3aed;
    overflow: hidden;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-600, #4b5563);
}
.news-card-category {
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cat-Events       { background: #ede9fe; color: #6d28d9; }
.cat-Announcements{ background: #dbeafe; color: #1d4ed8; }
.cat-Achievements { background: #fef3c7; color: #92400e; }

.news-card h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0;
    color: var(--gray-900, #111827);
}
.news-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--gray-700, #374151);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-read {
    margin-top: auto;
    padding-top: 12px;
    color: #7c3aed;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
}
.news-featured:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.news-featured .news-card-image {
    aspect-ratio: 4 / 3;
    max-height: 380px;
    overflow: hidden;
    position: relative;
    /* Portrait posters (tribute/shraddhanjali, etc.) no longer get awkwardly cropped.
       The backdrop is a deeply-scaled + blurred copy of the same image, placed via
       the <img> duplicate added by the renderer. The foreground image uses contain. */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-featured .news-card-image .bg-blur {
    position: absolute;
    inset: -4%;   /* slight overscan so blur edges don't show */
    width: 108%;
    height: 108%;
    object-fit: cover;
    filter: blur(28px) saturate(1.15) brightness(0.7);
    transform: scale(1.08);
    z-index: 1;
}
.news-featured .news-card-image img.fg,
.news-featured .news-card-image > img:only-of-type {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;   /* show the full image — no crop on portraits */
    display: block;
}
.news-featured .news-card-image > span {
    position: relative;
    z-index: 2;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.news-featured .news-card-body { padding: 32px; justify-content: center; }
.news-featured h3 { font-size: 1.6rem; }
@media (max-width: 768px) {
    .news-featured { grid-template-columns: 1fr; }
    .news-featured .news-card-image { max-height: 300px; aspect-ratio: 16/9; }
    .news-featured .news-card-body { padding: 20px; }
    .news-featured h3 { font-size: 1.25rem; }
}
@media (max-width: 480px) {
    .news-grid { gap: 16px; }
    .news-card-body { padding: 16px; }
    .news-card h3 { font-size: 1.05rem; }
    .news-featured .news-card-body { padding: 16px 14px; }
    .news-featured h3 { font-size: 1.15rem; }
    .news-featured .news-card-image { max-height: 240px; }
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--gray-600, #4b5563);
}
