/* =============================================================
   SDASH Team Slider
   Mobile First | Breakpoints: xs 480px · md 769px

   --team-cols (default: 3) is set by the PHP shortcode
   and respected from md+ onwards. On mobile and small tablets
   the variable is ignored in favour of fixed column counts.
   ============================================================= */


/* =============================================================
   Slider wrapper & mechanics
   ============================================================= */
.sdash-team-slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.sdash-team-slider {
    display: flex;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.sdash-team-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 10px 4px;
}

.sdash-team-slide-inner {
    max-width: 860px;
    margin: 0 auto;
}

.sdash-team-slide-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 1.2em;
    color: var(--color-heading);
    text-align: center;
}


/* =============================================================
   Team grid
   Mobile: 1 column
   xs (480px+): 2 columns
   md (769px+): shortcode-controlled (default: 3)
   ============================================================= */
.sdash-team-grid {
    display: grid;
    grid-template-columns: 1fr;                        /* Mobile */
    gap: 16px;
}

@media (min-width: 480px) {
    .sdash-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .sdash-team-grid {
        grid-template-columns: repeat(var(--team-cols, 3), 1fr);
    }
}


/* =============================================================
   Small team card (overview grid)
   ============================================================= */
.sdash-team-card--small {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}
.sdash-team-card--small:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.sdash-team-card--small .sdash-team-card-img img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.sdash-team-card--small .sdash-team-card-body {
    padding: 10px 12px 14px;
}
.sdash-team-card--small .sdash-team-name {
    display: block;
    font-size: .92em;
    font-weight: 700;
    color: var(--color-heading);
}
.sdash-team-card--small .sdash-team-position {
    display: block;
    font-size: .78em;
    color: var(--color-text-light);
    margin-top: 3px;
}


/* =============================================================
   Large team card (detail view)
   Mobile: image on top, text below
   md (769px+): image left, text right
   ============================================================= */
.sdash-team-card--large {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;               /* Mobile */
    display: flex;
    flex-direction: column;      /* Mobile: stacked */
    gap: 20px;
    align-items: flex-start;
}

@media (min-width: 769px) {
    .sdash-team-card--large {
        flex-direction: row;     /* Desktop: side by side */
        gap: 30px;
        padding: 28px;
    }
}

/* Image */
.sdash-team-card--large .sdash-team-card-img {
    flex-shrink: 0;
    width: 100%;
}
.sdash-team-card--large .sdash-team-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    display: block;
}

@media (min-width: 769px) {
    .sdash-team-card--large .sdash-team-card-img      { width: 350px; }
    .sdash-team-card--large .sdash-team-card-img img  { width: 350px; height: 400px; }
}

/* Overview variant: slightly larger image */
@media (min-width: 769px) {
    .sdash-team-card--overview .sdash-team-card-img     { width: 200px; }
    .sdash-team-card--overview .sdash-team-card-img img { width: 200px; height: 260px; }
}

/* Text area */
.sdash-team-card--large .sdash-team-card-body { 
    margin: auto auto;
}

.sdash-team-card--large .sdash-team-name {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 4px;
}

.sdash-team-card--large .sdash-team-position {
    display: inline-block;
    font-size: .85em;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(26,115,232,.08);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.sdash-team-card--large .sdash-team-bio {
    font-size: .95em;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 14px;
}

.sdash-team-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sdash-team-contact a {
    font-size: .9em;
    color: var(--color-link);
    text-decoration: none;
}
.sdash-team-contact a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}


/* =============================================================
   Navigation (arrows + dots)
   ============================================================= */
.sdash-team-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.sdash-team-prev,
.sdash-team-next {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text);
    transition: background .2s, border-color .2s, color .2s;
}
.sdash-team-prev:hover,
.sdash-team-next:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.sdash-team-dots { display: flex; gap: 7px; align-items: center; }
.sdash-team-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background .2s, transform .2s;
}
.sdash-team-dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
}


/* =============================================================
   Team badge
   ============================================================= */
.sdash-team-badge {
    display: inline-block;
    font-size: .75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    background: var(--color-primary);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
