/*  FAQ  */

#cs-home-faq {
    --faq-sticky-top: 100px;

    position: relative;
    padding-block: 90px;

    /*
     * Clip decorative overflow without creating the scrolling
     * ancestor that overflow: hidden would create.
     */
    overflow: clip;

    background:
        var(--cs-fade-top, linear-gradient(transparent, transparent)),
        var(--cs-fade-bottom, linear-gradient(transparent, transparent)),
        radial-gradient(
            circle at 5% 30%,
            rgba(8, 112, 175, 0.08),
            transparent 25%
        ),
        radial-gradient(
            circle at 95% 78%,
            rgba(21, 157, 211, 0.07),
            transparent 25%
        ),
        linear-gradient(180deg, #f4fbfe, #edf6fc 55%, #f4fbfe);
}

#cs-home-faq,
#cs-home-faq *,
#cs-home-faq *::before,
#cs-home-faq *::after {
    box-sizing: border-box;
}

#cs-home-faq::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(8, 112, 175, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 112, 175, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    -webkit-mask-image:
        linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
    mask-image:
        linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

#cs-home-faq .container {
    position: relative;
    z-index: 2;
}

#cs-home-faq .faq-title-area {
    max-width: 900px;
    margin: 0 auto 42px;
    text-align: center;
}

/* Both columns must stretch to the height of the FAQ list. */
#cs-home-faq .faq-layout {
    align-items: stretch;
}

#cs-home-faq .faq-image-column {
    position: relative;
    min-width: 0;
}

/* LEFT STICKY IMAGE */

#cs-home-faq .faq-image-wrap {
    position: sticky;
    top: var(--faq-sticky-top);

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(470px, calc(100dvh - var(--faq-sticky-top) - 24px));
    padding: 25px;
    overflow: hidden;
    border: 1px solid #e7f2f6;
    border-radius: 28px;

    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(8, 112, 175, 0.1),
            transparent 32%
        ),
        linear-gradient(145deg, #fff, #f2fbfe);

    box-shadow: 0 18px 45px rgba(28, 63, 84, 0.07);
}

#cs-home-faq .faq-image-wrap::before {
    content: "?";
    position: absolute;
    right: 18px;
    top: -38px;
    color: rgba(8, 112, 175, 0.045);
    font-size: 190px;
    line-height: 1;
    font-weight: 900;
}

#cs-home-faq .faq-image {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
}

#cs-home-faq .faq-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(
        390px,
        calc(100dvh - var(--faq-sticky-top) - 76px)
    );
    margin: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

#cs-home-faq .faq-image-wrap:hover .faq-image img {
    transform: translateY(-5px);
}

#cs-home-faq .faq-image-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

#cs-home-faq .faq-shape-one {
    width: 150px;
    height: 150px;
    left: -75px;
    bottom: -70px;
    background: rgba(8, 112, 175, 0.07);
}

#cs-home-faq .faq-shape-two {
    width: 90px;
    height: 90px;
    right: -35px;
    bottom: 50px;
    border: 16px solid rgba(21, 157, 211, 0.06);
}

/* FAQ LIST */

#cs-home-faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

#cs-home-faq .faq-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5eef1;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 7px 22px rgba(51, 53, 55, 0.045);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

#cs-home-faq .faq-card:hover {
    border-color: rgba(8, 112, 175, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(23, 64, 89, 0.08);
}

#cs-home-faq .faq-card.active {
    border-color: rgba(8, 112, 175, 0.2);
    background:
        linear-gradient(90deg, rgba(8, 112, 175, 0.035), transparent 55%),
        #fff;
    box-shadow: 0 14px 35px rgba(8, 112, 175, 0.09);
}

/* QUESTION */

#cs-home-faq .faq-question-heading {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

.faq-card .faq-question-heading {
        margin-bottom: 0px;
}

#cs-home-faq .faq-question {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 17px 18px;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

#cs-home-faq .faq-question:focus-visible {
    outline: 2px solid var(--cs-primary, #0870af);
    outline-offset: -4px;
    border-radius: 15px;
}

#cs-home-faq .faq-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: #effafd;
    color: #0870af;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.3s ease, color 0.3s ease;
}

#cs-home-faq .faq-question-title {
    flex: 1;
    min-width: 0;
    color: #303234;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#cs-home-faq .faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #e5eff2;
    border-radius: 50%;
    background: #f7fbfc;
    color: #0870af;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

#cs-home-faq .faq-toggle i {
    display: inline-block;
    transition: transform 0.3s ease;
}

#cs-home-faq .faq-card.active .faq-count {
    background: linear-gradient(135deg, #0870af, #1499ce);
    color: #fff;
    box-shadow: 0 7px 16px rgba(8, 112, 175, 0.2);
}

#cs-home-faq .faq-card.active .faq-toggle {
    border-color: transparent;
    background: #0870af;
    color: #fff;
}

#cs-home-faq .faq-card.active .faq-toggle i {
    transform: rotate(45deg);
}

/* ANSWER — height animated by assets/js/faq.js */

#cs-home-faq .faq-answer {
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

#cs-home-faq .faq-card.active .faq-answer {
    height: auto;
    visibility: visible;
}

#cs-home-faq .faq-answer.is-moving {
    visibility: visible;
    transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: height;
}

#cs-home-faq .faq-answer-inner {
    padding: 0 65px 18px 70px;
}

#cs-home-faq .faq-answer p {
    margin: 0;
    padding-top: 2px;
    color: #727679;
    font-size: 14px;
    line-height: 1.7;
}

#cs-home-faq .faq-answer p + p {
    margin-top: 10px;
}

/* TABLET */

@media (max-width: 991.98px) {
    #cs-home-faq {
        padding-block: 65px;
    }

    #cs-home-faq .faq-title-area {
        margin-bottom: 30px;
    }

    #cs-home-faq .faq-image-wrap {
        position: relative;
        top: auto;
        min-height: 340px;
        margin-bottom: 8px;
    }

    #cs-home-faq .faq-image img {
        max-height: 300px;
    }
}

/* MOBILE */

@media (max-width: 575.98px) {
    #cs-home-faq {
        padding-block: 50px;
    }

    #cs-home-faq .faq-image-wrap {
        min-height: 260px;
        padding: 15px;
        border-radius: 20px;
    }

    #cs-home-faq .faq-image img {
        max-height: 230px;
    }

    #cs-home-faq .faq-list {
        gap: 9px;
    }

    #cs-home-faq .faq-card {
        border-radius: 14px;
    }

    #cs-home-faq .faq-question {
        gap: 10px;
        padding: 14px 13px;
    }

    #cs-home-faq .faq-count {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
        font-size: 11px;
    }

    #cs-home-faq .faq-question-title {
        font-size: 14px;
        line-height: 1.4;
    }

    #cs-home-faq .faq-toggle {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 12px;
    }

    #cs-home-faq .faq-answer-inner {
        padding: 0 14px 15px 57px;
    }

    #cs-home-faq .faq-answer p {
        font-size: 13px;
        line-height: 1.65;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    #cs-home-faq *,
#cs-home-faq *::before,
#cs-home-faq *::after {
        transition: none !important;
    }
}