.product-category-dropdown summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 0px;
    list-style: none;
    position: relative;
    padding-left: 20px;
}

summary.product-filter-name {
    padding: 0;
    background: transparent;
    color: #242424;
    border-radius: unset;
    text-transform: capitalize;
    font-size: 18px;
    line-height: 25.2px;
    font-family: 'Jost';
    font-weight: 400;
    letter-spacing: 0;
    margin-right: 1.25rem;
    cursor: pointer;
    display: inline-block;
}

details.product-category-dropdown.e-con-inner {
    flex-direction: column;
}

.product-category-dropdown-filter {
    background-color: #fff;
    padding: 20px 0;
}
.resource-category-filter-wrapper {
    background-color: #EAEAEA66;
    padding-bottom: 50px;
}

/* checboxes */
.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 30px;
    font-size: 16px;
    cursor: pointer;
    /* label text ui */
    color: #8D9396;
    text-align: center;
    font-family: Jost;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-top: 5px;
}

.custom-checkbox input {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 0;
}

/* The custom checkbox square */
.custom-checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #8D9396;
    border-radius: 0;
    transition: all 0.2s ease;
}

/* When checked: purple background + checkmark image */
.custom-checkbox input:checked+.checkmark {
    border-color: rgba(135, 210, 210, 1);
    background-image: url('../images/on.png');
    /* your checkmark image */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

/*  */

/* Hide default disclosure triangle */
.product-category-dropdown summary::-webkit-details-marker {
    display: none;
}

.product-category-dropdown summary::after {
    content: " ";
    position: absolute;
    margin-left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/uploads/2025/05/collapse-arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.product-category-dropdown[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.product-category-checkboxes {
    margin-top: 20px;
    width: 20%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid transparent;
    padding: 10px;
    border-radius: 0;
    position: fixed;
    background: #fff;
    z-index: 4;
}

.resource-description {
    font-family: Jost;
    font-size: 22px;
    font-weight: 400;
    line-height: 30.8px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #19181899;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /* -webkit-line-clamp: 3; */
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-category-filter-wrapper .e-con-inner {
    display: flex;
    flex-direction: row;
    gap: 130px;
}

.resource-category-type-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 30px 20px;
    border: 1px solid #000;
    background: #fff;
    height: 100%;
    margin-top: 130px;
}

.resource-category-type-filter-wrapper {
    width: 22%;
}

.resource-list-wrapper {
    width: 80%;
}

.resource-category-filter-list,
.resource-type-filter-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 30px;
}

.resource-category-filter-list label,
.resource-type-filter-list label {
    border-bottom: 1px solid rgba(152, 203, 203, 1);
    padding-bottom: 15px;
}


input.resource-category-checkbox,
input.resource-type-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.resource-category-filter hr,
.resource-type-filter hr {
    height: 1px;
    width: 37px;
    position: relative;
    top: 10px;
    background: rgba(36, 36, 36, 1);
    margin-bottom: 20px;
}

.resource-category-filter-list label span,
.resource-type-filter label span {
    color: #000;
    text-decoration: none;
    font-size: 22px !important;
    line-height: 30.8px;
    font-weight: 400;
    font-family: jost;
    padding: 0;
    background: none;
    border: none;
    letter-spacing: 0;
    text-transform: capitalize;
}

input.resource-category-checkbox:checked+span,
input.resource-type-checkbox:checked+span {
    color: #87d2d2;
}

.resource-category-filter strong,
.resource-type-filter strong {
    font-size: 22px;
    font-weight: 600;
    line-height: 30.8px;
    font-family: jost;
    color: rgba(1, 1, 1, 1);
    cursor: pointer;
    margin-bottom: 20px;
}

#selected-resources-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 115px 90px;
    position: relative;
    margin-top: 75px;
}

#resource-summary {
    margin-top: 40px;
    color: rgba(0, 0, 0, 1);
    font-size: 13px;
    line-height: 15.9px;
    font-weight: 400;
    font-family: Jost;
}

#selected-resources-list li,
.product-list li {
    list-style: none;
}

.resource-title {
    font-family: Jost;
    font-size: 24px;
    font-weight: 400;
    line-height: 33.6px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #000000;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resource-categories {
    font-family: 'Jost';
    font-size: 18px;
    font-weight: 400;
    line-height: 8.6px;
    color: rgba(25, 24, 24, 0.6);
    text-transform: uppercase;
    /* margin-bottom: 2.688rem; */
    margin-bottom: 1.688rem;
    margin-top: 1rem;
}

#pagination-controls {
    margin-top: 40px;
    padding-top: 60px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#pagination-controls button {
    padding: 12px 22px !important;
    background: #fff;
    color: #000;
    border-radius: 0;
    border: 1px solid #000;
    padding: 12px 22px;
    border-radius: unset;
    font-size: 16px;
    font-family: jost;
    font-weight: 400;
    line-height: 25.2px;
    background: #fff;
    color: #242424;
    letter-spacing: 0;
}

#pagination-controls button.active {
    background: #87d2d2;
    border-color: transparent;
}

.page-numbers.dots {
    color: #000;
    font-size: 15px;
}


.resource-filter-container.category-87 .child-categories,
.resource-filter-container.category-88 .child-categories,
.resource-filter-container.category-89 .product-list {
    margin-left: 0 !important;
}

.resource-filter-container.category-87 .parent-category label:has(.parent-checkbox),
.resource-filter-container.category-88 .parent-category label:has(.parent-checkbox),
.resource-filter-container.category-89 .parent-category label:has(.parent-checkbox) {
    display: none;
}

.resource-list-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

details.product-category-dropdown {
    height: 50px;
}

.resource-category-filter-list.hidden {
    display: none;
}

.toggle-icon {
    display: none;
}

/* media Queries */
@media (max-width: 769px) {
    .product-category-checkboxes {
        width: 70%;
    }

    #selected-resources-list {
        display: flex;
        flex-direction: column;
        gap: 50px;
        margin-top: 95px;
    }

    .resource-category-filter-wrapper .e-con-inner {
        gap: 30px;
    }

    .resource-category-filter strong,
    .resource-type-filter strong {
        font-size: 18px;
        line-height: 20px;
        margin-bottom: 15px;
    }

    .resource-category-type-filter-wrapper {
        gap: 20px;
        padding: 10px 10px;
        margin-top: 20px;
        position: absolute;
        height: auto;
        z-index: 1;
    }

    .resource-category-filter-list label span,
    .resource-type-filter label span {
        font-size: 18px !important;
        line-height: 20px;
    }

    .resource-category-type-filter-wrapper {
        width: 42%;
    }

    .resource-list-wrapper {
        width: 100%;
    }

    .toggle-icon {
        display: block;
    }

    .resource-category-filter strong,
    .resource-type-filter strong {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #resource-summary {
        margin-top: 75px;
    }

    .resource-category-filter-list label,
    .resource-type-filter-list label {
        padding-bottom: 7px;
    }

    .resource-category-filter-list,
    .resource-type-filter-list {
        padding-top: 0;
    }

}

@media (min-width: 768px) and (max-width: 1300px) {
    .toggle-icon {
        display: block;
    }

    .resource-category-type-filter-wrapper {
        width: 30%;
    }

    .product-category-checkboxes {
        width: 35%;
    }

    .resource-category-filter-wrapper .e-con-inner {
        gap: 70px;
    }

    #selected-resources-list {
        display: flex;
        flex-direction: column;
        gap: 80px;
    }

    .resource-category-filter strong,
    .resource-type-filter strong {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}