/* IH Faculty Directory v1.0.2 */

.ih-faculty-directory,
.ih-faculty-profile-page {
    --ih-faculty-blue: #0b527f;
    --ih-faculty-blue-2: #176f9f;
    --ih-faculty-line: #d8e4eb;
    --ih-faculty-soft: #f5f9fc;
    --ih-faculty-text: #173b55;
    --ih-faculty-muted: #718392;
    font-family: inherit;
    color: var(--ih-faculty-text);
}

.ih-faculty-directory {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 14px 48px;
}

.ih-faculty-directory__header {
    margin: 0 0 24px;
    text-align: right;
}

.ih-faculty-directory__eyebrow,
.ih-faculty-profile__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--ih-faculty-blue-2);
    font-size: 13px;
    font-weight: 700;
}

.ih-faculty-directory__header h2 {
    margin: 0 0 7px;
    color: var(--ih-faculty-blue);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.5;
}

.ih-faculty-directory__header p {
    margin: 0;
    color: var(--ih-faculty-muted);
    font-size: 15px;
}

.ih-faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ih-faculty-card {
    min-height: 118px;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--ih-faculty-line);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(20, 69, 101, 0.04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ih-faculty-card:hover,
.ih-faculty-card:focus-visible {
    transform: translateY(-2px);
    border-color: #9dc3da;
    box-shadow: 0 8px 24px rgba(20, 69, 101, 0.09);
    outline: none;
}

.ih-faculty-card__photo {
    width: 94px;
    height: 94px;
    overflow: hidden;
    border-radius: 13px;
    background: var(--ih-faculty-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ih-faculty-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    background: #fff;
}

.ih-faculty-card__placeholder {
    font-size: 34px;
    opacity: .5;
}

.ih-faculty-card__body {
    min-width: 0;
}

.ih-faculty-card__body h3 {
    margin: 0 0 5px;
    color: var(--ih-faculty-blue);
    font-size: 17px;
    line-height: 1.6;
}

.ih-faculty-card__specialty {
    margin: 0;
    color: #4e687a;
    font-size: 14px;
    line-height: 1.6;
}

.ih-faculty-card__qualification {
    margin: 2px 0 0;
    color: #8997a2;
    font-size: 12px;
    line-height: 1.6;
}

.ih-faculty-card__link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-top: 9px;
    color: var(--ih-faculty-blue-2);
    font-size: 12px;
    font-weight: 700;
}

.ih-faculty-empty {
    padding: 25px;
    border: 1px dashed #cad9e2;
    border-radius: 14px;
    background: #fbfdfe;
    color: #6d7e89;
    text-align: center;
}

/* Single profile */
.ih-faculty-profile-page {
    background: #f6f9fb;
    padding: 52px 16px 70px;
}

.ih-faculty-profile {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.ih-faculty-profile__hero {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--ih-faculty-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(16, 61, 92, 0.05);
}

.ih-faculty-profile__photo {
    width: 230px;
    height: 260px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--ih-faculty-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ih-faculty-profile__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center top;
    background: #fff;
}

.ih-faculty-profile__placeholder {
    font-size: 70px;
    opacity: .45;
}

.ih-faculty-profile__intro h1 {
    margin: 0 0 10px;
    color: var(--ih-faculty-blue);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.45;
}

.ih-faculty-profile__specialty {
    margin: 0;
    color: #3f6178;
    font-size: 20px;
    font-weight: 700;
}

.ih-faculty-profile__qualification {
    margin: 7px 0 0;
    color: var(--ih-faculty-muted);
    font-size: 15px;
}

.ih-faculty-profile__resume {
    margin-top: 22px;
    padding: 30px;
    border: 1px solid var(--ih-faculty-line);
    border-radius: 22px;
    background: #fff;
}

.ih-faculty-profile__resume > h2 {
    margin: 0 0 20px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e3ebf0;
    color: var(--ih-faculty-blue);
    font-size: 25px;
}

.ih-faculty-profile__content {
    color: #40596a;
    font-size: 16px;
    line-height: 2.05;
}

.ih-faculty-profile__content h2,
.ih-faculty-profile__content h3,
.ih-faculty-profile__content h4 {
    color: var(--ih-faculty-blue);
}

.ih-faculty-profile__content ul,
.ih-faculty-profile__content ol {
    padding-right: 22px;
}

@media (max-width: 900px) {
    .ih-faculty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ih-faculty-directory {
        padding: 12px 12px 36px;
    }

    .ih-faculty-directory__header {
        margin-bottom: 18px;
    }

    .ih-faculty-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ih-faculty-card {
        grid-template-columns: 82px minmax(0, 1fr);
        min-height: 102px;
        gap: 12px;
        padding: 10px;
        border-radius: 14px;
    }

    .ih-faculty-card__photo {
        width: 82px;
        height: 82px;
        border-radius: 11px;
    }

    .ih-faculty-card__body h3 {
        font-size: 16px;
    }

    .ih-faculty-card__link {
        margin-top: 6px;
    }

    .ih-faculty-profile-page {
        padding: 28px 12px 48px;
    }

    .ih-faculty-profile__hero {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 16px;
        padding: 15px;
        border-radius: 17px;
    }

    .ih-faculty-profile__photo {
        width: 118px;
        height: 142px;
        border-radius: 13px;
    }

    .ih-faculty-profile__intro h1 {
        margin-bottom: 5px;
        font-size: 24px;
    }

    .ih-faculty-profile__specialty {
        font-size: 16px;
    }

    .ih-faculty-profile__qualification {
        margin-top: 4px;
        font-size: 12px;
    }

    .ih-faculty-profile__resume {
        margin-top: 14px;
        padding: 18px;
        border-radius: 17px;
    }

    .ih-faculty-profile__resume > h2 {
        font-size: 21px;
    }

    .ih-faculty-profile__content {
        font-size: 15px;
        line-height: 2;
    }
}
