/* 1. Global Wrapper & Header */
.wk-team-wrapper {
    padding: 30px 10px;
    background: transparent;
    font-family: 'Inter', sans-serif;
}

.wk-team-header {
    max-width: 1200px;
    margin: 0 auto 20px;
    text-align: center;
}

.wk-team-header h2 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 800;
    color: var(--primary);
}

/* 2. Grid - Forced 4 Columns on Desktop */
.wk-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3. Base Card Style */
.wk-member-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 4px solid transparent; /* Placeholder for the highlight */
}

/* 4. Special Style for the FIRST Member */
.wk-team-grid .wk-member-card:first-child {
    border-top: 4px solid var(--accent); /* Highlight top border */
    box-shadow: 0 10px 25px rgba(1, 28, 57, 0.12); /* Stronger shadow */
    transform: translateY(-2px);
}

.wk-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* 5. FORCED IMAGE SCALING - OVERRIDE */
.wk-member-img {
    width: 100% !important;
    height: 280px !important; /* Force exact height */
    min-height: 280px !important;
    max-height: 280px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important; /* Crop instead of stretch */
    object-position: top center !important; 
    display: block !important;
}

/* 6. Compact Info Styling */
.wk-member-info {
    padding: 15px 10px;
    text-align: center;
}

.wk-member-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.wk-member-info p {
    margin: 2px 0 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
}

/* 7. Social Icons */
.wk-member-social {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wk-social-link {
    width: 28px;
    height: 28px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.75rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.wk-social-link:hover {
    background: var(--primary);
    color: #ffffff !important;
}

/* 8. Responsive Adjustments */
@media (max-width: 1024px) {
    .wk-team-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 600px) {
    .wk-team-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px;
    }
    @media (max-width: 600px) {
    .wk-member-img {
        height: 160px !important; /* Shorter on mobile */
        min-height: 160px !important;
        max-height: 160px !important;
    }
    .wk-member-card:first-child {
        transform: none; 
    }

}