/* ==========================================
   MOROTO UNIVERSITY PROJECT
   FAQ MODULE STYLING
   Font: Poppins
========================================== */

.mu-faqs {
    --mu-green: #08783E;
    --mu-deep: #064D32;
    --mu-gold: #F4C430;
    --mu-text: #263C32;
    --mu-muted: #6B7C72;
    --mu-border: #E4EBE6;
    --mu-soft: #F6F9F7;

    width: 100%;
    max-width: 1140px;

    margin: 0 auto;
    padding: 60px 20px 75px;

    font-family: "Poppins", sans-serif;
    color: var(--mu-text);
    box-sizing: border-box;
}

.mu-faqs *,
.mu-faqs *::before,
.mu-faqs *::after {
    box-sizing: border-box;
}

/* INTRO */
.mu-faqs__intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 28px;
}

.mu-faqs__intro-text {
    max-width: 750px;
}

.mu-faqs__eyebrow {
    display: block;

    margin-bottom: 10px;

    color: var(--mu-green);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.mu-faqs__description {
    margin: 0;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;

    color: var(--mu-muted);
}

.mu-faqs__count {
    flex-shrink: 0;

    padding: 9px 16px;

    background: #EDF6EF;
    color: var(--mu-green);

    border: 1px solid #D7EADD;
    border-radius: 30px;

    font-size: 12px;
    font-weight: 600;
}

/* SEARCH */
.mu-faqs__search-wrap {
    margin-bottom: 26px;
}

.mu-faqs__search-label {
    display: block;
    margin-bottom: 9px;

    font-size: 12px;
    font-weight: 600;
    color: var(--mu-deep);
}

.mu-faqs__search-box {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 18px;

    background: #FFFFFF;

    border: 1px solid #DDE7DF;
    border-radius: 11px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.025);

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.mu-faqs__search-box:focus-within {
    border-color: var(--mu-green);

    box-shadow:
        0 0 0 4px rgba(8, 120, 62, 0.08);
}

.mu-faqs__search-box svg {
    width: 20px;
    height: 20px;

    color: var(--mu-green);
    flex-shrink: 0;
}

.mu-faqs__search {
    width: 100%;
    min-width: 0;
    height: 55px;

    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    color: var(--mu-text) !important;

    font-family: "Poppins", sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

.mu-faqs__search::placeholder {
    color: #97A59C;
}

/* ACCORDION LIST */
.mu-faqs__list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

/* FAQ CARD */
.mu-faqs__item {
    overflow: hidden;

    background: #FFFFFF;

    border: 1px solid var(--mu-border);
    border-radius: 12px;

    box-shadow: 0 4px 22px rgba(3, 52, 30, 0.035);

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.mu-faqs__item:hover {
    border-color: #C8DDCE;

    box-shadow:
        0 8px 28px rgba(3, 52, 30, 0.07);
}

.mu-faqs__item.is-open {
    border-color: #C8E1D0;

    box-shadow:
        0 10px 30px rgba(3, 52, 30, 0.075);
}

/* QUESTION */
.mu-faqs__question {
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.mu-faqs__trigger {
    display: flex;
    align-items: center;
    gap: 17px;

    width: 100%;

    padding: 23px 24px;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;

    text-align: left;
    cursor: pointer;

    font-family: "Poppins", sans-serif !important;
    box-shadow: none !important;
}

.mu-faqs__trigger:focus-visible {
    outline: 3px solid var(--mu-gold);
    outline-offset: -4px;
}

.mu-faqs__question-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    background: #EEF7F1;
    color: var(--mu-green);

    border-radius: 10px;
}

.mu-faqs__question-icon svg {
    width: 21px;
    height: 21px;
}

.mu-faqs__question-text {
    flex: 1;

    font-family: "Poppins", sans-serif !important;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;

    color: var(--mu-deep);
}

.mu-faqs__toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    flex-shrink: 0;

    border: 1px solid #DDEBE1;
    border-radius: 50%;

    color: var(--mu-green);

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.mu-faqs__toggle svg {
    width: 17px;
    height: 17px;
}

.mu-faqs__plus-vertical {
    transform-origin: center;
    transition: transform .25s ease;
}

.mu-faqs__item.is-open .mu-faqs__toggle {
    background: var(--mu-green);
    color: #FFFFFF;
    border-color: var(--mu-green);
}

.mu-faqs__item.is-open .mu-faqs__plus-vertical {
    transform: rotate(90deg);
}

/* ANSWER */
.mu-faqs__panel[hidden] {
    display: none !important;
}

.mu-faqs__panel {
    border-top: 1px solid #E9F0EB;

    background:
        linear-gradient(
            135deg,
            #FAFCFA,
            #F5F9F6
        );
}

.mu-faqs__answer {
    padding: 22px 28px 25px 83px;

    font-family: "Poppins", sans-serif;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;

    color: #52665A;
}

.mu-faqs__answer p {
    margin: 0 0 14px;

    color: inherit;

    font-size: inherit;
    line-height: inherit;
}

.mu-faqs__answer p:last-child {
    margin-bottom: 0;
}

.mu-faqs__answer a {
    color: var(--mu-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* EMPTY SEARCH */
.mu-faqs__no-results {
    padding: 45px 20px;

    text-align: center;

    background: var(--mu-soft);
    border: 1px dashed #D6E4DA;
    border-radius: 12px;
}

.mu-faqs__no-results[hidden] {
    display: none !important;
}

.mu-faqs__no-results strong {
    display: block;
    color: var(--mu-deep);
    margin-bottom: 8px;
}

.mu-faqs__no-results p {
    margin: 0;
    font-size: 13px;
    color: var(--mu-muted);
}

/* CONTACT CTA */
.mu-faqs__help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    margin-top: 35px;
    padding: 26px 30px;

    background:
        linear-gradient(
            110deg,
            #064D32,
            #08783E
        );

    border-radius: 13px;
}

.mu-faqs__help-content {
    display: flex;
    align-items: center;
    gap: 17px;
}

.mu-faqs__help-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    background: rgba(255,255,255,.12);
    border-radius: 11px;

    color: var(--mu-gold);
}

.mu-faqs__help-icon svg {
    width: 23px;
    height: 23px;
}

.mu-faqs__help-content strong {
    display: block;

    font-size: 16px;
    font-weight: 600;

    color: #FFFFFF;
}

.mu-faqs__help-content p {
    margin: 5px 0 0;

    font-size: 12px;
    line-height: 1.7;

    color: rgba(255,255,255,.8);
}

.mu-faqs__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    flex-shrink: 0;

    padding: 13px 23px;

    background: var(--mu-gold);
    color: #064D32 !important;

    border-radius: 8px;

    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;

    text-decoration: none !important;

    transition:
        background .25s ease,
        transform .25s ease;
}

.mu-faqs__contact:hover {
    background: #FFE078;
    transform: translateY(-2px);
}

/* TABLET */
@media (max-width: 1024px) {
    .mu-faqs {
        padding: 45px 20px 60px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .mu-faqs {
        padding: 35px 15px 50px;
    }

    .mu-faqs__intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .mu-faqs__description {
        font-size: 13px;
        line-height: 1.8;
    }

    .mu-faqs__count {
        font-size: 11px;
    }

    .mu-faqs__search {
        height: 50px;
        font-size: 12px !important;
    }

    .mu-faqs__trigger {
        gap: 12px;
        padding: 17px 15px;
    }

    .mu-faqs__question-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .mu-faqs__question-icon svg {
        width: 18px;
        height: 18px;
    }

    .mu-faqs__question-text {
        font-size: 13px;
        line-height: 1.65;
    }

    .mu-faqs__toggle {
        width: 28px;
        height: 28px;
    }

    .mu-faqs__answer {
        padding: 18px 18px 20px;

        font-size: 13px;
        line-height: 1.85;
    }

    .mu-faqs__help {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;

        padding: 23px 20px;
    }

    .mu-faqs__help-content strong {
        font-size: 14px;
    }

    .mu-faqs__contact {
        width: 100%;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .mu-faqs *,
    .mu-faqs *::before,
    .mu-faqs *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Refined outline icons, uniform Lucide-style strokes */
.mu-faqs__question-icon {background:#f0f7f2;border:1px solid #dcebe0;color:#08783e;}
.mu-faqs__question-icon svg,.mu-faqs__toggle svg,.mu-faqs__help-icon svg,.mu-faqs__search-box svg,.mu-faqs__contact svg {display:block;fill:none!important;stroke:currentColor!important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.mu-faqs__question-icon svg {width:20px;height:20px;}
.mu-faqs__toggle {background:#fff;}
.mu-faqs__toggle svg {width:18px;height:18px;}
.mu-faqs__help-icon {background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);}
.mu-faqs__help-icon svg {width:23px;height:23px;}
.mu-faqs__contact svg {width:17px;height:17px;flex:none;}
.mu-faqs__contact:focus-visible {outline:3px solid #fff;outline-offset:3px;}
.mu-faqs__item[hidden] {display:none!important;}
