/* ============================================================
   VPlus Team Archive Page — vta-* namespace
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --vta-blue: #155fa6;
    --vta-blue-dark: #0e4a82;
    --vta-blue-light: #e8f1fb;
    --vta-navy: #1a2744;
    --vta-teal: #0f9882;
    --vta-bg: #f5f7fb;
    --vta-white: #ffffff;
    --vta-text: #2a2f41;
    --vta-muted: #6b7280;
    --vta-radius: 16px;
    --vta-radius-sm: 10px;
    --vta-shadow: 0 4px 24px rgba(21, 95, 166, .08);
    --vta-shadow-lg: 0 12px 40px rgba(21, 95, 166, .18);
    --vta-transition: 0.3s cubic-bezier(.25, .8, .25, 1);
}

.vplus-team-archive *,
.vplus-team-archive *::before,
.vplus-team-archive *::after {
    box-sizing: border-box;
}

.vplus-team-archive {
    background: var(--vta-bg);
    min-height: 60vh;
}

/* ── Container ──────────────────────────────────────────────── */
.vta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
.vta-header {
    position: relative;
    background: linear-gradient(135deg, var(--vta-navy) 0%, #1e3a6e 55%, var(--vta-blue) 100%);
    padding: clamp(60px, 8vw, 100px) 0 clamp(70px, 9vw, 110px);
    text-align: center;
    overflow: hidden;
}

.vta-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, .05) 0%, transparent 45%),
        radial-gradient(circle at 15% 70%, rgba(15, 152, 130, .12) 0%, transparent 45%);
    pointer-events: none;
}

.vta-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.vta-header__overlay {
    display: none;
}

.vta-header .vta-container {
    position: relative;
    z-index: 2;
}

.vta-header__sub {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--vta-teal);
    margin: 0 0 12px;
}

.vta-header__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 18px;
}

.vta-header__desc {
    font-size: clamp(15px, 1.5vw, 18px);
    color: rgba(255, 255, 255, .75);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   FILTER TABS
   ============================================================ */
.vta-filter {
    background: var(--vta-white);
    border-bottom: 1px solid rgba(21, 95, 166, .1);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.vta-filter__tabs {
    display: flex;
    gap: 4px;
    padding: 14px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.vta-filter__tabs::-webkit-scrollbar {
    display: none;
}

.vta-filter__tab {
    flex-shrink: 0;
    background: transparent;
    border: 1.5px solid transparent;
    color: var(--vta-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--vta-transition);
    font-family: inherit;
    white-space: nowrap;
}

.vta-filter__tab:hover {
    background: var(--vta-blue-light);
    color: var(--vta-blue);
    border-color: rgba(21, 95, 166, .2);
}

.vta-filter__tab.is-active {
    background: var(--vta-blue);
    color: #fff;
    border-color: var(--vta-blue);
    box-shadow: 0 4px 12px rgba(21, 95, 166, .3);
}

/* ============================================================
   TEAM GRID
   ============================================================ */
.vta-grid-section {
    padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
}

.vta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Card ───────────────────────────────────────────────────── */
.vta-card {
    background: var(--vta-white);
    border-radius: var(--vta-radius);
    overflow: hidden;
    box-shadow: var(--vta-shadow);
    transition: box-shadow var(--vta-transition), transform var(--vta-transition), opacity .28s ease;
    display: flex;
    flex-direction: column;
}

.vta-card:hover {
    box-shadow: var(--vta-shadow-lg);
    transform: translateY(-4px);
}

/* ── Photo ──────────────────────────────────────────────────── */
.vta-card__photo {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f1fb 0%, #d5e8f8 100%);
}

.vta-card__photo-link {
    display: block;
    width: 100%;
    height: 100%;
}

.vta-card__photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .5s ease;
}

.vta-card:hover .vta-card__photo-link img {
    transform: scale(1.06);
}

.vta-card__photo-link--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #acc8e8;
}

/* Badge */
.vta-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(26, 39, 68, .85);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
}

/* Hover overlay */
.vta-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 39, 68, .85) 0%, rgba(26, 39, 68, .3) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--vta-transition);
}

.vta-card:hover .vta-card__overlay {
    opacity: 1;
}

.vta-card__overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--vta-teal);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    transition: background var(--vta-transition);
}

.vta-card__overlay-btn:hover {
    background: #0b7a69;
    color: #fff;
}

/* ── Card Body ──────────────────────────────────────────────── */
.vta-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vta-card__degrees {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--vta-teal);
    margin: 0 0 6px;
}

.vta-card__name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
}

.vta-card__name a {
    color: var(--vta-navy);
    text-decoration: none;
    transition: color var(--vta-transition);
}

.vta-card__name a:hover {
    color: var(--vta-blue);
}

.vta-card__speciality {
    font-size: 14px;
    color: var(--vta-muted);
    margin: 0 0 14px;
    line-height: 1.5;
}

/* Contacts */
.vta-card__contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.vta-card__contact {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--vta-muted);
    text-decoration: none;
    transition: color var(--vta-transition);
}

.vta-card__contact:hover {
    color: var(--vta-blue);
}

.vta-card__contact svg {
    flex-shrink: 0;
    color: var(--vta-blue);
}

/* Footer link */
.vta-card__footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.vta-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vta-blue);
    text-decoration: none;
    transition: gap var(--vta-transition), color var(--vta-transition);
}

.vta-card__link:hover {
    gap: 10px;
    color: var(--vta-blue-dark);
}

/* ── Empty ──────────────────────────────────────────────────── */
.vta-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--vta-muted);
    font-size: 16px;
}

/* ── Pagination ─────────────────────────────────────────────── */
.vta-pagination {
    margin-top: 52px;
    display: flex;
    justify-content: center;
}

.vta-pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.vta-pagination .page-numbers li a,
.vta-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--vta-text);
    background: var(--vta-white);
    border: 1.5px solid rgba(0, 0, 0, .1);
    transition: all var(--vta-transition);
}

.vta-pagination .page-numbers li a:hover {
    background: var(--vta-blue-light);
    border-color: var(--vta-blue);
    color: var(--vta-blue);
}

.vta-pagination .page-numbers li span.current {
    background: var(--vta-blue);
    border-color: var(--vta-blue);
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .vta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 600px) {
    .vta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vta-card__photo {
        aspect-ratio: 3/2;
    }

    .vta-filter__tabs {
        padding: 10px 0;
    }
}