/* Scinov Africa – Team section
   Change these three variables to match your brand colours. */
.team-section {
    --team-accent: #0d6efd;          /* primary brand colour */
    --team-accent-soft: #e8f0ff;     /* light tint of the accent */
    --team-ink: #1b2430;             /* headings */
    --team-muted: #5b6675;           /* body text */
    --team-card-bg: #ffffff;
    --team-radius: 18px;

    padding: 4.5rem 0;
    background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
}

/* ---------- Header ---------- */
.team-header { max-width: 680px; margin-bottom: 3.5rem; }
.team-eyebrow {
    display: inline-block;
    padding: .3rem .85rem;
    border-radius: 999px;
    background: var(--team-accent-soft);
    color: var(--team-accent);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.team-title {
    margin: 1rem 0 .75rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--team-ink);
}
.team-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: .9rem auto 0;
    border-radius: 4px;
    background: var(--team-accent);
}
.team-intro { color: var(--team-muted); font-size: 1.05rem; line-height: 1.7; margin: 0; }

/* ---------- Card ---------- */
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.75rem 2.25rem;
    background: var(--team-card-bg);
    border: 1px solid rgba(27, 36, 48, .06);
    border-radius: var(--team-radius);
    box-shadow: 0 6px 24px rgba(27, 36, 48, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(27, 36, 48, .12);
}

.team-photo { margin: 0 0 1.25rem; }
.team-photo img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--team-accent-soft), 0 6px 16px rgba(27, 36, 48, .15);
}

.team-name { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--team-ink); }
.team-role {
    display: inline-block;
    margin: .5rem 0 1.1rem;
    padding: .25rem .8rem;
    border-radius: 999px;
    background: var(--team-accent-soft);
    color: var(--team-accent);
    font-size: .8rem;
    font-weight: 600;
}

.team-quote {
    position: relative;
    margin: 0;
    padding-top: 1.6rem;
    color: var(--team-muted);
    font-size: .95rem;
    line-height: 1.75;
    font-style: italic;
}
.team-quote::before {
    content: "\201C";
    position: absolute;
    top: -.35rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.2rem;
    line-height: 1;
    font-style: normal;
    font-family: Georgia, serif;
    color: var(--team-accent);
    opacity: .35;
}

/* ---------- Featured (Director) ---------- */
.team-card--featured {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    padding: 2.5rem;
}
.team-card--featured .team-photo img { width: 200px; height: 200px; }
.team-card--featured .team-name { font-size: 1.6rem; }
.team-card--featured .team-quote { font-size: 1.05rem; }

/* ---------- Support grid ---------- */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .team-card--featured {
        flex-direction: row;
        text-align: left;
        gap: 2.5rem;
    }
    .team-card--featured .team-photo { margin: 0; flex-shrink: 0; }
    .team-card--featured .team-quote { padding-top: 0; padding-left: 1.5rem; border-left: 3px solid var(--team-accent-soft); }
    .team-card--featured .team-quote::before { display: none; }
}

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

@media (prefers-reduced-motion: reduce) {
    .team-card { transition: none; }
    .team-card:hover { transform: none; }
}