/* =========================================
   تیم نماد — پازل طلایی + کارت شیشه‌ای
   ========================================= */

body.team-body {
    background: #d5e0ef;
}

.team-section {
    --t-navy: #0b1c44;
    --t-gold: #f2b31e;
    --t-header-h: var(--header-height, 70px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100vh - var(--t-header-h));
    min-height: calc(100dvh - var(--t-header-h));
    padding: 0;
    margin: 0;
    font-family: "Vazirmatn", "YekanBakh", Tahoma, sans-serif;
    background: #c9d8eb;
}

.team-section + .footer-new,
.team-section ~ .footer-new {
    margin-top: 0;
}

.team-page-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.team-page-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.05) contrast(1.02);
}

.team-bg-wash {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(236, 244, 255, 0.28) 38%,
        rgba(240, 246, 255, 0.55) 100%
    );
}

.team-container {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(36px, 4.5vw, 56px) 20px clamp(48px, 6vw, 72px);
}

.team-title {
    text-align: center;
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    font-weight: 900;
    color: var(--t-navy);
    margin: 0 0 8px;
}

.team-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #ffcf55, var(--t-gold));
    box-shadow: 0 0 10px rgba(242, 179, 30, 0.45);
}

.team-subtitle {
    text-align: center;
    font-size: clamp(0.98rem, 1.4vw, 1.15rem);
    color: #355980;
    margin: 14px 0 36px;
    font-weight: 600;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
}

.team-card {
    background: rgba(255, 255, 255, 0.48);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow:
        0 10px 24px rgba(15, 40, 80, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    cursor: default;
    text-align: center;
    padding: 22px 14px 18px;
}

.team-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 32px rgba(15, 40, 80, 0.16);
}

.team-avatar {
    width: 54px;
    height: 54px;
    background: linear-gradient(145deg, #1a3f78, #0b1c44);
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    box-shadow: 0 6px 14px rgba(11, 28, 68, 0.28);
}

.team-name {
    font-size: 0.98rem;
    font-weight: 900;
    color: var(--t-navy);
    margin: 0 0 6px;
    text-align: center;
    line-height: 1.4;
}

.team-position {
    font-size: 0.78rem;
    color: #3d5f86;
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
    text-align: center;
    line-height: 1.55;
}

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

@media (max-width: 560px) {
    .team-section {
        padding: 0;
    }

    .team-container {
        padding: 28px 14px 36px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-title {
        font-size: 1.7rem;
    }

    .team-subtitle {
        font-size: 0.92rem;
        margin-bottom: 24px;
    }
}

body.lang-en .team-name,
body.lang-en .team-position,
body.lang-en .team-member-info,
body.lang-en .team-member-info h3,
body.lang-en .team-member-info p,
body.lang-en .team-member-role {
    text-align: left;
}
