/*==============================
TEAM SECTION
==============================*/

.team-section {
    padding: 30px 0;
    background: #f5f3f2;
    overflow: hidden;
}


/* Section Heading */



.section-title h2 {
    font-size: 35px;
    line-height: 1.2;
    color: #111;
    font-weight: 600;
    max-width: 13000px;
    margin: auto;
}

/* Team Layout */

.team-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.team-card {
    text-align: center;
    transition: all 0.4s ease;
}

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

/* Image Style */

.team-img {
    width: 420px;
    height: 470px;
    overflow: hidden;
    position: relative;
    background: #ddd;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

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

/* Content */

.team-content {
    padding-top: 28px;
}

.team-content h3 {
    font-size: 38px;
    color: #ffbd42;
    margin-bottom: 15px;
    font-weight: 500;
}

.team-content h5 {
    font-size: 20px;
    color: #111;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.team-content p {
    font-size: 28px;
    color: #ffbd42;
    margin: 0;
    font-weight: 400;
}

/* Responsive */

@media (max-width: 991px) {

    .section-title h2 {
        font-size: 42px;
    }

    .team-img {
        width: 340px;
        height: 400px;
    }

    .team-content h3 {
        font-size: 30px;
    }

    .team-content p {
        font-size: 22px;
    }
}

@media (max-width: 767px) {

    .team-section {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 18px;
    }

    .team-wrapper {
        gap: 40px;
    }

    .team-img {
        width: 100%;
        max-width: 320px;
        height: 360px;
        margin: auto;
    }

    .team-content h3 {
        font-size: 26px;
    }

    .team-content h5 {
        font-size: 20px;
    }

    .team-content p {
        font-size: 20px;
    }
}

.team-section {
    padding: 19px 0;
    background: #f5f7fb;
    position: relative;
}

.team-section .section-title span {
    display: inline-block;
    color: #ff6600;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.team-section .section-title h2 {
    font-size: 42px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
    max-width: 700px;
    margin: 0 auto 20px;
}

.team-wrapper {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.team-card {
    width: 340px;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

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

.team-img {
    position: relative;
    overflow: hidden;
    height: 420px;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

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

/* Gradient Overlay */
.team-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 32%), rgba(0, 0, 0, 0.05));
    z-index: 1;
}

/* Content Box */
.team-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: #fff;
}

.team-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.team-content h5 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffcc00;
    margin-bottom: 10px;
}

.team-content p {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}

/* Decorative Shape */
.team-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -40px;
    right: -40px;
}

/* Responsive */
@media(max-width:768px) {

    .team-section {
        padding: 40px 0;
    }

    .team-section .section-title h2 {
        font-size: 30px;
    }

    .team-card {
        width: 100%;
    }

    .team-img {
        height: 380px;
    }
}