/* ===================================
   MODERN FAQ SECTION (S12)
   =================================== */

.modern-faq-section {
    background: #ffffff;
    padding: 100px 0 !important;
}

.modern-faq-section .common-heading {
    margin-bottom: 0;
}

.modern-faq-section .common-heading h2 {
    color: #1f2937;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.modern-faq-section .common-heading h2 span {
    background: linear-gradient(135deg, #008060 0%, #00a078 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-faq-section .common-heading p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    padding: 0;
    margin-top: 0;
}

/* FAQ Image (SVG) */
.faq-image {
    padding: 20px;
    text-align: center;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.faq-image svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 128, 96, 0.15));
}

/* FAQ Accordion */
.faq-accordion {
    padding-left: 20px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: #008060;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
    border-color: #008060;
    box-shadow: 0 8px 20px rgba(0, 128, 96, 0.1);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.3s ease;
}

.faq-item.active .faq-question {
    background: linear-gradient(to right, #f9fafb, #fff);
}

.faq-question h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
    padding-right: 20px;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question h4 {
    color: #008060;
}

.faq-icon {
    min-width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    background: #008060;
    transform: rotate(180deg);
}

.faq-icon i {
    font-size: 14px;
    color: #4b5563;
    transition: color 0.3s ease;
}

.faq-item.active .faq-icon i {
    color: #ffffff;
    content: "\f068";
    /* minus icon */
}

/* Handle icon switch in JS or simplify here visually */
.faq-item.active .faq-icon i::before {
    content: "\f068";
}

.faq-answer {
    padding: 0 25px 25px 25px;
    display: none;
    border-top: 1px solid transparent;
}

.faq-answer p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .faq-image {
        max-width: 300px;
        margin: 0 auto 40px;
    }

    .faq-accordion {
        padding-left: 0;
    }

    .modern-faq-section {
        padding: 60px 0 !important;
    }

    .modern-faq-section .common-heading h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .faq-question {
        padding: 15px 20px;
    }

    .faq-question h4 {
        font-size: 16px;
    }

    .faq-answer {
        padding: 0 20px 20px 20px;
    }
}