/* ========== Testimonials ========== */
.testimonials {
    padding: 100px 0 110px;
    background: var(--primary);
    color: #fff;
    overflow: hidden;
    position: relative;
}

/* big faint quote mark in the background */
.testimonials::before {
    content: "\201C";
    position: absolute;
    left: -30px;
    bottom: -200px;
    font-size: 600px;
    line-height: 1;
    font-weight: 700;
    color: rgba(255, 255, 255, .06);
    pointer-events: none;
}

.testi-inner {
    position: relative;
    max-width: 1340px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

/* ---------- Left summary ---------- */
.testi-eyebrow {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8ff0ff;
    margin-bottom: 12px;
}

.testi-title {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -1.2px;
    margin-bottom: 34px;
}

.rating-box {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 30px;
    backdrop-filter: blur(4px);
}

.rating-score {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.rating-score > strong {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}

.rating-score span { font-size: 14px; color: rgba(255, 255, 255, .75); }

/* Stars */
.stars { display: inline-flex; gap: 2px; }

.star { width: 18px; height: 18px; }
.star-bg { fill: rgba(11, 11, 26, .12); }
.star-fg { fill: #ffc531; }
.star.half .star-fg { clip-path: inset(0 50% 0 0); }

.stars-lg .star { width: 22px; height: 22px; }
.stars-lg .star-bg { fill: rgba(255, 255, 255, .25); }

.rating-score .stars { display: flex; margin-bottom: 4px; }

/* Rating bars */
.rating-bars { list-style: none; display: grid; gap: 8px; }

.rating-bars li {
    display: grid;
    grid-template-columns: 30px 1fr 38px;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.bar-label { color: rgba(255, 255, 255, .85); }

.bar-track {
    height: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .15);
    overflow: hidden;
}

.bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 10px;
    background: #8ff0ff;
    transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
}

.testimonials.in-view .bar-fill { width: var(--w); }

.bar-pct { text-align: right; color: rgba(255, 255, 255, .7); }

/* Arrows + progress */
.testi-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-arrow {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .45);
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s, border-color .2s;
}

.testi-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.testi-arrow:hover { background: #fff; border-color: #fff; }
.testi-arrow:hover svg { stroke: var(--primary); }

.testi-progress {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .2);
    margin-left: 8px;
    overflow: hidden;
}

.testi-progress span {
    display: block;
    height: 100%;
    width: 20%;
    background: #fff;
    border-radius: 3px;
    transition: width .4s;
}

/* ---------- Right slider ---------- */
.testi-slider { min-width: 0; }

.sample-notice {
    font-size: 13px;
    color: var(--heading);
    background: #ffe9a8;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
    display: inline-block;
}

.sample-notice code { font-size: 12px; }

.testi-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 4px 44px;
    margin: -10px -4px -44px;
    /* fade on the right edge */
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
}

.testi-track::-webkit-scrollbar { display: none; }

.testi-card {
    position: relative;
    flex: 0 0 400px;
    scroll-snap-align: start;
    background: #fff;
    color: var(--text);
    border-radius: 24px;
    padding: 30px 28px 26px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 20, 90, .25);
    transition: transform .3s;
}

.testi-card:nth-child(even) { transform: translateY(18px); }
.testi-card:hover { transform: translateY(-4px); }

.quote-mark {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    fill: var(--primary-soft);
}

.testi-card .stars { margin-bottom: 16px; }

.testi-text {
    font-size: 17px;
    line-height: 1.6;
    color: #2b2e3a;
    margin-bottom: 18px;
    flex: 1;
}

.testi-trip {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.testi-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #eef0f5;
}

.avatar {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
}

.avatar-1 { background: #0aa5c2; }
.avatar-2 { background: #7b4dff; }
.avatar-3 { background: #ff8a1a; }

.testi-person strong { display: block; font-size: 16px; font-weight: 600; color: var(--heading); }
.testi-person div span { font-size: 14px; color: var(--muted); }

.verified {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #12a05c;
    white-space: nowrap;
}

.verified svg { width: 18px; height: 18px; fill: #12a05c; }
.verified .tick { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ========== Responsive ========== */
@media (max-width: 1100px) {
    .testi-inner { grid-template-columns: 340px 1fr; gap: 40px; }
    .testi-title { font-size: 42px; }
    .testi-card { flex-basis: 340px; }
}

@media (max-width: 900px) {
    .testimonials { padding: 70px 0 80px; }
    .testi-inner { grid-template-columns: 1fr; gap: 36px; }
    .testi-summary { max-width: 520px; }
    .testi-track { mask-image: none; -webkit-mask-image: none; }
    .testi-card:nth-child(even) { transform: none; }
}

@media (max-width: 560px) {
    .testi-title { font-size: 34px; margin-bottom: 24px; }
    .rating-box { padding: 18px; }
    .rating-score > strong { font-size: 50px; }
    .testi-card { flex-basis: 86%; padding: 24px 20px 22px; border-radius: 20px; }
    .testi-text { font-size: 15px; }
    .quote-mark { width: 36px; height: 36px; top: 18px; right: 18px; }
    .verified { font-size: 0; gap: 0; }       /* icon only on small screens */
    .testi-arrow { width: 46px; height: 46px; }
}