.heading-xxlarge {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

.text-size-examples_custom.text-color-helpful-gray {
    color: #7e838f;
    font-size: 1rem;
}

.margin-bottom-large {
    margin-bottom: 3rem;
}

/* Base styles for larger screens */
form.hero-search {
    width: 100%;
    max-width: 600px;
    margin: auto;
    margin-bottom: 40px;
    text-align: center;
}

form.hero-search input {
    height: 60px;
    border: 1px solid;
    width: 100%;
    border-radius: 50px;
    padding: 0 25px;
    border-color: hsla(180, 51.4%, 51.6%, 1);
    max-width: 100%;
}

#ms-search-field {
    height: 3.75rem;
    background-color: #fff;
    background-image: url(https://assets-global.website-files.com/61dc0796f359b6145bc06ea6/635a5f90cf3236a64d5e21ae_61c1b96da8240efef26f0533_search-black.svg);
    background-position: 12px;
    background-repeat: no-repeat;
    background-size: 2.25rem;
    border: 1px solid #b5bbc7;
    border-radius: 20rem;
    margin-bottom: 0;
    font-size: 1rem;
    transition: border .3s;
    max-width: calc(100% - 50px);
    padding-left: 50px;
    padding-right: 0;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {}

.encyclopedia-alphabets.alphabets-style-default {
    margin-bottom: 48px;
    border-bottom: 1px solid #E5E5E5;
}

.encyclopedia-alphabets.alphabets-style-box {
    border-radius: 4px;
    background: #FFF;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.25);
    margin-bottom: 48px;
    /* min-height: 54px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* max-width: calc(100% - 40px); */
}

.betterdocs-encyclopedia-wrapper {
    background: #F9FAFB;
    padding: 20px;
    border-radius: 15px;
}

.encyclopedia-alphabets {
    padding-top: 15px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 15px;
}

.encyclopedia-alphabets.alphabets-style-box .encyclopedia-alphabet-list {
    width: 100%;
}

.encyclopedia-single-layout .encyclopedia-alphabets {
    max-width: 1200px;
    margin-left: auto!important;
    margin-right: auto!important;
}

ul.encyclopedia-alphabet-list {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(25px, 1fr) );
    grid-gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    align-items: center;

}

.encyclopedia-single-layout .encyclopedia-alphabets ul li.alphabet-list-item{
    margin: auto;
}

.encyclopedia-single-layout .encyclopedia-alphabet-list {

    grid-column-start: 3;
    grid-column-end: 11;
}

ul.encyclopedia-alphabet-list a {
    text-decoration: none;

    color: #667085;
    text-align: center;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

li.alphabet-list-item.active a {

    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

li.alphabet-list-item.active {
    border-radius: 4px;
    background: #FFF;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.25);
    margin: auto;
}

.encyclopedia-alphabets.alphabets-style-box li.alphabet-list-item.active {
    border-radius: 4px;
    background: #F5F5F5;
    box-shadow: none;
    margin: auto;
}

.alphabet-list-item a.letter-has-no-docs {
    pointer-events: none;
    color: #D0D5DD;
}

ul.encyclopedia-alphabet-list {
    padding: 0;
}

.encyclopedia-alphabet-list.sticky {
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    left: 0;
    right: 0;
    transform: translateZ(0);
}

/* iOS Safari specific fixes for a fixed sidebar */
@supports (-webkit-overflow-scrolling: touch) {
    .encyclopedia-alphabet-list.sticky {
        position: fixed;
        position: -webkit-fixed;
        /* Old syntax for iOS 5 and earlier */
        top: 0;
        z-index: 999;
    }
}

.encyclopedia-alphabet-list-item {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    /* padding: .5rem 1rem .25rem; */
    cursor: pointer;
    justify-content: center;
    /* width: 100%; */
    align-items: center;
}

.encyclopedia-alphabet-list-item:hover {
    background-color: #fff;
}

.w-dyn-list {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

.layout-card .section-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 1.875rem;
    grid-row-gap: 1.875rem;
    grid-template-rows: auto auto;
    margin-bottom: 1.875rem;
}




.letter-start.alphabet-big-view {
    font-size: 12.5rem;
    line-height: normal;
    text-align: center;
    border-left: 8px solid #667085;
    color: #667085;
    grid-column-start: 1;
    font-family: 'Inter', sans-serif;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.letter-start.alphabet-big-round-view {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #FFF;
    min-height: 240px;
}


.letter-start.alphabet-big-round-view span {
    color: var(--Gray-500, #667085);
    font-family: 'DM Sans', sans-serif;
    font-size: 96px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    border-radius: 16px;
    background: #F8F8F8;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-start.alphabet-list-view {
    display: flex;
    height: 58px;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
    border-left: 2px solid #667085;
    background: #fff;
    padding-left: 30px;
    margin-bottom: 30px;

    color: #667085;
    font-family: "Inter";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%;
    box-shadow: 0px 0px .5px 0px rgb(0 37 119 / 20%);
    border-radius: 4px;
    /* 26.4px */
}

.encyclopedia-item {
    position: relative;
    transition: 0.3s;
    border-radius: 7px;
    min-height: 240px;
    background-color: #fff;
    box-shadow: 0px 0px .5px 0px rgb(0 37 119 / 20%);
}

.encyclopedia-item.explore-more-docs {
    display: flex;
    align-items: center;
    justify-content: center;
}

.encyclopedia-item.explore-more-docs a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #667085;
    text-align: center;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    /* 25.2px */
}

.encyclopedia-item.explore-more-docs a span.arrow-icon {
    transform: rotate(-45deg);
    font-weight: bold;
}

.layout-doc-list .encyclopedia-item.explore-more-docs a {
    text-decoration: none;
    z-index: 0;
    color: #667085;
    padding: 24px 32px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.encyclopedia-item:hover {
    box-shadow: 0 4px 30px 4px rgb(0 37 119 / 20%);
    transform: scale(1.015);
}

.encyclopedia-item:hover .tools-card_arrow {
    margin-left: 1.25%;
}

.tools-card {
    flex-direction: column;
    padding: 24px 32px;
    display: flex;
    position: relative;
    height: 100%;
    justify-content: space-between;
    max-height: calc(100% - 3rem);
    text-decoration: none;
    z-index: 0;
}

.elementor-widget-container .tools-card {
    max-height: 100%;
}

.betterdocs-encyclopedia .heading-small {
    color: #344054;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.75rem;
    text-decoration: none;
    margin: 0;
}

.betterdocs-encyclopedia .text-size-small {
    color: #667085;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.betterdocs-encyclopedia .text-style-link {
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;

    color: var(--Gray-500, #667085);
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    /* 22.4px */
}

.betterdocs-encyclopedia a.tools-card__link-block.w-inline-block {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;

}

.empty-posts-message {
    max-width: 700px;
    margin: auto;
    margin-bottom: 50px;
}

.empty-posts-message p {
    color: #7e838f;
}


.active {
    background-color: #fff;
}


/* preloader  */

.ms-flow {
    width: 70px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 150px auto;
}

.ms-flow-dot {
    width: 12px;
    height: 12px;
    background-color: #667085;
    border-radius: 50%;
    animation: ms-flow 1.4s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.ms-flow-dot:nth-child(1) {
    animation-delay: -0.3s;
}

.ms-flow-dot:nth-child(2) {
    animation-delay: -0.15s;
}

@keyframes ms-flow {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.3);
    }

    100% {
        transform: scale(1);
    }
}

.loadmoreBtn-container {
    text-align: center;
}

.encyclopedia-loadmore-btn {
    background: #475467;
    color: #fff;
    margin-left: auto;
    min-height: 54px;
    padding: 2px 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    outline: none;
    box-sizing: none;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.42;
    cursor: pointer;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}



/* Tooltip css */


.layout-doc-list .encyclopedia-item {
    min-height: auto;
}


.layout-doc-list .tools-card>a {
    text-decoration: none;
    z-index: 0;
    color: #EAECF0;
    padding: 24px 32px;
}

.layout-doc-list .tools-card a {
    color: #EAECF0;
}

.layout-doc-list .heading-small.tools-card__title-text {
    z-index: 1;
    line-height: 2rem;
    position: relative;
    margin: 0;

    color: #344054;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-style: normal;
    line-height: 120%;
}

.layout-doc-list .encyclopedia-item:hover .tools-card_arrow {
    margin: 0;
}

.text-style-link:hover .tools-card_arrow {
    margin-left: 1.25%;
}

.layout-doc-list .tools-card {
    position: relative;
    padding: 0;
}

.layout-doc-list .encyclopedia-item {
    position: relative;
}

.layout-doc-list .top-tools-card {
    position: absolute;
    background-color: #fff;
    padding: 20px 25px;
    z-index: 999;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-top: 4px solid #12B76A;
    background: #000;
    margin: 0;
    width: calc(100% - 100px);
    top: -50px;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
    margin-top: -8px;
}


.layout-doc-list .top-tools-card::before {
    content: "";
    position: absolute;
    bottom: -9px;
    /* Positioned at the bottom of the tooltip */
    left: 50%;
    margin-left: -10px;
    /* Adjust the margin to center the arrow */
    border-width: 10px 10px 0 10px;
    /* Adjusted to create an upward triangle */
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}


.layout-doc-list .encyclopedia-item:hover .top-tools-card {
    visibility: visible;
    opacity: 1;
    margin-top: 0;
    z-index: 1000;
}

.layout-doc-list .heading-small.tools-card__title-text {
    color: var(--Gray-600, #475467);
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
}

.layout-doc-list p.text-size-small.tools-card__sample-text.tooltip-content {
    margin: 0;
    color: #D0D5DD;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 10px;
}

.layout-doc-list.layout-card .section-item {
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 48px;
    grid-row-gap: 24px;
}


.layout-doc-list .encyclopedia-item:hover {
    box-shadow: none;
    transform: scale(1);
}


.betterdocs-fluid-wrapper.betterdocs-single-layout-2.encyclopedia-single-layout .betterdocs-content-wrapper .betterdocs-content-area {
    grid-column-start: 3;
}

.betterdocs-wrapper.betterdocs-single-wrapper.betterdocs-single-layout-2 .betterdocs-content-wrapper.taxonomy-content-wrapper  #betterdocs-single-main{
    padding: 0!important;
}

@media screen and (max-width: 991px) {
    .layout-card  .section-item {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 767px) {
    .layout-card  .section-item {
        grid-template-columns: 1fr;
    }

    .layout-doc-list.layout-card .section-item{
        grid-template-columns: 1fr;
    }
}


/* glossary suggestions style */
#suggestions-container {
    position: absolute;
    top: 100%; /* Position below the input field */
    left: 0;
    background-color: #333;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 999; /* Ensure it's above other content */
    max-width: 200px;
    padding: 20px;
    border-radius: 5px;
    padding: 10px;

}

.suggestion-item {
    padding: 8px 15px;
    cursor: pointer;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: .3s;
}

.suggestion-item:hover {
    color: #333;
    background-color: #fff;
    border-radius: 5px;
}