/* ============================================================
   RoboSpati — Team page
   ============================================================ */

.team-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    color: var(--text-color);
    height: 100%;
    position: relative;
    text-decoration: none;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(3, 22, 47, 0.12);
    border-color: rgba(3, 22, 47, 0.25);
    color: var(--text-color);
}
.team-card > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    background: #F1F8FE;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover > img {
    transform: scale(1.03);
}
.team-card-body {
    padding: 1.25rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.team-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: var(--fw-bold);
    color: var(--heading-color);
    margin-bottom: .25rem;
}
.team-position {
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
}

/* Arrow icon on hover */
.team-card-link-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-card);
    color: #03162F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0.85;
    transition: all var(--transition);
    z-index: 2;
}
.team-card:hover .team-card-link-icon {
    opacity: 1;
    background: #03162F;
    color: #FFFFFF;
    border-color: #03162F;
    transform: scale(1.08);
}

.team-avatar-monogram {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #EBF3FC 0%, #CEE5FA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: var(--fw-black);
    font-size: 3.2rem;
    color: #03162F;
    letter-spacing: .02em;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover .team-avatar-monogram {
    transform: scale(1.03);
}

/* ---- Team Hero Showcase Banner ---- */
.team-hero-showcase {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(3, 22, 47, 0.12);
    border: 1px solid rgba(3, 22, 47, 0.08);
    background: #03162F;
}
.team-banner-img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-hero-showcase:hover .team-banner-img {
    transform: scale(1.02);
}
.photo-floating-pill {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(3, 22, 47, 0.12);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #03162F;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    z-index: 2;
    pointer-events: none;
}

/* ---- Team profile (detail) ---- */
.team-profile-card {
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #E8EEF5;
    border-radius: 24px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 10px 30px rgba(3, 22, 47, 0.05);
}
.team-profile-photo {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    background: #F1F8FE;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(3, 22, 47, 0.14);
    border: 1px solid rgba(3, 22, 47, 0.08);
    display: block;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-profile-photo:hover {
    transform: scale(1.02);
}
.team-avatar-placeholder.large {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #EBF3FC 0%, #CEE5FA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: 800;
    color: #03162F;
}
.team-profile-links .btn-icon { width: 44px; height: 44px; }


