.guifi-kennisbank-template {
    padding: 40px 0 96px;
}

.guifi-kennisbank-template__container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.guifi-kennisbank-template__header {
    margin-bottom: 44px;
}

.guifi-kennisbank-template__breadcrumb {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

/* Verberg de oude losse Elementor breadcrumb-shortcode widgets op
   kennisbank-ouders en kennisbank-trainers-coaches — de nieuwe breadcrumb
   in de kennisbank-template header neemt het over */
.elementor-element-f441d69:not(:has(.guifi-kennisbank-template)),
.elementor-element-8026618:not(:has(.guifi-kennisbank-template)) {
    display: none !important;
}

/* Op ouders + trainers pagina's heeft het kennisbank-widget een margin-top: -64px
   die het widget 64px omhoog trok ter compensatie van de oude breadcrumb erboven.
   Nu de oude breadcrumb verborgen is, moet die negative margin ook weg —
   anders is de afstand tot de header-afbeelding kleiner dan op sporters. */
.elementor-element-9244938 > .elementor-widget-container,
.elementor-element-9c2f078 > .elementor-widget-container {
    margin-top: 0 !important;
}
.guifi-kennisbank-template__breadcrumb p,
.guifi-kennisbank-template__breadcrumb .rank-math-breadcrumb {
    margin: 0;
    padding: 0;
}
.guifi-kennisbank-template__breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color .15s;
}
.guifi-kennisbank-template__breadcrumb a:hover {
    color: #E01E1E;
}
.guifi-kennisbank-template__breadcrumb .separator {
    margin: 0 8px;
    color: #aaa;
}

.guifi-kennisbank-template .guifi-kennisbank-template__title {
    margin: 0;
    color: #000 !important;
    font-family: "Titillium Web", Sans-serif !important;
    font-size: 64px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 64px !important;
    text-transform: uppercase !important;
}

.guifi-kennisbank-template .guifi-kennisbank-template__audience {
    margin: 6px 0 0;
    color: transparent !important;
    -webkit-text-stroke-width: 1px !important;
    -webkit-text-stroke-color: #000 !important;
    font-family: "Titillium Web", Sans-serif !important;
    font-size: 64px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 64px !important;
    text-transform: uppercase !important;
}

.guifi-kennisbank-template__intro {
    max-width: 760px;
}

.guifi-kennisbank-template__theme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.guifi-kennisbank-template__theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 166px;
    padding: 24px 18px;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.guifi-kennisbank-template__theme-card:hover,
.guifi-kennisbank-template__theme-card:focus,
.guifi-kennisbank-template__theme-card.is-active {
    background: #000000;
    color: #ffffff;
}

.guifi-kennisbank-template__theme-card:hover .guifi-kennisbank-template__theme-icon img,
.guifi-kennisbank-template__theme-card:focus .guifi-kennisbank-template__theme-icon img,
.guifi-kennisbank-template__theme-card.is-active .guifi-kennisbank-template__theme-icon img {
    filter: brightness(0) invert(1);
}

.guifi-kennisbank-template__theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
}

.guifi-kennisbank-template__theme-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.guifi-kennisbank-template__all-icon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    width: 42px;
    height: 42px;
}

.guifi-kennisbank-template__all-icon span {
    display: block;
    border: 4px solid currentColor;
    border-radius: 7px;
}

.guifi-kennisbank-template__theme-icon--placeholder {
    border: 2px solid currentColor;
}

