@charset "UTF-8";

/* FAQ Tabs + Dropdown */
.faq-tabs {
    display: flex;
    margin-bottom: 20px;

    li {
        margin-right: 20px;
        list-style: none;

        a {
            display: block;
            padding: 12px 20px;
            text-decoration: none;
            color: #666;
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
        }

        &.active a,
        a:hover {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }
    }
}

.sub-categories {
    margin-bottom: 30px;

    .sub-categories-label {
        font-size: 1.8rem;
        font-weight: bold;
        color: var(--primary-color);
        margin-bottom: 1rem;

        @media screen and (max-width: 767px) {
          font-size: 1.6rem;
        }
    }

    .select-wrapper {
        position: relative;
        width: 100%;
        max-width: 58rem;
        
        &::before {
            content: '';
            position: absolute;
            width: 55px;
            height: 100%;
            top: 0;
            right: 0;
            background: var(--primary-color);
            pointer-events: none;
            z-index: 1;
        }
        
        &::after {
            content: '';
            position: absolute;
            top: 50%;
            right: 0;
            width: 2rem;
            height: 2rem;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            background-image: url(../../common/img/icon_elip_button_arrow_white.svg);
            transform: translate(-90%, -50%) rotate(90deg);
            pointer-events: none;
            z-index: 2;

            @media screen and (max-width: 767px) {
              width: 1rem;
              height: 1rem;
            }


            @media screen and (max-width: 501px) {
              width: 2rem;
              height: 2rem;
            }
        }
        
        select {
            cursor: pointer;
            width: 100%;
            height: 55px;
            padding: 10px 15px;
            padding-right: 70px;
            border: none;
            background-color: #EAEAEA;
            font-size: 1.6rem;
            font-weight: 500;
            color: #717171;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;

            @media screen and (max-width: 767px) {
              font-size: 1.4rem;
              height: 90px;
            }

            @media screen and (max-width: 501px) {
              height: 55px;
            }

            &:focus {
                outline: none;
                border: none;
                box-shadow: none;
            }

            &:focus-visible {
                outline: none;
                border: none;
            }

            &:active {
                outline: none;
                border: none;
            }
        }
    }
}

@media (max-width: 768px) {
    .faq-tabs {
        flex-direction: column;

        li {
            margin-right: 0;
            margin-bottom: 10px;
        }
    }
    
    .sub-categories .select-wrapper {
        width: 100%;
        max-width: none;
    }
}

.faq-list{
    display: flex;
    flex-direction: column;
    gap: 2.4rem;

    .faq-item{
        background-color: #fff;
        padding: 3rem;
        padding-left: 7rem;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        cursor: pointer;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        overflow: hidden;

        @media screen and (max-width: 767px) {
          padding: 1.5rem 2rem;
        }

        &.active .faq-title::before {
            transform: rotate(90deg);
        }

        .faq-label {
                font-family: "Roboto", sans-serif;
                font-size: 1.4rem;
                flex: 0 0 26px;
                height: 26px;
                border-radius: 50%;
                display: flex;
                justify-content: center;
                align-items: center;
        }
    
        .faq-title{
            font-size: 1.8rem;
            line-height: 1.5;
            font-weight: bold;
            /* display: flex; */
            /* justify-content: space-between; */
            position: relative;
            padding-right: 2rem;

            @media screen and (max-width: 767px) {
              font-size: 1.4rem;
            }

            &::before, &::after {
                content: '';
                position: absolute;
                right: 10px;
                top: 0;
                width: 2px;
                height: 15px;
                background: var(--primary-color); /* màu blue khi active */
                transition: transform 0.3s ease;
            }

            &::before {
                transform: rotate(0deg);
            }
            &::after {
                transform: rotate(90deg);
            }
    
            .faq-text-box{
                display: flex;
                gap: 1.2rem;
                align-items: center;

    
                .faq-label{
                    color: #fff;
                    background-color: var(--primary-color);
                }
                .faq-text{
                    flex: 1;
                
                }
            }
        
        }

        .faq-content{
            font-size: 1.6rem;
            line-height: 1.7;
            display: flex;
            gap: 1.2rem;
    
            .faq-label {
                color: var(--primary-color);
                border: 1px solid var(--primary-color);
    
            }
    
            .ans-text {
    
            }
        
        }

        
    }
}

.common-list.archive-category {
    & li {
        height: 7.7rem;

        & a {
            padding: 0;
            height: 100%;

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

            
        }
    }
}