/* ============================================================= */
/*  PAGE LAYOUT                                                   */
/*  Scoped under .testimonial-page-layout so shared class names   */
/*  (.testimonial-stars / .testimonial-star-icon /               */
/*   .testimonial-review) don't collide with the slider layout    */
/*  now that all three stylesheets are merged into one file.      */
/* ============================================================= */

.testimonial-page-layout {
max-width: 1200px;
margin: 0 auto;
padding: 2rem 1rem;
}

.testimonial-page {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 2rem;
}

.testimonial-page[hidden] {
display: none !important;
}

.testimonial-card {
background: #ffffff;
border-radius: 8px;
padding: 1.5rem;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
height: 100%;
}

.testimonial-image--top {
min-height: 90px;
display: flex;
align-items: center;
margin-bottom: 0.75rem;
}

.testimonial-image--top img {
max-height: 70px;
width: auto;
object-fit: contain;
display: block;
}

.testimonial-page-layout .testimonial-stars {
min-height: 24px;
display: flex;
align-items: center;
gap: 4px;
margin-bottom: 0.75rem;
}

.testimonial-page-layout .testimonial-star-icon {
width: 18px;
height: 18px;
display: inline-block;
flex-shrink: 0;
}

.testimonial-meta-row {
display: flex;
flex-wrap: wrap;
gap: 0.5rem 1rem;
font-size: 0.9rem;
margin-bottom: 1rem;

min-height: 40px;
align-items: flex-start;
}

.testimonial-meta-item {
white-space: nowrap;
color: #555;
}

.testimonial-name {
font-weight: 600;
}

.testimonial-page-layout .testimonial-review {
margin: 0;
font-style: italic;
line-height: 1.6;
flex-grow: 1;
}

.testimonial-pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
margin-top: 2rem;
flex-wrap: wrap;
}

