@font-face {
    font-family: 'Alexandria';
    src: url('../fonts/alexandria_font.woff2') format('woff2');
    font-weight: 100 300 400 600 700 800 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #000000;
    --accent-color: #F49D34;
    --text-color: #666;
    --bg-color: #fff;
    --border-color: #e0e0e0;
    --font-family: 'Alexandria', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--primary-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 34px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    color: var(--primary-color);
    font-family: var(--font-family);
}

h2 {
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    color: var(--primary-color);
    font-family: var(--font-family);
}

h3 {
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    color: var(--primary-color);
    font-family: var(--font-family);
}

p {
    color: #3D3D3D;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    font-family: var(--font-family);
}

/* Breadcrumb */
.glossary-inner-breadcrumb {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.breadcrumb-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--accent-color);
}

.breadcrumb-separator {
    color: var(--text-color);
}

.breadcrumb-current {
    color: var(--primary-color);
    font-weight: 500;
}

/* Main Content */
.glossary-inner-content {
    padding: 40px 0 80px;
}

/* Or target the wrapper specifically on this page */
body.page-template-template-glossary-inner .wrapper {
    overflow-x: visible !important;
}

body.page-template-template-glossary-inner .navbar.bootsnav.navbar-fixed ul li a {
    color: #000 !important;
}

.glossay-content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    position: relative;
    margin-top: 60px;
}

/* TOC Sidebar */
.toc-sidebar {
    position: sticky;
    top: 118px;
    align-self: start;
    height: fit-content;
}

.toc-title {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    text-transform: capitalize;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-link {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
    line-height: 1.5;
}

.toc-link:hover {
    color: var(--primary-color);
}

.toc-link.active {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    font-weight: 500;
}

.toc-sub-link {
    padding-left: 24px;
    font-size: 13px;
}

/* Article */
.glossary-article {
    max-width: 800px;
}

.glossary-article li{
    font-size: 16px !important;
}

.article-title {
    margin: 0 0 40px 0;
}

.article-section {
    margin-bottom: 50px;
}

.section-heading-2 {
    margin: 0 0 20px 0;
    scroll-margin-top: 100px;
}

.subsection {
    margin-bottom: 30px;
}

.subsection-heading {
    margin: 0 0 12px 0;
    scroll-margin-top: 100px;
}

.section-text {
    margin: 0 0 16px 0;
}

.section-text:last-child {
    margin-bottom: 0;
}

/* Related Terms */
.related-terms-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-title {
    font-family: var(--font-family);
    font-size: 44px;
    font-weight: 400;
    line-height: 60px;
    color: var(--primary-color);
    margin: 0 0 60px 0;
}

.related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #F49D34;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    color: #F49D34;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-tag:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .glossay-content-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .toc-sidebar {
        position: relative;
        top: 0;
        order: -1;
        padding: 20px;
        background-color: #F9F9F9;
        border-radius: 8px;
    }

    .toc-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .toc-link {
        padding-left: 8px;
        border-left: none;
    }

    .toc-sub-link {
        padding-left: 8px;
    }
}

@media (max-width: 768px) {
    .glossary-inner-breadcrumb {
        padding: 15px 0;
        /* margin-top: 40px; */
    }

    .section-text {
        font-size: 15px;
    }

    .toc-nav {
        grid-template-columns: 1fr;
    }

    .related-tags {
        gap: 8px;
    }

    .related-tag {
        font-size: 13px;
        padding: 6px 12px;
    }

    .related-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .related-terms-section {
        margin-top: 0px;
        padding-top: 20px;
    }
}