.profile-directory {
    --profile-green: #0b6b2b;
    --profile-green-dark: #074b20;
    --profile-green-bright: #50b849;
    --profile-green-soft: #eef8f0;
    --profile-ink: #111c15;
    --profile-muted: #5f6962;
    --profile-line: #e3e9e4;
    background: #f8faf8;
    color: var(--profile-ink);
}

.profile-directory *,
.profile-directory *::before,
.profile-directory *::after {
    box-sizing: border-box;
}

.profile-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 410px;
    overflow: visible;
    isolation: isolate;
    background: #173b25 url("../images/profile-hero.webp") center / cover no-repeat;
}

.profile-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 49, 20, .97) 0%, rgba(5, 57, 24, .88) 34%, rgba(5, 48, 22, .46) 61%, rgba(2, 25, 12, .16) 100%),
        linear-gradient(0deg, rgba(2, 24, 11, .28), transparent 55%);
}

.profile-hero__content {
    min-width: 0;
    padding-top: 64px;
    padding-bottom: 64px;
}

.profile-hero__content > span {
    display: block;
    margin-bottom: 10px;
    color: #7ad45f;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.profile-hero h1 {
    max-width: 620px;
    margin: 0 0 14px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 4.25vw, 60px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.035em;
}

.profile-hero p {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
}

.profile-directory__content {
    padding: 58px 0 78px;
}

.profile-directory__toolbar {
    display: grid;
    gap: 24px;
    margin-bottom: 28px;
}

.profile-directory__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--profile-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.profile-directory__toolbar h2 {
    margin: 0;
    color: var(--profile-ink);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 750;
    line-height: 1.2;
}

.profile-filter {
    position: relative;
    width: min(100%, 540px);
    margin: 0 auto;
}

.profile-filter__search {
    position: relative;
    display: block;
    margin: 0;
}

.profile-filter__search > i {
    position: absolute;
    top: 50%;
    left: 19px;
    z-index: 1;
    color: #6c776f;
    font-size: 16px;
    transform: translateY(-50%);
}

.profile-filter input {
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 11px 20px 11px 50px;
    border: 1px solid #d8e0da;
    border-radius: 13px;
    outline: 0;
    color: #253129;
    background: #fff;
    box-shadow: 0 5px 18px rgba(19, 45, 27, .055);
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.profile-filter input:hover {
    border-color: #bdcbc0;
}

.profile-filter input:focus {
    border-color: #55a66b;
    box-shadow: 0 0 0 4px rgba(11, 107, 43, .1), 0 7px 20px rgba(19, 45, 27, .06);
}

.profile-filter__status {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-height: 16px;
    color: #748078;
    font-size: 11px;
}

.profile-results {
    transition: opacity .18s ease;
}

.profile-results[aria-busy="true"] {
    opacity: .48;
    pointer-events: none;
}

.profile-results__list {
    display: grid;
    gap: 14px;
}

.profile-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 34px;
    min-height: 184px;
    padding: 24px 28px 24px 24px;
    border: 1px solid var(--profile-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20, 45, 28, .05);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.profile-card:hover {
    border-color: #c6ddcc;
    box-shadow: 0 16px 38px rgba(15, 57, 28, .09);
    transform: translateY(-2px);
}

.profile-card__portrait {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 142px;
    height: 142px;
}

.profile-card__portrait a {
    display: block;
    width: 142px;
    height: 142px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid #98c6a3;
    border-radius: 50%;
    background: #fff;
}

.profile-card__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #e8f3eb;
    object-fit: cover;
}

.profile-card__body {
    min-width: 0;
}

.profile-card__name-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.profile-card__name-row h3 {
    min-width: 0;
    margin: 0;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 760;
    line-height: 1.2;
}

.profile-card__name-row h3 a {
    color: #101813;
    text-decoration: none;
}

.profile-card__name-row h3 a:hover {
    color: var(--profile-green);
}

.profile-card__verified {
    position: absolute;
    top: 4px;
    right: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--profile-green);
    font-size: 10px;
    box-shadow: 0 4px 10px rgba(11, 107, 43, .25);
}

.profile-card__designation {
    margin: 0 0 10px;
    color: var(--profile-green);
    font-size: 14.5px;
    font-weight: 750;
}

