/* ================================
   FAQs Section
   ================================ */

.faqs {
    display: flex;
    flex-direction: row;
    padding: 100px 10%;
    background-color: #FFFFFF;
    color: #111111;
    gap: 80px;
    align-items: flex-start;
}

.faq-left {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: auto;
}

.faq-tag {
    display: inline-block;
    border: 1px solid #C4C4C4;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 14px;
    color: #555555;
    margin-bottom: 24px;
    width: fit-content;
    background: linear-gradient(231.4deg, #C4C4C4 -171.84%, #ECECEC -32.96%, #FFFFFF 83.56%);

}

.faq-left h2 {
    font-size: 40px;
    line-height: 45px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #000;
}

.faq-left p {
    font-size: 18px;
    line-height: 24px;
    color: #777777;
}

.faq-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid #979797;
    padding: 10px 0 16px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 20px;
    line-height: 32px;
    font-weight: 500;
    color: #000;
    margin: 0;
    padding-right: 20px;
}

.faq-question .icon {
    font-size: 24px;
    font-weight: 300;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.3s ease;
}

/* Icon swap animation */
@keyframes iconFlip {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    35% {
        transform: scale(0);
        opacity: 0;
    }

    65% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.faq-question .icon.animating {
    animation: iconFlip 0.3s ease forwards;
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer {
    min-height: 0;
    padding-right: 0;
}

.faq-answer p {
    font-size: 16px;
    line-height: 20px;
    color: #777777;
    margin: 0;
    padding-top: 16px;
    padding-bottom: 10px;
}

/* Base states for interactive active elements */
.faq-item.active .faq-question h3 {
    color: #000000;
}



/* Media Queries for responsive design */
@media (max-width: 991px) {
    .faqs {
        flex-direction: column;
        padding: 80px 5%;
        gap: 50px;
    }

    .faq-left {
        flex: none;
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .faq-left h2 {
        font-size: 32px;
        line-height: 40px;
    }
}

@media (max-width: 480px) {
    .faqs {
        padding: 60px 20px;
    }

    .faq-left h2 {
        font-size: 30px;
        line-height: 35px;
    }

    .faq-left p {
        font-size: 16px;
        line-height: 22px;
    }

    .faq-question h3 {
        font-size: 16px;
        line-height: 20px;
    }

    .faq-answer p {
        font-size: 14px;
        line-height: 18px;
    }
}