


.rt-testimonials-section {
    padding: 80px 20px;
    background: #f3f3f5;
    overflow: hidden;
}

.rt-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.rt-section-head {
    text-align: center;
    margin-bottom: 50px;
}

.rt-mini-badge {
    display: inline-block;
    font-size: 14px;
    color: #111;
    position: relative;
    padding: 0 10px;
    margin-bottom: 16px;
}

.rt-mini-badge::before,
.rt-mini-badge::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #ff5a4f;
    position: absolute;
    top: -3px;
}

.rt-mini-badge::before {
    left: -8px;
    border-left: 2px solid #ff5a4f;
}

.rt-mini-badge::after {
    right: -8px;
    border-right: 2px solid #ff5a4f;
}

.rt-section-head h2 {
    font-size: 54px;
    line-height: 1.08;
    font-weight: 700;
    margin-bottom: 15px;
}

.rt-section-head h2 span {
    color: #81889a;
}

.rt-section-head p {
    color: #555;
    font-size: 20px;
}

/* =========================================================
   NEW FEATURED TESTIMONIAL DESIGN
   Layout:
   - left: record 1 large
   - right top: record 2 wide
   - right bottom: remaining records in 2 one-card sliders
========================================================= */
.rt-feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);
    gap: 22px;
    margin: 42px 0 38px;
    align-items: stretch;
}

.rt-feature-left,
.rt-feature-right,
.rt-feature-right-top,
.rt-feature-right-bottom {
    min-width: 0;
}

.rt-feature-right {
    display: grid;
    grid-template-rows: minmax(250px, auto) minmax(270px, auto);
    gap: 22px;
}

.rt-feature-right-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    overflow: hidden;
}

.rt-feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 26px;
    min-height: 100%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rt-feature-card.rt-card-dark {
    background:
        radial-gradient(circle at 18% 0%, rgba(255,255,255,0.16), transparent 34%),
        linear-gradient(135deg, #101828 0%, #111827 45%, #030712 100%);
    color: #ffffff;
    border-color: rgba(255,255,255,0.12);
}

.rt-feature-card.rt-card-light {
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.10), transparent 35%),
        #ffffff;
    color: #101828;
}

.rt-feature-card-large {
    min-height: 560px;
    padding: 34px;
}

.rt-feature-card-wide {
    min-height: 250px;
}

.rt-feature-card-mini {
    min-height: 270px;
    height: 100%;
    width: 100%;
}

.rt-feature-stars {
    display: flex;
    gap: 4px;
    font-size: 16px;
    color: #f59e0b;
    margin-bottom: 18px;
}

.rt-feature-stars .rt-star-empty,
.rt-star-empty {
    opacity: .25;
}

.rt-feature-stars .rt-star-empty {
    color: rgba(148, 163, 184, 0.45);
}

.rt-feature-metric {
    margin-bottom: 18px;
}

.rt-feature-metric strong {
    display: block;
    font-size: clamp(34px, 4vw, 62px);
    line-height: 0.9;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.rt-feature-metric span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}

.rt-card-dark .rt-feature-metric span {
    color: rgba(255,255,255,0.65);
}

.rt-feature-quote {
    position: absolute;
    top: 20px;
    right: 26px;
    font-size: 92px;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(99, 102, 241, 0.16);
    pointer-events: none;
}

.rt-card-dark .rt-feature-quote {
    color: rgba(255,255,255,0.12);
}



.rt-feature-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #64748b;
    display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;    /* Change this number to show more or fewer lines */
      overflow: hidden;
}

.rt-card-dark p,
.rt-feature-card.rt-card-dark p {
    color: rgba(255,255,255,0.72);
}

.rt-feature-client {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.rt-feature-client img,
.rt-feature-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex: 0 0 48px;
    object-fit: cover;
}

.rt-feature-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    font-weight: 800;
}

.rt-card-dark .rt-feature-avatar,
.rt-feature-card.rt-card-dark .rt-feature-avatar {
    background: rgba(255,255,255,0.14);
}

.rt-feature-client strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: inherit;
}

.rt-feature-client small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #64748b;
}

.rt-card-dark .rt-feature-client small,
.rt-feature-card.rt-card-dark .rt-feature-client small {
    color: rgba(255,255,255,0.58);
}

/* One-card swipe sliders: not marquee */
.rt-feature-mini-window {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-height: 270px;
}

.rt-feature-swipe-track {
    position: relative;
    width: 100%;
    min-height: 270px;
}

.rt-feature-swipe-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.rt-feature-swipe-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, 0);
    z-index: 2;
}

.rt-swipe-x .rt-feature-swipe-slide {
    transform: translateX(100%);
}

.rt-swipe-x .rt-feature-swipe-slide.is-prev {
    transform: translateX(-100%);
}

.rt-swipe-x .rt-feature-swipe-slide.is-active {
    transform: translateX(0);
}

.rt-swipe-y .rt-feature-swipe-slide {
    transform: translateY(100%);
}

.rt-swipe-y .rt-feature-swipe-slide.is-prev {
    transform: translateY(-100%);
}

.rt-swipe-y .rt-feature-swipe-slide.is-active {
    transform: translateY(0);
}

.rt-feature-placeholder {
    min-height: 270px;
    border-radius: 30px;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 700;
    text-align: center;
    padding: 24px;
}

