/* Elementor Premium FAQ & Accordion Widget Styles */

.epf-faq-widget-wrapper {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
}


/* FAQ Items Layouts */
.epf-faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Grid Layout Class (applied dynamically via settings) */
.epf-faq-items.epf-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
    .epf-faq-items.epf-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual FAQ Item Card */
.epf-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Premium Hover Transitions */
.epf-faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Glassmorphism Preset class */
.epf-faq-item.epf-glassmorphism {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

.epf-faq-item.epf-glassmorphism:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
}

/* Dark Mode support inside glassmorphism if container/body is dark */
.epf-dark-mode .epf-faq-item.epf-glassmorphism {
    background: rgba(17, 24, 39, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}
.epf-dark-mode .epf-faq-item.epf-glassmorphism:hover {
    background: rgba(17, 24, 39, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Question Header */
.epf-faq-header {
    width: 100%;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    outline: none;
    gap: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.epf-faq-header:focus-visible {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Question Title Span */
.epf-faq-title {
    flex-grow: 1;
}

/* Icon / Chevron Wrapper */
.epf-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #4b5563;
}

.epf-faq-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Opened State Class styles */
.epf-faq-item.epf-active .epf-faq-icon {
    transform: rotate(180deg);
}

/* Chevron/Plus swap animation helper */
.epf-faq-item.epf-active .epf-faq-icon.epf-icon-plus-minus {
    transform: rotate(90deg);
}

/* Accordion Content Box */
.epf-faq-content-wrapper {
    height: 0;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.epf-faq-content {
    padding: 0 24px 20px 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    border-top: 1px solid transparent;
}

.epf-faq-item.epf-active .epf-faq-content {
    border-top-color: #f3f4f6;
}

/* Smooth fade in animation for matching items during filter */
@keyframes epfFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.epf-fade-in {
    animation: epfFadeIn 0.3s ease forwards;
}

/* Utility to hide elements */
.epf-hidden {
    display: none !important;
}

/* Left Item Icon styling */
.epf-faq-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    flex-shrink: 0;
    transition: color 0.3s ease;
}
.epf-faq-item-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
