/* =====================================================
   WRAPPER BACKGROUND (light grey section)
===================================================== */

.news-wrapper {
    background: #f2f4f7;
    padding: 60px;
    border-radius: 20px;
}

/* =====================================================
   FILTER BAR (like first screenshot)
===================================================== */

.news-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    align-items: center;
}

/* Custom dropdown container */

.custom-dropdown {
    position: relative;
    min-width: 200px;
}

/* Selected button */

.dropdown-selected {
    background: #e9eaec;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Arrow */

.dropdown-selected::after {
    content: "▾";
    font-size: 14px;
    margin-left: 10px;
}

/* Dropdown menu */

.dropdown-options {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    display: none;
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
}

.dropdown-options div {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-options div:hover {
    background: #f2f4f7;
}

.custom-dropdown.open .dropdown-options {
    display: block;
}

/* Clear button */

#clear-filters {
    background: #2d3e7f;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

#clear-filters:hover {
    background: #1f2f6f;
}

/* =====================================================
   GRID (4 cards per row)
===================================================== */

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

/* =====================================================
   CARD DESIGN
===================================================== */

.news-card {
    background: #e6e8ed;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Image ratio like screenshot */

.news-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card content */

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 16px;
    line-height: 1.5;
    color: #1f2f6f;
    font-weight: 600;
}

/* Remove excerpt for screenshot look */

.news-excerpt {
    display: none;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1400px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-filters {
        flex-direction: column;
        align-items: flex-start;
    }
}