/* ===== TEAM PAGE ===== */
.team-page {
    background: #f0f2f5;
    min-height: 80vh;
    padding: 30px 16px 60px;
}

/* Search */
.team-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 0 20px;
    max-width: 440px;
    margin: 0 auto 36px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: all 0.25s;
}

.team-search-wrap:focus-within {
    border-color: var(--text-color);
    box-shadow: 0 0 0 4px rgba(28, 111, 172, 0.1);
}

.team-search-wrap .fa {
    color: #aaa;
    font-size: 15px;
    flex-shrink: 0;
}

.team-search-wrap input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    width: 100%;
    padding: 12px 0;
    background: transparent;
}

.team-search-wrap input::placeholder {
    color: #bbb;
}

/* Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== CARD ===== */
.team-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

/* IMAGE AREA */
.team-card-img {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--background-color);
    flex-shrink: 0;
}

/* Blurred bg — fills empty space around contained image */
.team-card-img .tc-blur {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(16px) brightness(0.55) saturate(1.3);
    z-index: 0;
    transform: scale(1.1);
}

/* Actual image — full photo visible */
.team-card-img img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    display: block;
}

.team-card:hover .team-card-img img {
    transform: scale(1.04);
}

/* Badge over image */
.team-card-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 85%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 2;
}

/* Body */
.team-card-body {
    padding: 14px 14px 18px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    border-top: 3px solid var(--text-color);
}

.team-card-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.3;
}

.team-card-sub {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: var(--background-color);
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.team-card-cat {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.team-card-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 11.5px;
    font-weight: 500;
    margin-top: 2px;
}

.team-card-location .fa {
    color: var(--text-color);
    font-size: 10px;
}

/* Phone chip */
.team-card-phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    padding: 5px 14px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.team-card-phone:hover {
    background: #c8e6c9;
    color: #1b5e20;
}

.team-card-phone .fa {
    font-size: 11px;
}

/* ===== PAGINATION ===== */
.team-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.team-pagination .page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #555;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-pagination .page-btn:hover {
    border-color: var(--text-color);
    color: var(--text-color);
    background: #eaf3fb;
}

.team-pagination .page-btn.active {
    background: var(--background-color);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(28, 111, 172, 0.3);
}

.team-pagination .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.team-page-info {
    text-align: center;
    margin-top: 10px;
    font-size: 12.5px;
    color: #999;
}

/* Empty / Loader */
.team-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.team-empty .fa {
    font-size: 48px;
    display: block;
    margin-bottom: 14px;
    color: #ccc;
}

.team-loader {
    grid-column: 1/-1;
    display: flex;
    justify-content: center;
    padding: 40px;
}

.team-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--text-color);
    border-radius: 50%;
    animation: team-spin 0.8s linear infinite;
}

@keyframes team-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .team-card-img {
        height: 160px;
    }

    .team-card-name {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}