/* ********** TEAM SECTION START 1 *********** */
.team-section-1 {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.team-section-1 .team-card {
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
}

.team-section-1 .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.team-section-1 .team-img {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-section-1 .team-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.team-section-1 .team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(252, 86, 48, 0.74);
    color: var(--light);
    padding: 15px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.team-section-1 .team-card:hover .team-overlay {
    transform: translateY(0);
}

.team-section-1 .team-info {
    padding: 25px;
    text-align: center;
}

.team-section-1 .team-info h3 {
    font-weight: 700;
    color: black;
    margin-bottom: 5px;
}

.team-section-1 .team-info p {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-section-1 .team-info .team-desc {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-section-1 .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-section-1 .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light-color);
    color: var(----light-dark3);
    transition: all 0.3s ease;
}

.team-section-1 .social-links a:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-3px);
}

@media (max-width: 767.98px) {
    .team-img {
        height: 250px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* ********** TEAM SECTION END 1 *********** */

/* ********** TEAM SECTION START 2 *********** */

.team-section-2 .team-card {
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
    padding-top: 80px;
    margin-top: 60px;
    position: relative;
    border: none;
    display: flex;
    flex-direction: column;
}

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

.team-section-2 .profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    position: absolute;
    top: -67px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-section-2 .team-card:hover .profile-image {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 5px solid var(--secondary);
}

.team-section-2 .social-container {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

@media (max-width: 768px) {
    .team-section-2 .profile-image {
        width: 130px;
        height: 130px;
        top: -50px;
    }

    .team-section-2 .team-card {
        padding-top: 70px;
        margin-top: 70px;
    }
}

/* ********** TEAM SECTION END 2 *********** */