/* FAQ Specific Styles */
.faq-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(204, 167, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: rgba(204, 167, 255, 0.1);
}

.faq-question:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    background-color: rgba(255, 255, 255, 0.98);
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer h3,
.faq-answer h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-answer h3 {
    font-size: 1.2rem;
}

.faq-answer h4 {
    font-size: 1.1rem;
    margin-top: 1.2rem;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.faq-answer ol,
.faq-answer ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #333;
}

.faq-answer ol li {
    padding-left: 0.5rem;
}

/* Animation for smooth accordion */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active .faq-answer {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.2rem;
        font-size: 1rem;
    }

    .faq-icon {
        font-size: 1.3rem;
        margin-left: 0.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.2rem 1.2rem 1.2rem;
    }

    .faq-answer h3 {
        font-size: 1.1rem;
    }

    .faq-answer h4 {
        font-size: 1rem;
    }

    .faq-answer p,
    .faq-answer li {
        font-size: 0.95rem;
    }

    .faq-answer ol,
    .faq-answer ul {
        padding-left: 1.2rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .faq-icon {
        align-self: flex-end;
        margin-left: 0;
        margin-top: -1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }

    .faq-answer h3 {
        font-size: 1rem;
    }

    .faq-answer h4 {
        font-size: 0.95rem;
    }

    .faq-answer p,
    .faq-answer li {
        font-size: 0.9rem;
    }

    .faq-answer ol,
    .faq-answer ul {
        padding-left: 1rem;
    }
}

/* Section subtitle styling for FAQ */
.section-subtitle {
    text-align: center;
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    z-index: 2;
}

@media (max-width: 768px) {
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
}
