/* ==========================================================================
   Teachers directory
   Cards for the public /teachers.php listing.
   ========================================================================== */

.teachers_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.teacher_card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--info_border);
    border-radius: 18px;
    background: var(--info_card);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.teacher_card:hover {
    border-color: #bcd8c7;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
    transform: translateY(-2px);
}

.teacher_card__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.teacher_card__photo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    overflow: hidden;
    border-radius: 50%;
    background: #e2e8f0;
}

.teacher_card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher_card__initial {
    color: #94a3b8;
    font-size: 26px;
    font-weight: 700;
}

.teacher_card__id {
    min-width: 0;
}

.teacher_card__name {
    margin: 0;
    color: var(--info_text);
    font-size: 18px;
    font-weight: 700;
}

.teacher_card__headline {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--info_muted);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.teacher_card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.teacher_card__tags li {
    max-width: 100%;
    padding: 4px 9px;
    overflow: hidden;
    border: 1px solid var(--info_border);
    border-radius: 999px;
    background: #f8fafc;
    color: #52606d;
    font-size: 11.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teacher_card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 10px 14px;
    border: 1px solid #cfe3d6;
    border-radius: 10px;
    background: #eef7f1;
    color: var(--info_green);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.teacher_card__link:hover {
    background: #e0efe6;
    border-color: #bcd8c7;
    text-decoration: none;
}

.teachers_empty {
    margin: 18px 0 0;
    padding: 26px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: var(--info_muted);
    text-align: center;
}
