.tmm-team-directory {
    width: 100%;
    margin: 32px 0;
}

.tmm-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
}

.tmm-team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: 22px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 243, 0.98)),
        linear-gradient(135deg, rgba(255, 153, 51, 0.12), rgba(19, 136, 8, 0.1));
    border: 1px solid rgba(21, 47, 84, 0.1);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.tmm-team-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #ff9933, #138808);
}

.tmm-team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.tmm-team-photo-wrap {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.tmm-team-photo {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px rgba(25, 58, 106, 0.16);
    background: #f8fafc;
}

.tmm-team-photo-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ff9933, #138808);
    color: #ffffff;
}

.tmm-team-photo-fallback .dashicons {
    font-size: 52px;
    width: 52px;
    height: 52px;
}

.tmm-team-content h3 {
    margin: 0 0 8px;
    color: #0f2747;
    font-size: 1.9rem;
    line-height: 1.1;
    text-align: center;
}

.tmm-team-designation {
    margin: 0 0 18px;
    color: #193a6a;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.45;
    text-align: center;
}

.tmm-team-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    width: 100%;
}

.tmm-team-meta li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid rgba(21, 47, 84, 0.08);
    color: #334155;
}

.tmm-team-meta li:first-child {
    border-top: 0;
    padding-top: 0;
}

.tmm-team-icon {
    color: #ff9933;
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.tmm-team-meta span,
.tmm-team-meta a {
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.7;
    word-break: break-word;
    text-decoration: none;
}

.tmm-team-meta a:hover {
    color: #193a6a;
}

.tmm-team-empty {
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
}

.tmm-pagination {
    margin-top: 2rem;
}

.tmm-pagination .page-numbers {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.tmm-pagination .page-numbers li {
    margin: 0;
}

.tmm-pagination a,
.tmm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(21, 47, 84, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: #0f2747;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.tmm-pagination a:hover {
    border-color: rgba(19, 136, 8, 0.24);
    background: rgba(244, 248, 243, 0.98);
}

.tmm-pagination .current {
    background: linear-gradient(135deg, #138808, #2f7b44);
    border-color: transparent;
    color: #ffffff;
}

@media (max-width: 1200px) {
    .tmm-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

@media (max-width: 640px) {
    .tmm-team-directory {
        margin: 24px 0;
    }

    .tmm-team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tmm-team-card {
        padding: 20px;
        border-radius: 22px;
    }

    .tmm-team-content h3 {
        font-size: 1.55rem;
    }
}