.guifi-kennisbank-template__theme-label {
    font-family: "Titillium Web", Sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

.guifi-kennisbank-template__article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.guifi-kennisbank-template__article-card {
    border: 2px solid #000000;
    background: #ffffff;
    height: 100%;
}

.guifi-kennisbank-template__article-link {
    display: flex;
    align-items: stretch;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.guifi-kennisbank-template__article-link:hover,
.guifi-kennisbank-template__article-link:focus {
    text-decoration: none;
}

.guifi-kennisbank-template__article-media {
    position: relative;
    flex: 0 0 50%;
    align-self: stretch;
    min-height: 100%;
    height: auto;
    overflow: hidden;
}

.guifi-kennisbank-template__article-media .guifi-kennisbank-template__article-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.guifi-kennisbank-template__article-image--placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f1f1f1, #d8d8d8);
}

.guifi-kennisbank-template__article-image--fallback {
    background-image: var(--guifi-fallback-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.guifi-kennisbank-template__article-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 0 0 50%;
    padding: 24px;
    border-left: 2px solid #000000;
}

.guifi-kennisbank-template__article-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guifi-kennisbank-template__article-label {
    display: flex;
    padding: 4px 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid #000000;
    color: #000;
    font-family: Inter, Sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.guifi-kennisbank-template__article-title {
    margin: 12px 0 0;
    color: #000;
    font-family: "Titillium Web", Sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
}

.guifi-kennisbank-template__article-excerpt {
    flex: 0 0 auto;
    margin-top: 6px;
    margin-bottom: 0;
    color: #000;
    font-family: "Titillium Web", Sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
}

.guifi-kennisbank-template__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 48px;
}

.guifi-kennisbank-template__pagination-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.guifi-kennisbank-template__pagination-page,
.guifi-kennisbank-template__pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
    font-family: "Titillium Web", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.guifi-kennisbank-template__pagination-page.is-active,
.guifi-kennisbank-template__pagination-page:hover,
.guifi-kennisbank-template__pagination-arrow:hover {
    background: #000000;
    color: #ffffff;
}

.guifi-kennisbank-template__pagination-arrow[disabled] {
    opacity: 0.35;
    cursor: default;
}

.guifi-kennisbank-template__pagination-arrow svg {
    display: block;
    flex: 0 0 auto;
    width: 14px !important;
    height: 15px !important;
    min-width: 14px;
}

.guifi-kennisbank-template__pagination-arrow--prev svg {
    transform: scaleX(-1);
}

.guifi-kennisbank-template__pagination-arrow svg path {
    fill: #1c1c1c;
}

.guifi-kennisbank-template__pagination-arrow:hover svg path {
    fill: #ffffff;
}

.guifi-kennisbank-template__article-card[hidden] {
    display: none;
}

.guifi-kennisbank-template__empty {
    margin-top: 24px;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .guifi-kennisbank-template__theme-grid,
    .guifi-kennisbank-template__article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guifi-kennisbank-template__article-link {
        flex-direction: column;
    }

    .guifi-kennisbank-template__article-media {
        flex: 0 0 auto;
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .guifi-kennisbank-template__article-media .guifi-kennisbank-template__article-image,
    .guifi-kennisbank-template__article-image--placeholder,
    .guifi-kennisbank-template__article-image--fallback {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
    }

    .guifi-kennisbank-template__article-body {
        flex: 1 1 auto;
        border-left: 0;
        border-top: 2px solid #000000;
    }
}

@media (max-width: 767px) {
    .guifi-kennisbank-template {
        padding: 48px 0 72px;
    }

    .guifi-kennisbank-template__container {
        width: min(100% - 24px, 100%);
    }

    .guifi-kennisbank-template__article-grid {
        grid-template-columns: 1fr;
    }

    .guifi-kennisbank-template__theme-grid {
        gap: 12px;
    }

    .guifi-kennisbank-template__article-media {
        aspect-ratio: 16 / 9;
    }

    .guifi-kennisbank-template__theme-card {
        gap: 12px;
        min-height: 132px;
        padding: 20px 10px;
    }

    .guifi-kennisbank-template__theme-icon {
        width: 44px;
        height: 44px;
    }

    .guifi-kennisbank-template__theme-label {
        font-size: 13px;
    }

    .guifi-kennisbank-template__article-title {
        font-size: 18px;
        line-height: 22px;
    }

    .guifi-kennisbank-template .guifi-kennisbank-template__title,
    .guifi-kennisbank-template .guifi-kennisbank-template__audience {
        font-size: 48px !important;
        line-height: 48px !important;
    }
}
