/* CPT FAQ Styles */

.cpt-faq-container {
    padding: 40px 0;
    position: relative;
    background: transparent !important;
    background-color: transparent !important;
}

.cpt-faq-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent !important;
    background-color: transparent !important;
}

/* High specificity overrides for theme conflicts */
body.theme-cpt-academi .cpt-faq-container,
body.theme-cpt-academi .cpt-faq-content,
body.theme-cpt-academi .cpt-faq-accordion,
body.theme-cpt-academi .cpt-faq-item,
body.theme-cpt-academi #page,
body.theme-cpt-academi #page-content,
body.theme-cpt-academi .main-content,
body.theme-cpt-academi .content-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Override any possible theme wrapper backgrounds but keep content backgrounds */
.theme-cpt-academi .cpt-faq-container,
.cpt-faq-container {
    background-color: transparent !important;
}

/* Ensure FAQ items maintain their backgrounds */
.cpt-faq-userguide, .cpt-faq-accordion, .cpt-faq-item {
    background: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.cpt-faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.cpt-faq-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 20px;
}

.cpt-faq-userguide {
    box-shadow: 0px 0px 5px 5px rgba(158, 158, 158, 0.2) !important;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.cpt-faq-userguide-icon {
    background: #ff6b35;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cpt-faq-userguide-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cpt-faq-userguide-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000000;
}

.cpt-faq-learnmore-btn {
    background: transparent;
    border: none;
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.cpt-faq-learnmore-btn:hover {
    color: #e55a2b;
    text-decoration: none;
}

.cpt-faq-accordion {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 0px 20px 3px rgba(158, 158, 158, 0.5) !important;
}

.cpt-faq-item {
    border-bottom: 1px solid #f0f0f0;
}

.cpt-faq-item:last-child {
    border-bottom: none;
}

.cpt-faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.3s ease;
    user-select: none;
}

.cpt-faq-question:hover {
    background-color: #f8f9fa;
}

.cpt-faq-question[aria-expanded="true"] {
    background-color: #ffffff;
}

.cpt-faq-number {
    font-weight: bold;
    color: #000000;
    font-size: 1.1rem;
    min-width: 25px;
}

.cpt-faq-question-text {
    flex: 1;
    font-size: 1rem;
    font-weight: bold;
    color: #000000;
    line-height: 1.4;
}

.cpt-faq-toggle-icon {
    color: #000000;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.cpt-faq-question[aria-expanded="true"] .cpt-faq-toggle-icon {
    transform: rotate(180deg);
}

.cpt-faq-answer {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
}

.cpt-faq-answer.show {
    max-height: none;
}

.cpt-faq-answer-content {
    padding: 0 25px 25px 65px;
    color: #000000;
    line-height: 1.6;
}

.cpt-faq-answer-content p {
    margin-bottom: 15px;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .cpt-faq-content {
        padding: 0 15px;
    }
    
    .cpt-faq-title {
        font-size: 2rem;
    }
    
    .cpt-faq-userguide {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cpt-faq-userguide-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .cpt-faq-question {
        padding: 15px 20px;
        gap: 10px;
    }
    
    .cpt-faq-answer-content {
        padding: 0 20px 20px 50px;
    }
    
    .cpt-faq-question-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .cpt-faq-title {
        font-size: 1.8rem;
    }
    
    .cpt-faq-userguide-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cpt-faq-question {
        padding: 12px 15px;
    }
    
    .cpt-faq-answer-content {
        padding: 0 15px 15px 40px;
    }
}
