@import "../base/_variable";
@import "../base/_color";

.qa {
    padding: 0 0 40px 0;
    h2 {
        margin-top: 0;
        font-size: 28px;
    }
    
    .qaTopInner, .qaBottomInner {
        height: 140px;
        position: relative;
        overflow: hidden;
    }
    
    .qaContentInner {
        /* max-width: 1000px; */
        margin: 0 auto;
        
        .container {
            padding: 10px 0;
            text-align: center;
            
            .title {
                color: #1c1c1c;
                padding: 0 0 40px;
            }
            
            ul {
                text-align: left;
                background: #fff;
                margin: 0 0 20px;
                padding: 15px 20px;
                font-size: 16px;
                border-radius: 4px;
                border: 1px solid #d9d9d9;
                
                li {
                    list-style: none;
                    margin-left: 10px;
                    
                    .qa-q {
                        position: relative;
                        padding: 0 30px 0 8px;
                        line-height: 25px;
                        color: #00a19b;
                        cursor: pointer;
                        
                        &::after {
                            content: '';
                            position: absolute;
                            width: 20px;
                            height: 20px;
                            right: 0;
                            top: 5px;
                            background: url('/img/arrow_g.svg') no-repeat;
                            transition: 0.2s;
                        }
                    }
                    
                    .qa-a {
                        display: none;
                        margin-top: 10px;
                        padding-top: 10px;
                        font-size: 16px;
                        line-height: 25px;
                        color: #1c1c1c;
                        ul{
                            border: none;
                            padding: 0;
                            li{
                                list-style: disc;
                                padding: 0;
                            }
                        }
                    }
                }
            }
        }
    }
    
    a {
        color: #00a19b;
        text-decoration: underline;
    }
}

.qa .qaContentInner .container ul .active {
    .qa-a { display: block; }
    .qa-q::after {
        transform: rotate(180deg);
        top: -5px;
    }
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    bottom: -50px;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 30px !important;
    border-radius: 40px;
}

@media (min-width: 500px) {
    .qa .qaContentInner .container ul li {
        .qa-q {
            font-size: 18px;
            font-weight: 500;
            margin-left: 0;
        }
        .qa-a {
            font-size: 16px;
            margin-left: 10px;
        }
    }
}

@media (max-width: 675px) {
    .qa .qaContentInner .container {
        .title {
            font-size: 24px;
            padding: 0 0 32px;
        }
        ul {
            padding: 12px 16px;
            li .qa-q {
                font-size: 16px;
                font-weight: 500;
            }
        }
    }
}

@media (max-width: 350px) {
    .qa .qaContentInner .container .title {
        font-size: 26px;
        padding: 0 0 30px;
    }
}

@media (max-width: 320px) {
    .qa .qaContentInner .container .title {
        font-size: 22px;
    }
}

.qa-item {
    margin-bottom: 10px;
}

.qa-q {
    padding: 15px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.qa-toggle {
    background-image: url('../img/arrow_g.svg');
    background-repeat: no-repeat;
    background-size: 24px;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.qa-a {
    padding: 15px;
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.qa-item.active .qa-toggle {
    transform: translateY(-50%) rotate(180deg);
}

.qa-item.active .qa-a {
    display: block;
}
