.post-type .boxed {
    padding-top: 65px;
    padding-bottom: 65px;
}

.post-type .boxed .filter {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    background: var(--soft-aqua);
    border-radius: 8px;
    padding: 55px 90px;
}

.post-type .boxed .filter.filter-off {
    display: none;
}

.post-type .boxed .btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-type .boxed .filter .search {
    position: relative;
    margin-bottom: 25px;
}

.post-type .boxed .filter .search .search-field {
    width: 380px;
    padding-left: 64px;
    max-width: 100%;
    border-radius: 6px;
}

.post-type .boxed .filter .search .search-submit {
    position: absolute;
    left: 0;
    padding: 23px;
    background: transparent url("images/search.svg") no-repeat center;
}

.post-type .boxed .filter > form {
    display: flex;
    gap: 24px;
    width: 100%;
}

.post-type .boxed .filter > form .filter-onderwerp {
    max-width: 600px;
}

.post-type .boxed .filter > form > div,
.post-type .boxed .filter > form > div > div {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 24px;
}

.post-type .boxed .filter > form > div > div > label {
    padding: 15px 20px;
    color: var(--deep-teal);
    text-decoration: none;
    border-radius: 6px;
    background: var(--pure-white);
    transition: background-color 0.3s ease;
    font-family: Inter-700, sans-serif;
    font-size: 18px;
    line-height: 24px;
    cursor: pointer;
}

.post-type .boxed .filter > form > div > div > label > input,
.post-type .boxed .filter-lesmateriaal-categorie > form > label > input {
    display: none;
}

.post-type .boxed .btn-delete {
    color: var(--muted-green);
    font-family: Opensans-400, Arial, sans-serif;
    font-size: 14px;
    line-height: 28px;
}

.post-type .boxed .items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 85px;
    column-gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.post-type .boxed .items .item {
    border-radius: 8px 8px 0 0;
    border: 1px solid #F8F8F8;
    background: var(--pure-white);
    box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.11);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.post-type .boxed .items .item .image {
    position: relative;
    border-radius: 8px 8px 0 0;
}

.post-type .boxed .items .item .image .thumbnail img {
    height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    width: 100%;
}