.testimonial-pagination button {
border: 1px solid #ddd;
background: #fff;
padding: 0.4rem 0.8rem;
border-radius: 4px;
font-size: 0.9rem;
cursor: pointer;
transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.testimonial-pagination button[disabled] {
opacity: 0.4;
cursor: default;
}

.testimonial-page-bullet.is-active {
background: #222;
color: #fff;
border-color: #222;
}

@media (max-width: 900px) {
.testimonial-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 600px) {
.testimonial-page {
    grid-template-columns: 1fr;
}

.testimonial-page-layout {
    padding: 1.5rem 1rem;
}

.testimonial-image--top img {
    max-height: 60px;
}
}

/* ============================================================= */
/*  SLIDER LAYOUT                                                 */
/*  Shared selectors scoped under .testimonial-slider.            */
/* ============================================================= */

.testimonial-slider {
    text-align: center;
    font-family: 'lato', sans-serif;
    height: 50vh;
    min-height: 400px;
    width: 70%;
    margin: 50px auto;
    display: grid;
    grid-template-rows: 1fr auto;
}

@media(max-width: 1024px) {
    .testimonial-slider {
    width: 100%;
    }
}

@media(max-width: 768px) {
    .testimonial-slider {
    height: 60vh;
    }
}

@media(max-width: 550px) {
    .testimonial-slider {
    padding: 0;
    }
}

.testimonial-content {
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

@media(max-width: 550px) {
    .testimonial-content {
    padding: 0 5%;
    }
}

.testimonial-content blockquote, .testimonial-content p{
    padding: 0;
    margin: 0;
}

.testimonial-slider .testimonial-review blockquote {
    font-size: 1.5em;
    font-style: italic;
    color: #555;
    margin: 0;
}

@media(max-width: 1500px) {
    .testimonial-slider .testimonial-review blockquote {
    font-size: 1.2em;
    }
}

@media(max-width: 550px) {
    .testimonial-slider .testimonial-review blockquote {
    font-size: 1em;
    }
}

.testimonial-slider .testimonial-stars {
    font-size: 1.5em;
}

.star_rating{
    display: flex;
    flex-direction: row;
}

.testimonial-slider .testimonial-star-icon {
width: 30px;
height: 30px;
display: inline-block;
}

@media(max-width: 768px) {
    .testimonial-slider .testimonial-star-icon {
    width: 20px;
    height: 20px;
    }
}

.testimonial-meta {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.testimonial-meta p {
    margin: 0;
    font-size: 0.9em;
    color: #777;
}

.testimonial_image_height img{
    height: 80px;
    cursor: pointer;
    padding: 10px;
    margin: 0 30px;
    filter: grayscale(100%);
    transition: filter 0.1s ease;
}

@media(max-width: 550px) {
    .testimonial_image_height img {
    height: 60px;
    margin: 0 15px;
    }
}

.testimonial_image_height.is-active img{
    filter: grayscale(0);
}

.splide {
    position: relative;
    overflow: hidden;
}

.splide::before,
.splide::after {
    content: "";
    position: absolute;
    top: 0;
    width: 70px;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

@media(max-width: 550px) {
    .splide::before,
    .splide::after {
    width: 10px;
    }
}

.splide::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.splide::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.testimonial-content {
    position: relative; /* allows absolutely-positioned arrows */
}

.testimonial-arrows button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    color: #333;
    transition: 0.2s ease;
    z-index: 10; /* ensure above gradients */
}

/* Left arrow */
.testimonial-prev {
    left: -40px; /* adjust for your layout */
}

/* Right arrow */
.testimonial-next {
    right: -40px; /* adjust for your layout */
}

.testimonial-arrows button:hover {
    transform: translateY(-50%) scale(1.2);
    color: #000;
}

@media (max-width: 1024px) {
    .testimonial-prev {
    left: 0px;
    }
    .testimonial-next {
    right: 0px;
    }
}

@media (max-width: 768px) {
    .testimonial-arrows {
        display: none !important;
    }
    }


/* for my 4K resolution gang */
@media(min-width: 2200px) {
    .testimonial-slider .testimonial-review blockquote {
    font-size: 2em;
    }
    .testimonial-slider .testimonial-star-icon {
    width: 40px;
    height: 40px;
    }
    .testimonial-meta p {
    font-size: 1.5em;
    }
    .testimonial_image_height img {
    height: 120px;
    margin: 0 50px;
    }
}

@media(min-width: 3000px) {
    .testimonial-slider .testimonial-review blockquote {
    font-size: 3em;
    }
    .testimonial-slider .testimonial-star-icon {
    width: 50px;
    height: 50px;
    }
    .testimonial-meta p {
    font-size: 2em;
    }
    .testimonial_image_height img {
    height: 150px;
    margin: 0 75px;
    }
}

/* ============================================================= */
/*  TILE LAYOUT                                                   */
/*  Already uses its own .testimonial-tile-* namespace, so no     */
/*  scoping changes were needed here.                             */
/* ============================================================= */

.testimonial-tile-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    /* Make the padding scale a bit on small screens */
    padding-inline: clamp(16px, 4vw, 40px);
}

/* GRID */
.testimonial-tile-grid {
    display: grid;
    /* Let cards shrink more on smaller screens without overflowing */
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* CARD */
.testimonial-tile-card {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* HEADER */
.testimonial-tile-header {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}

/* AVATAR */
.testimonial-tile-avatar img,
.testimonial-tile-avatar-fallback {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 22px;
}

/* TEXT */
.testimonial-tile-name {
    font-size: 18px;
    font-weight: 600;
}

.testimonial-tile-job {
    font-size: 14px;
    opacity: 0.7;
}

.testimonial-tile-review {
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.5;
}

.testimonial-tile-footer {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 20px;
}

/* DIVIDER */
.testimonial-tile-divider {
    text-align: center;
    margin: 40px 0 60px;
}

.divider-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.divider-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.divider-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.divider-stars svg {
    width: 30px;
    height: 30px;
}

/* ========================= */
/*      RESPONSIVE TWEAKS    */
/* ========================= */

/* Tablet and down */
@media (max-width: 768px) {
    .testimonial-tile-layout {
        padding-block: 30px;
    }

    .testimonial-tile-grid {
        gap: 24px;
        margin-bottom: 40px;
    }

    .testimonial-tile-card {
        padding: 22px;
    }

    .testimonial-tile-avatar img,
    .testimonial-tile-avatar-fallback {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }

    .testimonial-tile-name {
        font-size: 16px;
    }

    .testimonial-tile-job,
    .testimonial-tile-footer {
        font-size: 13px;
    }

    .testimonial-tile-review {
        font-size: 15px;
    }

    .divider-number {
        font-size: 30px;
    }

    .divider-stars svg {
        width: 24px;
        height: 24px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .testimonial-tile-card {
        padding: 18px;
    }

    .testimonial-tile-header {
        gap: 14px;
    }

    .testimonial-tile-avatar img,
    .testimonial-tile-avatar-fallback {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .testimonial-tile-name {
        font-size: 15px;
    }

    .testimonial-tile-review {
        margin: 14px 0;
        font-size: 14px;
    }

    .divider-number {
        font-size: 26px;
    }

    .divider-label {
        font-size: 12px;
    }
}

.testimonial-tile-stars {
display: flex;
gap: 4px;
margin: 8px 0 12px;
align-items: center;
}

.testimonial-tile-stars .testimonial-tile-star {
width: 18px;
height: 18px;
}

/* ============================================================= */
/*  DETAILED PAGE LAYOUT                                          */
/*  All selectors use the .testimonial-detailed-* namespace so    */
/*  nothing conflicts with the other three layouts.               */
/* ============================================================= */

.testimonial-detailed-layout {
    max-width: 1140px;
    margin: 0 auto;
    /* Gutter shrinks fluidly as the viewport narrows. This padding is the
       only horizontal spacing — card content runs edge to edge inside it. */
    padding-block: 2rem;
    padding-inline: clamp(16px, 3vw, 40px);
    font-family: 'lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #202124;
}

.testimonial-detailed-card {
    padding: 2rem 0 1.75rem;
    border-bottom: 1px solid #e5e5e5;
}

.testimonial-detailed-card:last-child {
    border-bottom: none;
}

/* HEADER: avatar + name + verified/location subline */
.testimonial-detailed-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.testimonial-detailed-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.testimonial-detailed-avatar img,
.testimonial-detailed-avatar-fallback {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    color: #444;
}

.testimonial-detailed-badge-wrap {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-detailed-badge {
    width: 16px;
    height: 16px;
    display: block;
}

.testimonial-detailed-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
}

.testimonial-detailed-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.testimonial-detailed-subline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #5f6368;
}

.testimonial-detailed-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.testimonial-detailed-pin {
    width: 11px;
    height: 14px;
    color: #5f6368;
}

/* STARS ROW: rating + date + fulfillment pill */
.testimonial-detailed-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 18px;
}

.testimonial-detailed-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #f68b1f; /* orange stars per the reference design */
}

.testimonial-detailed-stars .testimonial-detailed-star {
    width: 26px;
    height: 26px;
    display: inline-block;
    flex-shrink: 0;
}

.testimonial-detailed-date {
    font-size: 0.9rem;
    color: #5f6368;
}

.testimonial-detailed-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e1effe;
    color: #1a56db;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}

.testimonial-detailed-pill-check {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* REVIEW */
.testimonial-detailed-review {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #202124;
    width: 100%;
}

.testimonial-detailed-review p {
    margin: 0 0 0.75em;
}

.testimonial-detailed-review p:last-child {
    margin-bottom: 0;
}

/* SUB-RATINGS (Recommend / Rebuy / Price) with dotted leader */
.testimonial-detailed-subratings {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-bottom: 20px;
}

.testimonial-detailed-subrating {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.95rem;
}

.testimonial-detailed-subrating-label {
    flex-shrink: 0;
    color: #202124;
}

.testimonial-detailed-subrating-leader {
    flex-grow: 1;
    border-bottom: 1px dotted #cfcfcf;
    transform: translateY(-4px);
}

.testimonial-detailed-subrating-value {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: #202124;
}

.testimonial-detailed-subrating-value .testimonial-detailed-star {
    width: 16px;
    height: 16px;
    color: #f68b1f;
    display: inline-block;
}

/* SHARE ROW */
.testimonial-detailed-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-detailed-share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5f6368;
    margin-right: 2px;
}

.testimonial-detailed-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9aa0a6;
    transition: color 0.15s ease, background 0.15s ease;
    text-decoration: none;
}

.testimonial-detailed-share-btn[hidden] {
    display: none;
}

.testimonial-detailed-share-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.testimonial-detailed-share-btn:hover,
.testimonial-detailed-share-btn:focus-visible {
    color: #202124;
    background: #f1f3f4;
}

.testimonial-detailed-copy-feedback {
    font-size: 0.8rem;
    color: #1a56db;
}

/* Anchor offset so shared #card links don't hide under sticky headers */
.testimonial-detailed-card {
    scroll-margin-top: 100px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .testimonial-detailed-layout {
        padding-block: 1.25rem;
    }

    .testimonial-detailed-card {
        padding: 1.5rem 0 1.25rem;
    }

    .testimonial-detailed-avatar,
    .testimonial-detailed-avatar img,
    .testimonial-detailed-avatar-fallback {
        width: 48px;
        height: 48px;
        font-size: 17px;
    }

    .testimonial-detailed-identity {
        min-height: 48px;
    }

    .testimonial-detailed-stars .testimonial-detailed-star {
        width: 21px;
        height: 21px;
    }

    .testimonial-detailed-pill {
        white-space: normal;
        line-height: 1.3;
    }

    .testimonial-detailed-subrating {
        font-size: 0.9rem;
    }
}