/* ==========================================================================
   Raoa Addons – Testimonials Widget
   ========================================================================== */

.raoa-testimonials,
.raoa-testimonials * {
    box-sizing: border-box;
}

.raoa-testimonial-list {
    display: grid;
    grid-template-columns: repeat(var(--rt-columns, 2), 1fr);
    gap: var(--rt-gap, 24px);
    --rt-primary: #6C4CFF;
    --rt-c1: #4C6FFF;
    --rt-c2: #C724B1;
    --rt-c3: #FF8A00;
    --rt-c4: #00B894;
}

.rt-item {
    --rt-item-accent: var(--rt-c1);
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px 26px;
}

.rt-item:nth-child(4n+1) {
    --rt-item-accent: var(--rt-c1);
}

.rt-item:nth-child(4n+2) {
    --rt-item-accent: var(--rt-c2);
}

.rt-item:nth-child(4n+3) {
    --rt-item-accent: var(--rt-c3);
}

.rt-item:nth-child(4n+4) {
    --rt-item-accent: var(--rt-c4);
}

/* ---------- Quote Icon ---------- */

.rt-quote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rt-primary);
    line-height: 1;
    margin-bottom: 14px;
}

.rt-quote-icon i {
    font-size: 26px;
}

.rt-quote-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

/* ---------- Content ---------- */

.rt-content {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ---------- Footer / Avatar / Meta ---------- */

.rt-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.rt-avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rt-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    background-color: var(--rt-item-accent, var(--rt-primary));
}

.rt-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rt-name {
    font-weight: 700;
    color: #111827;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rt-role {
    font-size: 13px;
    color: var(--rt-primary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Rating ---------- */

.rt-rating {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 2px;
    margin-top: 14px;
}

.rt-stars {
    white-space: nowrap;
}

.rt-stars-track {
    color: #e5e7eb;
}

.rt-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: var(--rt-primary);
}

/* ==========================================================================
   Style 1 – Minimal Card
   ========================================================================== */

.raoa-testimonial-style-1 .rt-item {
    box-shadow: 0 4px 24px rgba(17, 17, 17, 0.06);
}

.raoa-testimonial-style-1 .rt-footer {
    border-top: 1px dashed #e5e7eb;
    padding-top: 16px;
}

/* ==========================================================================
   Style 2 – Quote Box
   ========================================================================== */

.raoa-testimonial-style-2 .rt-item {
    background-color: #f4f6fb;
    border: 1px solid #e7eaf3;
}

.raoa-testimonial-style-2 .rt-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.raoa-testimonial-style-2 .rt-quote-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--rt-primary);
    color: #ffffff;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.raoa-testimonial-style-2 .rt-quote-icon i {
    font-size: 15px;
}

.raoa-testimonial-style-2 .rt-quote-icon svg {
    width: 15px;
    height: 15px;
}

.raoa-testimonial-style-2 .rt-rating {
    margin-top: 0;
}

/* ==========================================================================
   Style 3 – Modern Background
   ========================================================================== */

.raoa-testimonial-style-3 .rt-item {
    background-color: var(--rt-item-accent);
    color: #ffffff;
    padding-top: 56px;
    overflow: hidden;
}

.raoa-testimonial-style-3 .rt-item::before {
    content: '';
    position: absolute;
    top: -34px;
    right: -34px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
}

.raoa-testimonial-style-3 .rt-quote-icon {
    position: absolute;
    top: 20px;
    left: 24px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0;
}

.raoa-testimonial-style-3 .rt-quote-icon i {
    font-size: 38px;
}

.raoa-testimonial-style-3 .rt-quote-icon svg {
    width: 38px;
    height: 38px;
}

.raoa-testimonial-style-3 .rt-avatar-center {
    position: relative;
    z-index: 1;
    margin: 0 auto 18px;
    border: 3px solid rgba(255, 255, 255, 0.85);
}

.raoa-testimonial-style-3 .rt-content {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.raoa-testimonial-style-3 .rt-meta-center {
    align-items: center;
    text-align: center;
    margin: 0 auto 12px;
}

.raoa-testimonial-style-3 .rt-name {
    color: #ffffff;
}

.raoa-testimonial-style-3 .rt-role {
    color: rgba(255, 255, 255, 0.85);
}

.raoa-testimonial-style-3 .rt-rating {
    align-self: center;
}

.raoa-testimonial-style-3 .rt-stars-track {
    color: rgba(255, 255, 255, 0.35);
}

.raoa-testimonial-style-3 .rt-stars-fill {
    color: #ffffff;
}

/* ==========================================================================
   Style 4 – Creative Bubble
   ========================================================================== */

.raoa-testimonial-style-4 .rt-item {
    border: 1px solid var(--rt-item-accent);
    padding: 26px 26px 30px;
}

.raoa-testimonial-style-4 .rt-quote-icon {
    color: var(--rt-item-accent);
}

.raoa-testimonial-style-4 .rt-item::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 20px;
    background-image: radial-gradient(var(--rt-item-accent) 1.4px, transparent 1.4px);
    background-size: 7px 7px;
    opacity: 0.55;
}

.raoa-testimonial-style-4 .rt-item::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 26px 26px;
    border-color: transparent transparent var(--rt-item-accent) transparent;
    border-bottom-right-radius: 16px;
}

.raoa-testimonial-style-4 .rt-avatar-ring {
    border: 3px solid var(--rt-item-accent);
}

.raoa-testimonial-style-4 .rt-role {
    color: var(--rt-item-accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
    .rt-item {
        padding: 20px;
    }

    .raoa-testimonial-style-3 .rt-item {
        padding-top: 48px;
    }

    .raoa-testimonial-style-4 .rt-item {
        padding: 20px 20px 24px;
    }
}