/**
 * ==========================================
 * Homepage FAQ Section
 *
 * @package TelecomRoute_Pro
 * ==========================================
 */

/* ==========================================
   FAQ Section
========================================== */

.tr-faq {
    padding: 110px 0;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f8fafc 100%
    );
}

/* ==========================================
   Section Header
========================================== */

.tr-faq .tr-section-header {
    max-width: 760px;
    margin: 0 auto 60px;
}

/* ==========================================
   FAQ Wrapper
========================================== */

.tr-faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================
   FAQ Item
========================================== */

.tr-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    transition: all .3s ease;
}

.tr-faq-item:hover {
    transform: translateY(-4px);
    border-color: var(--tr-primary);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
}

.tr-faq-item.active {
    border-color: var(--tr-primary);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
}

/* ==========================================
   Question
========================================== */

.tr-faq-question {
    width: 100%;
    padding: 24px 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;

    display: flex;
    justify-content: space-between;
    align-items: center;

    text-align: left;

    font-size: 18px;
    font-weight: 600;
    color: var(--tr-text);

    transition: color .3s ease;
}

.tr-faq-question:hover {
    color: var(--tr-primary);
}

/* ==========================================
   Icon
========================================== */

.tr-faq-icon {

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    margin-left: 20px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--tr-primary),
        #0F4BB8
    );

    position: relative;
}

/* Horizontal line */

.tr-faq-icon::before {

    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 16px;
    height: 2px;

    background: #ffffff;

    transform: translate(-50%, -50%);
}

/* Vertical line */

.tr-faq-icon::after {

    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 2px;
    height: 16px;

    background: #ffffff;

    transform: translate(-50%, -50%);

    transition: opacity .3s ease;
}

/* Plus becomes Minus */

.tr-faq-item.active .tr-faq-icon::after {

    opacity: 0;

}

/* ==========================================
   Answer
========================================== */

.tr-faq-answer {

    max-height: 0;

    overflow: hidden;

    padding: 0 30px;

    transition:
        max-height .35s ease,
        padding .35s ease;

}

.tr-faq-item.active .tr-faq-answer {

    padding: 0 30px 30px;

}

.tr-faq-answer p {

    margin: 0;

    color: var(--tr-muted);

    font-size: 16px;

    line-height: 1.8;

}

/* ==========================================
   Tablet
========================================== */

@media (max-width:991px){

    .tr-faq{

        padding:80px 0;

    }

    .tr-faq .tr-section-header{

        margin-bottom:50px;

    }

    .tr-faq-question{

        padding:22px 24px;

        font-size:17px;

    }

    .tr-faq-answer{

        padding:0 24px;

    }

    .tr-faq-item.active .tr-faq-answer{

        padding:0 24px 24px;

    }

}

/* ==========================================
   Mobile
========================================== */

@media (max-width:767px){

    .tr-faq{

        padding:70px 0;

    }

    .tr-faq-question{

        padding:20px;

        gap:15px;

        font-size:16px;

    }

    .tr-faq-icon{

        width:38px;
        height:38px;

        margin-left:15px;

    }

    .tr-faq-icon::before{

        width:14px;

    }

    .tr-faq-icon::after{

        height:14px;

    }

    .tr-faq-answer{

        padding:0 20px;

    }

    .tr-faq-item.active .tr-faq-answer{

        padding:0 20px 20px;

    }

    .tr-faq-answer p{

        font-size:15px;

    }

}