/* Header & Hero Section Styles */
header {
    border-bottom: 1px solid rgba(23, 48, 122, 0.05);
}

.hero {
    background: #fff;
    padding: 150px 0 !important;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgb(23 48 122 / 5%);
}

.hero h1 {
    font-size: 40px;
    line-height: 1.35;
    color: rgba(24, 42, 81, 1);
    max-width: 870px;
    margin: 90px auto 0;
    z-index: 1;
    position: relative;
}

.hero .breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    z-index: 1;
    position: relative;
}

.hero .breadcrumbs a, .hero .breadcrumbs span {
    color: rgb(24 42 81 / 70%);
    position: relative;
    padding-right: 27px;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
}

.hero .breadcrumbs a::before {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background: url("../images/arrow-icon.svg") no-repeat center center;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

.svg-element {
    position: absolute;
    bottom: 0;
    z-index: 0;
}

.svg-element.left-bg-element {
    left: 0;
}

.svg-element.right-bg-element {
    right: 0;
}

/* Article Styles */
article.single-article {
    position: relative;
    margin: 30px 0 50px;
}

.content-wrapper {
    display: flex;
    gap: 34px;
}

.content-wrapper.no-toc .single-content,
.single:has(.content-wrapper.no-toc) .content {
    max-width: 870px;
    margin: 0 auto;
    border: unset;
}

.content-wrapper.no-toc .single-content {
    padding: 50px 60px 120px;
}

.sidebar,
.faq_related .empty-content {
    flex: 0 1 250px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    padding-top: 20px;
    padding-bottom: 40px;
}

.sidebar {
    border-bottom: 1px solid rgb(23 48 122 / 8%);
}

.content-wrapper.no-toc .sidebar,
.single:has(.content-wrapper.no-toc) .empty-content {
    display: none;
}


.toc h2 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: rgba(24, 42, 81, 1);
    margin-bottom: 20px;
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.toc li {
    position: relative;
}

.toc a {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 12px;
    text-decoration: none;
    color: rgb(24 42 81 / 1);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    transition: all 0.3s ease-in-out;
    padding-bottom: 20px;
}

.toc a:hover,
.toc li.active a {
    color: rgb(44 92 237 / 1);
}

.toc li a::before, .toc li a::after {
    content: '';
}

.toc li a::before {
    width: 10px;
    height: 10px;
    aspect-ratio: 1;
    border: 1px solid rgb(24 42 81 / 0.5);
    border-radius: 50%;
    background: #ffffff;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    z-index: 1;
}

.toc li a::after {
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        #d1d5e0,
        #d1d5e0 4px,
        transparent 4px,
        transparent 8px
    );
    position: absolute;
    left: 4px;
    top: 10px;
}

.toc li.active a::before {
    background: rgb(44 92 237 / 1);
    border-color: rgb(44 92 237 / 1);
}

.toc li:last-child a {
    margin-bottom: 0;
    padding: 0;
}

.toc li:last-child a::after {
    display: none;
}

.single-content,
.single .content {
    flex: 1;
    max-width: 880px;
    line-height: 1.8;
    padding: 50px 24px 120px 60px;
    color: rgb(24 42 81 / 1);
}

.single-content {
    border-left: 1px solid rgba(23, 48, 122, 0.05);
    padding: 50px 24px 120px 60px;
}

.single .content {
    padding: 0 24px 0 60px;
}

.single-content ol,
.single-content ul,
.single-content li {
    list-style-position: inside;
}

.single-content ul li ul {
    padding-left: 23px;
}

.single-content h2 {
    margin-block: 50px 20px;
    font-size: 22px;
    line-height: 145%;
    font-weight: 600;
    color: rgba(24, 42, 81, 1);
}

.single-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.625;
    margin-bottom: 24px;
    color: rgb(24 42 81 / 1);
    overflow-wrap: anywhere;
}

.single-content img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
}

.single-content a {
    color: rgba(44, 92, 237, 1);
    overflow-wrap: anywhere;
}

.single-content pre,
.single-content code {
    background: rgba(235, 241, 255, 1);
    border: 1px solid rgba(27, 20, 100, 0.1);
    border-radius: 10px;
    margin: 10px 0 30px;
    padding: 18px 30px;
    position: relative;
}

.single-content pre *,
.single-content code * {
    color: rgba(24, 42, 81, 1);
    font-size: 12px;
    line-height: 1.6;
    font-weight: 400;
}

.copy-code-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
    background: rgba(23, 48, 122, 0.11);
    border-top-left-radius: 6px;
    padding: 3px;
    cursor: pointer;
    width: 90px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: unset;
    transition: all 0.3s ease;
}

.copy-code-btn span {
    font-size: 12px;
}

.sidebar .toc a {
    transition: all 0.3s ease;
}

.single .faq,
.single .faq .container {
    padding-block: 0;
}

.single .faq {
    max-width: unset;
}

.single .faq h2 {
    font-size: 20px;
}

@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        top: 120px;
    }
}

@media (max-width: 1024px) {
    .hero {
        overflow: hidden;
    }

    article.single-article {
        margin: 0 0 60px;
    }

    .content-wrapper {
        padding: 0;
        display: block;
    }

    .content-wrapper.no-toc .single-content {
        padding: 40px 20px;
    }

    .single-content,
    .single .content {
        max-width: 100%;
        border: unset;
        padding: 0 20px;
    }

    .sidebar {
        flex: 1;
        position: sticky;
        top: 85px;
        left: 0;
        border: unset;
        padding: 0;
        margin-bottom: 40px;
        background: #fff;
        z-index: 9;
    }

    .sidebar .toc {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .sidebar .toc > h2,
    .sidebar .toc li a::before {
        display: none;
    }

    .sidebar .toc a {
        display: block;
        width: max-content;
        white-space: nowrap;
        padding: 0 62px 0 0;
    }

    .sidebar .toc ul {
        display: flex;
        padding: 20px 0;
        margin: 0;
        scroll-padding-left: 50%;
        scroll-snap-type: x mandatory;
    }

    .sidebar .toc li {
        scroll-snap-align: center;
        list-style: none;
        padding: 0 20px;
    }

    .toc li a::after {
        width: 46px;
        height: 1px;
        background: repeating-linear-gradient(to right, #d1d5e0, #d1d5e0 4px, transparent 4px, transparent 8px);
        position: absolute;
        left: unset;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
    }

    .svg-element.left-bg-element {
        width: 20%;
        height: auto;
    }

    .svg-element.right-bg-element {
        right: -80px;
        height: 40%;
        width: auto;
        bottom: unset;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 !important;
    }

    .hero .container {
        max-width: 100%;
    }

    .hero .breadcrumbs {
        flex-wrap: wrap;
    }

    .hero .breadcrumbs span {
        text-align: left;
    }

    .single-content pre *:not(.copy-code-btn) {
        text-wrap: wrap;
    }

    .hero h1 {
        font-size: 27px;
        line-height: 40px;
        font-weight: 500;
        margin-top: 40px;
    }

    .content-wrapper {
        max-width: 100%;
    }

    .copy-code-btn {
        width: auto;
    }

    .svg-element.right-bg-element {
        right: -60px;
        height: 30%;
    }

    .sidebar {
        top: 65px;
    }
}