/* ============================================================
   TEAM LAYOUT — Matches the reference card design exactly
   ============================================================ */

/* ─── Grid ─── */
.team-grid-pro {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 50px;
}

/* ─── Card ─── */
.team-card-pro {
    background: #e8edf4;
    /* light blue-gray from the image */
    border-radius: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
    transition: background 0.35s ease;
}

.team-card-pro:hover {
    background: #0f2d26;
    /* dark teal from hovered card */
}

/* ─── Photo wrapper ─── */
.team-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 110%;
    /* slightly taller than square */
    overflow: hidden;
    background: #ced5de;
    border-radius: 14px 14px 0 0;
    cursor: pointer;
}

.team-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.team-card-pro:hover .team-img-wrapper img {
    transform: scale(1.04);
}

/* ─── White swoosh / curve at bottom-right of photo ─── */
.team-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 30%;
    height: 20%;
    background: #e8edf4;
    /* same as card bg */
    border-top-left-radius: 100%;
    z-index: 1;
    transition: background 0.35s ease;
}

.team-card-pro:hover .team-img-wrapper::after {
    background: #0f2d26;
    /* match hover card bg */
}

/* ─── Info row (name/role + button) ─── */
.team-info-pro {
    padding: 18px 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.team-info-text {
    flex: 1;
}

.team-name-pro {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #0b1a2d;
    transition: color 0.35s ease;
    line-height: 1.2;
}

.team-role-pro {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    transition: color 0.35s ease;
}

.team-card-pro:hover .team-name-pro {
    color: #ffffff;
}

.team-card-pro:hover .team-role-pro {
    color: #a0c4b8;
}

/* ─── Social group (button + icons) ─── */
.team-social-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 14px;
}

/* Social icons — float right of photo on hover */
.social-icons-pro {
    position: absolute;
    /* Right side, vertically centered with the photo */
    right: -5px;
    bottom: 70px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}

.team-card-pro:hover .social-icons-pro {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.social-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s;
    color: #374151;
}

/* Brand colors matching the icons in image */
.social-icon-btn[aria-label="Facebook"] {
    color: #3b5998;
}

.social-icon-btn[aria-label="X"] {
    color: #e11d48;
}

.social-icon-btn[aria-label="LinkedIn"] {
    color: #7c3aed;
}

.social-icon-btn[aria-label="Instagram"] {
    color: #10b981;
}

.social-icon-btn:hover {
    transform: scale(1.12);
}

/* ─── Orange action button ─── */
.team-action-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffab00;
    color: #ffffff;
    border: none;
    font-size: 28px;
    line-height: 1;
    padding-bottom: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 171, 0, 0.4);
    transition: background 0.25s, transform 0.25s;
    flex-shrink: 0;
}

.team-action-btn:hover {
    background: #f59e0b;
    transform: scale(1.06);
}

/* +/- icon toggle */
.icon-minus {
    display: none;
}

.team-card-pro:hover .icon-plus {
    display: none;
}

.team-card-pro:hover .icon-minus {
    display: inline;
}


@media (max-width: 1200px) {
    .team-grid-pro {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid-pro {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-img-wrapper::after {
        width: 52%;
        height: 28%;
    }
}

@media (max-width: 480px) {
    .team-grid-pro {
        grid-template-columns: 1fr;
    }
}