/* ================================================================
   AUTHOR BANNERS — Mobile-first
   Mobile  : full-width vertical card, arrows overlay on top
   Desktop : fixed-width vertical cards, side-by-side
   ================================================================ */

:root {
    --ab-teal:       #00A499;
    --ab-teal-dark:  #007a72;
    --ab-teal-light: #9CDBD9;
    --ab-dark:       #2c2c25;
    --ab-muted:      #555;
}

/* ── Section wrapper ──────────────────────────────────────────── */
.blog-author-footer {
    max-width: min(1340px, 100%);
    margin: 0 auto;
    padding: 3rem clamp(15px, 3vw, 20px) 4rem;
    border-top: 2px solid var(--ab-teal-light);
}

.blog-author-footer__label {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ab-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.blog-author-footer__names {
    text-align: center;
    color: var(--ab-dark);
}

/* ── Slider shell ─────────────────────────────────────────────── */
.ab-slider {
    position: relative;
    width: 100%;
}

/* Only top/bottom padding needed for shadow bleed — no side padding,
   arrows overlay on top of the card instead */
.ab-viewport {
    overflow: hidden;
    padding: 16px 0;
    margin: -16px 0;
    width: 100%;
    box-sizing: border-box;
}

.ab-slider--carousel .ab-viewport {
    cursor: grab;
}

.ab-slider--carousel .ab-viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

.ab-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.ab-slider--carousel .ab-track {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
}

/* ── Card — mobile base ───────────────────────────────────────── */
.ab-card {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--ab-teal-dark) 0%, var(--ab-teal) 60%, var(--ab-teal-light) 100%);
    border-radius: 18px;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
    color: #fff;
}

.ab-slider--carousel .ab-card {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ── Photo ────────────────────────────────────────────────────── */
.ab-card__image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.ab-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

/* ── Text ─────────────────────────────────────────────────────── */
.ab-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.ab-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 12px;
    line-height: 1.4;
}

.ab-card__description {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
    margin: 0;
    text-align: left;
}

.ab-card:not(.ab-card--expanded) .ab-card__description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Read more ────────────────────────────────────────────────── */
.ab-read-more {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    padding: 4px 0;
    display: inline-block;
    transition: color 0.2s ease;
    text-decoration: underline;
    text-underline-offset: 3px;
    align-self: flex-end;
}

.ab-read-more:hover { color: #fff; }

.ab-read-more:focus-visible {
    color: #fff;
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* ── Carousel controls — overlay on top of the card ─────────── */
.ab-control {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Semi-transparent so they float over the card without fully blocking */
    background: rgba(0, 80, 76, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 300;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ab-slider:not(.ab-slider--carousel) .ab-control { display: none !important; }
.ab-slider--carousel .ab-control { display: flex; }

.ab-control:hover {
    background: rgba(0, 50, 48, 0.85);
    transform: translateY(-50%) scale(1.08);
}

.ab-control:active  { transform: translateY(-50%) scale(1.02); }

.ab-control:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Arrows hug the card edges */
.ab-control--prev { left: 8px; }
.ab-control--next { right: 8px; }

/* ── md+ : side-by-side fixed-width cards ────────────────────── */
@media (min-width: 768px) {
    .ab-viewport {
        padding: 24px 20px;
        margin: -24px 0;
    }

    .ab-track {
        flex-direction: row;
        justify-content: center;
        gap: 28px;
    }

    .ab-card {
        flex: 0 0 360px;
        min-height: 400px;
        padding: 36px 28px;
        border-radius: 20px;
        justify-content: center;
    }

    .ab-slider--carousel .ab-card {
        flex: 0 0 360px;
        max-width: 360px;
    }

    .ab-track:has(.ab-card:nth-child(2):last-child) .ab-card {
        flex: 1 1 0;
        max-width: calc(50% - 14px);
    }

    .ab-card__image,
    .ab-card__image--placeholder {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }

    .ab-card__image--placeholder {
        font-size: 3rem;
    }

    .ab-card__name {
        font-size: 1.45rem;
        margin-bottom: 6px;
    }

    .ab-card__title {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .ab-card__description {
        font-size: 0.95rem;
        text-align: center;
    }

    .ab-card:not(.ab-card--expanded) .ab-card__description {
        -webkit-line-clamp: 5;
    }

    .ab-read-more {
        align-self: center;
        font-size: 0.9rem;
        margin-top: 12px;
    }

    .ab-control {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
        background: rgba(0, 80, 76, 0.7);
    }

    .ab-control--prev { left: -14px; }
    .ab-control--next { right: -14px; }
}

/* ── lg+ ──────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
    .ab-viewport {
        padding: 28px 24px;
        margin: -28px 0;
    }

    .ab-card {
        flex: 0 0 440px;
        padding: 40px 36px;
    }

    .ab-slider--carousel .ab-card {
        flex: 0 0 440px;
        max-width: 440px;
    }

    .ab-card__image,
    .ab-card__image--placeholder {
        width: 160px;
        height: 160px;
        margin-bottom: 24px;
    }

    .ab-card__name { font-size: 1.55rem; }

    .ab-control--prev { left: -18px; }
    .ab-control--next { right: -18px; }
}
