/*-----------FAQ Home Page VIEW Component------------------------------*/

/* Section wrapper */
.faq-section {
    position: relative;
    padding-top: 60px;
    padding-bottom: 70px;
    background-color: #041930;
    overflow: hidden;
}

    .faq-section::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 10%;
        transform: translateY(-50%);
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(30, 90, 120, 0.35) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

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

/* Section title */
.faq-main-title {
    color: #ffffff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 8px;
}

/* Category label under main title */
.faq-cat-label {
    color: #5EBE97;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 28px;
}

/* Decorative image */
.faq-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.faq-side-img {
    width: 100%;
    filter: drop-shadow(0 0 24px rgba(0, 200, 200, 0.25));
}

/* Accordion container */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Every item base */
.faq-item {
    border-radius: 14px !important;
    border: none !important;
    background: transparent;
    overflow: hidden;
}

    .faq-item .accordion-header {
        background: transparent;
    }

/* EVEN rows */
.faq-item--even .faq-btn {
    background: rgb(48, 118, 114);
}

.faq-item--even .faq-body {
    background: rgb(26, 77, 88);
}

/* ODD rows */
.faq-item--odd .faq-btn {
    background: #076894;
}

.faq-item--odd .faq-body {
    background: #01587F;
}

/* Button shared base */
.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    border-radius: 14px !important;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    direction: rtl;
    padding: 16px 20px;
    cursor: pointer;
    transition: filter 0.25s ease;
    box-shadow: none !important;
    --bs-accordion-btn-icon: none;
    --bs-accordion-btn-active-icon: none;
}

    .faq-btn::after {
        display: none !important;
    }

    .faq-btn:not(.collapsed) {
        filter: brightness(0.88);
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        color: #ffffff;
    }

    .faq-btn:hover, .faq-btn:focus {
        filter: brightness(0.92);
        color: #ffffff;
        outline: none;
        box-shadow: none !important;
    }

/* SVG icon circle */
.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease;
    margin-inline-start: 12px;
}

.faq-btn.collapsed .faq-icon__close {
    display: none;
}

.faq-btn.collapsed .faq-icon__plus {
    display: inline-flex;
}

.faq-btn:not(.collapsed) .faq-icon__plus {
    display: none;
}

.faq-btn:not(.collapsed) .faq-icon__close {
    display: inline-flex;
}

.faq-btn:not(.collapsed) .faq-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.60);
}

/* Body */
.faq-body {
    border-top: none;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 15px;
    line-height: 1.85;
    padding: 18px 24px;
    direction: rtl;
    text-align: right;
}

/* View All button */
.faq-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 69px;
    background: linear-gradient(180deg, #5EBE97 0%, #12A86B 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.4px;
    padding: 14px 32px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(50, 50, 50, 0.3);
}

    .faq-view-all-btn:hover {
        color: #ffffff;
        opacity: 0.88;
        transform: translateY(-1px);
    }

    .faq-view-all-btn .bx {
        font-size: 20px;
    }

/* Hidden extra items */
.faq-item--hidden {
    display: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .faq-main-title {
        font-size: 30px;
    }

    .faq-btn {
        font-size: 15px;
        padding: 14px 16px;
    }
}

@media (max-width: 575.98px) {
    .faq-section {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .faq-main-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .faq-btn {
        font-size: 14px;
        padding: 12px 14px;
    }

    .faq-body {
        font-size: 14px;
        padding: 14px 16px;
    }

    .faq-view-all-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}
/*-------------------END-----------------------------------*/


/* --- Page wrapper ------------------------------------ */
.faq-list-section {
    background-color: #041930;
    padding-bottom: 80px;
}

/* -- Main title -------------------------------------- */
.faq-page-title {
    color: #ffffff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

/* CATEGORY NAV (right column) */

.faq-cat-nav {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 100px;
}

.faq-cat-nav__item {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-align: right;
    direction: rtl;
    padding: 16px 0 16px 12px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    transition: color 0.2s ease, padding-right 0.2s ease;
    cursor: pointer;
    position: relative;
}

    .faq-cat-nav__item:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }

    .faq-cat-nav__item:hover {
        color: #5EBE97;
    }

/* Active category */
.faq-cat-nav__item--active {
    color: #5EBE97;
    font-weight: 700;
    padding-right: 16px;
}
    /* Green indicator bar on the right edge */
    .faq-cat-nav__item--active::after {
        content: "";
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 4px;
        background: #5EBE97;
        border-radius: 4px;
    }

/* CATEGORY PANELS — show/hide */

.faq-cat-panel {
    display: none;
}

.faq-cat-panel--active {
    display: block;
}

/* ACCORDION — identical to home widget */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border-radius: 14px !important;
    border: none !important;
    background: transparent;
    overflow: hidden;
}

    .faq-item .accordion-header {
        background: transparent;
    }

.faq-item--even .faq-btn {
    background: rgb(48, 118, 114);
}

.faq-item--even .faq-body {
    background: rgb(26, 77, 88);
}

.faq-item--odd .faq-btn {
    background: #076894;
}

.faq-item--odd .faq-body {
    background: #01587F;
}

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    border-radius: 14px !important;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    direction: rtl;
    padding: 16px 20px;
    cursor: pointer;
    transition: filter 0.25s ease;
    box-shadow: none !important;
    --bs-accordion-btn-icon: none;
    --bs-accordion-btn-active-icon: none;
}

    .faq-btn::after {
        display: none !important;
    }

    .faq-btn:not(.collapsed) {
        filter: brightness(0.88);
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        color: #ffffff;
    }

    .faq-btn:hover, .faq-btn:focus {
        filter: brightness(0.92);
        color: #ffffff;
        outline: none;
        box-shadow: none !important;
    }

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease;
    margin-inline-start: 12px;
}

.faq-btn.collapsed .faq-icon__close {
    display: none;
}

.faq-btn.collapsed .faq-icon__plus {
    display: inline-flex;
}

.faq-btn:not(.collapsed) .faq-icon__plus {
    display: none;
}

.faq-btn:not(.collapsed) .faq-icon__close {
    display: inline-flex;
}

.faq-btn:not(.collapsed) .faq-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.60);
}

.faq-body {
    border-top: none;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 15px;
    line-height: 1.85;
    padding: 18px 24px;
    direction: rtl;
    text-align: right;
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
    .faq-page-title {
        font-size: 28px;
    }
    /* Category nav becomes horizontal pill row */
    .faq-cat-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 24px;
    }

    .faq-cat-nav__item {
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 30px;
        padding: 8px 18px !important;
        font-size: 14px;
        white-space: nowrap;
    }

    .faq-cat-nav__item--active {
        background: rgba(94, 190, 151, 0.15);
        border-color: #5EBE97 !important;
        padding-right: 18px !important;
    }

        .faq-cat-nav__item--active::after {
            display: none;
        }
}

@media (max-width: 575.98px) {
    .faq-page-title {
        font-size: 24px;
    }

    .faq-btn {
        font-size: 14px;
        padding: 12px 14px;
    }

    .faq-body {
        font-size: 14px;
        padding: 14px 16px;
    }
}
