/* ==========================================================
   GLOSSARY SEARCH
========================================================== */

.glossary-search-wrapper {
    margin-bottom: 40px;
}

.glossary-search-box {
    position: relative;
    max-width: 100%;
}

.glossary-search-box input {
    width: 100%;
    height: 58px;
    border: 1px solid #D6D3D1!important;
    border-radius: 999px!important;
    padding: 0 24px 0 60px!important;
    background: #fff;
    font-family: var(--e-global-typography-c7b325a-font-family), Baskerville;
    font-size: 16px;
    color: #292524;
    outline: none;
    transition: all .25s ease!important;
}

.glossary-search-box input:focus {
    border-color: #A7812C;
    box-shadow: 0 0 0 3px rgba(167,129,44,.12);
}

.glossary-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #78716C;
}

#glossary-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #78716C;
    font-size: 18px;
}

/* ==========================================================
   SIDEBAR NAVIGATION
========================================================== */

.glossary-sidebar-nav {
    position: sticky;
    top: 120px;
}

.glossary-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.glossary-sidebar-nav li {
    margin-bottom: 6px;
}

.glossary-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--e-global-typography-cc47b7e-font-family), Baskerville;
    font-size: var(--e-global-typography-cc47b7e-font-size);
    font-weight: var(--e-global-typography-cc47b7e-font-weight);
    line-height: var(--e-global-typography-cc47b7e-line-height);
    letter-spacing: var(--e-global-typography-cc47b7e-letter-spacing);
    color: var(--e-global-color-2ec9704) !important;
}

.glossary-sidebar-nav a::before {
    content: "›";
    color: #A7812C;
    font-size: 20px;
    font-weight: 600;
    transition: transform .25s ease;
}

.glossary-sidebar-nav a:hover::before,
.glossary-sidebar-nav a.active::before {
    transform: translateX(4px);
}

.glossary-sidebar-nav a:hover,
.glossary-sidebar-nav a.active {
    background: #F5F5F4;
    color: #292524;
}

/* ==========================================================
   CATEGORY SECTIONS
========================================================== */

.glossary-category-section {
    margin-bottom: 60px;
}

.glossary-category-title {
    margin-bottom: 25px;
    font-family: var(--e-global-typography-ba02243-font-family), Baskerville;
    font-size: var(--e-global-typography-ba02243-font-size);
    font-weight: var(--e-global-typography-ba02243-font-weight);
    line-height: 38px;
    letter-spacing: var(--e-global-typography-ba02243-letter-spacing);
    color: var(--e-global-color-2ec9704);
    margin-bottom: 31px;
}

/* ==========================================================
   GLOSSARY ITEM
========================================================== */

.glossary-item {
    margin-bottom: 15px;
}

.glossary-title {
    cursor: pointer;
    padding: 16px 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 1px 1px 6px #d8d8d8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .25s ease;
    font-family: var(--e-global-typography-cc47b7e-font-family), Baskerville;
    font-size: 18px;
    font-weight: var(--e-global-typography-cc47b7e-font-weight);
    color: var(--e-global-color-2ec9704);
}

.glossary-title:hover {
    background: #3B3B3B;
    color: #fff;
}

/* ==========================================================
   CONTENT
========================================================== */

.glossary-content {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 1px 1px 6px #d8d8d8;
    transition:
        max-height .3s ease,
        padding .3s ease;

    font-family: var(--e-global-typography-c7b325a-font-family), Baskerville;
    font-size: var(--e-global-typography-c7b325a-font-size);
    font-weight: var(--e-global-typography-c7b325a-font-weight);
    color: var(--e-global-color-4e342ee);
}

.glossary-item.active .glossary-content {
    max-height: 500px;
    padding: 18px 20px;
}

/* ==========================================================
   ICONS
========================================================== */

.icon-open {
    display: none;
}

.glossary-item.active .icon-closed {
    display: none;
}

.glossary-item.active .icon-open {
    display: inline-block;
}

.glossary-icon {
    min-width: 24px;
    text-align: center;
    font-size: 24px;
    line-height: 1;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1024px) {

    .glossary-sidebar-nav {
        position: relative;
        top: auto;
        margin-bottom: 30px;
    }

}

@media (max-width: 767px) {

    .glossary-title {
        font-size: 16px;
        padding: 14px 18px;
    }

    .glossary-category-title {
        font-size: 28px;
    }

}