/* NGO Impact Testimonials */
.ngo-it {
    --ngo-it-accent: #D99A18;
    --ngo-it-navy: #13264F;
    --ngo-it-body: #53617A;
    --ngo-it-bg: #F8F6F0;
    --ngo-it-card: #FFFFFF;
    --ngo-it-radius: 18px;
    box-sizing: border-box;
    width: 100%;
    background: var(--ngo-it-bg);
    padding: 80px 20px;
    overflow: hidden;
}

.ngo-it *, .ngo-it *::before, .ngo-it *::after {
    box-sizing: border-box;
}

.ngo-it__container {
    width: min(1180px, 100%);
    margin: 0 auto;
    text-align: center;
}

.ngo-it__eyebrow-wrap {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ngo-it__eyebrow-line {
    display: block;
    width: 42px;
    height: 2px;
    background: var(--ngo-it-accent);
}

.ngo-it__eyebrow {
    color: var(--ngo-it-accent);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ngo-it__heading {
    margin: 0;
    color: var(--ngo-it-navy);
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
    font-weight: 700;
}

.ngo-it__intro {
    max-width: 760px;
    margin: 18px auto 42px;
    color: var(--ngo-it-body);
    font-size: 18px;
    line-height: 1.7;
}

.ngo-it__layout {
    display: grid !important;
    grid-template-columns: minmax(320px, 38%) minmax(0, 62%) !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: none !important;
    text-align: left;
    align-items: stretch;
}

.ngo-it__tabs,
.ngo-it__panel {
    min-height: 520px;
    width: 100% !important;
    max-width: none !important;
    padding: 58px 64px 42px;
    border: 1px solid rgba(19, 38, 79, .06);
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 50px rgba(19, 38, 79, .08);
}

.ngo-it__tabs {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(19, 38, 79, .08);
}

.ngo-it__tab {
    width: 100%;
    min-height: 98px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid rgba(19, 38, 79, .08);
    background: transparent;
    color: var(--ngo-it-navy);
    text-align: left;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s ease;
    font: inherit;
}

.ngo-it__tab:last-child {
    border-bottom: 0;
}

.ngo-it__tab:hover {
    background: rgba(217, 154, 24, .08);
}

.ngo-it__tab.is-active {
    background: var(--ngo-it-accent);
    color: #fff;
}

.ngo-it__icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #13264F;
    color: #FFFFFF;
    font-size: 23px;
    line-height: 1;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.ngo-it__icon i,
.ngo-it__icon svg {
    width: 1em;
    height: 1em;
}

.ngo-it__tab.is-active .ngo-it__icon {
    background: rgba(255,255,255,.96);
    color: var(--ngo-it-accent);
}

.ngo-it__tab-copy {
    min-width: 0;
    flex: 1;
}

.ngo-it__tab-name,
.ngo-it__tab-role {
    display: block;
}

.ngo-it__tab-name {
    color: var(--ngo-it-navy);
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
}

.ngo-it__tab-role {
    margin-top: 5px;
    color: var(--ngo-it-body);
    font-size: 14px;
    line-height: 1.35;
}

.ngo-it__tab.is-active .ngo-it__tab-name,
.ngo-it__tab.is-active .ngo-it__tab-role {
    color: #fff;
}

.ngo-it__tab-chevron {
    flex: 0 0 auto;
    font-size: 32px;
    line-height: 1;
    color: #9aa2af;
    transition: transform .25s ease, color .25s ease;
}

.ngo-it__tab.is-active .ngo-it__tab-chevron {
    color: #fff;
    transform: translateX(3px);
}

.ngo-it__panel {
    min-height: 560px;
    padding: 52px 58px 42px;
    border: 1px solid rgba(19, 38, 79, .06);
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 50px rgba(19, 38, 79, .08);
}

.ngo-it__slides {
    position: relative;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 auto;
    min-height: 0;
}

.ngo-it__slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    animation: ngoItFade .35s ease;
}

.ngo-it__slide.is-active {
    display: grid;
}

@keyframes ngoItFade {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}







.ngo-it__story {
    position: relative;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.ngo-it__quote-mark {
    display: block;
    height: 42px;
    color: var(--ngo-it-accent);
    font-family: Georgia, serif;
    font-size: 58px;
    line-height: .8;
}

.ngo-it__quote {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 14px 0 28px !important;
    padding: 0 !important;
    color: var(--ngo-it-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(21px, 1.8vw, 30px);
    line-height: 1.48;
    font-weight: 400;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
}

.ngo-it__person {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 18px;
    border-top: 2px solid var(--ngo-it-accent);
    max-width: 260px;
}

.ngo-it__name {
    color: var(--ngo-it-navy);
    font-size: 18px;
    line-height: 1.3;
}

.ngo-it__role {
    color: var(--ngo-it-body);
    font-size: 14px;
    line-height: 1.4;
}

.ngo-it__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    flex: 0 0 auto;
}

.ngo-it__dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ngo-it__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d8d9dc;
    cursor: pointer;
    transition: all .25s ease;
}

.ngo-it__dot.is-active {
    width: 12px;
    height: 12px;
    background: var(--ngo-it-accent);
}

.ngo-it__arrows {
    display: flex;
    gap: 10px;
}

.ngo-it__arrow {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f0f1f3;
    color: var(--ngo-it-navy);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.ngo-it__arrow:hover {
    transform: translateY(-2px);
}

.ngo-it__arrow--next {
    background: var(--ngo-it-accent);
    color: #fff;
}

.ngo-it__mobile-select-wrap {
    display: none;
}

.ngo-it__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 900px) {
    .ngo-it {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .ngo-it__layout {
        grid-template-columns: minmax(250px, 34%) minmax(0, 66%) !important;
        gap: 18px;
    }

   .ngo-it__panel {
        padding: 30px;
    }

    .ngo-it__slide {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0;
    }

    .ngo-it__quote {
        font-size: 25px;
    }
}

@media (max-width: 680px) {
    .ngo-it {
        padding: 52px 16px;
    }

    .ngo-it__heading {
        font-size: 34px;
    }

    .ngo-it__intro {
        margin-bottom: 26px;
        font-size: 16px;
    }

    .ngo-it__mobile-select-wrap {
        display: block;
        margin-bottom: 14px;
    }

    .ngo-it__mobile-select {
        width: 100%;
        min-height: 52px;
        padding: 0 16px;
        border: 1px solid rgba(19, 38, 79, .15);
        border-radius: 12px;
        background: #fff;
        color: var(--ngo-it-navy);
        font: inherit;
    }

    .ngo-it__tabs {
        display: none;
    }

    .ngo-it__layout {
        display: block;
    }

   .ngo-it__panel {
        min-height: 0;
        padding: 20px;
        border-radius: 15px;
    }

    .ngo-it__slide {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0;
    }

    .ngo-it__quote-mark {
        height: 42px;
        font-size: 62px;
    }

    .ngo-it__quote {
        margin: 8px 0 24px;
        font-size: clamp(20px, 5vw, 25px) !important;
        line-height: 1.5 !important;
    }

    .ngo-it__controls {
        margin-top: 25px;
    }

    .ngo-it__arrow {
        width: 43px;
        height: 43px;
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ngo-it__slide {
        animation: none;
    }

    .ngo-it__tab,
    .ngo-it__arrow,
    .ngo-it__dot {
        transition: none;
    }
}


/* Final width safeguards: the testimonial must use the complete right panel. */
.ngo-it .ngo-it__panel .ngo-it__slides,
.ngo-it .ngo-it__panel .ngo-it__slide,
.ngo-it .ngo-it__panel .ngo-it__story,
.ngo-it .ngo-it__panel .ngo-it__quote {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}
.ngo-it .ngo-it__panel .ngo-it__slide.is-active {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
}
.ngo-it .ngo-it__panel blockquote.ngo-it__quote {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
@media (max-width: 900px) {
    .ngo-it__layout {
        grid-template-columns: minmax(250px, 34%) minmax(0, 66%) !important;
    }
    .ngo-it__panel {
        padding: 38px 40px 32px;
    }
    .ngo-it__quote {
        font-size: clamp(20px, 2.8vw, 27px) !important;
        line-height: 1.48 !important;
    }
}
@media (max-width: 680px) {
    .ngo-it__layout {
        display: block !important;
    }
    .ngo-it__panel {
        padding: 30px 24px 24px;
    }
    .ngo-it__quote {
        font-size: clamp(20px, 5vw, 25px) !important;
        line-height: 1.5 !important;
    }
}


/* v1.3.1: compact quote typography prevents the testimonial from covering author details. */
.ngo-it .ngo-it__panel .ngo-it__story {
    overflow: visible !important;
}
.ngo-it .ngo-it__panel .ngo-it__quote {
    position: static !important;
    transform: none !important;
}
.ngo-it .ngo-it__panel .ngo-it__person {
    position: static !important;
    clear: both !important;
    margin-top: 0 !important;
}


/* v1.3.1: borderless testimonial content */
.ngo-impact-testimonials .ngo-it__quote,
.ngo-impact-testimonials .ngo-it__quote-wrap,
.ngo-impact-testimonials .ngo-it__story,
.ngo-impact-testimonials .ngo-it__story-content {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}
