.ib-en-profiles-main {
    background: #f2f6fb;
}
.ib-en-profiles {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    padding: 28px 0 64px;
    color: #102342;
    text-align: start;
    overflow-wrap: anywhere;
}
.ib-en-profiles-hero {
    padding: clamp(26px, 5vw, 60px);
    border-radius: 28px;
    background: radial-gradient(circle at 90% 10%, #29456b, transparent 55%), #061b3f;
    color: #fff;
}
.ib-en-profiles-eyebrow {
    color: #ffad70;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
}
.ib-en-profiles-hero h1 {
    margin: 14px 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.2;
    color: #fff;
}
.ib-en-profiles-hero p {
    max-width: 650px;
    color: #dbe5f2;
    line-height: 1.8;
}
.ib-en-profiles-search {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
}
.ib-en-profiles-search > div {
    flex: 1 1 260px;
    min-width: 0;
}
.ib-en-profiles-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}
.ib-en-profiles-search input {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
}
.ib-en-profiles-search button {
    min-height: 46px;
    padding: 10px 24px;
    border: 0;
    border-radius: 10px;
    background: #ff7918;
    color: #061b3f;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.ib-en-profiles-results,
.ib-en-profiles-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0 18px;
}
.ib-en-profiles-results h2 {
    font-size: 22px;
    margin: 0;
}
.ib-en-profiles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.ib-en-profile-card {
    padding: 26px;
    border: 1px solid #dde5ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgb(6 27 63 / 4%);
}
.ib-en-profile-monogram {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #fff0e5;
    color: #843800;
    font-size: 26px;
    font-weight: 700;
}
.ib-en-profile-card h3 {
    margin: 18px 0 8px;
    font-size: 21px;
}
.ib-en-profile-card p {
    color: #526179;
    line-height: 1.8;
}
.ib-en-profile-role {
    font-weight: 700;
}
.ib-en-profiles a {
    color: #123f77;
}
.ib-en-profile-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
}
.ib-en-profiles :is(a, button, input):focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 4px;
}
@media (max-width: 900px) {
    .ib-en-profiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .ib-en-profiles-grid { grid-template-columns: 1fr; }
    .ib-en-profiles-search { padding: 18px; }
}

/* English profile direction and contrast */
html[lang="en"] .ib-en-profiles-main .ib-en-profiles,
html[lang="en"] .ib-en-profiles-main .ib-en-profiles :is(
    header, section, nav, form, div, h1, h2, h3, p, label, input
) {
    direction: ltr !important;
    text-align: left !important;
}

html[lang="en"] .ib-en-profiles-main .ib-en-profiles-hero h1 {
    color: #ffffff !important;
}

html[lang="en"] .ib-en-profiles-main .ib-en-profiles-hero p {
    color: #dbe5f2 !important;
}

html[lang="en"] .ib-en-profiles-main .ib-en-profiles-hero .ib-en-profiles-eyebrow {
    color: #ffad70 !important;
}

html[lang="en"] .ib-en-profiles-main .ib-en-profiles-search input::placeholder {
    color: #526179;
    opacity: 1;
}

/* English directory card alignment */
html[lang="en"] .ib-en-profiles-main .ib-en-profiles-grid > .ib-en-profile-card {
    direction: ltr !important;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

html[lang="en"] .ib-en-profiles-main .ib-en-profiles-grid .ib-en-profile-monogram {
    align-self: flex-start;
    margin-inline: 0;
    text-align: center !important;
}

html[lang="en"] .ib-en-profiles-main .ib-en-profiles-grid .ib-en-profile-link {
    direction: ltr !important;
    text-align: left !important;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 16px;
}
