/* =========================================================
   TEAM GRID LAYOUT - FIXED VERSION
   ========================================================= */

.tc-team-grid {
    width: 100%;
    max-width: 100%;
    position: relative;
    padding: 20px 0 40px;
    box-sizing: border-box;
}

.tc-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .tc-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .tc-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .tc-grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.tc-grid-card {
    position: relative;
    background: #f1f3f7;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tc-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.tc-grid-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tc-grid-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #ddd;
}

.tc-grid-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(0%);
    transition: transform 0.3s ease;
}

.tc-grid-card:hover .tc-grid-image img {
    transform: scale(1.05);
}

.tc-grid-content {
    padding: 15px 18px 20px;
    flex: 1;
    box-sizing: border-box;
}

.tc-grid-name {
    margin: 0 0 7px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #07124c;
}

.tc-grid-position {
    font-size: 11px;
    line-height: 1.4;
    color: #8b8f99;
    margin-bottom: 7px;
}

.tc-grid-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    line-height: 1.4;
    color: #07124c;
}

.tc-grid-linkedin {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    color: #07124c;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.tc-grid-linkedin:hover {
    color: #005582;
}

.tc-grid-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.tc-view-more-btn,
.tc-view-less-btn {
    padding: 12px 32px;
    border: 1px solid #07124c;
    border-radius: 4px;
    background: #fff;
    color: #07124c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tc-view-more-btn:hover,
.tc-view-less-btn:hover {
    background: #07124c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 18, 76, 0.2);
}

.tc-no-members {
    text-align: center;
    padding: 40px 20px;
    color: #8b8f99;
    font-size: 14px;
}