/* ==========================================================================
   Raoa Addons – Team Widget
   ========================================================================== */

.raoa-team-grid,
.raoa-team-grid * {
    box-sizing: border-box;
}

.raoa-team-list {
    display: grid;
    grid-template-columns: repeat(var(--tm-columns, 4), 1fr);
    gap: var(--tm-gap, 24px);
    --tm-primary: #6C4CFF;
    --tm-c1: #4C6FFF;
    --tm-c2: #E0409F;
    --tm-c3: #FF8A00;
    --tm-c4: #00B894;
    --tm-t1: #EEF1FB;
    --tm-t2: #FBEAF1;
    --tm-t3: #FDF3E2;
    --tm-t4: #EAF7EF;
    --tm-photo-ratio: 4/5;
}

.tm-item {
    --tm-item-accent: var(--tm-c1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.tm-item:nth-child(4n+1) { --tm-item-accent: var(--tm-c1); }
.tm-item:nth-child(4n+2) { --tm-item-accent: var(--tm-c2); }
.tm-item:nth-child(4n+3) { --tm-item-accent: var(--tm-c3); }
.tm-item:nth-child(4n+4) { --tm-item-accent: var(--tm-c4); }

/* ---------- Photo ---------- */

.tm-photo {
    position: relative;
    overflow: hidden;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.tm-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-photo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    background-color: var(--tm-item-accent, var(--tm-primary));
}

/* ---------- Name / Role / Bio ---------- */

.tm-name {
    font-weight: 700;
    color: #111827;
    font-size: 16px;
    line-height: 1.3;
}

.tm-role {
    font-size: 13px;
    color: var(--tm-primary);
    margin-top: 3px;
}

.tm-bio {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 10px;
}

/* ---------- Social Icons ---------- */

.tm-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: #374151;
    line-height: 1;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.tm-social-link:hover {
    transform: translateY(-2px);
}

.tm-social-link i {
    font-size: 13px;
}

.tm-social-link svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/* ==========================================================================
   Style 1 – Clean Card
   ========================================================================== */

.raoa-team-style-1 .tm-item {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px 20px;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 24px rgba(17, 17, 17, 0.06);
}

.raoa-team-style-1 .tm-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.raoa-team-style-1 .tm-info {
    margin-bottom: 16px;
}

.raoa-team-style-1 .tm-social {
    justify-content: center;
}

.raoa-team-style-1 .tm-social-link {
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

/* ==========================================================================
   Style 2 – Modern Overlay
   ========================================================================== */

.raoa-team-style-2 .tm-photo-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: var(--tm-photo-ratio, 4/5);
}

.raoa-team-style-2 .tm-photo {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.raoa-team-style-2 .tm-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 18px 20px;
    background: linear-gradient(180deg, rgba(15, 15, 20, 0) 0%, rgba(15, 15, 20, 0.78) 68%);
    color: #ffffff;
}

.raoa-team-style-2 .tm-social {
    margin-bottom: 12px;
}

.raoa-team-style-2 .tm-social-link {
    width: 28px;
    height: 28px;
    background-color: var(--tm-primary);
    color: #ffffff;
}

.raoa-team-style-2 .tm-name {
    color: #ffffff;
}

.raoa-team-style-2 .tm-role {
    color: var(--tm-primary);
}

/* ==========================================================================
   Style 3 – Info Left
   ========================================================================== */

.raoa-team-style-3 .tm-item {
    border-radius: 16px;
    overflow: hidden;
}

.raoa-team-style-3 .tm-item:nth-child(4n+1) { background-color: var(--tm-t1); }
.raoa-team-style-3 .tm-item:nth-child(4n+2) { background-color: var(--tm-t2); }
.raoa-team-style-3 .tm-item:nth-child(4n+3) { background-color: var(--tm-t3); }
.raoa-team-style-3 .tm-item:nth-child(4n+4) { background-color: var(--tm-t4); }

.raoa-team-style-3 .tm-photo {
    width: calc(100% - 40px);
    margin: 20px 20px 0;
    border-radius: 14px;
    aspect-ratio: var(--tm-photo-ratio, 4/5);
}

.raoa-team-style-3 .tm-info {
    padding: 18px 20px 22px;
    text-align: left;
}

.raoa-team-style-3 .tm-role {
    color: var(--tm-item-accent);
}

.raoa-team-style-3 .tm-social-link {
    background-color: var(--tm-item-accent);
    color: #ffffff;
}

/* ==========================================================================
   Style 4 – Circle Photo & Floating Card
   ========================================================================== */

.raoa-team-style-4 .tm-item {
    align-items: center;
}

.raoa-team-style-4 .tm-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    z-index: 2;
    margin-bottom: -40px;
}

.raoa-team-style-4 .tm-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--tm-item-accent);
}

.raoa-team-style-4 .tm-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--tm-item-accent);
    color: #ffffff;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.raoa-team-style-4 .tm-badge i {
    font-size: 13px;
}

.raoa-team-style-4 .tm-badge svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.raoa-team-style-4 .tm-floating-card {
    width: 100%;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(17, 17, 17, 0.08);
    padding: 52px 20px 24px;
    text-align: center;
}

.raoa-team-style-4 .tm-divider {
    width: 36px;
    height: 2px;
    background-color: var(--tm-item-accent);
    margin: 8px auto 14px;
}

.raoa-team-style-4 .tm-social {
    justify-content: center;
}

.raoa-team-style-4 .tm-social-link {
    background-color: transparent;
    border: 1.5px solid var(--tm-item-accent);
    color: var(--tm-item-accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
    .raoa-team-style-1 .tm-item {
        padding: 22px 16px;
    }

    .raoa-team-style-4 .tm-floating-card {
        padding: 48px 16px 20px;
    }

    .raoa-team-style-3 .tm-info {
        padding: 16px;
    }
}