
/* ---------------------------------------------------
   GLOBAL STYLES
--------------------------------------------------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #a5f7fa;
    color: #333;
    margin-top:150px;
}

.news-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

/* ---------------------------------------------------
   HEADER
--------------------------------------------------- */
.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e3a8a; /* Deep Blue */
}

.news-header p {
    font-size: 1rem;
    color: #6b7280; /* Gray */
}

/* ---------------------------------------------------
   CATEGORY FILTER (TABS)
--------------------------------------------------- */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-filter button,
.category-dropdown select {
    padding: 10px 18px;
    border: 1px solid #cfd6e1;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.3s;
}

.category-filter button:hover {
    background: #e3e9f5;
}

.category-filter button.active {
    background: #1e3a8a;
    color: white;
}

/* MOBILE DROPDOWN */
.category-dropdown {
    display: none;
}

/* ---------------------------------------------------
   NEWS CARDS GRID
--------------------------------------------------- */
.news-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.news-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.news-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
}

.news-card p {
    color: #6b7280;
    margin: 8px 0;
}

.news-date {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

.news-card a {
    display: inline-block;
    margin-top: 10px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.news-card a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------
   VIEW ALL BUTTON
--------------------------------------------------- */
.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    background: #1e3a8a;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.view-all-btn:hover {
    background: #274bb5;
}

/* ---------------------------------------------------
   RESPONSIVE — MOBILE SWITCH TO DROPDOWN
--------------------------------------------------- */
@media (max-width: 600px) {
    .category-filter {
        display: none;
    }
    .category-dropdown {
        display: block;
        text-align: center;
        margin-bottom: 25px;
    }

    .category-dropdown select {
        width: 90%;
    }
}
