
.team-header-section {
width: 100%;
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 180px 90px 0 90px;
box-sizing: border-box;
}

/* Left Heading */
.team-header-left h2 {
font-family: 'Poppins', sans-serif;
font-weight: 900;
font-size: 65px;
line-height: 1.1;
margin: 0;
transform: rotate(-3deg); /* SAME ROTATION AS ORIGINAL */
}

.yellow-count {
color: #e7bd02;
font-size: 65px;
font-weight: 900;
display: inline-block;
transform: rotate(3deg);
}

.line-1,
.line-2 {
color: #000;
font-weight: 900;
display: inline-block;
}

/* Right Paragraph */
.team-header-right {
max-width: 480px;
}

.team-header-right p {
font-size: 18px;
font-family: 'Poppins', sans-serif;
line-height: 1.6;
color: #222;
margin-top: 15px;
}

/* ===========================
   TEAM GRID
=========================== */
.team-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 28px;
    margin: 70px 90px 0 90px;
}
/* ===========================
   TEAM CARD
=========================== */
.team-card{
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #f1f1f1;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.team-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

/* ===========================
   PHOTO BOX
=========================== */
.team-photo-box{
    position: relative;
    width: 100%;
    height: 330px;
    background: #0a0a0a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Yellow circle */
.team-photo-box::before{
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    background: #f4cc00;
    border-radius: 50%;
    z-index: 1;
}

/* Images */
.team-photo-box img{
    position: relative;
    z-index: 2;
    height: 86%;
    width: auto;
    object-fit: contain;
    transition: opacity .35s ease;
}

.team-photo-box img.hover-img{
    position: absolute;
    opacity: 0;
}

.team-photo-box:hover img.hover-img{
    opacity: 1;
}

/* ===========================
   TEXT
=========================== */
.team-info{
    margin-top: 16px;
}

.team-info h3{
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.team-info .role{
    font-size: 14px;
    color: #444;
    margin-top: 4px;
}

.team-desc{
    margin: 12px 0 14px;
    font-size: 14px;
    color: #333;
    min-height: 44px;
}

.next-btn{
    font-size: 13px;
    font-weight: 600;
    background: #ffdd00;
    color: #000;
    border: none;
    padding: 6px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: background .3s ease;
}

.next-btn:hover{
    background: #ffc400;
}

/* ===========================
   ANIMATIONS
=========================== */
.fade-in{ animation: fadeIn .3s ease; }
.fade-out{ opacity: 0; }

@keyframes fadeIn{
    from{ opacity:0 }
    to{ opacity:1 }
}

/* ===========================
   RESPONSIVE
=========================== */
@media(max-width: 1080px){
    .team-grid{
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        margin: 50px 40px 0 40px;
    }

    .team-header-section{
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .team-header-left,
    .team-header-right{
        flex: 1 1 100%;
    }

    .team-header-right{
        justify-content: center;
    }

    .team-header-right p{
        text-align: center;
        margin: 0 auto;
    }

    .team-header-left h2{
        font-size: clamp(46px,8vw,72px);
    }

    .caret{
        top: -12px;
    }
}

@media(max-width: 720px){
    .team-grid{
        grid-template-columns: 1fr;
        margin: 40px 24px 0 24px;
    }

    .team-photo-box{
        height: 280px;
    }
    .team-photo-box::before{
        width: 240px;
        height: 240px;
    }
}

@media(max-width: 520px){
    .team-header-left h2{
        font-size: clamp(40px,9vw,54px);
    }
    .yellow-count{
        font-size: clamp(34px,7vw,46px);
    }
    .team-photo-box{
        height: 250px;
    }
}
