/* ============================================
   TEAM SECTION STYLES - RESPONSIVE FIXED
   ============================================ */

/* ===== Team Card ===== */
.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* CMD Card - Special Highlight */
.team-cmd {
    border: 3px solid #1e3a8a;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
    position: relative;
}

.team-cmd::before {
    content: '⭐ सबसे महत्वपूर्ण';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
    white-space: nowrap;
}

/* ===== Team Image - DESKTOP ===== */
.team-image-wrapper {
    position: relative;
    width: 100%;
    height: 480px;        /* ← Desktop height बढ़ाया */
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;  /* ← चेहरा ऊपर दिखेगा */
    transition: all 0.5s;
}

.team-card:hover .team-image {
    transform: scale(1.1);
}

/* Image Overlay */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s;
    z-index: 2;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.social-links {
    padding: 20px;
    display: flex;
    gap: 10px;
    transform: translateY(20px);
    transition: all 0.4s;
}

.team-card:hover .social-links {
    transform: translateY(0);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.social-links a:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-3px);
}

/* ===== Team Badge ===== */
.team-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: white;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.team-badge i {
    font-size: 10px;
}

.team-badge.cmd-badge {
    background: linear-gradient(135deg, #ffc107, #d39e00) !important;
    color: #1a1a2e;
}

/* ===== Team Info ===== */
.team-info {
    padding: 25px 20px;
    background: white;
}

.team-info h4 {
    color: #1a1a2e;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.team-post {
    display: inline-block;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #1e3a8a;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.team-desc {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 40px;
    line-height: 1.5;
}

.team-contact .btn {
    width: 100%;
    font-weight: 600;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.3s;
}

.team-contact .btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* ===== LARGE TABLET (992px - 1199px) ===== */
@media (max-width: 1199px) and (min-width: 992px) {
    .team-image-wrapper {
        height: 390px;
    }
}

/* ===== TABLET (768px - 991px) - 2 columns ===== */
@media (max-width: 991px) and (min-width: 768px) {
    .team-image-wrapper {
        height: 450px;     /* ← Tablet height बढ़ाया */
    }
    
    .team-info h4 {
        font-size: 17px;
    }
    
    .team-info {
        padding: 20px 18px;
    }
}

/* ===== MOBILE (below 767px) ===== */
@media (max-width: 767px) {
    .team-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .team-image-wrapper {
        height: 500px;     /* ← Mobile height बढ़ाया (पहले 280px था) */
    }
    
    .team-info {
        padding: 20px 18px;
    }
    
    .team-info h4 {
        font-size: 19px;
    }
    
    .team-post {
        font-size: 12px;
        padding: 5px 15px;
    }
    
    .team-desc {
        font-size: 13px;
    }
    
    .team-badge {
        font-size: 10px;
        padding: 5px 12px;
    }
    
    /* CMD card mobile fix */
    .team-cmd::before {
        font-size: 10px;
        padding: 3px 12px;
    }
}

/* ===== SMALL MOBILE (below 480px) ===== */
@media (max-width: 480px) {
    .team-image-wrapper {
        height: 480px;
    }
    
    .team-info h4 {
        font-size: 18px;
    }
    
    .team-post {
        font-size: 11px;
        padding: 4px 12px;
    }
}

/* ===== EXTRA SMALL MOBILE (below 380px) ===== */
@media (max-width: 380px) {
    .team-image-wrapper {
        height: 380px;
    }
}
