/* FAQ Section Styles */
#faq {
    padding: 100px 0;
    background-color: #f6f6f6;
    width: 100%;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.2;
}

.faq-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* FAQ Item */
.faq-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.faq-item.active {
    border-color: rgb(29, 78, 216);
    box-shadow: 0 8px 30px rgba(29, 78, 216, 0.15);
    animation: glowPulse 2s ease-in-out;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(29, 78, 216, 0.15);
    }
    50% {
        box-shadow: 0 8px 40px rgba(29, 78, 216, 0.25);
    }
}

/* FAQ Question */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 28px 30px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: rgba(29, 78, 216, 0.02);
}

.faq-question:focus {
    outline: none;
    background: rgba(29, 78, 216, 0.05);
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    flex: 1;
}

/* FAQ Icon */
.faq-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(29, 78, 216, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(29, 78, 216);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: rgb(29, 78, 216);
    color: white;
    transform: rotate(45deg);
}

.faq-icon svg {
    transition: transform 0.3s ease;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
}

.faq-answer p {
    padding: 0 30px 28px;
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
    font-size: 1rem;
}

/* FAQ CTA */
.faq-cta {
    text-align: center;
    padding: 30px 0;
}

.faq-cta p {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

.cta-link {
    color: rgb(29, 78, 216);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.cta-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(29, 78, 216);
    transition: width 0.3s ease;
}

.cta-link:hover {
    color: rgb(26, 70, 194);
}

.cta-link:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    #faq {
        padding: 60px 0;
    }
    
    .faq-title {
        font-size: 2.2rem;
    }
    
    .faq-subtitle {
        font-size: 1.1rem;
    }
    
    .faq-header {
        margin-bottom: 40px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-question {
        padding: 24px 20px;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .faq-answer p {
        padding: 0 20px 24px;
    }
    
    .faq-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .faq-container {
        padding: 0 20px;
    }
    
    .faq-title {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 0.95rem;
    }
    
    .faq-icon {
        width: 32px;
        height: 32px;
    }
    
    .faq-cta p {
        font-size: 1rem;
    }
}

/* Scroll Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.animated {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
.keyboard-nav .faq-question:focus {
    outline: 3px solid rgb(29, 78, 216);
    outline-offset: 2px;
}