/* ============================================
   Solution Partner FAQ Section - Zencia.AI (DARK THEME)
   ============================================ */

/* ===== SOLUTION PARTNER FAQ SECTION ===== */
.solution-partner-faq {
    background: linear-gradient(135deg, #0f1419 0%, #082928 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Background image with opacity */
.solution-partner-faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/language-background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

/* Gradient overlays */
.solution-partner-faq::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 217, 213, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 139, 139, 0.05) 0%, transparent 50%),
                rgba(15, 20, 25, 0.3);
    z-index: 2;
    pointer-events: none;
}

.solution-partner-faq .container {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== SECTION HEADER ===== */
.faq-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.faq-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.faq-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== FAQ GRID ===== */
.faq-grid {
    display: grid;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ===== FAQ ITEM ===== */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 213, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

/* Staggered animation delays for FAQ items */
.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.25s; }
.faq-item:nth-child(5) { animation-delay: 0.3s; }
.faq-item:nth-child(6) { animation-delay: 0.35s; }
.faq-item:nth-child(7) { animation-delay: 0.4s; }
.faq-item:nth-child(8) { animation-delay: 0.45s; }
.faq-item:nth-child(9) { animation-delay: 0.5s; }
.faq-item:nth-child(10) { animation-delay: 0.55s; }

/* Hover effects */
.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 217, 213, 0.3);
    border-color: rgba(0, 217, 213, 0.4);
    background: rgba(0, 217, 213, 0.08);
}

/* Background glow effect on hover */
.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.03) 0%, rgba(0, 139, 139, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item > * {
    position: relative;
    z-index: 2;
}

/* ===== FAQ QUESTION BUTTON ===== */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    outline: none;
}

.faq-question:focus {
    outline: 2px solid rgba(0, 217, 213, 0.6);
    outline-offset: -2px;
}

.question-text {
    font-size: clamp(1.1rem, 1.2vw, 1.25rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-question:hover .question-text {
    color: #FFFFFF;
}

/* ===== FAQ ICON ===== */
.faq-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.1) 0%, rgba(0, 139, 139, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 217, 213, 0.2);
}

.faq-icon svg {
    color: #00D9D5;
    transition: all 0.3s ease;
    transform-origin: center;
}

.faq-question:hover .faq-icon {
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    border-color: #00D9D5;
    transform: scale(1.05);
}

.faq-question:hover .faq-icon svg {
    color: #FFFFFF;
}

/* Icon rotation for expanded state */
.faq-question[aria-expanded="true"] .faq-icon svg {
    transform: rotate(180deg);
}

/* ===== FAQ ANSWER ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px; /* Adjust based on content */
}

.answer-content {
    padding: 0 2.5rem 2rem 2.5rem;
    border-top: 1px solid rgba(0, 217, 213, 0.1);
    margin-top: -1px;
}

.answer-content p {
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 400;
}

.answer-content p:last-child {
    margin-bottom: 0;
}

/* ===== ANSWER LISTS ===== */
.answer-content ul {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

.answer-content li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.answer-content li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 1rem;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 217, 213, 0.4);
}

.answer-content li:hover {
    color: rgba(255, 255, 255, 0.95);
}

.answer-content strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .solution-partner-faq .container {
        padding: 0 1.5rem;
    }
    
    .faq-question {
        padding: 1.8rem 2rem;
    }
    
    .answer-content {
        padding: 0 2rem 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .solution-partner-faq {
        padding: 80px 0;
    }
    
    .solution-partner-faq .container {
        padding: 0 1rem;
    }
    
    .faq-header {
        margin-bottom: 60px;
    }
    
    .faq-question {
        padding: 1.5rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .faq-icon {
        align-self: flex-end;
        margin-top: -2.5rem;
    }
    
    .answer-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .answer-content li {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .solution-partner-faq .container {
        padding: 0 0.5rem;
    }
    
    .faq-question {
        padding: 1.2rem 1rem;
    }
    
    .answer-content {
        padding: 0 1rem 1.2rem 1rem;
    }
    
    .faq-icon {
        width: 35px;
        height: 35px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-header {
        animation: none !important;
    }
    
    .faq-item:hover {
        transform: none;
    }
    
    .faq-answer {
        transition: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .solution-partner-faq {
        background: white !important;
        padding: 2rem 0;
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .solution-partner-faq .container {
        max-width: none !important;
        margin-left: 0 !important;
    }
    
    .faq-item {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 1rem;
        background: white !important;
    }
    
    .faq-question,
    .answer-content p,
    .answer-content li {
        color: #333 !important;
    }
    
    .faq-title {
        color: #333 !important;
    }
    
    .faq-subtitle {
        color: #666 !important;
    }
    
    .faq-answer {
        max-height: none !important;
    }
}