/* 
 * FAQ COMPONENT - GLOBAL FIX
 * Add this to fix FAQ expand/collapse on all pages
 */

/* FAQ Item Base Styles */
.faq-item {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
}

/* FAQ Question - Clickable Header */
.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 255, 136, 0.03);
}

.faq-question h4,
.faq-question strong,
.faq-question span:first-child {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

/* FAQ Icon */
.faq-question i,
.faq-icon {
    color: #00FF88;
    font-size: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* FAQ Answer - Collapsible Content */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* OPEN STATE - When FAQ is expanded */
.faq-item.active .faq-answer,
.faq-item.faq-open .faq-answer,
.faq-open .faq-answer {
    max-height: 500px !important;
    padding: 0 24px 20px 24px;
}

.faq-item.active .faq-question i,
.faq-item.active .faq-icon,
.faq-item.faq-open .faq-question i,
.faq-item.faq-open .faq-icon,
.faq-open .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active,
.faq-item.faq-open,
.faq-open {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.03);
}

/* Rotated class for icon */
.faq-icon.rotated,
.rotated {
    transform: rotate(180deg) !important;
}

/* FAQ Section Container */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 16px 20px;
    }

    .faq-question h4,
    .faq-question strong,
    .faq-question span:first-child {
        font-size: 15px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer,
    .faq-item.faq-open .faq-answer,
    .faq-open .faq-answer {
        padding: 0 20px 16px 20px;
    }
}


/* ==========================================
   TRUST STATS SECTION - Enhanced Styling
   ========================================== */

.trust-stats-section {
    background: linear-gradient(180deg, rgba(10, 10, 15, 1) 0%, rgba(20, 20, 30, 1) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.trust-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(30, 30, 45, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00FF88, #00C8FF);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.15);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.95), rgba(35, 35, 50, 0.8));
    border-color: rgba(255, 255, 255, 0.12);
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #FF0055, #8A2BE2);
}

.stat-card:nth-child(2):hover {
    border-color: rgba(255, 0, 85, 0.3);
    box-shadow: 0 20px 50px rgba(255, 0, 85, 0.15);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    margin-bottom: 12px;
    background: linear-gradient(135deg, #00FF88, #00C8FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card:nth-child(2) .stat-number {
    background: linear-gradient(135deg, #FF0055, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card:nth-child(3) .stat-number {
    background: linear-gradient(135deg, #00C8FF, #8A2BE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
}

.trust-footer {
    text-align: center;
    margin-top: 50px;
}

.trust-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.trust-stars i {
    color: #FFD700;
    font-size: 22px;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}

.trust-guarantee {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

/* Responsive Stats */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-card {
        padding: 35px 30px;
    }

    .stat-number {
        font-size: 3rem;
    }
}