:root {
    --kt-primary: #004d40;
    --kt-accent: #e0f2f1;
    --kt-text: #333;
    --kt-text-light: #666;
    --kt-font-heading: 'Outfit', sans-serif;
    --kt-font-body: 'Montserrat', sans-serif;
}

.keynivesh-team-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.keynivesh-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card Styling */
.team-member-card {
    text-align: center;
    margin-bottom: 20px;
}

.team-member-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1 / 1; /* Square aspect ratio */
    margin-bottom: 15px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-member-card:hover .team-member-image img {
    filter: grayscale(0%);
}

.team-member-info {
    position: relative;
    z-index: 2;
    margin-top: -30px; /* Overlap effect if desired, or adjust as needed */
    background: transparent;
    padding: 10px;
}

/* Specific to the user's reference look (Overlay text block) */
.team-member-name {
    background: #000;
    color: #fff !important; /* Force white text */
    display: inline-block;
    padding: 10px 20px;
    margin: 0 auto 10px;
    font-family: var(--kt-font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
    top: -20px; /* Pull up into image */
}

.team-member-title {
    font-family: var(--kt-font-body);
    font-size: 16px;
    color: var(--kt-text);
    margin: 0 0 10px;
}

.read-bio-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0056b3; /* Link blue color */
    font-family: var(--kt-font-body);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
}

.read-bio-btn:hover {
    color: var(--kt-primary);
}

/* Modal Styling */
.keynivesh-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.keynivesh-modal.active {
    display: flex;
}

.keynivesh-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.keynivesh-modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10000;
}

.keynivesh-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.modal-left-col img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.modal-member-name {
    background: #000;
    color: #fff !important; /* Force white text */
    display: inline-block;
    padding: 10px 20px;
    margin: 0 0 15px;
    font-family: var(--kt-font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
}

.modal-member-title {
    font-family: var(--kt-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--kt-text);
    margin-bottom: 20px;
}

.modal-member-bio {
    font-family: var(--kt-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--kt-text-light);
    margin-bottom: 20px;
}

.read-less-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0056b3;
    font-family: var(--kt-font-body);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
    margin-top: 10px;
}

/* Social Links in Modal */
.modal-social-links {
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    margin-right: 15px;
    color: var(--kt-primary);
    text-decoration: none;
    font-family: var(--kt-font-body);
    font-weight: 600;
}

.social-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .keynivesh-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-body-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-left-col {
        text-align: center;
    }
    
    .modal-left-col img {
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .keynivesh-team-grid {
        grid-template-columns: 1fr;
    }
    
    .keynivesh-modal-content {
        padding: 20px;
    }
}