.post-type .boxed .items .item .image .leerjaar-thema,
.post-type .boxed .items .item .image .leerjaar-onderwerp {
    position: absolute;
    top: 20px;
    left: 20px;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.post-type .boxed .items .item .image .labels {
    display: flex;
    gap: 12px;
    flex-direction: column;
    top: 20px;
    left: 25px;
    position: absolute;
}

.post-type .boxed .items .item .image .labels > div {
    display: flex;
    gap: 16px;
    flex-direction: row;
    flex-wrap: wrap;
}

.post-type .boxed .items .item .image .labels > div p {
    font-family: Opensans-400, Arial, sans-serif;
    font-size: 14px;
    margin-bottom: 0;
    padding: 5px 20px;
    max-width: fit-content;
    border-radius: 8px;
}

.post-type .boxed .items .info {
    position: relative;
    padding: 30px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-type .boxed .items .info .meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.post-type .boxed .items .info .meta > p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.post-type .boxed .items .info .meta > p.location::before {
    content: "";
    display: flex;
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("images/location.svg");
}

.post-type .boxed .items .info .meta > p.date-time::before {
    content: "";
    display: flex;
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("images/date.svg");
}

.post-type .boxed .items .info .heading {
    font-size: 36px;
    line-height: normal;
    letter-spacing: -0.9px;
}

.post-type .boxed .items .info .heading > a {
    text-decoration: none;
    color: var(--deep-teal);
}

.post-type .boxed .items .info > a.btn.btn-outline {
    max-width: fit-content;
    margin-top: auto;
    position: absolute;
    bottom: 30px;
}


.post-type .boxed .filter-leerjaar label.active {
    background-color: var(--golden-yellow);
}

.post-type .boxed .filter-thema label.active,
.post-type .boxed .filter-onderwerp label.active {
    background-color: var(--ocean-blue);
    color: var(--pure-white);
}

.post-type .boxed .items .item .image .labels > div p.leerjaar {
    background-color: var(--golden-yellow);
    color: var(--deep-teal);
}

.post-type .boxed .items .item .image .labels > div p.thema,
.post-type .boxed .items .item .image .labels > div p.onderwerp {
    background-color: var(--ocean-blue);
    color: var(--pure-white);
}

.post-type .boxed .filter-lesmateriaal-categorie {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0 0 0;
}

.post-type .boxed .filter-lesmateriaal-categorie > form {
    display: flex;
    gap: 14px;
}

.post-type .boxed .filter-lesmateriaal-categorie > form > label {
    padding: 0 20px;
    color: var(--deep-teal);
    text-decoration: none;
    border-radius: 16px;
    background: var(--soft-aqua);
    transition: background-color 0.3s ease;
    font-family: Opensans-400, Arial, sans-serif;
    font-size: 14px;
    line-height: 28px;
    cursor: pointer;
}

.post-type .boxed .filter-lesmateriaal-categorie > form > label.active {
    background-color: var(--deep-teal);
    color: var(--pure-white);
}

.checkbox-label {
    padding: 15px 20px;
    color: var(--deep-teal);
    text-decoration: none;
    border-radius: 6px;
    background: var(--pure-white);
    transition: background-color 0.3s ease;
    font-family: Inter-700, sans-serif;
    font-size: 18px;
    line-height: 24px;
    cursor: pointer;
    display: inline-block;
}

.checkbox-label {
    background-color: var(--hover);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.filter-leerjaar label.active,
.filter-thema label.active,
.filter-onderwerp label.active,
.filter-lesmateriaal-categorie label.active {
    background-color: var(--ocean-blue);
    color: var(--pure-white);
}

.filter-leerjaar label.active {
    background-color: var(--golden-yellow);
    color: var(--deep-teal);
}

.filter-lesmateriaal-categorie label {
    padding: 0 20px;
    border-radius: 16px;
    background: var(--soft-aqua);
    font-family: Opensans-400, Arial, sans-serif;
    font-size: 14px;
    line-height: 28px;
}

.filter-lesmateriaal-categorie label.active {
    background-color: var(--deep-teal);
    color: var(--pure-white);
}

.filter-lesmateriaal-categorie {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

#filter-form {
    position: relative;
}

#filter-form .btn-delete.btn {
    position: absolute;
    right: 0;
}


@media (max-width: 768px) {
    .post-type .boxed .items {
        grid-template-columns: 1fr;
    }

    .post-type .boxed .filter {
        padding: 30px;
    }
,
    .post-type .boxed .filter > form {
        flex-direction: column;
    }

    #filter-form .btn-delete.btn {
        top: -80px;
    }
}

@media (max-width: 600px) {
    .post-type .boxed .filter .search, .post-type .boxed .filter .search {
        margin-bottom: 75px;
    }

    #filter-form .btn-delete.btn {
        left: 0;
    }
    .post-type .boxed .items .info .meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 440px) {
    .post-type .boxed .items .info .heading a {
        font-size: 25px !important;
        line-height: normal;
        letter-spacing: -0.9px;
        font-family: CrimsonPro-700, sans-serif;
    }

    .post-type .boxed .filter {
        padding: 20px;
    }

    .post-type .boxed .items {
        row-gap: 30px;
        padding-top: 30px;
    }

    .post-type .boxed .filter > form > div > div > label {
        font-size: 16px;
        padding: 10px 15px;
    }
    .post-type .boxed .filter > form > div,
    .post-type .boxed .filter > form > div > div {
        gap: 12px;
    }

    .checkbox-label {
        padding: 10px 15px;
        font-size: 14px;
        line-height: 16px;
    }

    .post-type .boxed .filter > form {
        gap: 10px;
    }
}
