/* Layout */
.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Vertically center the cards */
    padding: 0 5vw;
    height: 100%;
    width: 100%;
    flex: 1;
    /* Allow taking up remaining space */
}

.slide-header {
    margin-bottom: 2vh;
    /* Reduced margin */
}

.badge-container {
    margin-bottom: 1.5vh;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #f9fbff);
    box-shadow: var(--shadow-sm);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4vw;
    width: 100%;
    max-width: 1100px;
    /* Expanded width */
    margin-bottom: 3vh;
    /* Reduced margin */
}

/* Team Card */
.team-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3vh 2vw;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

/* Photo */
.photo-wrapper {
    margin-bottom: 2.5vh;
}

.team-photo {
    width: 140px;
    height: 140px;
    /* Slightly smaller photo */
    border-radius: 50%;
    background: #f1f5f9;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on face */
}

/* Content */
.card-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5vh 0;
}

.card-content .role {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 2vh 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Credentials */
.card-content .credentials {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5vh;
    opacity: 0.9;
    min-height: 2.5em;
    /* specific height alignment */
}

.card-content .bio {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Team Footer */
.team-footer {
    text-align: center;
    font-size: 15px;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: -2vh;
    margin-bottom: 3vh;
    max-width: 800px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        gap: 3vh;
    }
}