/* ===========================
   FAQ Accordion Styles
   =========================== */

/* FAQ Container */
.faq-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

/* FAQ Item */
.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.dark .faq-item {
    background: #1f2937;
    border-color: #374151;
}

/* FAQ Header (Question) */
.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    font-weight: 500;
    color: #111827;
}

.dark .faq-header {
    color: #f3f4f6;
}

.faq-header:hover {
    background-color: #f9fafb;
}

.dark .faq-header:hover {
    background-color: #374151;
}

/* FAQ Number */
.faq-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    color: #3b82f6;
    font-weight: bold;
    font-size: 0.875rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.dark .faq-number {
    background-color: rgba(59, 130, 246, 0.3);
}

/* FAQ Icon (Chevron) */
.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #3b82f6;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* FAQ Content (Answer) */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
}

.faq-item.open .faq-content {
    max-height: 500px;
    padding: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.dark .faq-item.open .faq-content {
    border-top-color: #4b5563;
}

.faq-content p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.dark .faq-content p {
    color: #d1d5db;
}

.faq-content p:last-child {
    margin-bottom: 0;
}

/* FAQ Heading */
.faq-heading {
    font-size: 1.875rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.faq-heading::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #3b82f6;
    border-radius: 50%;
}

.faq-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 1rem;
    width: 8rem;
    height: 0.5rem;
    background-color: #3b82f6;
    border-radius: 0.25rem;
}

.dark .faq-heading {
    color: #f3f4f6;
}

/* FAQ Description */
.faq-description {
    color: #6b7280;
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.dark .faq-description {
    color: #9ca3af;
}

/* CTA Section */
.faq-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
}

.dark .faq-cta {
    background: #1f2937;
}

.faq-cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.dark .faq-cta-title {
    color: #f3f4f6;
}

.faq-cta-text {
    color: #6b7280;
    margin-bottom: 1rem;
}

.dark .faq-cta-text {
    color: #9ca3af;
}

.faq-cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.faq-cta-button:hover {
    background-color: #2563eb;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* Schema.org Markup */
[itemscope][itemtype*="schema.org/Question"],
[itemscope][itemtype*="schema.org/Answer"] {
    display: contents;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 1.5rem;
    }

    .faq-header {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-heading {
        font-size: 1.5rem;
    }

    .faq-heading::after {
        width: 6rem;
    }

    .faq-content {
        font-size: 0.95rem;
    }
}

/* Animation for entrance */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: slideIn 0.3s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.2s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }
.faq-item:nth-child(n+6) { animation-delay: 0.3s; }
