/* --- RESET/BASIC STYLES (If not already present) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- ANNOUNCEMENTS PAGE MAIN SECTION (Grid Layout) --- */
.news-announcement-section {
    width: 100%;
    min-height: 80vh; /* Takes up most of the screen below header */
    background: #fdfdfd; /* Clean white-ish background */
    padding: 60px 20px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

.news-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* 1. The Title Section */
.page-header-title {
    text-align: center;
    margin-bottom: 50px;
}

.page-header-title h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #e2015f; /* Your Burgundy accent */
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* 2. The Filter/Category Bar */
.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 22px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #e70d44;
    color: #800020;
}

.filter-btn.active {
    background: #800020;
    border-color: #800020;
    color: #fff;
    box-shadow: 0 4px 10px rgba(128, 0, 32, 0.2);
}

/* 3. The News Grid (3 Columns) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 30px;
}

/* 4. The Individual News Card (Professional Look) */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Soft, professional shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* News Thumbnail Area */
.news-thumb-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.news-thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image cleanly */
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumb-container img {
    transform: scale(1.05); /* Slight zoom on image hover */
}

/* The Category Badge */
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #D4AF37; /* Gold accent */
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* News Content Area (Below Thumbnail) */
.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes button to the bottom */
}

.news-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 12px;
}

.news-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    /* Optional: Limit description to 3 lines */
    /*
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    */
}

/* News Card Button */
.news-card-btn {
    align-self: flex-start; /* Button sits on the left */
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #800020;
    border-radius: 4px;
    color: #800020;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
}

.news-card-btn:hover {
    background: #800020;
    color: #fff;
}


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 20px;
    }
    .page-header-title h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .news-announcement-section {
        padding: 40px 15px;
    }
    .news-grid {
        grid-template-columns: 1fr; /* 1 column on phones */
    }
}