/* Team block: /team-member (#team) + home (#home-team) */

#team.team-page-section,
#home-team.team-page-section {
    --primary: #3b2fb5;
    --primary-light: #5a4fc8;
    --light-bg: #f8f9fc;
    --light-bg2: #eef0f6;
    --border: #e2e4ec;
    --text-muted: #6b7280;
    --radius: 12px;
    --card-shadow: 0 4px 14px rgba(59, 47, 181, 0.08);
    --card-shadow-hover: 0 12px 28px rgba(59, 47, 181, 0.15);
    background: #fff;
    padding: 48px 0 64px;
}

.team-page-section .section-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.team-page-section .sec-header {
    text-align: center;
    margin-bottom: 28px;
}

.team-page-section .sec-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.team-page-section .sec-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    line-height: 1.25;
}

.team-page-section .divider {
    width: 56px;
    height: 3px;
    margin: 0 auto;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.team-page-section .team-filter {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
}

.team-page-section .team-dept-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: #fff;
    border: none;
    padding: 9px 36px 9px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    min-width: 200px;
}

.team-page-section .team-dept-select:hover {
    background-color: var(--primary-light);
}

.team-page-section .team-dept-select option {
    color: #1a1a2e;
    background: #fff;
}

.team-page-section .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 991px) {
    .team-page-section .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .team-page-section .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-page-section .team-card {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 22px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.team-page-section .team-card-body-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-page-section .team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: left 0.4s, right 0.4s;
}

.team-page-section .team-card:hover::before {
    left: 0;
    right: 0;
}

.team-page-section .team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(59, 47, 181, 0.18);
}

.team-page-section .team-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 14px;
    overflow: hidden;
    border: 3px solid var(--border);
    transition: border-color 0.3s;
    background: var(--light-bg2);
}

.team-page-section .team-card:hover .team-photo {
    border-color: var(--primary);
}

.team-page-section .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-page-section .team-name {
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.team-page-section .team-role {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

#team .team-pagination-bottom {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    padding-top: 8px;
}

#team .team-pagination-bottom .pagination {
    margin-bottom: 0;
}

.team-page-section .new_team_member {
    margin-top: 8px;
}

.team-page-section .team-search-heading {
    text-align: center;
    margin-bottom: 22px;
    font-size: 1rem;
    color: #1a1a2e;
}

.team-page-section .team-more {
    text-align: center;
    margin-top: 28px;
}

.team-page-section .btn-ghost {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
}

.team-page-section .btn-ghost:hover {
    background: var(--primary);
    color: #fff;
}

.team-page-section .reveal {
    opacity: 1;
    transform: none;
}
