/* ==========================================================================
   DIVI BUILDER – Hide FAQ footer in Visual Builder / Theme Builder
   ========================================================================== */

.et_fb .dhi-faq-section,
.et-fb .dhi-faq-section {
    display: none !important;
}

/* ==========================================================================
   DHI FAQ FOOTER – Section / Row / Column
   ========================================================================== */

.dhi-faq-section {
    width: 100%;
    padding: clamp(3rem,10vw,7rem) 0;
    background-color: #f9f9f9;
}

.dhi-faq-row {
    max-width: 1400px;
    width: 80%;
    margin: 0 auto;
}

.dhi-faq-column {
    width: 100%;
}

/* ==========================================================================
   TITLE & DESCRIPTION
   ========================================================================== */

.dhi-faq-title {
    font-size: clamp(1.50rem, 1.1rem + 1.3vw, 2rem);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #000;
    margin: 0;
    padding-bottom: 2rem;
    line-height: 1.3;
}

.dhi-faq-desc {
    margin: 0 0 clamp(2rem, 4vw, 3rem) 0;
    line-height: 1.6;
    color: #333;
}

.dhi-faq-desc p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   FAQ LIST
   ========================================================================== */

.dhi-faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================================
   FAQ ITEM – CLOSED (teal)
   ========================================================================== */

.dhi-faq-item {
    border-radius: 8px;
    overflow: hidden;
    background-color: #3A8290;
    transition: background-color 0.3s ease;
}

/* ==========================================================================
   FAQ QUESTION BUTTON
   ========================================================================== */

.dhi-faq-question {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    font-family: inherit;
    transition: color 0.3s ease;
    gap: 16px;
}

/* ==========================================================================
   PLUS / MINUS ICON
   ========================================================================== */

.dhi-faq-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dhi-faq-icon::before,
.dhi-faq-icon::after {
    content: '';
    position: absolute;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Horizontal line (always visible = minus) */
.dhi-faq-icon::before {
    top: 8px;
    left: 0;
    width: 100%;
    height: 2px;
}

/* Vertical line (visible = plus, hidden = minus) */
.dhi-faq-icon::after {
    top: 0;
    left: 8px;
    width: 2px;
    height: 100%;
}

/* ==========================================================================
   FAQ ITEM – OPEN (white)
   ========================================================================== */

.dhi-faq-item.active {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.dhi-faq-item.active .dhi-faq-question {
    color: #000000;
    padding-bottom: 10px;
}

.dhi-faq-item.active .dhi-faq-icon::before,
.dhi-faq-item.active .dhi-faq-icon::after {
    background-color: #3A8290;
}

/* Rotate vertical line to collapse into minus */
.dhi-faq-item.active .dhi-faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

/* ==========================================================================
   FAQ ANSWER
   ========================================================================== */

.dhi-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.dhi-faq-item.active .dhi-faq-answer {
    overflow: visible;
}

.dhi-faq-answer-inner {
    padding: 0 24px 20px 24px;
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

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

/* ==========================================================================
   RESPONSIVE – Tablet (max-width: 980px)
   ========================================================================== */

@media screen and (max-width: 980px) {
    .dhi-faq-section {
        padding: 50px 0;
    }

    .dhi-faq-row {
        width: 100%;
        padding: 0 2.5rem;
    }

    .dhi-faq-title {
        font-size: 24px;
    }

    .dhi-faq-question {
        font-size: 15px;
        padding: 16px 20px;
    }

    .dhi-faq-answer-inner {
        padding: 0 20px 18px 20px;
        font-size: 14px;
    }

    .dhi-faq-icon {
        width: 16px;
        height: 16px;
    }

    .dhi-faq-icon::before {
        top: 7px;
    }

    .dhi-faq-icon::after {
        left: 7px;
    }
}

/* ==========================================================================
   RESPONSIVE – Mobile (max-width: 767px)
   ========================================================================== */

@media screen and (max-width: 767px) {
    .dhi-faq-section {
        padding: 40px 0;
    }

    .dhi-faq-row {
        padding: 0 1.5rem;
    }

    .dhi-faq-title {
        font-size: 21px;
    }

    .dhi-faq-desc {
        margin-bottom: 25px;
        font-size: 14px;
    }

    .dhi-faq-list {
        gap: 12px;
    }

    .dhi-faq-question {
        font-size: 14px;
        padding: 14px 18px;
        gap: 12px;
    }

    .dhi-faq-answer-inner {
        padding: 0 18px 16px 18px;
        font-size: 13px;
    }

    .dhi-faq-icon {
        width: 14px;
        height: 14px;
    }

    .dhi-faq-icon::before {
        top: 6px;
    }

    .dhi-faq-icon::after {
        left: 6px;
    }

    .dhi-faq-item {
        border-radius: 6px;
    }
}
