/* ============================================================
   ER Testimonial Carousel — Front-end Styles v1.2
   ============================================================ */

.er-tc-carousel {
    --er-tc-border: #0080ff;
    --er-tc-accent: #ff7a00;
    --er-tc-active-bullet: #0080ff;
    --er-tc-quote: #d6e8f7;
    --er-tc-text: #2a404d;
    --er-tc-name: #0b1f3b;
    --er-tc-position: #8d9498;
    --er-tc-bg: #ffffff;
    --er-tc-arrow: #c4d8ed;
    --er-tc-speed: 500ms;

    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* --- Viewport --- */
.er-tc-viewport {
    overflow: hidden;
    padding: 0;
}

/* --- Track --- */
.er-tc-track {
    display: flex;
    transition: transform var(--er-tc-speed) cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* --- Slide --- */
.er-tc-slide {
    flex: 0 0 60%;
    max-width: 60%;
    box-sizing: border-box;
    padding: 0 12px;
    display: flex;
}

/* --- Card --- */
.er-tc-card {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    background: var(--er-tc-bg);
    border: 3px solid var(--er-tc-border);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    flex: 1;
    width: 100%;
}

.er-tc-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* --- Quote Icon (left column) --- */
.er-tc-card__quote-icon {
    flex-shrink: 0;
    width: 56px;
    color: var(--er-tc-quote);
    line-height: 0;
    padding-top: 0.25rem;
}

.er-tc-card__quote-icon svg {
    width: 100%;
    height: auto;
}

.er-tc-card__quote-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Body (right column) — vertically centered --- */
.er-tc-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Quote text — NO blue vertical border */
.er-tc-card__text {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--er-tc-text);
    quotes: none;
    border-left: none;
}

/* --- Author section --- */
.er-tc-card__author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Name row: indicator sits next to the name only */
.er-tc-card__author-name-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Inverted indicator: line → dot */
.er-tc-card__author-indicator {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.er-tc-card__author-line {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--er-tc-accent);
    border-radius: 2px;
}

.er-tc-card__author-circle {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--er-tc-accent);
}

.er-tc-card__author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--er-tc-name);
}

/* Position indented to align with name text */
.er-tc-card__author-position {
    font-size: 0.875rem;
    color: var(--er-tc-position);
    /* Indent = line(24) + dot(12) + gap(~10) */
    padding-left: 46px;
}

/* ================================================================
   Navigation
   ================================================================ */
.er-tc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0;
}

/* Arrows — borderless */
.er-tc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--er-tc-arrow);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.er-tc-arrow:hover {
    color: var(--er-tc-border);
    transform: scale(1.15);
}

.er-tc-arrow svg {
    width: 30px;
    height: 30px;
}

/* Bullets track — line through all dots */
.er-tc-bullets-track {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 320px;
    height: 16px;
}

.er-tc-bullets-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--er-tc-accent);
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 0;
}

.er-tc-bullets {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.er-tc-bullet {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

.er-tc-bullet__dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--er-tc-accent);
    transition: background 0.3s, transform 0.3s;
}

.er-tc-bullet--active .er-tc-bullet__dot {
    background: var(--er-tc-active-bullet);
    transform: scale(1.2);
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
    .er-tc-slide {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

@media (max-width: 768px) {
    .er-tc-slide {
        flex: 0 0 90%;
        max-width: 90%;
    }

    .er-tc-card {
        flex-direction: column;
        padding: 1.5rem 1.25rem;
        gap: 1rem;
    }

    .er-tc-card__quote-icon {
        width: 40px;
    }

    .er-tc-card__text {
        font-size: 0.95rem;
    }

    .er-tc-card__author-position {
        padding-left: 46px;
    }

    .er-tc-bullets-track {
        flex: 0 1 200px;
    }
}

.er-tc-empty {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 2rem 0;
}
