/* ======================================================
   FAQ LIBRARY HERO
====================================================== */
.faq-library-hero {
    position: relative;
    isolation: isolate;
    min-height: 355px;
    padding:
        150px
        var(--page-padding, 24px)
        100px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
}
/* ======================================================
   BACKGROUND GLOW
====================================================== */
.faq-library-hero::before,
.faq-library-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}
/* LEFT RED GLOW */
.faq-library-hero::before {
    width: 650px;
    height: 560px;
    left: -300px;
    top: -250px;
    background:
        color-mix(
            in srgb,
            var(--primary) 18%,
            transparent
        );
    filter: blur(115px);
    opacity: .9;
}
/* RIGHT RED GLOW */
.faq-library-hero::after {
    width: 650px;
    height: 560px;
    right: -300px;
    top: -230px;
    background:
        color-mix(
            in srgb,
            var(--primary) 18%,
            transparent
        );
    filter: blur(115px);
    opacity: .9;
}
/* ======================================================
   CONTAINER
====================================================== */
.faq-library-hero__container {
    position: relative;
    width: min(
        100%,
        var(--container, 1100px)
    );
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/* ======================================================
   EYEBROW
====================================================== */
.faq-library-hero__eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 8px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .29em;
    text-transform: uppercase;
}
/* ======================================================
   TITLE
====================================================== */
.faq-library-hero__title {
    max-width: 950px;
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .18em;
    color: var(--text);
    font-size:
        clamp(
            48px,
            5.15vw,
            68px
        );
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.055em;
}
.faq-library-hero__accent {
    color: var(--primary);
}
/* ======================================================
   DESCRIPTION
====================================================== */
.faq-library-hero__description {
    max-width: 670px;
    margin:
        18px auto
        0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
}
/* ======================================================
   SEARCH BOX
====================================================== */
.faq-library-search {
    width: min(100%, 590px);
    min-height: 47px;
    margin-top: 25px;
    padding:
        5px
        6px
        5px
        16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border:
        1px solid
        color-mix(
            in srgb,
            var(--border) 75%,
            transparent
        );
    border-radius: 13px;
    background:
        color-mix(
            in srgb,
            var(--surface) 95%,
            transparent
        );
    box-shadow:
        0 12px 27px
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        border-color .25s var(--ease),
        box-shadow .25s var(--ease),
        background .25s var(--ease);
}
.faq-library-search:focus-within {
    border-color:
        color-mix(
            in srgb,
            var(--primary) 30%,
            var(--border)
        );
    box-shadow:
        0 15px 32px
        color-mix(
            in srgb,
            var(--primary) 17%,
            transparent
        );
}
/* ======================================================
   SEARCH FIELD
====================================================== */
.faq-library-search__field {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-library-search__icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--text-secondary);
    opacity: .8;
}
.faq-library-search__field input {
    width: 100%;
    min-width: 0;
    height: 35px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 11px;
    line-height: 1;
}
.faq-library-search__field input::placeholder {
    color: var(--text-secondary);
    opacity: .68;
}
.faq-library-search__field
input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}
/* ======================================================
   SEARCH BUTTON
====================================================== */
.faq-library-search__button {
    min-width: 70px;
    height: 35px;
    padding:
        0 17px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    outline: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 7px 17px
        color-mix(
            in srgb,
            var(--primary) 33%,
            transparent
        );
    transition:
        transform .25s var(--ease),
        box-shadow .25s var(--ease),
        filter .25s var(--ease);
}
.faq-library-search__button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 10px 22px
        color-mix(
            in srgb,
            var(--primary) 40%,
            transparent
        );
}
.faq-library-search__button:active {
    transform: translateY(0);
}
/* ======================================================
   DARK MODE
====================================================== */
html[data-theme="dark"]
.faq-library-hero::before,
html[data-theme="dark"]
.faq-library-hero::after {
    opacity: .38;
}
html[data-theme="dark"]
.faq-library-search {
    background:
        color-mix(
            in srgb,
            var(--surface) 90%,
            transparent
        );
    box-shadow:
        0 14px 30px
        rgba(0, 0, 0, .25);
}
html[data-theme="dark"]
.faq-library-search:focus-within {
    box-shadow:
        0 16px 36px
        rgba(0, 0, 0, .32);
}
/* ======================================================
   RTL
====================================================== */
html[dir="rtl"]
.faq-library-hero__eyebrow {
    letter-spacing: .06em;
}
html[dir="rtl"]
.faq-library-hero__title {
    letter-spacing: -.02em;
}
html[dir="rtl"]
.faq-library-search {
    padding:
        5px
        16px
        5px
        6px;
}
html[dir="rtl"]
.faq-library-search__field input {
    text-align: right;
}
/* ======================================================
   TABLET
====================================================== */
@media (max-width: 900px) {
    .faq-library-hero {
        min-height: 350px;
    }
    .faq-library-hero__title {
        max-width: 780px;
        font-size:
            clamp(
                44px,
                7vw,
                60px
            );
    }
}
/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 650px) {
    .faq-library-hero {
        min-height: auto;
        padding:
            128px
            var(--page-padding, 18px)
            60px;
    }
    .faq-library-hero::before {
        width: 430px;
        height: 430px;
        left: -270px;
        top: -160px;
        filter: blur(85px);
    }
    .faq-library-hero::after {
        width: 430px;
        height: 430px;
        right: -270px;
        top: -150px;
        filter: blur(85px);
    }
    .faq-library-hero__eyebrow {
        margin-bottom: 16px;
        font-size: 7px;
    }
    .faq-library-hero__title {
        max-width: 520px;
        display: block;
        font-size:
            clamp(
                38px,
                11vw,
                49px
            );
        line-height: 1.03;
    }
    .faq-library-hero__title > span {
        display: inline;
    }
    .faq-library-hero__description {
        max-width: 470px;
        margin-top: 18px;
        font-size: 13px;
        line-height: 1.6;
    }
    .faq-library-search {
        width: 100%;
        margin-top: 24px;
        padding:
            5px
            5px
            5px
            13px;
        border-radius: 12px;
    }
    html[dir="rtl"]
    .faq-library-search {
        padding:
            5px
            13px
            5px
            5px;
    }
    .faq-library-search__field {
        gap: 8px;
    }
    .faq-library-search__field input {
        font-size: 10px;
    }
    .faq-library-search__button {
        min-width: 67px;
        padding-inline: 13px;
        font-size: 9px;
    }
}
/* ======================================================
   VERY SMALL MOBILE
====================================================== */
@media (max-width: 380px) {
    .faq-library-hero__title {
        font-size: 36px;
    }
    .faq-library-search__icon {
        display: none;
    }
}
/* ======================================================
   REDUCED MOTION
====================================================== */
@media (prefers-reduced-motion: reduce) {
    .faq-library-search,
    .faq-library-search__button {
        transition: none;
    }
}
/* ======================================================
   FAQ QUESTIONS SECTION
====================================================== */
.faq-questions {
    position: relative;
    isolation: isolate;
    padding:
        15px
        var(--page-padding, 24px)
        85px;
    overflow: hidden;
    /* background: var(--bg); */
    color: var(--text);
}
/* subtle background glow */
.faq-questions::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 750px;
    height: 520px;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    /* background:
        color-mix(
            in srgb,
            var(--primary) 5%,
            transparent
        ); */
    filter: blur(130px);
    pointer-events: none;
}
/* ======================================================
   CONTAINER
====================================================== */
.faq-questions__container {
    width: min(
        100%,
        var(--container, 1100px)
    );
    margin-inline: auto;
}
/* ======================================================
   FILTERS
====================================================== */
.faq-questions__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: 920px;
    margin-bottom: 58px;
}
.faq-filter {
    min-height: 34px;
    padding:
        0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border:
        1px solid
        color-mix(
            in srgb,
            var(--border) 80%,
            transparent
        );
    border-radius: 9px;
    outline: none;
    background: var(--surface);
    color: var(--text-secondary);
    font: inherit;
    font-size: 9px;
    line-height: 1;
    font-weight: 550;
    cursor: pointer;
    box-shadow:
        0 5px 14px
        rgba(0, 0, 0, .035);
    transition:
        background .25s var(--ease),
        color .25s var(--ease),
        border-color .25s var(--ease),
        transform .25s var(--ease),
        box-shadow .25s var(--ease);
}
.faq-filter small {
    color: inherit;
    font-size: 6px;
    opacity: .62;
}
.faq-filter:hover {
    transform: translateY(-1px);
    color: var(--primary);
    border-color:
        color-mix(
            in srgb,
            var(--primary) 25%,
            var(--border)
        );
}
.faq-filter.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow:
        0 8px 18px
        color-mix(
            in srgb,
            var(--primary) 30%,
            transparent
        );
}
/* ======================================================
   TOOLBAR
====================================================== */
.faq-questions__toolbar {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
/* count */
.faq-questions__count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-size: 8px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.faq-questions__count small {
    font-size: 7px;
    letter-spacing: .08em;
    opacity: .65;
}
/* ======================================================
   SORT
====================================================== */
.faq-questions__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-questions__sort label {
    color: var(--text-secondary);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: .2em;
}
.faq-questions__select {
    position: relative;
}
.faq-questions__select select {
    width: 132px;
    height: 34px;
    padding:
        0
        32px
        0
        13px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: var(--surface);
    color: var(--text-secondary);
    font: inherit;
    font-size: 9px;
    cursor: pointer;
}
.faq-questions__select svg {
    position: absolute;
    width: 13px;
    height: 13px;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}
/* ======================================================
   FAQ LIST
====================================================== */
.faq-questions__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* ======================================================
   FAQ ITEM
====================================================== */
.faq-library-item {
    position: relative;
    overflow: hidden;
    border:
        1px solid
        color-mix(
            in srgb,
            var(--border) 80%,
            transparent
        );
    border-radius: 16px;
    background: var(--surface);
    box-shadow:
        0 9px 23px
        rgba(0, 0, 0, .04);
    transition:
        border-color .3s var(--ease),
        box-shadow .3s var(--ease),
        transform .3s var(--ease);
}
.faq-library-item:hover {
    border-color:
        color-mix(
            in srgb,
            var(--primary) 18%,
            var(--border)
        );
}
.faq-library-item[hidden] {
    display: none !important;
}
/* ======================================================
   QUESTION BUTTON
====================================================== */
.faq-library-item__question {
    position: relative;
    width: 100%;
    min-height: 60px;
    padding:
        0
        23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    text-align: left;
    font: inherit;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 650;
    cursor: pointer;
}
/* ======================================================
   + / -
====================================================== */
.faq-library-item__symbol {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: var(--text-secondary);
}
.faq-library-item__symbol span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    background: currentColor;
    transform:
        translate(-50%, -50%);
    transition:
        transform .3s var(--ease),
        opacity .3s var(--ease);
}
/* horizontal */
.faq-library-item__symbol span:first-child {
    width: 9px;
    height: 1px;
}
/* vertical */
.faq-library-item__symbol span:last-child {
    width: 1px;
    height: 9px;
}
/* opened = minus */
.faq-library-item.is-open
.faq-library-item__symbol span:last-child {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
    opacity: 0;
}
/* ======================================================
   ANSWER
====================================================== */
.faq-library-item__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition:
        grid-template-rows .35s var(--ease);
}
.faq-library-item.is-open
.faq-library-item__answer {
    grid-template-rows: 1fr;
}
.faq-library-item__answer-inner {
    min-height: 0;
    overflow: hidden;
}
.faq-library-item__answer-inner::before {
    content: "";
    display: block;
    height: 1px;
    margin-inline: 23px;
    background:
        color-mix(
            in srgb,
            var(--border) 85%,
            transparent
        );
}
.faq-library-item__answer p {
    max-width: 900px;
    margin: 0;
    padding:
        17px
        23px
        23px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.65;
    font-weight: 400;
}
/* ======================================================
   OPEN ITEM
====================================================== */
.faq-library-item.is-open {
    box-shadow:
        0 13px 28px
        rgba(0, 0, 0, .055);
}
/* ======================================================
   EMPTY STATE
====================================================== */
.faq-library-empty {
    margin-top: 10px;
    padding: 45px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    text-align: center;
}
.faq-library-empty[hidden] {
    display: none;
}
.faq-library-empty strong {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 16px;
}
.faq-library-empty span {
    color: var(--text-secondary);
    font-size: 11px;
}
/* ======================================================
   ASK EXPERT
====================================================== */
.faq-expert {
    margin-top: 22px;
    min-height: 76px;
    padding:
        15px
        18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border:
        1px solid
        color-mix(
            in srgb,
            var(--border) 80%,
            transparent
        );
    border-radius: 16px;
    background: var(--surface);
    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, .045);
}
/* content */
.faq-expert__content {
    min-width: 0;
}
.faq-expert__content strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}
.faq-expert__content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.5;
}
/* ======================================================
   ASK EXPERT BUTTON
====================================================== */
.faq-expert__button {
    min-width: 150px;
    min-height: 42px;
    padding:
        0
        17px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 10px;
    font-weight: 650;
    box-shadow:
        0 6px 15px
        rgba(0, 0, 0, .035);
    transition:
        transform .25s var(--ease),
        border-color .25s var(--ease),
        box-shadow .25s var(--ease);
}
.faq-expert__button:hover {
    transform: translateY(-2px);
    border-color:
        color-mix(
            in srgb,
            #25d366 35%,
            var(--border)
        );
    box-shadow:
        0 10px 22px
        rgba(0, 0, 0, .07);
}
.faq-expert__whatsapp {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #25d366;
}
.faq-expert__whatsapp svg {
    width: 100%;
    height: 100%;
}
/* ======================================================
   DARK MODE
====================================================== */
html[data-theme="dark"]
.faq-library-item,
html[data-theme="dark"]
.faq-expert {
    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, .2);
}
html[data-theme="dark"]
.faq-library-item.is-open {
    box-shadow:
        0 15px 32px
        rgba(0, 0, 0, .27);
}
html[data-theme="dark"]
.faq-filter {
    box-shadow:
        0 5px 14px
        rgba(0, 0, 0, .16);
}
/* ======================================================
   RTL
====================================================== */
html[dir="rtl"]
.faq-questions__count,
html[dir="rtl"]
.faq-questions__sort label {
    letter-spacing: .04em;
}
html[dir="rtl"]
.faq-library-item__question {
    text-align: right;
}
html[dir="rtl"]
.faq-questions__select select {
    padding:
        0
        13px
        0
        32px;
}
html[dir="rtl"]
.faq-questions__select svg {
    right: auto;
    left: 11px;
}
/* ======================================================
   TABLET
====================================================== */
@media (max-width: 900px) {
    .faq-questions__filters {
        margin-bottom: 45px;
    }
    .faq-library-item__answer p {
        max-width: 800px;
    }
}
/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 650px) {
    .faq-questions {
        padding:
            15px
            var(--page-padding, 18px)
            65px;
    }
    /* Filters scroll horizontally */
    .faq-questions__filters {
        margin-inline:
            calc(var(--page-padding, 18px) * -1);
        margin-bottom: 38px;
        padding-inline:
            var(--page-padding, 18px);
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 7px;
        scrollbar-width: none;
    }
    .faq-questions__filters::-webkit-scrollbar {
        display: none;
    }
    .faq-filter {
        min-height: 36px;
        padding-inline: 15px;
        flex: 0 0 auto;
        font-size: 9px;
    }
    /* Toolbar */
    .faq-questions__toolbar {
        margin-bottom: 20px;
    }
    .faq-questions__sort label {
        display: none;
    }
    .faq-questions__select select {
        width: 110px;
    }
    /* Question */
    .faq-library-item {
        border-radius: 14px;
    }
    .faq-library-item__question {
        min-height: 62px;
        padding:
            0
            17px;
        gap: 15px;
        font-size: 11px;
    }
    .faq-library-item__answer-inner::before {
        margin-inline: 17px;
    }
    .faq-library-item__answer p {
        padding:
            16px
            17px
            20px;
        font-size: 10px;
    }
    /* Expert */
    .faq-expert {
        padding: 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .faq-expert__button {
        width: 100%;
    }
}
/* ======================================================
   VERY SMALL MOBILE
====================================================== */
@media (max-width: 400px) {
    .faq-questions__count {
        font-size: 7px;
    }
    .faq-questions__select select {
        width: 100px;
        font-size: 8px;
    }
}
/* ======================================================
   REDUCED MOTION
====================================================== */
@media (prefers-reduced-motion: reduce) {
    .faq-filter,
    .faq-library-item,
    .faq-library-item__answer,
    .faq-library-item__symbol span,
    .faq-expert__button {
        transition: none;
    }
}
