/**
 * FAQ Accordion Widget Stylesheet
 * @package Impact_Custom_Widget
 */

.icw-faq-wrapper {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.icw-faq-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Header */
.icw-faq-header {
    text-align: center;
    margin-bottom: 45px;
}

.icw-faq-subheading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #2A85C8;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.icw-faq-title {
    margin: 0 0 14px 0;
    font-size: 36px;
    font-weight: 800;
    color: #1D3B6C;
    line-height: 1.25;
}

.icw-faq-desc {
    margin: 0 auto;
    max-width: 680px;
    font-size: 16px;
    line-height: 1.6;
    color: #556987;
}

/* Accordion */
.icw-faq-accordion {
    display: flex;
    flex-direction: column;
}

.icw-faq-item {
    background: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #E4E8EE;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.icw-faq-item:last-child {
    margin-bottom: 0;
}

.icw-faq-item.active {
    border-color: #2A85C8;
    box-shadow: 0px 8px 24px rgba(42, 133, 200, 0.08);
}

/* Accordion Button / Header */
.icw-faq-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: #1D3B6C;
    line-height: 1.4;
    transition: color 0.25s ease;
}

.icw-faq-item.active .icw-faq-button {
    color: #2A85C8;
}

.icw-faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #F0F5FA;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.icw-faq-icon i,
.icw-faq-icon svg {
    width: 14px;
    height: 14px;
    font-size: 14px;
    color: #2A85C8;
    fill: #2A85C8;
}

.icw-faq-item.active .icw-faq-icon {
    transform: rotate(45deg);
    background-color: #2A85C8;
}

.icw-faq-item.active .icw-faq-icon i,
.icw-faq-item.active .icw-faq-icon svg {
    color: #FFFFFF;
    fill: #FFFFFF;
}

/* Accordion Content */
.icw-faq-content {
    padding: 0 24px 22px 24px;
}

.icw-faq-answer {
    font-size: 15px;
    line-height: 1.65;
    color: #556987;
}

.icw-faq-answer p {
    margin: 0 0 10px 0;
}

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

/* Responsive */
@media (max-width: 767px) {
    .icw-faq-wrapper {
        padding: 40px 20px;
    }

    .icw-faq-title {
        font-size: 26px;
    }

    .icw-faq-button {
        font-size: 16px;
        padding: 16px 18px;
    }

    .icw-faq-content {
        padding: 0 18px 18px 18px;
    }
}
