/* AEM Labs Limited - CSS Module: FAQs */
/* =================================== */

.faq-section {
    padding: 30px 0;
}

.faq-container {
    max-width: min(90%, var(--max-container-width));
    margin: 0 auto;
}

.faq-grid {
    max-width: 800px;
    margin: 20px auto 0;
}

.faq-item {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
    position: relative;
    padding-left: 60px;
}

.faq-icon {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #a71c1c, #6907c5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(167, 28, 28, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.faq-icon i {
    font-size: 20px;
    color: white;
}

.faq-item:hover .faq-icon {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(167, 28, 28, 0.4);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.faq-question:hover h4 {
    color: var(--accent-color);
}

.faq-question i {
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 0 24px 0;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-color);
}

@media (max-width: 1440px) {
    .faq-section {
        padding-top: 0;
    }
}

@media (max-width: 992px) {
    .faq-grid {
        max-width: min(85%, var(--max-container-width));
    }
}

@media (max-width: 480px) {
    .faq-grid {
        margin-top: 0;
    }

    .faq-icon {
        width: 40px;
        height: 40px;
    }

    .faq-icon i {
        font-size: 16px;
    }

    .faq-item {
        padding-left: 35px;
    }

    .faq-item h4,
    .faq-question i {
        font-size: 14px;
    }

    .faq-answer p {
        font-size: 12px;
    }
}