/* ================================================
   FAQ SECTION STYLES - SEO Optimized
   ================================================ */

.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(26, 26, 26, 0.1) 50%, transparent 100%);
}

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

.faq-title {
    font-size: 42px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 16px;
    line-height: 1.2;
}

.faq-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* FAQ Grid Layout */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Items */
.faq-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(26, 26, 26, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #1A1A1A 0%, #0066cc 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.faq-item:hover::before {
    transform: scaleY(1);
}

.faq-item.active {
    border-color: rgba(0, 102, 204, 0.2);
}

.faq-item.active::before {
    transform: scaleY(1);
}

/* FAQ Questions */
.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #0066cc;
}

.faq-question-text {
    flex: 1;
    margin-right: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* FAQ Icons */
.faq-icon {
    width: 24px;
    height: 24px;
    color: #666;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    color: #0066cc;
    transform: rotate(45deg);
}

.faq-icon svg {
    width: 100%;
    height: 100%;
}

/* FAQ Answers */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(248, 249, 250, 0.5);
    border-top: 1px solid rgba(26, 26, 26, 0.06);
}

.faq-item.active .faq-answer {
    padding: 24px;
}

.faq-answer-content {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.faq-answer-content p {
    margin: 0;
    text-align: left;
    word-break: normal;
}

/* FAQ Call to Action */
.faq-cta {
    text-align: center;
    padding: 48px;
    background: linear-gradient(135deg, #1A1A1A 0%, #2d2d2d 100%);
    border-radius: 20px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.faq-cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.faq-cta-text {
    font-size: 18px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.faq-cta .black_large_button {
    background: #ffffff;
    color: #1A1A1A;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.faq-cta .black_large_button:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

.faq-cta .contact_link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-decoration: none;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.faq-cta .contact_link:hover {
    color: #ffffff;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 900px;
    }
}

@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .faq-item {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-title {
        font-size: 32px;
    }
    
    .faq-subtitle {
        font-size: 16px;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 16px;
    }
    
    .faq-answer-content {
        font-size: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 20px;
    }
    
    .faq-cta {
        padding: 32px 24px;
    }
    
    .faq-cta-title {
        font-size: 24px;
    }
    
    .faq-cta-text {
        font-size: 16px;
    }
    
    .faq-cta-buttons {
        flex-direction: column;
        gap: 16px;
    }
    
    .faq-cta .black_large_button,
    .faq-cta .contact_link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question-text {
        margin-right: 12px;
    }
    
    .faq-question {
        padding: 16px;
        font-size: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 16px;
    }
}

/* Animation for FAQ items on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item[data-aos="fade-up"] {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Staggered animation delays */
.faq-item[data-aos-delay="0"] { animation-delay: 0ms; }
.faq-item[data-aos-delay="100"] { animation-delay: 100ms; }
.faq-item[data-aos-delay="200"] { animation-delay: 200ms; }
.faq-item[data-aos-delay="300"] { animation-delay: 300ms; }
.faq-item[data-aos-delay="400"] { animation-delay: 400ms; }
.faq-item[data-aos-delay="500"] { animation-delay: 500ms; }
.faq-item[data-aos-delay="600"] { animation-delay: 600ms; }
.faq-item[data-aos-delay="700"] { animation-delay: 700ms; }
.faq-item[data-aos-delay="800"] { animation-delay: 800ms; }
.faq-item[data-aos-delay="900"] { animation-delay: 900ms; }