/* === Layout === */
.na-featured {
    margin: 0 0 100px 0;
}

.na-featured .na-featured-link {
    display: flex;
    align-items: stretch;
    gap: 120px;
    color: inherit;
    text-decoration: none;
}

.na-featured .na-featured-link:focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: 8px;
    border-radius: 5px;
}

.na-featured .na-featured-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.na-featured .na-featured-text .na-featured-kicker {
    color: var(--e-global-color-primary);
    font-weight: 700;
    margin-bottom: 16px;
}

.na-featured .na-featured-text .na-featured-title {
    color: var(--e-global-color-primary);
    margin: 0;
    text-decoration: none;
}

.na-featured .na-featured-link:hover .na-featured-text .na-featured-title {
    text-decoration: underline;
}

.na-featured .na-featured-meta {
    color: var(--e-global-color-primary);
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.na-featured .na-featured-summary {
    color: var(--e-global-color-primary);
    font-weight: 400;
    margin: 0;
}

.na-featured .na-featured-media {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: auto;
}

.na-featured .na-featured-media .na-featured-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.na-featured .na-featured-link:hover .na-featured-media .na-featured-thumb {
    transform: scale(1.1);
}

.elementor-widget-news-archive .na-featured-separator {
    all: unset;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #CECECE;
    border: none;
    margin: 40px 0;
    box-sizing: border-box;
}

/* === Chips / Category Filters === */
.na-archive .na-chips {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 40px 0;
}

/* General layout for chips with icons */
.na-archive .na-chips .na-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    gap: 16px;
    cursor: pointer;
    color: var(--e-global-color-primary);
    font-weight: 700;
    border: 2px solid #CECECE;
    padding: 8px 16px;
    border-radius: 5px;
    background-color: white;
    transition: all 0.3s ease;
    flex: 1;
}

/* --- Icons before each category name --- */
.na-archive .na-chips .na-chip::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.na-archive .na-chips .na-chip[data-cat="industrie"]::before {
    background-image: url("../../icons/industry.svg");
}

.na-archive .na-chips .na-chip[data-cat="logistiek-transport"]::before {
    background-image: url("../../icons/truck.svg");
}

.na-archive .na-chips .na-chip[data-cat="maritiem"]::before {
    background-image: url("../../icons/boat.svg");
}

.na-archive .na-chips .na-chip[data-cat="regelgeving"]::before {
    background-image: url("../../icons/law.svg");
}

.na-archive .na-chips .na-chip[data-cat="nieuws"]::before,
.na-archive .na-chips .na-chip[data-cat="all"]::before {
    display: none;
}


.na-archive .na-chips .na-chip.is-active,
.na-archive .na-chips .na-chip:hover {
    border-color: var(--e-global-color-primary);
}

/* === Filter Dropdown === */
.na-filter {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.na-filter .na-filter-trigger {
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    color: var(--e-global-color-primary);
    font-weight: 700;
    padding: 0;
    background-color: white;
    transition: all 0.3s ease;
}

.na-filter .na-filter-trigger::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-size: contain;
    background: url("../../icons/filter.svg") no-repeat center center;
}


.na-filter .na-filter-trigger:hover,
.na-filter .na-filter-trigger:focus,
.na-filter .na-filter-trigger:active {
    background-color: white;
    color: var(--e-global-color-primary);
    text-decoration: underline;
}

.na-filter .na-filter-menu {
    padding: 16px 24px;
    background-color: white;
    border: 1px solid var(--e-global-color-primary);
    border-radius: 5px;
    position: absolute;
    top: 40px;
    left: 0;
    min-width: 240px;
    z-index: 50;
}

.na-filter .na-filter-menu .na-filter-option {
    display: block;
    margin-bottom: 16px;
    cursor: pointer;
}

.na-filter .na-filter-menu .na-filter-option:last-child {
    margin-bottom: 0;
}

/* === Grid === */
.na-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.na-card {
    position: relative;
    height: 100%;
}

.na-card .na-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.na-card .na-card-link:focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: 6px;
    border-radius: 5px;
}

.na-card .na-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 5px 5px 100px 5px;
    height: 200px;
    max-height: 200px;
    flex: 0 0 auto;
    margin: 0 0 16px 0;
}

.na-card .na-card-media .na-card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px 5px 100px 5px;
    transition: all 0.3s ease;
}

.na-card .na-card-media:has(.na-card-thumb--placeholder) {
    border: 1px solid #CECECE;
}

.na-card .na-card-link:hover .na-card-thumb {
    transform: scale(1.1);
}

.na-card .na-card-category {
    color: var(--e-global-color-primary);
    margin: 0 0 8px 0;
}

.na-card .na-card-title {
    color: var(--e-global-color-primary);
    margin: 0 0 24px 0;
}

.na-card .na-card-link:hover .na-card-title {
    text-decoration: underline;
}

.na-card .na-card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.na-card .na-card-actions .blue-arrow-button {
    pointer-events: none;
}

/* === Pagination === */
.na-pagination {
    display: flex;
    justify-content: center;
}

.na-pagination .na-pagination-list {
    display: inline-flex;
    align-items: center;
    list-style: none;
    gap: 40px;
    padding: 0;
    margin: 0;
}

.na-pagination .na-pagination-list li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.na-pagination .na-pagination-list .na-page {
    background-color: unset;
    border: unset;
    border-radius: unset;
    line-height: unset;
    padding: unset;
    color: var(--e-global-color-primary);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.na-pagination .na-pagination-list .na-page.is-active {
    font-weight: 700;
    opacity: 1;
}

.na-pagination .na-pagination-list .na-page.na-prev,
.na-pagination .na-pagination-list .na-page.na-next {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: unset;
    border: unset;
    border-radius: unset;
    font-size: unset;
    line-height: unset;
    padding: unset;
    opacity: 1;
}

.na-pagination .na-pagination-list .na-page.na-prev {
    background-image: url("../../icons/chevron-left.svg");
    margin-right: 10px;
}

.na-pagination .na-pagination-list .na-page.na-next {
    background-image: url("../../icons/chevron-right.svg");
    margin-left: 10px;
}

.na-pagination .na-pagination-list .na-page.na-next.is-active,
.na-pagination .na-pagination-list .na-page.na-prev.is-active {
    opacity: 1;
}

.na-pagination .na-pagination-list .na-page.na-next.is-disabled,
.na-pagination .na-pagination-list .na-page.na-prev.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

@media screen and (max-width: 1024px) {
    .na-featured .na-featured-link {
        gap: 40px;
    }

    .na-featured .na-featured-media {
        height: 500px;
    }

    .na-archive .na-chips {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0 0 40px 0;
    }

    .na-archive .na-chips .na-chip {
        justify-content: center;
    }

    .na-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .na-featured .na-featured-link {
        flex-direction: column;
    }

    .na-featured .na-featured-text {
        order: 2;
    }

    .na-grid {
        display: flex;
        flex-direction: column;
        margin-bottom: 40px;
    }
}
