/* =======================================
   Modern Team Section (Exact Dribbble Match)
   ======================================= */
.team-section { 
    background-color: #1083d6; 
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    padding: 80px 5%; 
}
.team-section .section-title h2 { color: #ffffff; }
.team-section .section-title h2 span { color: #ffc107; border-color: #ffffff; }

.team-grid { 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* মেম্বারদের মাঝের দূরত্ব কমানো হয়েছে */
    margin-bottom: 40px;
}

/* Base Team Card */
.team-card {
    width: 320px; 
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 10px; /* কাছাকাছি রাখার জন্য মার্জিন */
    transition: transform 0.4s ease; 
}

.team-card:hover { transform: translateY(-15px); }
.team-card:hover .team-card-bottom { box-shadow: 0 20px 30px rgba(0,0,0,0.3); }

/* Top Image (100% চারকোনা ছবি) */
.team-card-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2; 
    border-radius: 0 !important; /* গোল ভাব দূর করে চারকোনা করার জন্য */
}

/* Bottom Dark Box (ব্যাকা চারকোনা বক্স) */
.team-card-bottom {
    background-color: #1b223c; 
    position: relative;
    z-index: 1; 
    transform: skewY(6deg); 
    margin-top: -30px; 
    padding: 50px 25px 60px 25px;
    transition: box-shadow 0.4s ease;
}

/* Un-skew text content */
.team-card-content {
    transform: skewY(-6deg); 
    display: flex;
    flex-direction: column;
}

.team-card-content h4 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: #ffffff; }
.team-card-content p { font-size: 13px; color: #9cb1c9; line-height: 1.6; margin-bottom: 20px; }

/* Yellow Arrow Button */
.team-card-btn {
    position: absolute;
    bottom: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    background-color: #ffc107;
    color: #1b223c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
    transform: skewY(-6deg); 
}
.team-card-btn:hover { background-color: #ffffff; transform: skewY(-6deg) scale(1.1); }

.team-see-more { text-align: center; margin-top: 30px; }

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .team-section { padding: 50px 5%; }
    .team-card { width: 100%; max-width: 350px; margin-bottom: 30px; }
}
