/* Carrosel de Testemunhos — v1.4.0 */

/* ── CSS Variables (overridden per-instance via inline style) ─────────── */
.atc-carousel {
    --atc-primary:    #1a3c6e;
    --atc-bg:         #F5F5F5;
    --atc-text:       #333333;
    --atc-radius-tl:  0px;
    --atc-radius-tr:  0px;
    --atc-radius-br:  12px;
    --atc-radius-bl:  12px;
    --atc-font-size:  15px;
}

/* ── Wrapper ──────────────────────────────────────────────────────────── */
.atc-carousel {
    position: relative;
    width: 100%;
    margin: 40px 0;
    font-family: inherit;
}

/* ── Track: shows peek of adjacent slides ─────────────────────────────── */
.atc-track-outer {
    overflow: hidden;
    width: 100%;
    padding: 12px 0 20px; /* vertical breathing room for box-shadow */
    /* Gradual fade on both side edges */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
}

.atc-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* Each slide = 80% width, so ~10% peeks on each side */
    padding: 0 10%;
    box-sizing: border-box;
}

/* ── Slide ────────────────────────────────────────────────────────────── */
.atc-slide {
    flex-shrink: 0;
    width: 80%;
    box-sizing: border-box;
    padding: 36px 40px;
    background: var(--atc-bg);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--atc-radius-tl) var(--atc-radius-tr) var(--atc-radius-br) var(--atc-radius-bl);
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
    opacity: 0.45;
    transform: scale(0.97);
}

.atc-slide.atc-active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 6px 28px rgba(0,0,0,0.11);
}

/* ── Avatar ───────────────────────────────────────────────────────────── */
.atc-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
}

.atc-avatar-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.atc-avatar-placeholder {
    background: var(--atc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.atc-avatar-placeholder span {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

/* ── Content ──────────────────────────────────────────────────────────── */
.atc-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.atc-text {
    flex: 1;
    margin: 0 0 20px;
    font-size: var(--atc-font-size, 15px);
    line-height: 1.8;
    color: var(--atc-text);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.atc-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1.5px solid var(--atc-primary);
    margin-top: 4px;
}

.atc-footer-line {
    width: 3px;
    height: 28px;
    background: var(--atc-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.atc-footer-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.atc-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--atc-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.atc-name a {
    color: var(--atc-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.atc-name a:hover {
    border-bottom-color: var(--atc-primary);
}

.atc-role {
    font-size: 12px;
    color: #888;
    font-style: italic;
    line-height: 1.3;
}

/* ── Controls row: arrows + dots ─────────────────────────────────────── */
.atc-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 4px;
}

/* Arrow buttons — minimal, icon-only */
.atc-btn {
    background: none;
    border: 1.5px solid var(--atc-primary);
    border-radius: 6px;
    color: var(--atc-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.atc-btn:hover {
    background: var(--atc-primary);
    color: #fff;
}

.atc-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Dots */
.atc-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.atc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.25s;
}

.atc-dot.atc-dot-active {
    background: var(--atc-primary);
    width: 18px;
    border-radius: 4px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .atc-track {
        padding: 0 6%;
    }

    .atc-slide {
        width: 88%;
        flex-direction: column;
        padding: 24px 20px;
        align-items: center;
        text-align: center;
    }

    .atc-footer {
        justify-content: center;
    }

    .atc-text {
        text-align: left !important;
    }
}
