/**********************************************************************
 TEAM OVERVIEW SECTION
**********************************************************************/

.team-overview-section {
    padding: 80px 0;
    background: var(--bg);
}

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

/**********************************************************************
 COMPACT VERSION (INDEX PAGE)
**********************************************************************/

.team-grid-compact .team-grid-card {
    padding: 22px;
}

.team-grid-compact .grid-image-wrapper {
    height: 220px;
}

.team-grid-compact .grid-member-name {
    font-size: 1.35rem;
}

.team-grid-compact .btn-grid-profile {
    padding: 10px 18px;
    font-size: 0.8rem;
}

/**********************************************************************
 CARD
**********************************************************************/

.team-grid-card {
    background: #f8f5f0;
    border-radius: 25px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform .35s ease,
                box-shadow .35s ease,
                background .35s ease,
                border-color .35s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.team-grid-card:hover {
    background: var(--white);
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
    border-color: var(--accent-light);
}

/**********************************************************************
 HEADER
**********************************************************************/

.grid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.grid-member-name {
    margin: 0;
    font-family: serif;
    font-size: 1.8rem;
    color: var(--premium-dark);
    transition: var(--transition);
}

.team-grid-card:hover .grid-member-name {
    color: var(--accent);
}

.grid-member-category {
    color: var(--accent);
    font-weight: 700;
    margin: 5px 0 0 0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.grid-icon-status {
    color: var(--accent);
    font-size: 2rem;
    opacity: 0.4;
    transform: translateY(2px);
}

/**********************************************************************
 IMAGE
**********************************************************************/

.grid-image-wrapper {
    width: 100%;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #f2f0ed;
}

.grid-member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform .6s cubic-bezier(.4,0,.2,1),
                filter .6s ease;
}

.team-grid-card:hover .grid-member-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.grid-image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
}

/**********************************************************************
 BUTTON
**********************************************************************/

.grid-card-footer {
    margin-top: auto;
}

.btn-grid-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1.5px solid var(--text);
    padding: 14px 25px;
    border-radius: 50px;
    transition: all .3s ease;
}

.btn-grid-profile:hover {
    background: var(--premium-dark);
    color: var(--white);
    border-color: var(--premium-dark);
}

.btn-grid-profile:hover i {
    transform: translateX(5px);
}

/**********************************************************************
 TABLET
**********************************************************************/

@media (max-width: 1100px) {

    .team-grid-3x3 {
        grid-template-columns: repeat(2, minmax(260px, 420px));
        justify-content: center;
    }
}

/**********************************************************************
 MOBILE
**********************************************************************/

@media (max-width: 650px) {
    .team-grid-3x3 {
        grid-template-columns: minmax(260px, 420px);
        justify-content: center;

    }

}