@use "../abstracts/variables"as vars;

/* ===========================
   FAQ 3 (Have Questions In Your Mind?)
   =========================== */
.faq3 {
    position: relative;
    overflow: hidden;
    background-color: vars.$color-white;

    @media (max-width: 991px) {
        padding-bottom: 60px !important;
    }

    &::before {
        position: absolute;
        content: '';
        width: 100%;
        height: 65%;
        bottom: 0;
        left: 0;
        background: #EFF3FA;
        z-index: 0;

        @media (min-width: 2250px) {
            height: 73%;
        }
    }

    &__row {
        align-items: center;
    }

    &__thumb {
        position: relative;
        overflow: hidden;

        @media (max-width: 1699px) {
            margin-bottom: -100px;
        }

        @media (max-width: 991px) {
            margin-bottom: vars.rem(60);
        }

        &::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 950px;
            height: 750px;
            clip-path: polygon(738.19px 750px, 0px 750px, 0px 0px, 826.269px 0px, 950px 238.235px, 738.19px 750px);

            z-index: 2;

            @media (max-width: 1199px) {
                width: 45%;
            }

            @media (max-width: 991px) {
                display: none;
            }
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;

            @media (max-width: 1699px) {
                width: 100%;
                height: 900px;
            }

            @media (max-width: 1499px) {
                width: 100%;
                height: 870px;
            }

            @media (max-width: 1399px) {
                width: 100%;
                height: 730px;
            }

            @media (max-width: 1199px) {
                width: 100%;
                height: 750px;
            }

            @media (max-width: 991px) {
                width: 100%;
                height: auto;
            }
        }
    }

    &__content {
        position: relative;
        z-index: 5;
        padding-left: vars.rem(40);
        padding-right: vars.rem(15);

        @media (max-width: 1199px) {
            padding-left: vars.rem(20);
        }

        @media (max-width: 991px) {
            padding: 0 15px;
        }

        .section-top {
            &__subtitle {
                .text {
                    color: #878C8F;
                }
            }
        }

        .section-top__title {
            margin-bottom: 121px;

            @media (max-width: 1024px) {
                margin-bottom: vars.rem(50);
            }

            @media (max-width: 991.98px) {
                margin-bottom: vars.rem(30);
            }
        }
    }

    &__subtitle {
        color: vars.$color-primary;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        display: block;
        margin-bottom: vars.rem(15);
    }

    &__title {
        color: vars.$color-heading;
        font-size: clamp(vars.rem(32), 4vw, vars.rem(48));
        font-weight: 800;
        line-height: 1.25;
        margin-bottom: vars.rem(50);
    }

    // Accordion
    .accordion {
        border: none;

        &-item {
            border: none;
            margin-bottom: vars.rem(20);
            overflow: hidden;
            border-radius: 40px !important;
            background: vars.$color-white;

            @media (max-width: 1399px) {
                border-radius: 28px !important;
            }

            &:last-child {
                margin-bottom: 0;
            }

            @media (max-width: 1199px) {
                border-radius: 25px !important;
            }


            @media (max-width: 991px) {
                box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
            }
        }

        &-button {
            padding: 0 10px 0 0;
            background-color: vars.$color-white;
            border-radius: vars.rem(100) !important;
            display: flex;
            align-items: center;
            gap: vars.rem(20);
            color: vars.$color-heading;
            font-size: vars.rem(20);
            font-weight: 800;
            box-shadow: none !important;
            border: none;
            transition: all 0.3s ease;
            text-align: left;

            @media (max-width: 1399px) {
                font-size: vars.rem(17);
                gap: vars.rem(15);
            }

            @media (max-width: 575px) {
                font-size: vars.rem(12);
                gap: vars.rem(15);
            }

            &::after {
                display: none; // Custom icon
            }

            &:not(.collapsed) {
                background-color: vars.$color-primary;
                color: vars.$color-white;
                border-radius: vars.rem(100) !important;



                .faq3__number {
                    background-color: vars.$color-black;
                }

                .faq3__icon {
                    background-color: vars.$color-white;
                    color: vars.$color-primary;
                    transform: rotate(180deg);
                }
            }
        }

        &-collapse {
            border: none;
        }

        &-body {
            position: relative;
            z-index: 6;
            background-color: vars.$color-white;
            padding: vars.rem(30) vars.rem(40) vars.rem(40) vars.rem(44);
            font-size: vars.rem(16);
            color: vars.$color-text2;
            line-height: 1.7;
            border-bottom-left-radius: vars.rem(40);
            border-bottom-right-radius: vars.rem(40);

            @media (max-width: 1399px) {
                font-size: vars.rem(14);
                padding: vars.rem(20) vars.rem(25) vars.rem(20) vars.rem(20);
            }

            @media (max-width: 1199px) {
                padding-left: vars.rem(50);
            }


            @media (max-width: 575px) {
                padding: vars.rem(20) vars.rem(20) vars.rem(20) vars.rem(20);
                font-size: vars.rem(12);
            }
        }
    }

    &__number {
        width: vars.rem(75);
        height: vars.rem(80);
        background-color: vars.$color-primary;
        color: vars.$color-white;
        border-radius: 50%;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: vars.rem(24);
        font-weight: 800;
        flex-shrink: 0;
        transition: all 0.3s ease;

        @media (max-width: 1399px) {
            width: vars.rem(55);
            height: vars.rem(55);
            font-size: vars.rem(20);
        }

        @media (max-width: 575px) {
            width: vars.rem(55);
            height: vars.rem(55);
            font-size: vars.rem(20);
        }
    }

    &__icon {
        width: vars.rem(50);
        height: vars.rem(50);
        background-color: #F4F7FB;
        color: vars.$color-heading;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: vars.rem(18);
        margin-left: auto;
        transition: all 0.3s ease;
        flex-shrink: 0;

        @media (max-width: 1399px) {
            width: vars.rem(40);
            height: vars.rem(40);
            font-size: vars.rem(15);
        }

        @media (max-width: 575px) {
            width: vars.rem(40);
            height: vars.rem(40);
            font-size: vars.rem(15);
        }
    }
}