.faqs-banner {
    padding: 80px 48px;

    @media screen and (max-width:768px) {
        padding: 32px 15px;
    }

    .banner-img {
        height: 368px;
        position: relative;

        @media screen and (max-width:768px) {
            height: 305px;
        }

        .img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }

        &::before {
            content: "";
            background-color: rgba(0, 0, 0, 0.35);
            border-radius: 16px;
            width: 100%;
            height: 100%;
            position: absolute;
            border-radius: 8px;
            @media screen and (max-width:768px) {
                border-radius: 6px;
            }
        }

        .contents {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            width: 730px;
            height: 124px;
            margin: auto;
            text-align: center;

            @media screen and (max-width:768px) {
                width: auto;
            }

            h2 {
                font-size: 32px;
                color: $color-text-white;
                font-family: $font-family-sora;
                font-weight: 700;
                margin-bottom: 32px;

                @media screen and (max-width:768px) {
                    font-size: 24px;
                }
            }

            .form-blog {
                .form-group {
                    @media screen and (max-width:768px) {
                        margin: 0 38px;
                    }

                    .form-control {
                        background-color: #ffffff;
                    }
                }
            }
        }
    }
}

.faqs-wrapper {
    padding: 0 0 80px 0;

    @media screen and (max-width:768px) {
        padding: 0 0 56px 0;
    }

    .tabs-container {
        position: relative;
        height: 4em;

        h6 {
            font-size: 16px;
            font-weight: 600;
            color: $color-grey;
            margin-bottom: 16px;
        }

        nav {
            margin: 0 auto;
            position: absolute;
            width: 100%;

            ul {
                list-style: none;
                margin: 0;
                padding: 0;
                padding: 0 10px;
                display: flex;
                flex-direction: column;
                flex-wrap: wrap;

                li {
                    padding: 10px 10px;
                    cursor: pointer;
                    margin-left: -10px;
                    margin-right: -10px;
                    padding-left: 16px;
                    order: 1;
                    color: $color-dark;
                    font-size: 16px;
                    font-weight: 600;


                    &.active {
                        color: $color-primary;
                        border-top: none;
                        order: 0;
                        border: 1px solid $color-primary;
                        border-radius: 98px;
                        background-color: transparent;
                        box-shadow: none;

                        &::after {
                            width: 24px;
                            height: 24px;
                            background-image: url(../../../assets/img/icons/accordion-arrow.svg);
                            content: '';
                            position: absolute;
                            right: 10px;
                            top: 10px;
                            z-index: 9999;
                            transition: all 0.3s;
                        }
                    }

                    &:not(.active) {
                        position: absolute;
                        top: -999em;
                    }
                }

                &.expanded {
                    border-radius: 3px;
                    box-shadow: 0 0 1px 0 rgba(9, 30, 66, 0.31), 0 3px 5px 0 rgba(9, 30, 66, 0.2);
                    z-index: 2;
                    position: relative;
                    border-top-right-radius: 28px;
                    border-top-left-radius: 28px;
                    background-color: #ffffff;

                    li {
                        &.active {
                            &::after {
                                transform: rotate(180deg);
                            }
                        }

                        &:not(.active) {
                            position: relative;
                            top: auto;
                        }
                    }
                }
            }
        }
    }

    @media screen and (min-width: 768px) {
        .tabs-container {
            height: auto;

            nav {
                background: transparent;

                ul {
                    display: flex;
                    flex-direction: row;
                    white-space: nowrap;
                    overflow: hidden;
                    border: none;
                    padding: 0;

                    li {
                        display: inline-block;
                        margin: 0 16px 16px 0;
                        padding: 10px 16px;
                        border-radius: 2px;
                        border: solid 1px $color-primary;
                        font-size: 18px;
                        font-weight: 500;
                        color: $color-primary;

                        &.active {
                            order: 1;
                            color: $color-text-white;
                            background-color: $color-primary;
                            border-radius: 0;

                            &::after {
                                display: none;
                            }
                        }

                        &:not(.active) {
                            position: relative;
                            top: auto;
                        }
                    }

                    &.expanded {
                        box-shadow: none;
                        border-top-right-radius: 0;
                        border-top-left-radius: 0;
                    }
                }
            }
        }
    }

    .tab-content {
        display: none;
        padding: 15px;
        padding: 146px 0 0 0;

        @media screen and (max-width:1366px){
            padding: 204px 0 0 0;
        }

        @media screen and (max-width:767px) {
            padding: 66px 0 0 0;
        }

        .faqs-accordion {
            .accordion-flush {
                border-top: 1px solid rgba(141, 160, 185, 0.3);

                .accordion-item {
                    border-bottom: 1px solid rgba(141, 160, 185, 0.3);
                    position: relative;

                    &::after {
                        position: absolute;
                        content: "";
                        top: 0px;
                        left: 0;
                        z-index: 9;
                        width: 100%;
                        height: 1px;
                        background: #86868B;
                        transform: scaleX(0);
                        transform-origin: right;
                        transition: transform 0.5s;
                    }

                    &:hover {
                        &::after {
                            transform: scaleX(1);
                            transform-origin: left;
                        }
                    }
                }
            }

            .accordion-item {
                .accordion-button {
                    font-size: 24px;
                    font-weight: 600;
                    font-family: $font-family-sora;
                    color: $color-secondary;
                    padding: 24px 16px 24px 0;

                    @media screen and (max-width:768px) {
                        font-size: 18px;
                        padding: 24px 0px 24px 0;
                    }

                    &:not(.collapsed) {
                        background-color: transparent;
                        box-shadow: none;

                        &::after {

                            background-image: url(../../../assets/img/icons/expand-minus.svg);
                        }
                    }

                    &:focus {
                        box-shadow: none;
                    }

                    &::after {
                        background-image: url(../../../assets/img/icons/expand-plus.svg);
                        width: 32px;
                        height: 32px;
                        background-size: auto;
                    }
                }

                .accordion-body {
                    font-size: 16px;
                    font-weight: 500;
                    color: $color-secondary;
                    padding: 0 100px 24px 0;

                    @media screen and (max-width:768px) {
                        padding: 0 40px 24px 0;
                    }
                }
            }
        }

        &.current {
            display: block;
        }
    }
}


.faqs-no-result {
    padding: 0 0 160px 0;

    @media screen and (max-width:768px) {
        padding: 0 0 56px 0;
    }

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

    h2 {
        font-size: 32px;
        font-family: $font-family-sora;
        font-weight: 700;
        color: $color-secondary;
        margin: 40px 0 32px 0;

        @media screen and (max-width:768px) {
            font-size: 24px;
            margin: 32px 0 24px 0;
        }
    }

    p {
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 0;
        color: $color-grey;

        @media screen and (max-width:768px) {
            font-size: 24px;
        }

        span {
            color: $color-primary;
            text-decoration: underline;
        }
    }
}