/* =============================================
   GLOSSARY ARCHIVE (archive-glossary.php)
   Scope: body.post-type-archive-glossary
          body.page-template-archive-glossary
   ============================================= */

:is(.post-type-archive-glossary, .page-template-archive-glossary) section h1 {
    margin-bottom: 40px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) h1 span {
    text-transform: uppercase;
    color: black;
    font-weight: 700;
    font-size: 2rem;
    display: block;
}

@media screen and (min-width: 992px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) h1 span {
        font-size: 2.5rem;
    }
}

@media screen and (min-width: 1590px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) h1 span {
        font-size: 3.2rem;
    }
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) section.section {
    padding: 0 5% 20px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) section.section.glossary-overview {
    padding-top: 40px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .section.position-header {
    padding-top: 40px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .section.position-header,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .section.glossary-overview,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .section.glossary-highlights {
    background: #DBE6F080;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) section.position-header h1 span {
    color: black;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-left: auto;
    margin-right: auto;
    background: #f2f2f2;
    padding: 0.5rem;
    border-radius: 4px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .alphabet-filter-wrap .letter {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 4px;
    background-color: transparent;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: auto;
    color: #c50044;
    margin-top: 2rem;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .alphabet-filter-wrap {
    display: flex;
    flex-direction: row;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) #glossary-overview {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .padding-box {
    padding: 0 24px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-section {
    display: flex;
    margin-bottom: 4rem;
    align-items: flex-start;
    padding: 24px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-section p {
    margin-top: 0;
    margin-bottom: 16px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-section > div > h3 {
    margin-top: 2rem;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-heading img {
    flex-shrink: 0;
    width: auto;
    height: auto;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-heading h2,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-glossary-terms h2 {
    color: #c50044;
    margin: 0;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-heading span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #a01441;
    color: white;
    font-size: 20px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .terms-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-description {
    font-size: 15px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-item-w-icon {
    box-sizing: content-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 32px;
    gap: 32px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .term-item-w-icon {
        padding: 24px;
        gap: 24px;
    }
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-item-w-icon .term-title {
    margin-bottom: 0px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-icon {
    flex-shrink: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-icon svg,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

@media (min-width: 1200px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .container {
        max-width: 1560px;
        margin: 20px auto;
    }
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-section h3 {
    margin-bottom: 16px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-heading svg {
    fill: #c50044;
    height: 24px;
    width: fit-content;
}

@media (min-width: 1590px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-heading svg {
        height: 48px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-heading {
        gap: 16px;
    }
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-title svg {
    width: 16px;
    height: 16px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-item svg {
    fill: #c50044;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .glossary-highlights-section {
    padding: 24px;
    margin-bottom: 2rem;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-term-item .term-arrow,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-term-item .term-arrow {
    transition: transform 0.3s ease;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-term-item:hover .term-arrow,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-term-item:hover .term-arrow {
    transform: translateX(5px);
}

@media (min-width: 1200px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .container {
        margin: 0px auto;
    }
}

@media (max-width: 1024px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .terms-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .terms-container {
        grid-template-columns: 1fr;
        width: 100%;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .glossary-highlights-section {
        padding: 0px;
        margin-bottom: 4rem;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) section.section.glossary-overview {
        padding-top: 0px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .term-icon {
        width: 48px;
        height: 48px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .padding-box {
        padding: 0px;
    }
}

@media (max-width: 768px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-section {
        flex-direction: column;
        padding: 0px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-section:last-child {
        margin-bottom: 0px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .glossary-overview .container,
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .glossary-highlights .container,
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .about-dictionary .container,
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .statistics-section .container {
        padding-left: 0px;
        padding-right: 0px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .letter-heading {
        margin-bottom: 15px;
        margin-right: 0;
    }
}

/* === HIGHLIGHTS SECTION === */

:is(.post-type-archive-glossary, .page-template-archive-glossary) .highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    max-width: 1560px;
    margin: 0 auto;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .highlight-column {
    display: flex;
    flex-direction: column;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-glossary-terms,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-glossary-terms {
    background: #ffffff;
    border-radius: 8px;
    padding: 32px;
    height: 100%;
    border: 1px solid #3840494F;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0px 10px 15px 0px #0000001A;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-glossary-terms h2,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-glossary-terms h2 {
    line-height: 45px;
    font-weight: 700;
    color: #c50044;
    margin: 0 0 24px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-glossary-terms h2,
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-glossary-terms h2 {
        font-size: 20px;
        line-height: 1.2;
    }
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-terms-list,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-terms-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-term-item,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-term-item {
    background: transparent;
    border: none;
    padding: 20px 8px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 0;
    text-decoration: none;
    color: inherit;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-term-item:last-child,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-term-item:last-child {
    border-bottom: none;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-content > span {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-term-item:hover .term-content > span,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-term-item:hover .term-content > span {
    color: #c50044;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-term-item:hover .term-rank,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-term-item:hover .term-rank {
    color: #404040;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-term-item .term-rank,
:is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-term-item .term-rank {
    color: #404040;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-rank {
    width: 32px;
    height: 32px;
    background: #F0F0F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 16px;
    flex-shrink: 0;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .term-arrow {
    margin-left: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

@media (max-width: 1024px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .highlights-grid {
        gap: 2.5rem;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-glossary-terms,
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-glossary-terms {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .highlights-grid {
        grid-template-columns: 1fr;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .section.glossary-highlights {
        padding: 24px 5% 24px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-glossary-terms,
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-glossary-terms {
        padding: 24px 20px;
        border-radius: 12px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-glossary-terms h3,
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-glossary-terms h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .popular-term-item,
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .newest-term-item {
        padding: 16px 0;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .term-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .term-views,
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .term-date {
        align-self: flex-start;
    }
}

/* === CATEGORY OVERVIEW === */

:is(.post-type-archive-glossary, .page-template-archive-glossary) .category-overview-wrapper {
    margin-bottom: 2rem;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .category-overview-wrapper .letter-section {
    margin-bottom: 2rem;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .category-overview-wrapper .letter-heading {
    padding-top: 20px;
    margin-bottom: 2rem;
    display: block;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .category-overview-wrapper .letter-heading h2 {
    margin-bottom: 1rem;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .category-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .category-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 768px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .category-overview-wrapper {
        margin-bottom: 40px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .category-icon {
        width: 40px;
        height: 40px;
    }
}

/* === ABOUT DICTIONARY === */

:is(.post-type-archive-glossary, .page-template-archive-glossary) .section.about-dictionary {
    padding: 40px 5%;
    background: #DBE6F080;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .about-box {
    background: #FFFFFF;
    border: 1px solid #6F6F6F;
    box-shadow: 0px 1px 2px 0px #0000000D;
    backdrop-filter: blur(4px);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    max-width: 1560px;
    margin: 0 auto;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .about-box h2 {
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .about-box p {
    color: #141414;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto;
}

/* === STATISTICS SECTION === */

:is(.post-type-archive-glossary, .page-template-archive-glossary) .section.statistics-section {
    padding: 40px 5% 60px;
    background: #DBE6F080;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .statistics-box {
    background: #FFFFFF;
    border: 1px solid #6F6F6F;
    box-shadow: 0px 1px 2px 0px #0000000D;
    backdrop-filter: blur(4px);
    border-radius: 15px;
    padding: 40px;
    max-width: 1560px;
    margin: 0 auto;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .statistics-heading {
    display: none;
    color: #18153F;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .statistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .stat-item {
    text-align: center;
    padding: 20px;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .stat-number {
    color: #c50044;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
}

:is(.post-type-archive-glossary, .page-template-archive-glossary) .stat-label {
    color: #7A899F;
    font-size: 16px;
    font-weight: 500;
    text-transform: lowercase;
}

@media (max-width: 1024px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .about-box,
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .statistics-box {
        padding: 32px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .about-box h2 {
        font-size: 24px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .stat-number {
        font-size: 40px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .statistics-grid {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .section.about-dictionary,
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .section.statistics-section {
        padding: 24px 5%;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .about-box,
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .statistics-box {
        padding: 24px 20px;
        border-radius: 15px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .about-box h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .about-box p {
        font-size: 14px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .statistics-heading {
        display: block;
        font-size: 20px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .statistics-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .stat-item {
        padding: 16px 0;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .stat-number {
        font-size: 36px;
    }

    :is(.post-type-archive-glossary, .page-template-archive-glossary) .stat-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    :is(.post-type-archive-glossary, .page-template-archive-glossary) .stat-number {
        font-size: 32px;
    }
}


/* =============================================
   SINGLE GLOSSARY (single-glossary.php)
   Scope: body.single-glossary
   ============================================= */

/* Back arrow (first style block) */

.single-glossary .back-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .single-glossary .back-arrow {
        display: none;
    }
}

.single-glossary .back-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.single-glossary .icon-arrow {
    margin-right: 10px;
}

.single-glossary .back-text {
    margin-left: 0;
}

/* Base styles */

.single-glossary .container.container-main {
    padding-top: 48px;
}

.single-glossary .section.position-header {
    padding-top: 40px;
    background: #DBE6F080;
    margin-bottom: 0px;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .single-glossary .section.position-header {
        padding-top: 0px;
    }
}

.single-glossary .main-content {
    margin-top: 0px;
}

@media (min-width: 1024px) {
    .single-glossary .section.main .container-main {
        display: flex;
        gap: 30px;
        align-items: flex-start;
        padding-bottom: 100px;
    }

    .single-glossary .main-content {
        flex: 1;
        max-width: 1290px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
    }
}

.single-glossary .nav-listing p {
    font-size: 24px;
    padding: 0px 8px;
    margin-bottom: 16px;
}

.single-glossary .back-link a:visited {
    color: #4169e1;
}

.single-glossary .glossary-content-detail {
    padding-left: 0;
}

.single-glossary .glossary-content-detail p:has(+ p) {
    margin-bottom: 0px;
}

.single-glossary .content-wrapper {
    padding-left: 2.5rem;
}

@media (max-width: 1024px) {
    .single-glossary .glossary-content-detail {
        padding: 16px 0;
    }

    .single-glossary .content-wrapper {
        padding-left: 0;
    }
}

.single-glossary .glossary-content-detail ul,
.single-glossary .glossary-content-detail ol {
    margin-left: 0rem;
    padding-left: 18px;
}

/* ===================================
   MOBILE NAVIGATION SELECT STYLES
   =================================== */

.single-glossary .nav-listing-mobile-wrapper {
    display: none;
    width: 100%;
    position: relative;
}

.single-glossary .sticky-sentinel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    visibility: hidden;
}

.single-glossary .nav-listing-mobile {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.single-glossary .nav-listing-mobile.sticky {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
    max-width: 100%;
    padding: 10px 5%;
    background: #DBE6F080;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.single-glossary .category-icon {
    width: 24px;
    height: 24px;
}

.single-glossary .glossary-select-trigger {
    width: 100%;
    height: 56px;
    background: #fff;
    border: 2px solid #EAEAEA;
    border-radius: 50px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    color: #1D2530;
    transition: all 0.3s ease;
}

.single-glossary .glossary-select-trigger:hover {
    border-color: #a01441;
}

.single-glossary .glossary-select-trigger.active {
    border-color: #a01441;
    background: #fff;
}

.single-glossary .glossary-select-trigger.active svg {
    transform: rotate(180deg);
}

.single-glossary .glossary-select-trigger svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.single-glossary .glossary-select-trigger svg path {
    stroke: #a01441;
}

.single-glossary .glossary-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #F1F5F9;
    border-radius: 12px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.single-glossary .glossary-select-dropdown.active {
    max-height: 70vh;
    opacity: 1;
    overflow-y: auto;
    margin: 0;
}

.single-glossary .nav-listing-mobile.sticky .glossary-select-dropdown.active {
    margin: 20px;
}

@media (min-width: 1024px) {
    .single-glossary .nav-listing-mobile-wrapper {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .single-glossary .nav-listing-desktop {
        display: none !important;
    }

    .single-glossary .nav-listing-mobile-wrapper {
        display: block;
    }

    .single-glossary .container.container-main {
        padding-top: 20px;
    }
}

/* Category badges above title */

.single-glossary .glossary-categories-top {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .single-glossary .glossary-categories-top {
        gap: 16px;
        display: none;
    }
}

.single-glossary .category-badge-black {
    text-decoration: none;
}

.single-glossary .category-badge-black a {
    font-size: 24px;
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
}

.single-glossary .category-badge-black h1 {
    margin: 0;
}

.single-glossary .category-badge-black img {
    color: black;
    height: 32px;
    width: auto;
    margin-right: 8px;
    filter: brightness(0);
}

@media (min-width: 769px) {
    .single-glossary .related-terms-section h2 {
        margin-bottom: 48px;
    }
}

@media (min-width: 1590px) {
    .single-glossary .category-badge-black .category-icon {
        margin-right: 12px;
        width: auto;
        height: 48px;
    }
}

/* Tags below title */

.single-glossary .glossary-tags-bottom {
    display: flex;
    gap: 8px;
    margin-top: 0px;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .single-glossary .glossary-tags-bottom {
        margin-bottom: 16px;
    }
}

.single-glossary .tag-badge-red {
    display: inline-flex;
    align-items: center;
    padding: 9px 17px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    background: #F1E6E8;
    font-weight: 500;
    transition: all 0.3s ease;
}

.single-glossary .tag-badge-red a {
    color: #1D2530;
    text-decoration: none;
}

.single-glossary .tag-badge-red:hover {
    background: #8b1238;
    transform: translateY(-1px);
}

.single-glossary .tag-badge-red:hover a {
    color: white;
}

/* Header */

.single-glossary .glossary-header-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 3.5rem;
}

.single-glossary .glossary-content-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start;
    margin: 0 auto;
    width: 100%;
}

.single-glossary .glossary-post {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.single-glossary .glossary-post-title {
    flex-shrink: 0;
    flex-basis: 30%;
}

.single-glossary .glossary-content-row .glossary-post .glossary-post-title h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 0;
    color: #c50044;
    text-align: left;
}

.single-glossary .glossary-post-title span {
    font-size: 1.2em;
    font-weight: normal;
    color: #666;
}

/* Section styles */

.single-glossary section {
    margin-bottom: 48px;
}

.single-glossary section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 12px;
}

/* Definition section */

.single-glossary .definition-content {
    overflow-wrap: break-word;
}

.single-glossary .definition-content .definition-image {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 300px;
}

.single-glossary .definition-content .definition-image img {
    width: 100%;
    border-radius: 8px;
}

/* Acronym section */

.single-glossary .acronym-definition-section .acronym-content p {
    color: #6F6F6F;
    font-size: 13px;
}

.single-glossary .acronym-item {
    margin-bottom: 16px;
}

.single-glossary .acronym-item:last-child {
    margin-bottom: 0;
}

.single-glossary .acronym-term {
    font-size: 18px;
    font-weight: 700;
    color: #c50044;
    margin-bottom: 8px;
}

.single-glossary .acronym-description {
    color: #555;
    line-height: 1.6;
}

/* Related terms grid */

.single-glossary .related-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 0fr));
    gap: 2.5rem;
    column-gap: 50px;
}

.single-glossary .related-term-card {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0px 1px 2px 0px #0000000D;
    backdrop-filter: blur(4px);
}

.single-glossary .related-term-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.single-glossary .related-term-card > a {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
}

.single-glossary .related-term-card .content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.single-glossary .related-term-card h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
}

.single-glossary .related-term-card h3 a {
    color: #333;
    text-decoration: none;
}

.single-glossary .related-term-card:hover h3 a {
    color: #c50044;
}

.single-glossary .related-term-card p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.single-glossary .related-term-card .term-arrow {
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.single-glossary .related-term-card:hover .term-arrow {
    transform: translateX(4px);
}

/* Related articles carousel */

.single-glossary .related-articles-carousel {
    position: relative;
}

.single-glossary .carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.single-glossary .articles-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.single-glossary .articles-wrapper::-webkit-scrollbar {
    display: none;
}

.single-glossary .article-card {
    flex: 0 0 320px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.single-glossary .article-card:hover {
    transform: translateY(-4px);
}

.single-glossary .article-image {
    height: 180px;
    overflow: hidden;
}

.single-glossary .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-glossary .article-content {
    padding: 20px;
    position: relative;
}

.single-glossary .article-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.single-glossary .article-content h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    line-height: 1.4;
}

.single-glossary .article-content h3 a {
    color: #333;
    text-decoration: none;
}

.single-glossary .article-content .read-more {
    position: absolute;
    bottom: 16px;
    right: 16px;
    color: #c50044;
    font-size: 18px;
    text-decoration: none;
}

.single-glossary .more-articles {
    padding: 0px !important;
    margin-top: 120px;
    margin-bottom: 120px;
}

.single-glossary .more-articles h2 {
    margin-bottom: 38px;
}

.single-glossary .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #a01441;
    border: 2px solid #a01441;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.single-glossary .carousel-btn:hover {
    background: #fff;
    color: #c50044;
}

.single-glossary .prev-btn {
    left: 0;
}

.single-glossary .next-btn {
    right: 0;
}

/* Term navigation */

.single-glossary .term-nav-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.single-glossary .prev-term,
.single-glossary .next-term {
    flex: 0 0 auto;
    min-width: 0;
}

.single-glossary .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.single-glossary .nav-link:hover {
    transform: translateX(-2px);
}

.single-glossary .next-term .nav-link {
    justify-content: flex-end;
    text-align: right;
}

.single-glossary .next-term .nav-link:hover {
    transform: translateX(2px);
}

.single-glossary .nav-arrow {
    font-size: 18px;
    color: #c50044;
}

.single-glossary .nav-text small {
    display: block;
    font-size: 12px;
    color: #c50044;
    margin-bottom: 4px;
}

.single-glossary .nav-text strong {
    display: block;
    font-weight: 600;
}

/* Responsive */

@media (max-width: 768px) {
    .single-glossary .section.main .container-main {
        flex-direction: column;
        padding-top: 15px;
    }

    .single-glossary .section.main .container-main .nav-listing {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    .single-glossary .main-content {
        max-width: 100%;
    }

    .single-glossary .related-terms-grid {
        grid-template-columns: 1fr;
    }

    .single-glossary .articles-wrapper {
        padding: 0 20px;
    }

    .single-glossary .article-card {
        flex: 0 0 280px;
    }

    .single-glossary .term-nav-container {
        flex-direction: column;
        gap: 0px;
    }

    .single-glossary .definition-content .definition-image {
        float: none;
        margin: 0 0 20px 0;
        max-width: 100%;
    }
}

.single-glossary section.glossary-detail {
    margin-bottom: 0;
    padding: 0px 5%;
    background: #DBE6F080;
}

/* ===================================
   MOBILE HEADER SECTION STYLES
   =================================== */

.single-glossary .mobile-header-section {
    display: none;
}

@media (max-width: 768px) {
    .single-glossary .mobile-header-section {
        display: block;
        padding: 0px 5%;
        margin-bottom: 20px;
    }

    .single-glossary .mobile-header-section .back-arrow {
        display: flex;
        align-items: center;
        margin-bottom: 16px;
    }

    .single-glossary .mobile-header-section .back-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #333;
        font-size: 16px;
        line-height: 1.5;
    }

    .single-glossary .mobile-header-section .icon-arrow {
        margin-right: 8px;
    }

    .single-glossary .glossary-categories-mobile {
        display: flex;
        gap: 16px;
        margin-bottom: 32px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .single-glossary .glossary-categories-mobile .category-badge-black a {
        font-size: 26px;
        line-height: 1.2;
        text-decoration: none;
        font-weight: 700;
        color: black;
        display: flex;
        align-items: center;
    }

    .single-glossary .glossary-categories-mobile .category-badge-black img {
        height: 32px;
        width: auto;
        margin-right: 8px;
    }

    .single-glossary .glossary-title-mobile {
        margin-bottom: 16px;
    }

    .single-glossary .glossary-title-mobile h1 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 0;
        color: #c50044;
        text-align: left;
        line-height: 1.2;
    }

    .single-glossary .glossary-title-mobile h1 span {
        font-size: 0.9em;
        font-weight: normal;
        color: #666;
    }

    .single-glossary .back-arrow:not(.mobile-header-section .back-arrow) {
        display: none !important;
    }

    .single-glossary .content-wrapper .glossary-categories-top {
        display: none !important;
    }

    .single-glossary .section.position-header {
        padding-top: 36px;
        padding-bottom: 28px;
    }
}

@media (min-width: 769px) {
    .single-glossary .mobile-header-section {
        display: none !important;
    }

    .single-glossary .glossary-categories-mobile {
        display: none !important;
    }

    .single-glossary .glossary-title-mobile {
        display: none !important;
    }
}

/* Glossary content detail typography */

.single-glossary .glossary-content-detail h2 {
    padding-bottom: 0;
}

.single-glossary .glossary-content-detail p {
    margin-bottom: 2rem;
}

.single-glossary .glossary-content-detail p:has(+ p) {
    margin-bottom: 20px;
}

.single-glossary .glossary-content-detail p:has(+ ul),
.single-glossary .glossary-content-detail p:has(+ ol) {
    margin-bottom: 1rem;
}

.single-glossary .glossary-content-detail ul,
.single-glossary .glossary-content-detail ol {
    margin-left: 1.5rem;
}

.single-glossary .glossary-content-detail .tip-wrapper {
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.single-glossary .glossary-content-detail .definition-content > h2:not(:first-child) {
    margin-top: 3rem;
}

.single-glossary .glossary-content-detail .definition-content > h3:last-of-type {
    margin-top: 4rem;
}


/* =============================================
   GLOSSARY SEARCH (page-glossary-search.php)
   Scope: body.page-template-page-glossary-search
   ============================================= */

.page-template-page-glossary-search section h1 {
    margin-bottom: 40px;
}

.page-template-page-glossary-search h1 span {
    text-transform: uppercase;
    color: black;
    font-weight: 700;
    font-size: 2rem;
    display: block;
}

@media screen and (min-width: 992px) {
    .page-template-page-glossary-search h1 span {
        font-size: 2.5rem;
    }
}

@media screen and (min-width: 1590px) {
    .page-template-page-glossary-search h1 span {
        font-size: 3.2rem;
    }
}

.page-template-page-glossary-search section.section {
    padding: 0 5% 20px;
}

.page-template-page-glossary-search section.section.glossary-overview {
    padding-top: 40px;
}

.page-template-page-glossary-search .section.position-header {
    padding-top: 40px;
}

.page-template-page-glossary-search .section.position-header,
.page-template-page-glossary-search .section.glossary-overview {
    background: #DBE6F080;
}

.page-template-page-glossary-search section.position-header h1 span {
    color: black;
}

@media (min-width: 1200px) {
    .page-template-page-glossary-search .container {
        max-width: 1560px;
        margin: 20px auto;
    }
}

.page-template-page-glossary-search .search-results-header {
    margin-bottom: 2rem;
    padding: 24px;
}

.page-template-page-glossary-search .search-results-header h2 {
    color: #c50044;
    font-size: 30px;
    line-height: 45px;
    font-weight: 600;
    margin: 0;
}

.page-template-page-glossary-search .search-query-text {
    color: #18153F;
    font-weight: 700;
}

.page-template-page-glossary-search .letter-section {
    display: flex;
    margin-bottom: 4rem;
    align-items: flex-start;
    padding: 24px;
}

.page-template-page-glossary-search .terms-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 0fr));
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .page-template-page-glossary-search .terms-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-template-page-glossary-search .terms-container {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .page-template-page-glossary-search .letter-section {
        flex-direction: column;
        padding: 0px;
    }

    .page-template-page-glossary-search .glossary-overview .container {
        padding-left: 0px;
        padding-right: 0px;
    }

    .page-template-page-glossary-search .search-results-header {
        padding: 24px 20px;
    }

    .page-template-page-glossary-search .search-results-header h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .page-template-page-glossary-search section.section.glossary-overview {
        padding-top: 0px;
    }
}

.page-template-page-glossary-search .search-loading {
    text-align: center;
    padding: 60px 20px;
}

.page-template-page-glossary-search .loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #a01441;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: glossary-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes glossary-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.page-template-page-glossary-search .no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2rem;
}

.page-template-page-glossary-search .no-results p {
    font-size: 1.2rem;
}

.page-template-page-glossary-search .alphabet-filter-wrap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 24px;
}

.page-template-page-glossary-search #algolia-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-template-page-glossary-search .pagination-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 4px;
    background-color: transparent;
    color: #18153F;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.page-template-page-glossary-search .pagination-button:focus,
.page-template-page-glossary-search .pagination-button:hover:not(:disabled) {
    border-color: #aaa #bbb #bbb;
}

.page-template-page-glossary-search .pagination-button:hover:not(:disabled) {
    background-color: #f0f0f0;
    color: #c50044;
}

.page-template-page-glossary-search .pagination-button.active {
    background-color: #a01441;
    color: white;
    font-weight: 700;
}

.page-template-page-glossary-search .pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-template-page-glossary-search .pagination-ellipsis {
    padding: 0 8px;
    color: #666;
}

.page-template-page-glossary-search .terms-container .term-item strong,
.page-template-page-glossary-search .terms-container .term-item em {
    background-color: #fff3cd;
    font-weight: 700;
}

.page-template-page-glossary-search .term-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}


/* =============================================
   GLOSSARY TAXONOMY (taxonomy-glossary_cat.php)
   Scope: body.tax-glossary_cat
   ============================================= */

.tax-glossary_cat section h1 {
    margin-bottom: 40px;
}

.tax-glossary_cat h1 span {
    text-transform: uppercase;
    color: black;
    font-weight: 700;
    font-size: 2rem;
    display: block;
}

@media screen and (min-width: 992px) {
    .tax-glossary_cat h1 span {
        font-size: 2.5rem;
    }
}

@media screen and (min-width: 1590px) {
    .tax-glossary_cat h1 span {
        font-size: 3.2rem;
    }
}

.tax-glossary_cat section.section {
    padding: 0 5% 20px;
}

.tax-glossary_cat section.section.glossary-overview {
    padding-bottom: 90px;
}

.tax-glossary_cat section.position-header .wrapper h1 {
    margin-bottom: 40px;
}

.tax-glossary_cat section.position-header .wrapper h1:has(+ .category-description) {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .tax-glossary_cat section.position-header .wrapper h1 {
        margin-bottom: 36px;
    }
}

.tax-glossary_cat .page-background {
    background: #DBE6F080;
}

.tax-glossary_cat .section.position-header {
    padding-top: 40px;
}

@media (max-width: 768px) {
    .tax-glossary_cat .section.position-header {
        padding-top: 36px;
        padding-bottom: 28px !important;
    }
}

.tax-glossary_cat section.position-header h1 {
    flex-direction: row;
    margin-bottom: 10px;
}

@media (min-width: 1590px) {
    .tax-glossary_cat section h1 .category-icon {
        margin-right: 12px;
        width: auto;
        height: 48px;
    }
}

.tax-glossary_cat img.category-icon {
    filter: brightness(0);
    height: 32px;
    width: auto;
    margin-right: 8px;
}

.tax-glossary_cat .nav-listing p {
    font-size: 24px;
    padding: 0px 8px;
    margin-bottom: 16px;
}

.tax-glossary_cat .nav-listing-desktop {
    display: block;
}

@media (max-width: 1023px) {
    .tax-glossary_cat .nav-listing-desktop {
        display: none !important;
    }
}

.tax-glossary_cat .category-icon {
    margin-right: 8px;
}

.tax-glossary_cat .alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 6px;
}

.tax-glossary_cat .alphabet-filter .letter {
    min-width: 45px;
    height: 45px;
    padding: 0 6px;
    border: 1px solid #F1F5F9 !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    background: #fff;
    box-shadow: 0px 4px 4px 0px #00000017;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tax-glossary_cat .alphabet-filter-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tax-glossary_cat .alphabet-filter-wrap .letter.disabled,
.tax-glossary_cat .alphabet-filter .letter.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tax-glossary_cat .alphabet-select-mobile {
    display: none;
    width: 100%;
    position: relative;
}

.tax-glossary_cat .alphabet-select-mobile.sticky {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
    max-width: 100%;
    padding: 10px 20px;
    background: #DBE6F080;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tax-glossary_cat .select-trigger {
    width: 100%;
    height: 56px;
    background: #fff;
    border: 2px solid #EAEAEA;
    border-radius: 50px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    color: #1D2530;
    transition: all 0.3s ease;
}

.tax-glossary_cat .select-trigger:hover {
    border-color: #a01441;
}

.tax-glossary_cat .select-trigger.active {
    border-color: #a01441;
    background: #fff;
}

.tax-glossary_cat .select-trigger.active svg {
    transform: rotate(180deg);
}

.tax-glossary_cat .select-trigger svg {
    transition: transform 0.3s ease;
}

.tax-glossary_cat .select-trigger svg path {
    stroke: #a01441;
}

.tax-glossary_cat .select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #F1F5F9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.tax-glossary_cat .select-dropdown.active {
    max-height: 500px;
    opacity: 1;
    overflow-y: auto;
}

.tax-glossary_cat .alphabet-filter-container {
    border-radius: 0;
    padding: 16px 0;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .tax-glossary_cat .alphabet-select-mobile {
        display: block;
    }

    .tax-glossary_cat .alphabet-filter-container {
        padding-top: 0px;
        padding-bottom: 0px;
        margin-bottom: 0px;
    }

    .tax-glossary_cat .section.section {
        padding-bottom: 20px;
    }
}

.tax-glossary_cat #glossary-overview {
    margin: 0 auto 3rem;
}

.tax-glossary_cat .letter-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.tax-glossary_cat .letter-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    width: 100%;
    margin-left: 24px;
}

.tax-glossary_cat .letter-heading img {
    flex-shrink: 0;
    width: auto;
    height: 60px;
}

.tax-glossary_cat .letter-heading h2 {
    color: #c50044;
    margin: 0;
    font-weight: 700;
}

.tax-glossary_cat .terms-container {
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 0fr));
    gap: 2.5rem;
}

@media (min-width: 1200px) {
    .tax-glossary_cat .container {
        max-width: 1620px;
        padding: 0;
        margin: 20px auto;
    }
}

.tax-glossary_cat .term-description {
    font-size: 13px;
    color: #1D2530;
    width: 100%;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 16px;
}

.tax-glossary_cat .term-item {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-direction: column;
    padding: 24px;
    break-inside: avoid-column;
    font-size: 14px;
    line-height: 1.5;
    max-width: 395px;
    text-decoration: none;
}

.tax-glossary_cat .col-lg-12 {
    padding: 0;
}

@media (min-width: 1200px) {
    .tax-glossary_cat .container {
        margin: 0px auto;
    }
}

@media (max-width: 1024px) {
    .tax-glossary_cat .terms-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .tax-glossary_cat .terms-container {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .tax-glossary_cat .letter-section {
        flex-direction: column;
        padding: 8px 0px;
        margin-bottom: 4.5rem;
    }

    .tax-glossary_cat .letter-section:last-child {
        margin-bottom: 0px;
    }

    .tax-glossary_cat .letter-heading {
        margin-bottom: 15px;
        margin-right: 0;
    }

    .tax-glossary_cat .sticky .select-dropdown {
        margin: 0 5% 20px;
    }

    .tax-glossary_cat #glossary-overview {
        margin-top: 30px;
    }

    .tax-glossary_cat .container {
        padding-left: 0;
        padding-right: 0;
    }
}

.tax-glossary_cat .no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.tax-glossary_cat .no-results p {
    font-size: 18px;
}

/* CTA Banner */

.tax-glossary_cat .cta-banner-section {
    padding: 30px 5%;
    margin-top: 40px;
}

.tax-glossary_cat .cta-banner {
    border-radius: 8px;
    border: 1px solid rgba(187, 27, 67, 0.20);
    background: linear-gradient(0deg, #FAFAFA 0%, #FAFAFA 100%), #FFF;
    box-shadow: 0 10px 15px 0 rgba(0, 0, 0, 0.10);
    margin: 0 auto;
}

.tax-glossary_cat .cta-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    text-align: center;
}

.tax-glossary_cat .cta-banner-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #1D2530;
    margin: 0;
}

.tax-glossary_cat .cta-banner-description {
    max-width: 672px;
    padding-bottom: 8px;
}

.tax-glossary_cat .cta-banner-description p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #7A899F;
    margin: 0;
}

.tax-glossary_cat .cta-banner-button {
    background: #A01441;
    color: #FAFAFA;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 100px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tax-glossary_cat .cta-banner-button:hover {
    background: white;
    color: #c50044;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 20, 65, 0.3);
}

@media (max-width: 768px) {
    .tax-glossary_cat .cta-banner-section {
        padding: 0px;
        margin-top: 36px;
    }

    .tax-glossary_cat .cta-banner-content {
        padding: 32px;
        gap: 16px;
    }

    .tax-glossary_cat .cta-banner-title {
        font-size: 24px;
        line-height: 32px;
    }

    .tax-glossary_cat .cta-banner-description {
        padding-bottom: 4px;
    }

    .tax-glossary_cat .cta-banner-description p {
        font-size: 16px;
        line-height: 24px;
    }

    .tax-glossary_cat .cta-banner-button {
        font-size: 13px;
        padding: 10px 24px;
        height: 40px;
    }
}

/* Highlights section */

.tax-glossary_cat .glossary-highlights-section {
    padding: 30px 5%;
}

.tax-glossary_cat .highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 0 auto;
}

.tax-glossary_cat .highlight-column {
    display: flex;
    flex-direction: column;
}

.tax-glossary_cat .popular-glossary-terms,
.tax-glossary_cat .newest-glossary-terms {
    background: #ffffff;
    border-radius: 8px;
    padding: 32px;
    height: 100%;
    border: 1px solid #3840494F;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0px 10px 15px 0px #0000001A;
}

.tax-glossary_cat .popular-glossary-terms h2,
.tax-glossary_cat .newest-glossary-terms h2 {
    line-height: 45px;
    font-weight: 700;
    color: #c50044;
    margin: 0 0 24px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .tax-glossary_cat .popular-glossary-terms h2,
    .tax-glossary_cat .newest-glossary-terms h2 {
        font-size: 20px;
        line-height: 1.2;
    }
}

.tax-glossary_cat .popular-terms-list,
.tax-glossary_cat .newest-terms-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tax-glossary_cat .popular-term-item,
.tax-glossary_cat .newest-term-item {
    background: transparent;
    border: none;
    padding: 20px 8px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 0;
}

.tax-glossary_cat .popular-term-item:last-child,
.tax-glossary_cat .newest-term-item:last-child {
    border-bottom: none;
}

.tax-glossary_cat .term-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.tax-glossary_cat .term-content > span {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tax-glossary_cat .term-content > span a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tax-glossary_cat .term-content > span a:hover {
    color: #c50044;
}

.tax-glossary_cat .term-rank {
    width: 32px;
    height: 32px;
    background: #F0F0F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 16px;
    flex-shrink: 0;
}

.tax-glossary_cat .term-arrow {
    margin-left: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tax-glossary_cat .popular-term-item .term-arrow,
.tax-glossary_cat .newest-term-item .term-arrow {
    transition: transform 0.3s ease;
}

.tax-glossary_cat .popular-term-item:hover .term-arrow,
.tax-glossary_cat .newest-term-item:hover .term-arrow {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .tax-glossary_cat .highlights-grid {
        gap: 2.5rem;
    }

    .tax-glossary_cat .popular-glossary-terms,
    .tax-glossary_cat .newest-glossary-terms {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .tax-glossary_cat .highlights-grid {
        grid-template-columns: 1fr;
    }

    .tax-glossary_cat .glossary-highlights-section {
        padding: 0px;
        margin-top: 36px;
    }

    .tax-glossary_cat .popular-glossary-terms,
    .tax-glossary_cat .newest-glossary-terms {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .tax-glossary_cat .popular-glossary-terms h3,
    .tax-glossary_cat .newest-glossary-terms h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .tax-glossary_cat .popular-term-item,
    .tax-glossary_cat .newest-term-item {
        padding: 16px 0;
    }

    .tax-glossary_cat .term-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tax-glossary_cat .term-views,
    .tax-glossary_cat .term-date {
        align-self: flex-start;
    }
}

/* About dictionary */

.tax-glossary_cat .section.about-dictionary {
    padding: 30px 5%;
}

@media (max-width: 768px) {
    .tax-glossary_cat .section.about-dictionary {
        padding: 0px;
        margin-top: 36px;
    }
}

.tax-glossary_cat .about-box {
    background: #FFFFFF;
    border: 1px solid #6F6F6F;
    box-shadow: 0px 1px 2px 0px #0000000D;
    backdrop-filter: blur(4px);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    margin: 0 auto;
}

.tax-glossary_cat .about-box h2 {
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.tax-glossary_cat .about-box p {
    color: #141414;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto;
}


/* =============================================
   GLOSSARY SIDEBAR (template-parts/glossary-sidebar.php)
   Internal scope: .glossary-nav
   Layout scope:   :is(.single-glossary, .tax-glossary_cat)
   ============================================= */

.glossary-nav {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 6px -4px #0000001A, 0px 0px 17.4px -3px #0000001A;
    overflow-y: auto;
    height: auto;
    display: flex;
    flex-direction: column;
}

.glossary-nav .current-letter {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
    color: #c50044;
}

.glossary-nav .glossary-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.glossary-nav .glossary-list li a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    font-size: 16px;
    line-height: 37px;
    transition: color 0.2s;
}

.glossary-nav .glossary-list li a:hover {
    color: #c50044;
}

.glossary-nav .glossary-list li.active a {
    color: #c50044;
    font-weight: bold;
}

.glossary-nav .alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 6px;
}

.glossary-nav .alphabet-filter .letter {
    min-width: 45px;
    height: 45px;
    padding: 0 6px;
    border: 1px solid #F1F5F9 !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    background: #fff;
    box-shadow: 0px 4px 4px 0px #00000017;
}

.glossary-nav .alphabet-filter .letter.active {
    background: #FAFAFA;
    color: #c50044;
    box-shadow: 0px 4px 4px 0px #00000017;
}

.glossary-nav .letter-results-wrap {
    margin-top: 8px;
}

.glossary-nav .alphabet-filter-container {
    border-radius: 0;
    padding: 16px 0;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.glossary-nav .category-description {
    text-align: center;
    width: fit-content;
    max-width: 1000px;
    margin: 20px auto 0;
    color: #666;
}

@media screen and (min-width: 1590px) {
    .glossary-nav .category-description p {
        margin-bottom: 30px;
    }
}

/* Sidebar layout rules within the page */

@media (min-width: 1024px) {
    :is(.single-glossary, .tax-glossary_cat) .container-main .nav-listing {
        width: 360px;
        position: sticky;
        top: 70px;
        align-self: flex-start;
        height: fit-content;
        max-height: calc(100vh - 90px);
        overflow: visible;
        display: flex;
        flex-direction: column;
    }

    :is(.single-glossary, .tax-glossary_cat) .container-main .nav-listing p {
        flex-shrink: 0;
    }

    :is(.single-glossary, .tax-glossary_cat) .container-main .nav-listing .letter-results-wrap {
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        min-height: 0;
    }

    :is(.single-glossary, .tax-glossary_cat) .container-main {
        display: flex;
        gap: 30px;
        align-items: flex-start;
    }

    .tax-glossary_cat #glossary-overview {
        flex: 1;
        min-width: 0;
    }
}


/* =============================================
   TIP COMPONENTS (template-parts/tip-*.php)
   Shared:   .tip-wrapper
   Simple:   .tip-wrapper.tip-simple
   Prakticky: .tip-wrapper.tip-prakticky
   ============================================= */

.tip-wrapper {
    background-color: white;
    border-radius: 5px;
    width: 100%;
    padding: 30px 35px;
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-bottom: 50px;
}

.tip-wrapper .tip-icon {
    margin-bottom: 13px;
}

/* Simple tip icon (lightbulb / recommend) */
.tip-wrapper.tip-simple .tip-icon img {
    display: block;
    width: 50px;
    height: 55px;
    left: -7px;
    top: -7px;
    position: relative;
}

/* Prakticky tip icon (checkmark) */
.tip-wrapper.tip-prakticky .tip-icon img {
    display: block;
    width: 50px;
    height: 50px;
    left: 0px;
    top: 0px;
    position: relative;
}

.tip-wrapper .tip-container {
    display: flex;
    flex-direction: column;
    gap: 20.01px;
    width: 100%;
}

.tip-wrapper .tip-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 28.6px;
    color: #111111;
}

.tip-wrapper .tip-content {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #141414;
    text-align: left;
}

.tip-wrapper .tip-content p {
    margin: 0;
    line-height: 24px;
}