/* =========================================================
   EXISTING MAIN GRID DESIGN
========================================================= */
.rt-testimonial-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.9fr;
    gap: 18px;
}

.rt-testimonial-card {
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .35s ease, box-shadow .35s ease;
    overflow: hidden;
    min-height: 250px;
}

.rt-testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.10);
}

.rt-card-light {
    background: #fff;
    color: #111;
}

.rt-card-dark {
    background: #0f1115;
    color: #fff;
}

.rt-card-large {
    min-height: 520px;
}

.rt-card-medium,
.rt-card-small {
    min-height: 250px;
}

.h3-tag {
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.rt-metric-block h4 {
    font-size: 18px;
    font-weight: 600;
    opacity: .92;
    margin-bottom: 22px;
}

.rt-quote-mark {
    font-size: 56px;
    line-height: 1;
    color: #ff5a4f;
    font-weight: 800;
    margin-bottom: 10px;
}

.rt-quote-text {
    font-size: 16px;
    line-height: 1.7;
    opacity: .92;
    margin-bottom: 28px;
}

.rt-client-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rt-client-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rt-client-img,
.rt-client-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.rt-client-placeholder {
    background: linear-gradient(135deg, #f8b26a, #d96a8c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.rt-client-meta h5 {
    font-size: 20px;
    margin-bottom: 4px;
    font-weight: 700;
}

.rt-client-meta p {
    font-size: 14px;
    opacity: .75;
}

.rt-company-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.rt-testimonial-footer {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.rt-review-summary {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.rt-review-summary span {
    font-size: 18px;
    color: #222;
}

.rt-rating-box {
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.rt-rating-box strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.rt-rating-box small {
    color: #666;
    font-size: 14px;
}

.rt-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: all .3s ease;
}

.rt-review-btn:hover {
    transform: translateY(-3px);
    background: #111;
    color: #fff;
}

/* =========================================================
   EXISTING BOTTOM AUTO REVIEW MARQUEE
========================================================= */
.rt-auto-review-wrap {
    position: relative;
    margin-top: 36px;
    overflow: hidden;
    padding: 10px 0;
}

.rt-auto-review-wrap::before,
.rt-auto-review-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.rt-auto-review-wrap::before {
    left: 0;
    background: linear-gradient(to right, #f3f3f5 0%, rgba(243,243,245,0) 100%);
}

.rt-auto-review-wrap::after {
    right: 0;
    background: linear-gradient(to left, #f3f3f5 0%, rgba(243,243,245,0) 100%);
}

.rt-auto-review-track {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: max-content;
    animation: rtMarquee 35s linear infinite;
}

.rt-auto-review-wrap:hover .rt-auto-review-track {
    animation-play-state: paused;
}

.rt-auto-review-card {
    width: 320px;
    min-height: 190px;
    background: #fff;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    flex-shrink: 0;
    transition: transform .3s ease, box-shadow .3s ease;
}

.rt-auto-review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.1);
}

.rt-auto-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.rt-auto-stars span {
    color: #f5a623;
    font-size: 16px;
}

.rt-auto-review-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #111;
}

.rt-auto-review-card p {
    font-size: 14px;
    line-height: 1.65;
    color: #555;
    margin-bottom: 18px;
    min-height: 68px;
}

.rt-auto-review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rt-auto-review-user img,
.rt-auto-user-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.rt-auto-user-placeholder {
    background: linear-gradient(135deg, #ff8f70, #ff5a4f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.rt-auto-user-meta strong {
    display: block;
    font-size: 15px;
    color: #111;
}

.rt-auto-user-meta span {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}

.rt-no-data {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 20px;
    font-size: 18px;
}

@keyframes rtMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
    .rt-feature-layout {
        grid-template-columns: 1fr;
    }

    .rt-feature-card-large {
        min-height: 430px;
    }
}

@media (max-width: 991px) {
    .rt-section-head h2 {
        font-size: 38px;
    }

    .rt-section-head p {
        font-size: 17px;
    }

    .rt-testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rt-card-large {
        min-height: 380px;
    }

    .rt-auto-review-card {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .rt-feature-layout {
        gap: 16px;
        margin: 30px 0;
    }

    .rt-feature-right {
        gap: 16px;
    }

    .rt-feature-right-bottom {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rt-feature-card,
    .rt-feature-card-large,
    .rt-feature-card-wide,
    .rt-feature-card-mini {
        min-height: auto;
        padding: 22px;
        border-radius: 24px;
    }

    .rt-feature-mini-window {
        min-height: auto;
    }

    .rt-feature-swipe-track {
        min-height: auto;
    }

    .rt-feature-swipe-slide {
        position: relative;
        display: none;
        transform: none !important;
    }

    .rt-feature-swipe-slide.is-active {
        display: block;
    }
}

@media (max-width: 767px) {
    .rt-testimonials-section {
        padding: 60px 15px;
    }

    .rt-section-head h2 {
        font-size: 30px;
    }

    .rt-testimonial-grid {
        grid-template-columns: 1fr;
    }

    .rt-testimonial-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .rt-review-btn {
        width: 100%;
    }

    .rt-auto-review-wrap::before,
    .rt-auto-review-wrap::after {
        width: 45px;
    }

    .rt-auto-review-card {
        width: 260px;
        min-height: 180px;
    }

    .rt-auto-review-track {
        animation-duration: 26s;
    }
}
