/* Main Container (override the variables in your theme to restyle) */
.et-testimonial-container {
    --et-bg: #000;
    --et-card-bg: #111;
    --et-text: #aeaeae;
    --et-name: #fff;
    --et-muted: #8a8a8a;
    --et-star: #f5b50a;
    --et-star-empty: #444;

    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: var(--et-bg);
}

/* Wrapper for Carousel (scrolling is animated from carousel.js) */
.et-testimonial-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 20px 20px;
    scrollbar-width: none;
}

.et-testimonial-wrapper::-webkit-scrollbar {
    display: none;
}

/* The Card */
.et-testimonial-card {
    background-color: var(--et-card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    min-width: 300px;
    max-width: 350px;
    flex: 0 0 auto;
    text-align: center;
    position: relative;
    color: var(--et-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 30px; /* Space for the quote icon sticking out */
}

/* Quote Icon */
.et-quote-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--et-card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.et-quote-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #fff;
}

/* Text Content */
.et-content {
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0 20px;
}

.et-content p {
    margin: 0 0 0.8em;
}

/* Stars */
.et-rating {
    margin-bottom: 15px;
}

.et-rating .star {
    font-size: 16px;
    color: var(--et-star-empty);
    margin: 0 2px;
}

.et-rating .star.filled {
    color: var(--et-star);
}

/* Author Info */
.et-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid #fff;
    object-fit: cover;
}

.et-name {
    margin: 0;
    font-size: 16px;
    color: var(--et-name);
    font-weight: bold;
}

.et-position {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--et-muted);
}

/* Carousel Dots */
.et-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.et-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    background-color: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.et-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.et-dot.active {
    background-color: #fff;
}
