/* Core Team Widget - Premium Portrait Grid */

.sp-team-section {
    padding: 100px 0;
    background-color: var(--nexros-bg);
}

.sp-team-section .sp-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px !important;
}

/* Header Styling */
.sp-team-header {
    text-align: center;
    margin-bottom: 80px;
}

.sp-team-header .sub-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primaryColor);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.813rem;
    margin-bottom: 15px;
}

.sp-team-header .main-title {
    font-size: 38px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 25px;
    font-family: var(--primaryFont);
}

.sp-team-header .section-desc {
    font-size: 1.125rem;
    color: var(--silver);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Team Grid Layout */
.sp-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

/* Featured / CEO Row */
.sp-team-grid--founder {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

/* Individual Team Card */
.sp-team-card {
    text-align: center;
    transition: var(--transition);
}

/* Portrait Wrapper */
.sp-team-card__image {
    width: 280px;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 auto 25px;
    border-radius: var(--borderRadiusLg);
    overflow: hidden;
    position: relative;
    background: var(--nexros-glass-bg);
    border: 1px solid var(--nexros-glass-border);
    transition: var(--transition);
}

.sp-team-card:hover .sp-team-card__image {
    transform: translateY(-8px);
    border-color: var(--primaryColor);
    box-shadow: none !important;
}

.sp-team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.sp-team-card:hover .sp-team-card__image img {
    transform: scale(1.05);
}

/* Branding/Logo Badge (Optional overlay) */
.sp-team-card__image::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primaryColor);
    border-radius: 10px 10px 0 0;
    opacity: 0;
    transition: var(--transition);
}

.sp-team-card:hover .sp-team-card__image::after {
    opacity: 1;
}

/* Info Styling */
.sp-team-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    font-family: var(--primaryFont);
}

.sp-team-card__role {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--primaryColor);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
    .sp-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-team-header .main-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .sp-team-section {
        padding: 60px 0;
    }

    .sp-team-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .sp-team-card__image {
        width: 100%;
        max-width: 300px;
        height: 380px;
    }

    .sp-team-header .main-title {
        font-size: 28px;
    }
}