.mg-layout .mg-bc-home {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.mg-layout .mg-subtitel-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.mg-layout .mg-cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    margin-top:2rem;
}

.mg-layout .mg-cat-btn {
    all: unset;
    flex-shrink: 0;
    cursor: pointer;
    padding: 1.25rem 2.5rem;
    border-radius: 5px;
    background: #F2EFEC;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-family: 'neue-haas-unica';
}

.mg-layout .mg-titel {
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.mg-layout .mg-cat-btn:hover,
.mg-layout .mg-cat-btn:focus,
.mg-layout .mg-cat-btn:active {
    background: #fff;
}

.mg-layout .mg-cat-btn.is-active {
    background: #fff;
}

.mg-layout .mg-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.625rem;
    margin-bottom: 3rem;
}

.mg-layout .mg-card {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    background: #fff;
    border-radius: 2px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.mg-layout .mg-card:hover,
.mg-layout .mg-card:focus {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


.mg-layout .mg-card-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.mg-layout .mg-card-naam {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    opacity: 0.7;
}

.mg-layout .mg-pagination {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1rem;
}

.mg-layout .mg-pag-btn:not(.mg-pag-arrow) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

.pk-page .mg-layout .mg-pag-btn:not(.mg-pag-arrow):hover,
.pk-page .mg-layout .mg-pag-btn:not(.mg-pag-arrow):focus {
    background: #8C3E12;
    color: #fff;
}

.mg-layout .mg-pag-btn:not(.mg-pag-arrow).is-active {
    background: #8C3E12;
    color: #fff;
}


.mg-layout .mg-pag-ellipsis {
    min-width: 2rem;
    text-align: center;
    opacity: 0.5;
    font-size: 0.9375rem;
}


@media screen and (max-width: 1400px) {
    .mg-layout .mg-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 1200px) {
    .mg-layout .mg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .mg-layout .mg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .mg-layout .mg-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .mg-layout .mg-cat-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }
}