.profile-card__bio {
    display: -webkit-box;
    max-width: 720px;
    margin: 0;
    overflow: hidden;
    color: #49534c;
    font-size: 14.5px;
    line-height: 1.6;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.profile-card__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.profile-card__action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-width: 154px;
    min-height: 48px;
    padding: 12px 21px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #08732d, #07551f);
    box-shadow: 0 7px 18px rgba(7, 94, 35, .18);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.profile-card__action a:hover {
    color: #fff;
    box-shadow: 0 10px 23px rgba(7, 94, 35, .28);
    transform: translateY(-2px);
}

.profile-card__action i {
    font-size: 12px;
    transition: transform .2s ease;
}

.profile-card__action a:hover i {
    transform: translateX(3px);
}

.profile-results__empty {
    padding: 78px 24px;
    border: 1px solid var(--profile-line);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.profile-results__empty > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    border-radius: 50%;
    color: var(--profile-green);
    background: var(--profile-green-soft);
    font-size: 24px;
}

.profile-results__empty h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.profile-results__empty p {
    margin: 0;
    color: var(--profile-muted);
    font-size: 14px;
}

.profile-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e3e9e4;
}

.profile-pagination > p {
    margin: 0;
    color: #68736b;
    font-size: 13px;
}

.profile-pagination__pages,
.profile-pagination__numbers {
    display: flex;
    align-items: center;
}

.profile-pagination__pages {
    gap: 10px;
}

.profile-pagination__numbers {
    gap: 6px;
}

.profile-pagination__direction,
.profile-pagination__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #dce4de;
    border-radius: 8px;
    color: #465149;
    background: #fff;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: .2s ease;
}

.profile-pagination__direction {
    gap: 7px;
    padding: 7px 12px;
}

.profile-pagination__number {
    width: 38px;
}

.profile-pagination__direction:hover,
.profile-pagination__number:hover {
    border-color: #94c4a0;
    color: var(--profile-green);
    background: var(--profile-green-soft);
}

.profile-pagination__number.is-active {
    border-color: var(--profile-green);
    color: #fff;
    background: var(--profile-green);
}

.profile-pagination__direction.is-disabled {
    color: #a2aaa4;
    background: #f5f7f5;
    cursor: not-allowed;
}

.profile-pagination__ellipsis {
    padding: 0 4px;
    color: #768078;
}

.profile-pagination__size {
    position: relative;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
    margin: 0;
    color: #68736b;
    font-size: 12px;
}

.profile-pagination__size select {
    width: 76px;
    height: 38px;
    padding: 6px 29px 6px 11px;
    border: 1px solid #dce4de;
    border-radius: 8px;
    outline: none;
    color: #364139;
    background: #fff;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    appearance: none;
}

.profile-pagination__size i {
    position: absolute;
    right: 10px;
    font-size: 9px;
    pointer-events: none;
}

@media (max-width: 1199.98px) {
    .profile-hero {
        min-height: 400px;
    }

    .profile-card {
        grid-template-columns: 126px minmax(0, 1fr) 154px;
        gap: 24px;
        padding: 22px;
    }

    .profile-card__portrait,
    .profile-card__portrait a {
        width: 122px;
        height: 122px;
    }
}

@media (max-width: 991.98px) {
    .profile-hero {
        background-position: 57% center;
    }

    .profile-directory__toolbar {
        align-items: stretch;
    }

    .profile-filter {
        width: min(80%, 540px);
    }

    .profile-card {
        grid-template-columns: 112px minmax(0, 1fr) 142px;
        gap: 20px;
        min-height: 160px;
        padding: 20px;
    }

    .profile-card__portrait,
    .profile-card__portrait a {
        width: 108px;
        height: 108px;
    }

    .profile-card__action a {
        min-width: 142px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .profile-pagination {
        grid-template-columns: 1fr auto;
    }

    .profile-pagination__pages {
        grid-row: 2;
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .profile-directory .container {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .profile-hero {
        min-height: 440px;
    }

    .profile-hero__content {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .profile-directory__content {
        padding: 44px 0 18px;
    }

    .profile-filter {
        width: 100%;
    }

    .profile-card {
        grid-template-columns: 1fr;
        gap: 18px;
        justify-items: center;
        padding: 28px 22px 22px;
        text-align: center;
    }

    .profile-card__portrait,
    .profile-card__portrait a {
        width: 138px;
        height: 138px;
    }

    .profile-card__name-row {
        justify-content: center;
    }

    .profile-card__bio {
        max-width: 520px;
        -webkit-line-clamp: 3;
    }

    .profile-card__action {
        width: 100%;
    }

    .profile-card__action a {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .profile-hero {
        background-position: 62% center;
    }

    .profile-hero__overlay {
        background: rgba(3, 49, 20, .82);
    }

    .profile-hero h1 {
        font-size: 45px;
    }

    .profile-directory__toolbar {
        gap: 20px;
    }

    .profile-card {
        border-radius: 13px;
    }

    .profile-pagination {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .profile-pagination > p,
    .profile-pagination__size,
    .profile-pagination__pages {
        justify-self: center;
    }

    .profile-pagination__pages {
        grid-row: auto;
        grid-column: auto;
        width: 100%;
        flex-wrap: wrap;
    }

    .profile-pagination__numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .profile-pagination__direction {
        flex: 1;
    }
}
