/* =============================================
   Experts Feature Element
   ============================================= */

.element-experts-feature {
    max-width: 672px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* ----- Quote Container (top section) ----- */

.experts-feature__quote-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Left column: accent strip */
.experts-feature__accent-col {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    padding-top: var(--Spacing-s4, 32px);
    gap: 10px;
}

.experts-feature__accent {
    width: 32px;
    background: var(--Color-Palette-Primary-Indigo, #2D0F6C);
    align-self: stretch;
    border-radius: var(--Corner-Radius-m, 16px) 0 0 0;
}

/* Right column: indigo bg with light purple content inside */
.experts-feature__quote-outer {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* background: var(--Color-Palette-Primary-Indigo, #2D0F6C); */
    border-radius: var(--Corner-Radius-m, 16px) var(--Corner-Radius-m, 16px) var(--Corner-Radius-m, 16px) 0;
    overflow: hidden;
    gap: 10px;
    position: relative;
}

.experts-feature__quote-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--Spacing-s3, 24px);
    padding: var(--Spacing-s4, 32px);
    background: var(--Color-Palette-Tertiary-Lightest-Purple, #F9F5FF);
    border-radius: var(--Corner-Radius-m, 16px);
    z-index: 1;
}

.experts-feature__quote {
    color: var(--Text-Colors-text-primary, #1E212B);
    font-family: var(--font-instrument, 'Instrument Sans', sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5em;
    letter-spacing: 0.09px;
    margin: 0;
    flex: 1;
}

.experts-feature__photo-wrapper {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: var(--Corner-Radius-m, 16px);
    background: var(--Color-Palette-Tertiary-Light-Purple, #E7D6FF);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.experts-feature__photo-wrapper .experts-feature__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.experts-feature__blue-background {
    background: var(--Color-Palette-Primary-Indigo, #2D0F6C);
    width: 17px;
    height: 17px;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ----- Info Bar (bottom section) ----- */

.experts-feature__info-wrapper {
    padding-right: var(--Spacing-s4, 32px);
}

.experts-feature__info {
    background: var(--Color-Palette-Primary-Indigo, #2D0F6C);
    border-radius: 0 0 var(--Corner-Radius-m, 16px) var(--Corner-Radius-m, 16px);
    padding: 0 var(--Spacing-s4, 32px);
}

.experts-feature__info-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--Spacing-s2, 16px);
    padding: var(--Spacing-s3, 24px) 0;
}

.experts-feature__person-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.experts-feature__name {
    color: var(--Color-Palette-Secondary-White, #FFF);
    font-family: var(--font-instrument, 'Instrument Sans', sans-serif);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.409em;
    letter-spacing: 0.088px;
    margin: 0;
}

.experts-feature__name a {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-decoration: none;
}

.experts-feature__name a:hover,
.experts-feature__name a:focus-visible {
    text-decoration: underline;
}

.experts-feature__name a:focus-visible {
    outline: 2px solid var(--Color-Palette-Secondary-White, #FFF);
    outline-offset: 2px;
}

.experts-feature__role {
    color: var(--Color-Palette-Tertiary-Lightest-Purple, #F9F5FF);
    font-family: var(--font-instrument, 'Instrument Sans', sans-serif);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5em;
    letter-spacing: 0.09px;
    margin: 0;
}

.experts-feature__logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: stretch;
}

.experts-feature__logo-wrapper .experts-feature__logo {
    max-height: 50px;
    width: auto;
    border-radius: 0;
}

/* ----- Mobile Photo (hidden on desktop) ----- */

.experts-feature__photo-mobile {
    display: none;
}

/* =============================================
   Mobile Layout
   ============================================= */

@media (max-width: 768px) {
    .element-experts-feature {
        max-width: 366px;
        margin: 0 auto;
    }

    /* Hide desktop-only elements */
    .experts-feature__accent-col {
        display: none;
    }

    .experts-feature__photo-wrapper {
        display: none;
    }

    /* Quote area: indigo bg wrapping light purple content */
    .experts-feature__quote-outer {
        border-radius: 0;
        gap: 10px;
        background: transparent;
    }

    .experts-feature__quote-content {
        flex-direction: column;
        gap: var(--Spacing-s3, 24px);
        padding: var(--Spacing-s3, 24px);
        border-radius: var(--Corner-Radius-m, 16px);
    }

    /* Info wrapper: horizontal padding on both sides */
    .experts-feature__info-wrapper {
        padding: 0 var(--Spacing-s3, 24px);
    }

    /* Info bar: row layout with content + photo */
    .experts-feature__info {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        gap: var(--Spacing-s3, 24px);
        border-radius: 0 0 var(--Corner-Radius-m, 16px) var(--Corner-Radius-m, 16px);
        padding: var(--Spacing-s3, 24px);
    }

    /* Info content: column with person-info on top, logo below */
    .experts-feature__info-content {
        flex-direction: column;
        justify-content: center;
        flex: 1;
        gap: var(--Spacing-s2, 16px);
        padding: 0;
    }

    .experts-feature__person-info {
        align-self: stretch;
    }

    .experts-feature__name {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.5em;
        letter-spacing: 0.09px;
    }

    .experts-feature__role {
        font-size: 14.5px;
        line-height: 1.517em;
        letter-spacing: 0.0725px;
    }

    .experts-feature__logo-wrapper {
        align-self: flex-start;
    }

    .experts-feature__logo-wrapper .experts-feature__logo {
        max-height: 30px;
    }

    /* Mobile photo: shown inside info bar */
    .experts-feature__photo-mobile {
        display: flex;
        width: 64px;
        height: 64px;
        flex-shrink: 0;
        border-radius: var(--Corner-Radius-s, 8px);
        background: var(--Color-Palette-Tertiary-Light-Purple, #E7D6FF);
        overflow: hidden;
        align-items: flex-end;
    }

    .experts-feature__photo-mobile .experts-feature__photo {
        width: 100%;
        height: 100%;
        border-radius: 0;
        object-fit: cover;
    }
    .experts-feature__blue-background {
        display: none;
    }
}

/* =============================================
   WYSIWYG Context – Force mobile layout between
   992px and 1100px
   ============================================= */

@media (min-width: 992px) and (max-width: 1100px) {
    .two-column-wysiwyg-section .element-experts-feature {
        max-width: 366px;
        margin: 0 auto;
    }

    /* Hide desktop-only elements */
    .two-column-wysiwyg-section .experts-feature__accent-col {
        display: none;
    }

    .two-column-wysiwyg-section .experts-feature__photo-wrapper {
        display: none;
    }

    /* Quote area */
    .two-column-wysiwyg-section .experts-feature__quote-outer {
        border-radius: 0;
        gap: 10px;
        background: transparent;
    }

    .two-column-wysiwyg-section .experts-feature__quote-content {
        flex-direction: column;
        gap: var(--Spacing-s3, 24px);
        padding: var(--Spacing-s3, 24px);
        border-radius: var(--Corner-Radius-m, 16px);
    }

    /* Info wrapper */
    .two-column-wysiwyg-section .experts-feature__info-wrapper {
        padding: 0 var(--Spacing-s3, 24px);
    }

    /* Info bar */
    .two-column-wysiwyg-section .experts-feature__info {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        gap: var(--Spacing-s3, 24px);
        border-radius: 0 0 var(--Corner-Radius-m, 16px) var(--Corner-Radius-m, 16px);
        padding: var(--Spacing-s3, 24px);
    }

    .two-column-wysiwyg-section .experts-feature__info-content {
        flex-direction: column;
        justify-content: center;
        flex: 1;
        gap: var(--Spacing-s2, 16px);
        padding: 0;
    }

    .two-column-wysiwyg-section .experts-feature__person-info {
        align-self: stretch;
    }

    .two-column-wysiwyg-section .experts-feature__name {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.5em;
        letter-spacing: 0.09px;
    }

    .two-column-wysiwyg-section .experts-feature__role {
        font-size: 14.5px;
        line-height: 1.517em;
        letter-spacing: 0.0725px;
    }

    .two-column-wysiwyg-section .experts-feature__logo-wrapper {
        align-self: flex-start;
    }

    .two-column-wysiwyg-section .experts-feature__logo-wrapper .experts-feature__logo {
        max-height: 30px;
    }

    /* Mobile photo: shown inside info bar */
    .two-column-wysiwyg-section .experts-feature__photo-mobile {
        display: flex;
        width: 64px;
        height: 64px;
        flex-shrink: 0;
        border-radius: var(--Corner-Radius-s, 8px);
        background: var(--Color-Palette-Tertiary-Light-Purple, #E7D6FF);
        overflow: hidden;
        align-items: flex-end;
    }

    .two-column-wysiwyg-section .experts-feature__photo-mobile .experts-feature__photo {
        width: 100%;
        height: 100%;
        border-radius: 0;
        object-fit: cover;
    }
    .two-column-wysiwyg-section .experts-feature__blue-background {
        display: none;
    }
}
