/*
 * IntelQI LMS — Enterprise Learning Platform
 * FAQ Section Styles
 *
 * Copyright © 2025 Euclideum Solutions Private Limited.
 */

/* ============================================
   FAQ Section Base
   ============================================ */
.faq-section {
    padding: 48px 24px;
    background-color: #f8fafc;
}

[data-theme="dark"] .faq-section {
    background-color: #0c1222;
}

@media (min-width: 768px) {
    .faq-section {
        padding: 56px 24px;
    }
}

@media (min-width: 1024px) {
    .faq-section {
        padding: 64px 24px;
    }
}

@media (min-width: 1400px) {
    .faq-section {
        padding: 64px 32px;
    }
}

.faq-container {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .faq-container {
        max-width: 1336px;
    }
}

/* ============================================
   FAQ Header
   ============================================ */
.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .faq-header {
        margin-bottom: 48px;
    }
}

@media (min-width: 1024px) {
    .faq-header {
        margin-bottom: 56px;
    }
}

.faq-label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .faq-label {
    color: #94a3b8;
}

@media (min-width: 768px) {
    .faq-label {
        font-size: 15px;
        margin-bottom: 20px;
    }
}

.faq-heading {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .faq-heading {
    color: #f1f5f9;
}

@media (min-width: 768px) {
    .faq-heading {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .faq-heading {
        font-size: 44px;
    }
}

/* ============================================
   FAQ Card Container
   ============================================ */
.faq-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 8px;
    max-width: 900px;
    margin: 0 auto;
}

[data-theme="dark"] .faq-card {
    background-color: #111a2e;
}

@media (min-width: 768px) {
    .faq-card {
        padding: 12px;
        border-radius: 24px;
    }
}

@media (min-width: 1024px) {
    .faq-card {
        padding: 16px;
    }
}

/* ============================================
   FAQ Accordion Item
   ============================================ */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .faq-item {
    border-color: #334155;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 16px;
    cursor: pointer;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
}

@media (min-width: 768px) {
    .faq-question {
        padding: 24px 20px;
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .faq-question {
        padding: 28px 24px;
        gap: 24px;
    }
}

.faq-question-text {
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
    flex: 1;
    transition: color 0.25s ease;
}

[data-theme="dark"] .faq-question-text {
    color: #f1f5f9;
}

.faq-item.is-open .faq-question-text {
    color: #154f95;
}

[data-theme="dark"] .faq-item.is-open .faq-question-text {
    color: #60a5fa;
}

@media (min-width: 768px) {
    .faq-question-text {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .faq-question-text {
        font-size: 17px;
    }
}

.faq-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color 0.25s ease;
    position: relative;
}

[data-theme="dark"] .faq-toggle {
    border-color: #334155;
}

@media (min-width: 768px) {
    .faq-toggle {
        width: 36px;
        height: 36px;
    }
}

.faq-toggle svg {
    width: 16px;
    height: 16px;
    color: #0f172a;
    transition: transform 0.25s ease;
}

[data-theme="dark"] .faq-toggle svg {
    color: #f1f5f9;
}

@media (min-width: 768px) {
    .faq-toggle svg {
        width: 18px;
        height: 18px;
    }
}

.faq-toggle .icon-minus,
.faq-toggle .icon-plus {
    position: absolute;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.faq-toggle .icon-minus {
    opacity: 0;
    transform: rotate(-90deg);
}

.faq-toggle .icon-plus {
    opacity: 1;
    transform: rotate(0deg);
}

.faq-item.is-open .faq-toggle .icon-minus {
    opacity: 1;
    transform: rotate(0deg);
}

.faq-item.is-open .faq-toggle .icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-question:hover .faq-toggle {
    border-color: #0f172a;
}

[data-theme="dark"] .faq-question:hover .faq-toggle {
    border-color: #f1f5f9;
}

/* ============================================
   FAQ Answer - Smooth Animation
   ============================================ */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #64748b;
    padding: 0 16px 20px;
    padding-right: 56px;
}

[data-theme="dark"] .faq-answer-text {
    color: #94a3b8;
}

@media (min-width: 768px) {
    .faq-answer-text {
        font-size: 15px;
        padding: 0 20px 24px;
        padding-right: 60px;
    }
}

@media (min-width: 1024px) {
    .faq-answer-text {
        font-size: 15px;
        padding: 0 24px 28px;
        padding-right: 64px;
    }
}
