/* ============================================================
   faq-frontend.css
   Place in: wp-content/themes/YOUR-THEME/faq-frontend.css
   Then enqueue it in functions.php (see note at bottom)
   ============================================================ */

/* ── Section Wrapper ── */
.axcel-faq-section {
    background: #f9fafb;
    padding: 72px 20px;
    /* border-top: 3px solid #C2410C; */
}

/* ── Container ── */
.axcel-faq-container {
    max-width: 860px;
    margin: 0 auto;
}

/* ── Heading Block ── */
.axcel-faq-heading {
    text-align: center;
    margin-bottom: 48px;
}

.axcel-faq-heading h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    color: #28303D !important;
    margin: 0 0 14px;
    line-height: 1.2;
}

.axcel-faq-highlight {
    color: #C2410C;
}

.axcel-faq-intro {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    max-width: 660px;
    margin: 0 auto;
}

/* ── Accordion Wrapper ── */
.axcel-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Single FAQ Item ── */
.axcel-faq-item {
    /* background: #fff; */
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.axcel-faq-item:hover {
    border-color: #25A0DB;
    box-shadow: 0 4px 14px rgba(37, 160, 219, 0.12);
}

.axcel-faq-item.is-open {
    border-color: #C2410C;
    box-shadow: 0 4px 16px rgba(194, 65, 12, 0.12);
}

/* ── Question Button ── */
.axcel-faq-question-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    background: #25A0DB !important;
    border: none;
    padding: 20px 24px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}


.axcel-faq-question-btn:focus {
    
    background: #25A0DB !important;
    
}

/* .axcel-faq-question-btn:hover {
    background: #fff8f5;
} */

.axcel-faq-item.is-open .axcel-faq-question-btn {
    /* background: #fff5f0; */
    border-bottom: 1px solid #fce8dc;
}

.axcel-faq-q-text {
    font-size: 16px;
    font-weight: 600;
    color: white !important;
    line-height: 1.4;
    flex: 1;
}

/* .axcel-faq-item.is-open .axcel-faq-q-text {
    color: #C2410C !important;
} */



/* ── +/- Icon ── */
.axcel-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffc706;
    color: #1a1a1a;
    transition: background 0.25s ease, transform 0.3s ease;
}

.axcel-faq-item.is-open .axcel-faq-icon {
    background: #C2410C;
    color: #fff;
    transform: rotate(180deg) !important;
    transition: all 0.5s ease ;
}

/* Vertical bar animation (becomes – when open) */
.faq-icon-v {
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: center;
}

.axcel-faq-item.is-open .faq-icon-v {
    opacity: 0;
    transform: scaleY(0);
}

/* ── Answer Panel ── */
.axcel-faq-answer-panel {
    overflow: hidden;
    /* Animated via JS with max-height trick */
    max-height: 0;
    transition: max-height 0.35s ease;
}

/* When not hidden (JS removes [hidden] and sets max-height) */
.axcel-faq-answer-panel:not([hidden]) {
    /* max-height set dynamically by JS */
}

.axcel-faq-answer-inner {
    padding: 20px 24px;
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    border-top: 0; /* border already on btn when open */
}

.axcel-faq-answer-inner br {
    display: block;
    content: "";
    margin-bottom: 8px;
}

/* ── Accent line on left when open ── */
.axcel-faq-item.is-open {
    border-left: 4px solid #C2410C;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .axcel-faq-section {
        padding: 48px 16px;
    }

    .axcel-faq-question-btn {
        padding: 16px 18px;
        gap: 12px;
    }

    .axcel-faq-q-text {
        font-size: 14px;
    }

    .axcel-faq-answer-inner {
        padding: 16px 18px;
        font-size: 14px;
    }

    .axcel-faq-icon {
        width: 28px;
        height: 28px;
    }
}

/* ============================================================
   HOW TO ENQUEUE faq-frontend.css in functions.php:
   
   add_action( 'wp_enqueue_scripts', 'axcel_enqueue_faq_styles' );
   function axcel_enqueue_faq_styles() {
       if ( is_singular('services') ) {
           wp_enqueue_style(
               'axcel-faq-frontend',
               get_stylesheet_directory_uri() . '/faq-frontend.css',
               array(),
               '1.0.0'
           );
           wp_enqueue_script(
               'axcel-faq-frontend',
               get_stylesheet_directory_uri() . '/faq-frontend.js',
               array(),
               '1.0.0',
               true
           );
       }
   }
   ============================================================ */
