/* ============================================
   TEAM SHORTCODE — Listing Page Styles
   [team_members] shortcode output
============================================ */

/* ── List Wrapper ───────────────────────── */
.rsd-team-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
    padding:20px;
}

/* ── Card ───────────────────────────────── */
.rsd-team-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    padding: 36px 0;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
}

.rsd-team-card:first-child {
    padding-top: 0;
}

.rsd-team-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ── Photo Column ───────────────────────── */
.rsd-team-photo {
    flex: 0 0 200px;
    width: 200px;
    position: relative;
}

.rsd-team-photo img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 6px;
}

/* Fallback initial avatar */
.rsd-team-photo-fallback {
    width: 100%;
    height: 240px;
    background: #ececec;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsd-team-photo-fallback span {
    font-size: 4rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    line-height: 1;
}

/* Inactive badge on photo */
.rsd-team-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 3px;
    line-height: 1.6;
}

.rsd-team-badge--inactive {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

/* ── Content Column ─────────────────────── */
.rsd-team-content {
    flex: 1;
    min-width: 0;
}

/* Name */
.rsd-team-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.3;
}

.rsd-team-name a {
    text-decoration: none;
    color: #c0392b;
    transition: color 0.2s ease;
}

.rsd-team-name a:hover {
    color: #a93226;
    text-decoration: underline;
}

/* Role */
.rsd-team-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    color: #999;
    margin: 0 0 14px;
}

/* Bio excerpt */
.rsd-team-bio {
    font-size: 0.94rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 14px;
}

/* ── Contact Links ───────────────────────── */
.rsd-team-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}

.rsd-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rsd-contact-link i {
    font-size: 0.85rem;
    color: #c0392b;
    flex-shrink: 0;
}

.rsd-contact-link:hover {
    color: #c0392b;
}

/* ── Social Icons ───────────────────────── */
.rsd-team-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rsd-team-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.rsd-team-socials a:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* ── Read More Button ───────────────────── */
.rsd-team-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background-color: #c0392b;
    color: #fff !important;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    line-height: 1;
}

.rsd-team-readmore:hover {
    background-color: #a93226;
}

.rsd-team-readmore i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.rsd-team-readmore:hover i {
    transform: translateX(4px);
}

/* ── No Results ─────────────────────────── */
.team-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* ── Responsive ─────────────────────────── */
@media ( max-width: 680px ) {

    .rsd-team-card {
        flex-direction: column;
        gap: 18px;
    }

    .rsd-team-photo {
        flex: 0 0 auto;
        width: 100%;
    }

    .rsd-team-photo img,
    .rsd-team-photo-fallback {
        height: 280px;
    }

    .rsd-team-name {
        font-size: 1.2rem;
    }

    .rsd-team-contact {
        flex-direction: column;
        gap: 8px;
    }
}