.eafaculty-directory,
.eafaculty-profile {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.eafaculty-directory__intro {
    max-width: 780px;
    margin-bottom: 1.5rem;
    color: #4b5563;
    font-size: 1.08rem;
}

.eafaculty-directory__count {
    margin: 0 0 1rem;
    color: #475569;
    font-weight: 600;
}

.eafaculty-filters {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(165px, 1fr)) auto;
    gap: .9rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #f8fbfe;
}

.eafaculty-filter label {
    display: block;
    margin-bottom: .3rem;
    color: #334155;
    font-size: .88rem;
    font-weight: 700;
}

.eafaculty-filter__actions {
    display: flex;
    align-items: center;
    min-height: 38px;
}

.eafaculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1.25rem;
}

.eafaculty-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.eafaculty-card:hover,
.eafaculty-card:focus-within {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .14);
}

.eafaculty-card__click {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.eafaculty-card__click:hover,
.eafaculty-card__click:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.eafaculty-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    background: linear-gradient(135deg, #eef6ff, #eefbf8);
}

.eafaculty-card__avatar,
.eafaculty-profile__avatar {
    width: 150px;
    height: 150px;
    border: 5px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
}

.eafaculty-card__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #0b69b7, #0891b2);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
}

.eafaculty-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.eafaculty-card__name {
    margin: 0 0 .35rem;
    color: #111827;
    font-size: 1.3rem;
    line-height: 1.25;
}

.eafaculty-card__roles {
    margin-bottom: .35rem;
    color: #0067b1;
    font-weight: 700;
}

.eafaculty-card__location {
    min-height: 1.5rem;
    margin-bottom: .75rem;
    color: #64748b;
}

.eafaculty-card__bio {
    display: -webkit-box;
    min-height: 4.8rem;
    margin: .8rem 0 0;
    overflow: hidden;
    color: #334155;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.eafaculty-card__link {
    margin-top: auto;
    padding-top: 1rem;
    color: #0067b1;
    font-weight: 700;
}

.eafaculty-card__link::after {
    content: " \2192";
}

.eafaculty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.eafaculty-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .3rem .58rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e8f3fb;
    color: #075985;
    font-size: .78rem;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.eafaculty-profile__back {
    display: inline-block;
    margin-bottom: 1rem;
    color: #0067b1;
    font-weight: 700;
}

.eafaculty-profile__panel {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .09);
}

.eafaculty-profile__header {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) minmax(260px, 340px);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #eef6ff, #eefbf8);
}

.eafaculty-profile__media .eafaculty-card__initials {
    width: 170px;
    height: 170px;
}

.eafaculty-profile__avatar {
    width: 180px;
    height: 180px;
}

.eafaculty-profile__name {
    margin: 0 0 .4rem;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
}

.eafaculty-profile__roles {
    margin-bottom: .35rem;
    color: #0067b1;
    font-size: 1.15rem;
    font-weight: 700;
}

.eafaculty-profile__location {
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
}

.eafaculty-profile__content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 2.5rem;
    padding: 2rem;
}

.eafaculty-profile__content h2 {
    margin: 1.5rem 0 .65rem;
    color: #0f172a;
    font-size: 1.35rem;
}

.eafaculty-profile__content h2:first-child {
    margin-top: 0;
}

.eafaculty-profile__bio {
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.75;
}

.eafaculty-tags--large .eafaculty-tag {
    padding: .4rem .72rem;
    font-size: .9rem;
}

.eafaculty-profile__action {
    align-self: stretch;
    padding: 1.25rem;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
}

.eafaculty-profile__action h2 {
    margin: .8rem 0 .35rem;
    font-size: 1.2rem;
}

.eafaculty-profile__action p {
    color: #475569;
    line-height: 1.5;
}

.eafaculty-availability {
    display: inline-flex;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: .78rem;
    font-weight: 700;
}

.eafaculty-availability--limited {
    background: #fef3c7;
    color: #92400e;
}

.eafaculty-availability--unavailable {
    background: #f1f5f9;
    color: #475569;
}

.eafaculty-profile__unavailable {
    color: #64748b;
    font-weight: 600;
}

.eafaculty-profile__details {
    padding-left: 1.5rem;
    border-left: 1px solid #e2e8f0;
}

.eafaculty-request {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.eafaculty-availability-controls {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1000px) {
    .eafaculty-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .eafaculty-filters {
        grid-template-columns: 1fr;
    }

    .eafaculty-profile__header {
        flex-direction: column;
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .eafaculty-profile__content {
        grid-template-columns: 1fr;
    }

    .eafaculty-profile__details {
        padding-left: 0;
        border-left: 0;
    }

    .eafaculty-profile__content,
    .eafaculty-profile__header {
        padding: 1.25rem;
    }
}
.eafaculty-offerings { padding: 1.5rem 2rem; background: #f8fbff; border-top: 1px solid #dce7f2; }
.eafaculty-offerings__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.eafaculty-offering-card { background: #fff; border: 1px solid #dce4ee; border-radius: .75rem; padding: 1.25rem; }
.eafaculty-offering-card h3 { font-size: 1.15rem; }
.eafaculty-offering-card__rate { font-size: 1.1rem; font-weight: 700; }
.eafaculty-offering-form { max-width: 680px; }
