/* Custom styles for News Feed Grid Element */
.news-wrapper {
    max-width: var(--site-container-width);
    margin: 100px auto 75px;
}
.news-wrapper h2 {
    text-transform: uppercase;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 30px;
    font-family: var(--font-secondary);
    font-size: 1.8em;
}
.news-wrapper .yoast-breadcrumb {
    text-align: center;
    margin-top: -15px;
    margin-bottom: 25px;
    font-size: 0.9em;
    color: #000000 !important;
}
.news-wrapper .yoast-breadcrumb a {
    text-decoration: none;
    color: #000000 !important;
}
.news-wrapper .yoast-breadcrumb-wrapper a[href]:not(.button):not([class*="btn"]):not(:has(i)),
.news-wrapper #breadcrumbs a[href]:not(.button):not([class*="btn"]):not(:has(i)) {
    color: #000000 !important;
    text-decoration: none !important;
}
.news-wrapper .yoast-breadcrumb a:hover {
    text-decoration: underline;
}

.news-filter {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 200px;
    flex-grow: 0;
    flex-shrink: 1;
}
.search-wrap input {
    flex: 1;
    padding: 5px;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid #ccc;
    max-width: 200px;
    padding-right: 35px;
    padding-left: 10px;
    line-height: 25px !important;
}
.search-icon-button {
    background: none;
    border: none;
    position: absolute;
    right: 5px;
    cursor: pointer;
    padding: 0;
    color: #555;
    line-height: 1;
    z-index: 2;
}
.search-icon-button i {
    font-size: 14px;
    margin-right: 10px;
}
.news-filter select {
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid var(--color-primary);
    max-width: 200px;
    line-height: 25px !important;
    background-color: var(--color-primary);
    color: var(--color-tertiary);
    background-image: linear-gradient(45deg, transparent 50%, white 0), linear-gradient(135deg, white 50%, transparent 0) !important;
    flex-grow: 0;
    flex-shrink: 1;
}

.news-filter select option {
    background-color: #ffffff;
    color: #000000;
    border-radius:10px;
    border:none;
}

@media(max-width: 767px) {
    .news-filter {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .search-wrap,
    .news-filter select {
        width: 100%;
        max-width: 300px;
        flex-grow: 0;
        flex-shrink: 1;
    }
    .search-wrap input {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
    .search-icon-button {
        right: 5px;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    padding: 0 15px;
}
.news-card {
    flex: unset;
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 25px;
    background-color: var(--color-five);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.news-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* --- UPDATED ZOOM STYLES FOR IMG TAGS (Cleaned) --- */
.news-card > a > img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    /* Transition set to 0.5s to match background image effect */
    transition: transform 0.5s ease;
}
.news-card:hover > a > img {
    /* Scale set to 1.03 to match background image zoom level */
    transform: scale(1.03);
}
/* -------------------------------------------------- */

.news-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: var(--color-five);
}
.news-card h3 {
    margin-top: 0;
    text-transform: uppercase;
    color: var(--color-primary);
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 10px;
}
.news-card .meta {
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 15px;
}
.news-card .meta a {
    color: var(--color-secondary);
    text-decoration: none;
}
.news-card .meta a:hover {
    text-decoration: underline;
}

.news-card p {
    color: var(--color-secondary);
    margin: 0 0 15px 0;
    flex-grow: 1;
}
.news-card a.arrow-button {
    margin-top: auto;
    align-self: center;
    display: inline-block;
    padding: 10px;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
}
.news-card a.arrow-button img.custom-arrow-icon {
    width: 55px;
    height: auto;
    vertical-align: middle;
}

@media(min-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media(min-width: 768px) and (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pagination {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.pagination a,
.pagination span.current {
    margin: 0 5px;
    padding: 8px 16px;
    background-color: #eee;
    text-decoration: none;
    border-radius: 5px;
    color: #333;
    transition: background-color 0.3s ease;
}
.pagination a:hover {
    background-color: #ddd;
}
.pagination span.current {
    background-color: var(--color-primary);
    color: white;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .news-card > a > img{
        height:150px !important;
    }
}


/* The background image zoom block you provided (also cleaned) */
.brxe-head-sub-heading-3-col .card-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center center;
    transform: scale(1);
    transition: transform 0.5s ease;
    z-index: 0;
}

/* Zoom effect on hover */
.brxe-head-sub-heading-3-col .card-item:hover::after {
    transform: scale(1.03);
}