/*==================================================================
# Team — Archive Styles
# Single layout lives in assets/css/single-cpt.css
==================================================================*/

/*--------------------------------------------------------------
# Team Archive Section
--------------------------------------------------------------*/
.team-archive-section {
    padding-top: 60px !important;
    padding-bottom: 80px !important;
}

/*--------------------------------------------------------------
# Team Card (Archive & Related)
--------------------------------------------------------------*/
.team-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2fb 0%, #dfe7f6 100%);
}

.team-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover .team-card__img {
    transform: scale(1.08);
}

.team-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: color-mix(in srgb, var(--accent-color), transparent 60%);
    font-size: 4rem;
}

.team-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 26, 58, 0.88) 0%, rgba(10, 26, 58, 0.35) 45%, rgba(10, 26, 58, 0) 75%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.team-card:hover .team-card__overlay {
    opacity: 1;
}

.team-card__socials {
    position: absolute;
    inset-inline: 0;
    bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    z-index: 2;
}

.team-card:hover .team-card__socials {
    transform: translateY(0);
    opacity: 1;
}

.team-card__social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.5);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.team-card:hover .team-card__social-icon:hover {
    background: var(--second-accent-color);
    color: #fff;
    transform: translateY(-2px);
}

.team-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.9s ease;
    pointer-events: none;
    z-index: 2;
}

.team-card:hover .team-card__shine {
    transform: translateX(120%);
}

.team-card__body {
    padding: 22px 20px 24px;
    text-align: center;
    position: relative;
    z-index: 3;
    background: #fff;
}

.team-card__name {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dark-heading-color);
    margin: 0 0 6px;
    line-height: 1.5;
    transition: color 0.25s ease;
}

.team-card:hover .team-card__name {
    color: var(--accent-color);
}

.team-card__position {
    font-size: 0.83rem;
    color: var(--second-accent-color);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.2px;
}

.team-card--compact .team-card__media {
    aspect-ratio: 4 / 5;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 576px) {
    .team-card__body {
        padding: 18px 16px 20px;
    }

    .team-card__social-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-card__img,
    .team-card__shine,
    .team-card__socials,
    .team-card__social-icon {
        transition: none !important;
        transform: none !important;
    }
}