.results-wrapper {
    display: flex
;
}

.accordion {
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    overflow: hidden;
}
.accordion-title {
    pointer-events: auto !important;
    background-position-y: 50%;
    background-image: url(/web/wp-content/themes/hdb-academy/assets/images/Expand.svg);
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-size: auto;
    background-color: transparent;
    padding: 24px;
    cursor: pointer;
    border: none;
    text-align: left;
    width: 100%;
    outline: none;
    font-size: 16px;
    font-weight: bold;
}

ul.terms-grid {
    list-style: none;
}

.accordion-title.active {
    background-position-y: 50%;
    background-position-x: 95%;
    background-image: url(/web/wp-content/themes/hdb-academy/assets/images/Collapse.svg);
    background-repeat: no-repeat;
    background-size: auto;
    background-color: #ECFAFF;
    color: #0045CE;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0px 24px 0px 24px;
    background-color: #ECFAFF;
    transition: max-height 0.2s ease-out;
    border-top: 0px solid #ddd;
}

.accordion-content p {
    margin: 10px 0;
}

.terms-list {
    transition: opacity 0.3s ease-in-out;
}

.terms-list.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading-indicator {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 20px 0;
}


form#auto-filter-form {
    display: flex
;
    flex-direction: row-reverse;
}

.search-bar {
    display: contents;
}
.archive-terms-glossary input[type="checkbox"] {
    display: none;
}


.glossary-file a {
    text-decoration: none;
    display: flex;
    height: 150px;
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url(/web/wp-content/themes/hdb-academy/assets/images/download.png);
    flex-direction: column-reverse;
    align-items: center;
}
.filter-categories {
    margin-top: 60px;
    background-color: #ECFAFF;
    padding: 24px 80px;
}

.archive-terms-glossary input#search,
.archive-terms-glossary input#search:hover,
.archive-terms-glossary input#search:active {
    max-height: 50px;
    background: transparent;
    border: none;
    max-width: 300px;
}

input#search:focus-visible {
    outline: none;
    border: none;
}

li.category-initial {
    height: 0px;
    width: fit-content;
}

aside.col-3.offset-1.selected-filters {
    display: none;
}

.checkbox-group {
    display: flex
    ;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
}

.search-button {
    background-size: auto;
}

form#auto-filter-form {
    display: flex
;
    flex-direction: row-reverse;
    align-items: center;
}

.results-wrapper {
    padding-top: 80px;
    display: flex
;
    flex-direction: column;
    align-items: center;
}

.category-marker {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.category-marker .category-letter {
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
    color: #333;
}

.search-button {
    min-height: 35px;
}


span.category-initial-title {
    top: 55px;
    position: relative;
}


.terms-content {
    display: flex
;
    flex-direction: row;
    justify-content: space-between;
}

.category-initial {
    display: flex;
    align-items: center; 
    gap: 10px; 
    margin-bottom: 10px; 
}

.category-initial-wrapper {
    flex: 0 0 auto; 
    font-size: 28px; 
    font-weight: bold;
    color: #6c63ff; 
    text-align: left;
}




span.category-initial-title{
    color: var(--Blue-Blue-1000, #002F8D);
font-family: Geologica;
font-size: 80px;
font-style: normal;
font-weight: 400;
line-height: normal;
letter-spacing: 1.6px;
}

li.term-item {
    display: flex
;
    flex-direction: column;
    align-items: flex-end;
}

.accordion-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.accordion-content {
    color: #666;
    font-size: 16px;
}

div#glossary-popup{
    color: white;
    font-size: 14px;
    border-radius:12px;
    background: #FFF;
    box-shadow: 0px 8px 32px 0px rgba(40, 31, 118, 0.20);
    width: 235px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap:  24px;
}

input#search {
    font-size: 20px;
}

button#popup-link{
    font-size: 12px;
    color: white;
    border-radius: 999px;
    background: #0F55E1;
    display: flex;
    height: 40px;
    padding:  16px 32px;
    justify-content: center;
    align-items: center;
    gap:  16px;
    align-self: stretch;
    

}

span.glossary_term {
    background: #ECFAFF;
}

.filter-checkbox:hover + label,
label:hover {
    color: #0057FF; 
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.filter-categories {
    position: sticky;
    top: 0; 
    z-index: 999; 
}


@media(max-width:992px){

    ul.terms-grid {
        padding: 50px 0px;
        list-style: none;
    }

    span.category-initial-title {
        top: 0px;
        position: relative;
    }

    .filter-categories {
        margin-top: 60px;
        background-color: #ECFAFF;
        padding: 15px 15px;
    }

    .checkbox-group {
        overflow-x: overlay;
        padding: 15px 5px 15px 0;
        column-gap: 20px;
    }

    .search-button {
        height: 40px;
    }

    .col-12.col-lg-10.terms-list p {
        padding: 15px;
    }

    .glossary-file {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .category-initial {
        padding-left: 10px;
    }

    .results-wrapper {
        padding: 0;
    }

    .accordion-title {
        width: 100%;
    }
    span.category-initial-title{
        font-size: 32px;

    }

    .accordion-title {
        padding: 15px;
    }
}