/* Modern Team Section */
.modern-team-section {
    padding: 80px 0;
    background-color: #f8fbff;
    position: relative;
    overflow: hidden;
}

.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #09212b;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.team-title .highlight {
    color: #33BDFF;
}

.team-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Team Grid */
.team-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Team Card */
.team-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    /* For image zoom */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(9, 33, 43, 0.15);
}

/* Image Container */
.team-img-wrapper {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(9, 33, 43, 0.8), transparent);
    opacity: 0.8;
}

/* Content */
.team-body {
    padding: 30px;
    flex-grow: 1;
    /* Ensures cards stretch */
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #09212b;
    margin-bottom: 5px;
}

.team-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: #33BDFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.team-bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
    /* Optional: Limit lines if desired, but user wanted proper details */
    /* display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden; */
}

/* CEO Highlight (Optional styling for center card) */
.team-card.ceo-card {
    border-color: #33BDFF;
    border-width: 2px;
    transform: scale(1.02);
    z-index: 2;
}

.team-card.ceo-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.ceo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #33BDFF;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 3;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(51, 189, 255, 0.4);
}

@media (max-width: 991px) {
    .team-card.ceo-card {
        transform: none;
    }

    .team-card.ceo-card:hover {
        transform: translateY(-10px);
    }
}