/**
 * AC Home Page Pro - FAQ Module
 * Layout: 50/50 Split - Creators (Mint Green) | Brands (Pale Yellow)
 * Version: 1.2.0 - FIXED
 * Full Width Layout with Modern Accordion
 */

/* Main Container - Force Full Width */
.ac-hp-faq {
    width: 100vw;
    max-width: 100vw;
    min-height: 700px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.ac-hp-faq-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 700px;
    margin: 0;
    padding: 0;
}

/* Split Sides */
.ac-hp-faq-side {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 40px;
    min-height: 700px;
}

/* Creators Side - Mint Green */
.ac-hp-faq-creators {
    background-color: #7FE8AC;
    color: #2a2a2a;
}

/* Brands Side - Pale Yellow */
.ac-hp-faq-brands {
    background-color: #FFEF81;
    color: #2a2a2a;
}

/* Content Wrapper */
.ac-hp-faq-content {
    max-width: 600px;
    width: 100%;
}

/* Header */
.ac-hp-faq-header {
    margin-bottom: 40px;
    text-align: center;
}

.ac-hp-faq-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.ac-hp-faq-subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.85;
}

/* FAQ List */
.ac-hp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* FAQ Item */
.ac-hp-faq-item {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ac-hp-faq-creators .ac-hp-faq-item {
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.ac-hp-faq-brands .ac-hp-faq-item {
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.ac-hp-faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Question Button */
.ac-hp-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #2a2a2a;
    transition: all 0.3s ease;
}

/* FIX 1 & 2: Better hover states with dark background and white text */
.ac-hp-faq-creators .ac-hp-faq-question:hover {
    background-color: #2a2a2a;
    color: #FFFFFF;
}

.ac-hp-faq-brands .ac-hp-faq-question:hover {
    background-color: #2a2a2a;
    color: #FFFFFF;
}

.ac-hp-faq-question span:first-child {
    flex: 1;
}

/* FAQ Icon (Plus/Minus) */
.ac-hp-faq-icon {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: inherit;
}

/* FIX 3: Icon rotation when expanded */
.ac-hp-faq-item.active .ac-hp-faq-question .ac-hp-faq-icon {
    transform: rotate(45deg);
}

/* Answer */
.ac-hp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.ac-hp-faq-answer p {
    padding: 0 24px 20px 24px;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(42, 42, 42, 0.9);
}

/* FIX 3: Proper expansion */
.ac-hp-faq-item.active .ac-hp-faq-answer {
    max-height: 800px;
}

/* Active State */
.ac-hp-faq-item.active {
    background-color: rgba(255, 255, 255, 0.9);
}

.ac-hp-faq-item.active .ac-hp-faq-question {
    background-color: #2a2a2a;
    color: #FFFFFF;
}

.ac-hp-faq-creators .ac-hp-faq-item.active {
    border-color: rgba(76, 175, 80, 0.6);
}

.ac-hp-faq-brands .ac-hp-faq-item.active {
    border-color: rgba(255, 193, 7, 0.6);
}

/* Responsive Design */
@media (max-width: 968px) {
    .ac-hp-faq-container {
        flex-direction: column;
    }
    
    .ac-hp-faq-side {
        padding: 50px 30px;
        min-height: auto;
    }
    
    .ac-hp-faq-title {
        font-size: 32px;
    }
    
    .ac-hp-faq-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .ac-hp-faq-side {
        padding: 40px 20px;
    }
    
    .ac-hp-faq-title {
        font-size: 28px;
    }
    
    .ac-hp-faq-question {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .ac-hp-faq-answer p {
        padding: 0 20px 16px 20px;
        font-size: 14px;
    }
    
    .ac-hp-faq-icon {
        font-size: 20px;
    }
}
