/* Staff Directory */
.staff-directory {
    direction: rtl;
    max-width: 1180px;
    margin: 25px auto;
    padding: 0 12px 25px;
    color: #24364b;
    font-family: inherit;
}

.staff-directory,
.staff-directory * {
    box-sizing: border-box;
}

/* Header */
.staff-directory .sd-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    padding: 30px 34px;
    margin-bottom: 30px;
    border-radius: 15px;
    background: #173b5d;
    color: #fff;
}

.staff-directory .sd-heading:after {
    content: "";
    position: absolute;
    left: -55px;
    top: -105px;
    width: 260px;
    height: 260px;
    border: 42px solid rgba(255,255,255,.055);
    border-radius: 50%;
}

.staff-directory .sd-heading-content {
    position: relative;
    z-index: 1;
}

.staff-directory .sd-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #9ed7e8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
}

.staff-directory .sd-heading h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.7;
}

.staff-directory .sd-heading p {
    margin: 0;
    color: #d5e4ef;
    font-size: 13px;
}

.staff-directory .sd-count {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-width: 94px;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    background: rgba(255,255,255,.09);
    text-align: center;
}

.staff-directory .sd-count strong {
    display: block;
    color: #fff;
    font-size: 27px;
    line-height: 1.3;
}

.staff-directory .sd-count span {
    color: #c7dce9;
    font-size: 11px;
}

/* Section heading */
.staff-directory .sd-section-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 19px;
    color: #24445f;
    font-size: 17px;
    font-weight: 800;
}

.staff-directory .sd-section-title:before {
    content: "";
    width: 4px;
    height: 23px;
    border-radius: 5px;
    background: #1596b5;
}

/* Cards */
.staff-directory .sd-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.staff-directory .sd-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5ebf0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 13px rgba(25, 55, 80, .055);
    transition: transform .2s ease, box-shadow .2s ease;
}

.staff-directory .sd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(25, 55, 80, .12);
}

.staff-directory .sd-card-top {
    height: 5px;
    background: #1d789d;
}

.staff-directory .sd-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 23px 18px 19px;
    text-align: center;
}

.staff-directory .sd-photo {
    width: 126px;
    height: 145px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 4px solid #edf3f7;
    border-radius: 10px;
    background: #edf3f7;
}

.staff-directory .sd-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.staff-directory .sd-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 126px;
    height: 145px;
    margin-bottom: 15px;
    border: 4px solid #edf3f7;
    border-radius: 10px;
    background: #e7f0f5;
    color: #286582;
    font-size: 34px;
    font-weight: 800;
}

.staff-directory .sd-name {
    min-height: 30px;
    margin: 0 0 9px;
    color: #1d3e5a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
}

.staff-directory .sd-role {
    display: inline-block;
    max-width: 100%;
    padding: 5px 13px;
    margin-bottom: 13px;
    border-radius: 5px;
    background: #eaf4f8;
    color: #176987;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
}

.staff-directory .sd-education {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid #edf1f4;
    color: #718091;
    font-size: 12px;
    line-height: 1.9;
}

.staff-directory .sd-education i {
    flex: 0 0 auto;
    margin-top: 5px;
    color: #2992ad;
    font-size: 13px;
}

.staff-directory .sd-education span {
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .staff-directory .sd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 560px) {
    .staff-directory {
        padding: 0 5px 20px;
    }

    .staff-directory .sd-heading {
        align-items: flex-start;
        padding: 23px 18px;
        gap: 10px;
    }

    .staff-directory .sd-heading h2 {
        font-size: 19px;
    }

    .staff-directory .sd-heading p {
        font-size: 11px;
    }

    .staff-directory .sd-count {
        min-width: 65px;
        padding: 9px 7px;
    }

    .staff-directory .sd-count strong {
        font-size: 22px;
    }

    .staff-directory .sd-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .staff-directory .sd-card-body {
        padding: 20px 15px;
    }
}
