/* ========== CHANNEL SOFTECH — FAQ ========== */
.faq-section {
    position: relative;
    overflow: hidden;
    background: var(--cs-fade-top), var(--cs-fade-bottom),
        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);
}

.faq-section::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);
}

.faq-section .container {
    position: relative;
    z-index: 2;
}

/* FAQ Image */
.faq-image-wrap {
    position: sticky;
    top: 100px;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    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, #ffffff, #f2fbfe);
    box-shadow: 0 18px 45px rgba(28, 63, 84, 0.07);
}

.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;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.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;
}

.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);
}

.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 */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

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

.faq-question-title {
    flex: 1;
    color: #303234;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
}

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

.faq-toggle i {
    transition: transform 0.3s ease;
}

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

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

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

/* Answer — closed answers have no height; assets/js/faq.js animates the
   height in pixels when a question is clicked. Without JavaScript the
   .active answer is simply shown. */
.faq-answer {
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

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

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

@media (prefers-reduced-motion: reduce) {
    .faq-answer.is-moving {
        transition: none;
    }
}

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

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

/* Tablet */
@media (max-width: 991.98px) {
    .faq-image-wrap {
        position: relative;
        top: auto;
        min-height: 340px;
        margin-bottom: 8px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .faq-image-wrap {
        min-height: 260px;
        padding: 15px;
        border-radius: 20px;
    }

    .faq-list {
        gap: 9px;
    }

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

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

    .faq-count {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border-radius: 10px;
        font-size: 11px;
    }

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

    .faq-toggle {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        font-size: 12px;
    }

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

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

/* ========== SERVICE PAGES ========== */
.seo-faq-section .faq-question-heading {
    margin: 0;
    padding: 0;
    font-size: inherit;
}

.seo-faq-section .faq-question {
    width: 100%;
    text-align: left;
}

.seo-faq-section .faq-question-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.seo-faq-section .faq-toggle {
    flex-shrink: 0;
    transition: transform 0.2s ease-out;
}

.seo-faq-section .faq-card.active .faq-toggle {
    transform: rotate(45deg);
}

.seo-faq-section .faq-question:focus-visible {
    outline: 2px solid var(--cs-primary);
    outline-offset: -3px;
}

@media (max-width: 575px) {
    .seo-faq-section .faq-question {
        gap: 10px;
    }

    .seo-faq-section .faq-question-title {
        font-size: 14px;
    }

    .seo-faq-section .faq-answer-inner p {
        font-size: 14px;
        line-height: 1.75;
    }
}
