/**
 * FAQ Accordion with Tabs Widget CSS
 * 
 * This file contains styles specific to the FAQ Accordion with Tabs widget.
 * All styles are designed to work with Elementor's dynamic styling system.
 */

/* ==========================================
   FAQ ACCORDION WITH TABS WIDGET
   ========================================== */

.cew-content-accordion-tabs-widget {
    position: relative;
    padding: 80px 0;
}

/* Header Section */
.cew-faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.cew-faq-title {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.cew-faq-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}


/* Tabs Section */
/* .cew-faq-tabs-wrapper {
    margin-bottom: 40px;
} */

.cew-faq-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    /* margin-bottom: 30px; */
}

.cew-faq-tab {
    background: #f8f9fa;
    /* border: 2px solid #e9ecef; */
    color: #495057;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    /* min-width: 120px; */
    text-align: center;
}

.cew-faq-tab:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.cew-faq-tab.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
    /* box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3); */
}


.tab-accordion-wrap{margin-top: 52px;}

/* Content Section */
.cew-faq-content {
    /* max-width: 800px; */
    margin: 0 auto;
}

.cew-faq-panel {
    display: none;
}

.cew-faq-panel.active {
    display: block;
}

/* Accordion Items */
.cew-faq-accordion {
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.cew-faq-item {
    border-bottom: 1px solid #999999;
    background: #ffffff;
}
/* 
.cew-faq-item:last-child {
    border-bottom: none;
} */

.cew-faq-question-wrapper {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* .cew-faq-question-wrapper:hover {
    background-color: #f8f9fa;
} */
/* .cew-faq-question-wrapper .cew-faq-question:first-child{margin-top: 52px;} */
.cew-faq-question {
    margin: 0;
    padding:  32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cew-faq-question:hover {
    color: #dc3545;
}

.cew-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.cew-faq-icon img {
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.3s ease;
}

.cew-faq-item.active .cew-faq-icon img {
    transform: rotate(-90deg);
}

.cew-faq-item.active {
    background-color: #F7F7F7;
}
/* .cew-faq-item.active .cew-faq-question {
    color: #dc3545;
    background-color: #fff5f5;
} */



/* Category Title in All Tab */
.cew-faq-category-title {
    /* background: #f8f9fa; */
    /* border-bottom: 2px solid #dc3545; */
    /* margin: 20px 0 10px 0; */
    /* padding: 15px 25px; */
    /* border-radius: 8px 8px 0 0; */
}

.cew-faq-category-title h3 {
    margin-bottom: 34px;
    color: var(--black);
    font-weight: 500;
    /* font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px; */
}

/* Answer Section */
.cew-faq-answer-wrapper {
    display: none;
    padding: 0 32px 32px;
    /* background: #ffffff; */
    /* border-top: 1px solid #f1f3f4; */
}

.cew-faq-answer {
    /* padding: 0 25px 20px; */
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

.cew-faq-answer p {
    margin-bottom: 12px;
}

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

.cew-faq-answer ul,
.cew-faq-answer ol {
    margin-bottom: 1rem;
    padding-left: 20px;
}

.cew-faq-answer li {
    margin-bottom: 0.5rem;
}

/* Empty State */
.cew-faq-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.cew-faq-empty p {
    margin: 0;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1599px) {
    .cew-faq-question { padding: 26px;}
    .cew-faq-answer-wrapper { padding: 0 26px 26px;}
    .cew-faq-icon{height: 20px;width: 20px;}
}
@media (max-width: 1366px) {
    .cew-faq-question { padding: 26px;}
    .cew-faq-answer-wrapper { padding: 0 26px 26px;}
    .cew-faq-category-title h3 { margin-bottom: 28px;}
    .tab-accordion-wrap { margin-top: 44px;}
    .cew-faq-icon { width: 20px; height: 20px;}
}
@media (max-width: 1199px) {
    .cew-faq-question { padding: 20px;}
    .cew-faq-answer-wrapper { padding: 0 20px 20px;}
    .tab-accordion-wrap{ margin-top: 42px;}
    .cew-faq-icon { width: 18px; height: 18px;}
}
@media (max-width: 991px) {
    .cew-faq-question { padding: 16px 12px 16px 18px;}
    .cew-faq-answer-wrapper { padding: 0 12px 16px 18px;}
    /* .cew-faq-category-title h3 { margin-bottom: 28px;} */
    .tab-accordion-wrap{ margin-top: 40px;}
    .cew-faq-icon { width: 16px; height: 16px;}
}
@media (max-width: 767px) {
    /* .cew-content-accordion-tabs-widget {
        padding: 60px 0;
    } */

    /* .cew-faq-header {
        margin-bottom: 40px;
    } */

    .cew-faq-title {
        font-size: 2rem;
    }

    .cew-faq-description {
        font-size: 1rem;
    }

    .cew-faq-tabs {
        gap: 8px;
    }

    .cew-faq-tab {
        /* padding: 10px 16px; */
        font-size: 0.9rem;
        /* min-width: 100px; */
    }

    .cew-faq-question {
        /* padding: 16px 20px; */
        font-size: 1rem;
    }

    .cew-faq-answer {
        /* padding: 0 20px 16px; */
        font-size: 0.95rem;
    }

    /* .cew-faq-category-title {
        margin: 15px 0 8px 0;
        padding: 12px 20px;
    } */

    /* .cew-faq-category-title h3 {
        font-size: 1.1rem;
    } */
    
    .cew-faq-question { padding: 14px 8px 14px 18px;}
    .cew-faq-answer-wrapper { padding: 0 8px 14px 18px;}
    .cew-faq-category-title h3 { margin-bottom: 26px;}
    .tab-accordion-wrap{ margin-top: 36px;}
    .cew-faq-icon { width: 15px; height: 15px;}
}

@media (max-width: 575px) {
    .cew-faq-title {
        font-size: 1.75rem;
    }

    .cew-faq-tabs {
        /* flex-direction: column; */
        align-items: center;
    }

    /* .cew-faq-tab {
        width: 200px;
        margin-bottom: 8px;
    } */

    .cew-faq-question {
        /* padding: 14px 16px; */
        font-size: 0.95rem;
    }

    .cew-faq-answer {
        /* padding: 0 16px 14px; */
        font-size: 0.9rem;
    }

    /* .cew-faq-category-title {
        margin: 12px 0 6px 0;
        padding: 10px 16px;
    } */

    /* .cew-faq-category-title h3 {
        font-size: 1rem;
    } */
    .cew-faq-question { padding: 14px 14px 14px 18px;}
    .cew-faq-answer-wrapper { padding: 4px 20px 17px 18px;}
    .tab-accordion-wrap{ margin-top: 32px;}
}

/* Animation Classes */
.cew-faq-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.cew-faq-item.cew-animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Elementor Integration */
.elementor-widget.elementor-widget-faq_accordion_tabs .cew-faq-title {
    margin-bottom: 1rem;
}

.elementor-widget.elementor-widget-faq_accordion_tabs .cew-faq-description {
    margin-bottom: 0;
}

/* Accessibility */
.cew-faq-tab:focus,
.cew-faq-question:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .cew-faq-tabs-wrapper {
        display: none;
    }

    .cew-faq-panel {
        display: block !important;
        page-break-inside: avoid;
    }

    .cew-faq-answer-wrapper {
        display: block !important;
    }
} 