/* ============================================
   Fixes CSS - Testimonial Carousel & FAQ Fixes
   ============================================ */

/* ============================================
   Testimonial Carousel Fixes
   ============================================ */

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    /* No scroll — use transform/active class approach */
    overflow: visible !important;
    scrollbar-width: none; /* Firefox */
    /* Remove scroll-snap */
    padding-bottom: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.testimonial-track::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.testimonial-card {
    flex: 0 0 100%;
    /* Remove scroll-snap-align */
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.testimonial-card:not(.active) {
    opacity: 0.35;
    transform: scale(0.92);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
}

.carousel-btn {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background: #A855F7;
}

/* ============================================
   FAQ Section Fixes
   ============================================ */

.faq-section {
    padding: 100px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.faq-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    transition: background 0.2s;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: rgba(38, 38, 43, 0.5);
}

.faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--muted);
    line-height: 1.6;
    /* Ensure answer is visible when open */
    display: block;
}

.faq-answer code {
    background: rgba(38, 38, 43, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .testimonials-section,
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .testimonial-card blockquote {
        font-size: 16px;
    }
}

/* Print styles */
@media print {
    .carousel-controls {
        display: none !important;
    }
    
    .testimonial-card {
        opacity: 1;
        transform: scale(1);
        page-break-inside: avoid;
    }
}