.team-page {
    font-family: "Poppins", sans-serif;
    background:
        radial-gradient(70% 40% at 100% 0%, rgba(27, 207, 201, 0.07) 0%, transparent 50%),
        linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.team-directory {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.team-directory__intro {
    padding: 0;
    background: transparent;
    margin-bottom: 30px;
}

.team-directory__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.team-directory__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.team-directory__title {
    margin: 0;
    color: #031740;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.team-directory__count {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Tab Structure */
.team-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    padding-bottom: 8px;
}

.team-tab-btn {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    padding: 12px 28px;
    border-radius: 30px;
    background: #fff;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(3, 23, 64, 0.02);
}

.team-tab-btn:hover {
    color: var(--p3-clr);
    border-color: var(--p3-clr);
    background: #fff;
}

.team-tab-btn.active {
    color: #fff;
    background: var(--p3-clr);
    border-color: var(--p3-clr);
    box-shadow: 0 6px 20px rgba(27, 207, 201, 0.3);
}

/* Card Grid */
.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(3, 23, 64, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(3, 23, 64, 0.08);
    border-color: rgba(27, 207, 201, 0.25);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--p3-clr);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card__info-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.4;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.team-card:hover .team-card__info-row {
    background: #fff;
    border-color: #eef2f6;
}

.team-card__info-row strong {
    font-weight: 600;
    color: #031740;
    min-width: 110px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.team-card__info-row strong i {
    color: var(--p3-clr);
    font-size: 13px;
    opacity: 0.85;
    width: 16px;
    text-align: center;
}

.team-card__info-row span {
    color: #334155;
    font-weight: 500;
}

.team-empty {
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(3, 23, 64, 0.03);
}

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-row {
    animation: fadeInRow 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .team-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

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

@media (max-width: 575.98px) {
    .team-cards-grid {
        grid-template-columns: 1fr;
    }
    .team-tab-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}
