/* ===================================================
   CreatorsOfCode Testimonials v1.0.0
   =================================================== */

.coc-testimonials {
    background: transparent;
    border: none;
    border-radius: 20px;
    margin: 32px 0;
    padding: 28px;
}

.coc-testimonials__title {
    color: #0d2942;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    margin: 0 0 24px;
    text-align: center;
}

/* --- Body: arrows + viewport --- */
.coc-testimonials__body {
    align-items: center;
    display: flex;
    gap: 0;
    position: relative;
}

/* --- Arrow buttons --- */
.coc-testimonials__nav {
    align-items: center;
    background: #fff;
    border: 2px solid #d0dde9;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(13, 41, 66, 0.1);
    color: #0d2942;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    height: 48px;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    width: 48px;
    z-index: 2;
}

.coc-testimonials__nav svg {
    display: block;
    height: 24px;
    width: 24px;
}

.coc-testimonials__nav:hover:not(:disabled),
.coc-testimonials__nav:focus-visible:not(:disabled) {
    background: #e77f2d;
    border-color: #e77f2d;
    box-shadow: 0 4px 16px rgba(231, 127, 45, 0.3);
    color: #fff;
    transform: scale(1.1);
}

.coc-testimonials__nav:disabled {
    cursor: default;
    opacity: 0.3;
}

.coc-testimonials__nav--prev {
    margin-right: 12px;
}

.coc-testimonials__nav--next {
    margin-left: 12px;
}

/* --- Viewport --- */
.coc-testimonials__viewport {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.coc-testimonials__track {
    display: flex;
    gap: 20px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* --- Slide card --- */
.coc-testimonials__slide {
    background: #ffffff;
    border: 1px solid #e5ecf3;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(13, 41, 66, 0.08);
    flex: 0 0 calc((100% - 40px) / 2);
    min-width: 0;
    padding: 24px;
    transition: all 0.2s ease;
}

.coc-testimonials__slide:hover {
    box-shadow: 0 8px 24px rgba(13, 41, 66, 0.12);
    transform: translateY(-4px);
}

/* --- Header: avatar + name + rating --- */
.coc-testimonials__header {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.coc-testimonials__avatar {
    border-radius: 50%;
    flex-shrink: 0;
    height: 56px;
    overflow: hidden;
    width: 56px;
}

.coc-testimonials__avatar-img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.coc-testimonials__avatar--placeholder {
    align-items: center;
    background: linear-gradient(135deg, #e77f2d, #e77f2d);
    color: #fff;
    display: flex;
    font-size: 1.4rem;
    font-weight: bold;
    justify-content: center;
}

/* --- Info: name + rating --- */
.coc-testimonials__info {
    flex: 1;
}

.coc-testimonials__name {
    color: #0d2942;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.coc-testimonials__rating {
    display: flex;
    gap: 2px;
}

.coc-testimonials__star {
    color: #dae0e8;
    font-size: 0.95rem;
}

.coc-testimonials__star.is-filled {
    color: #f0b429;
}

/* --- Testimonial text --- */
.coc-testimonials__text {
    color: #4f6377;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.coc-testimonials__text p {
    margin: 0;
}

.coc-testimonials__text p + p {
    margin-top: 12px;
}

/* --- Dots --- */
.coc-testimonials__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.coc-testimonials__dot {
    background: #d0dde9;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 8px;
    padding: 0;
    transition: all 0.2s ease;
    width: 8px;
}

.coc-testimonials__dot.is-active {
    background: #e77f2d;
    width: 24px;
}

/* --- Responsive --- */
@media (max-width: 980px) {
    .coc-testimonials__slide {
        flex-basis: 100%;
    }
}

@media (max-width: 680px) {
    .coc-testimonials {
        padding: 18px 12px 24px;
    }

    .coc-testimonials__title {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }

    .coc-testimonials__nav {
        height: 40px;
        width: 40px;
    }

    .coc-testimonials__nav svg {
        height: 20px;
        width: 20px;
    }

    .coc-testimonials__nav--prev {
        margin-right: 8px;
    }

    .coc-testimonials__nav--next {
        margin-left: 8px;
    }

    .coc-testimonials__slide {
        padding: 18px;
    }

    .coc-testimonials__avatar {
        height: 48px;
        width: 48px;
    }

    .coc-testimonials__text {
        font-size: 0.9rem;
    }
}
