.wila-testimonials-section {
    position: relative;
    width: 100%;
    height: 520px;
    background: #08261A;
    overflow: hidden;
    --wila-pad-top: 0px;
    --wila-pad-right: 0px;
    --wila-pad-bottom: 0px;
    --wila-pad-left: 0px;
}

/* =========================================
   HEADER
========================================= */

.wila-testimonials-header {
    position: absolute;
    --wila-header-top: 65px;
    top: calc(var(--wila-header-top) + var(--wila-pad-top));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--wila-pad-left) - var(--wila-pad-right));
    max-width: 100%;
    text-align: center;
    z-index: 10;
    padding: 0 20px;
    box-sizing: border-box;
}

.wila-testimonials-title {
    display: inline-block;
    max-width: 100%;
    color: #F1F1F1;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    word-wrap: break-word;
}

.wila-testimonials-title-highlight {
    color: #76AD3E;
}

.wila-testimonials-description {
    width: min(720px, 92%);
    margin: 22px auto 0;
    color: #C7CFCC;
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================
   TRACK / VIEWPORT
   --wila-slider-nav-space reserves room for
   the arrow/dot row, only added in slider mode.
========================================= */

.wila-testimonials-viewport {
    position: absolute;
    left: 0;
    --wila-viewport-bottom: 35px;
    --wila-slider-nav-space: 0px;
    bottom: calc(var(--wila-viewport-bottom) + var(--wila-slider-nav-space) + var(--wila-pad-bottom));
    width: 100%;
    overflow: visible;
}

.wila-testimonials-track {
    display: flex;
    align-items: stretch;
    gap: 22px;
    width: max-content;
    --wila-track-left: 200px;
    padding-left: calc(var(--wila-track-left) + var(--wila-pad-left));
    padding-right: calc(40px + var(--wila-pad-right));
    will-change: transform;
}

/* =========================================
   SLIDER MODE (tablet/mobile, or pin turned
   off, or reduced motion, or editor preview) —
   snap-scrolling single-card-at-a-time strip
   with arrow/dot navigation, driven by JS.
========================================= */

.wila-testimonials-section.is-slider-mode .wila-testimonials-viewport {
    --wila-slider-nav-space: 44px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wila-testimonials-section.is-slider-mode .wila-testimonials-viewport::-webkit-scrollbar {
    display: none;
}

.wila-testimonials-section.is-slider-mode .wila-testimonials-track {
    --wila-track-left: 20px;
}

.wila-testimonials-section.is-slider-mode .wila-testimonial-rating-card,
.wila-testimonials-section.is-slider-mode .wila-testimonial-card {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

/* =========================================
   SLIDER NAV — arrows + dots
   Hidden by default; shown only in slider mode.
========================================= */

.wila-testimonials-slider-nav {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(10px + var(--wila-pad-bottom));
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 11;
}

.wila-testimonials-section.is-slider-mode .wila-testimonials-slider-nav {
    display: flex;
}

.wila-testimonials-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #F1F1F1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.wila-testimonials-arrow svg {
    width: 55%;
    height: 55%;
}

.wila-testimonials-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
}

.wila-testimonials-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.wila-testimonials-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wila-testimonials-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.wila-testimonials-dot.is-active {
    background: #76AD3E;
    transform: scale(1.3);
}

/* =========================================
   CARDS — COMMON
   min-height (not fixed height) so a card
   never clips its text on a narrow screen.
========================================= */

.wila-testimonial-rating-card,
.wila-testimonial-card {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 310px;
    min-height: 240px;
    border-radius: 14px;
}

/* =========================================
   RATING CARD
========================================= */

.wila-testimonial-rating-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 25px;
    background: linear-gradient(135deg, #5B992E, #386F20);
    color: #FFFFFF;
}

.wila-testimonial-stars {
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.wila-testimonial-rating-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.wila-testimonial-rating-text {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.wila-testimonial-rating-avatars {
    display: flex;
    align-items: center;
}

.wila-testimonial-avatar-sm {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    margin-right: -7px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    color: #579239;
    border: 1px solid #DDDDDD;
    font-size: 9px;
    font-weight: 700;
    overflow: hidden;
}

.wila-testimonial-avatar-sm img,
.wila-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* =========================================
   TESTIMONIAL CARD
========================================= */

.wila-testimonial-card {
    display: flex;
    flex-direction: column;
    padding: 28px 25px 22px;
    background: #F4F4F4;
}

.wila-testimonial-quote {
    color: #BD8131;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
}

.wila-testimonial-text {
    flex-grow: 1;
    color: #444444;
    font-size: 13px;
    line-height: 1.7;
    word-wrap: break-word;
}

.wila-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #D8D8D8;
}

.wila-testimonial-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5B9638;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    overflow: hidden;
}

.wila-testimonial-name {
    color: #555555;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.wila-testimonial-course {
    color: #548334;
    font-size: 9px;
}

/* =========================================
   RESPONSIVE — LAPTOP / SMALL DESKTOP
   (still pin mode by default; just tightens
   the reserved left inset)
========================================= */

@media (max-width: 1200px) {
    .wila-testimonials-track {
        --wila-track-left: 120px;
    }
}

/* =========================================
   RESPONSIVE — TABLET
   (slider mode by default — Disable Pin On
   Tablet & Mobile is on unless turned off)
========================================= */

@media (max-width: 1024px) {
    .wila-testimonials-section {
        height: 540px;
    }

    .wila-testimonials-section.is-slider-mode {
        height: 500px;
    }

    .wila-testimonials-track {
        --wila-track-left: 80px;
    }

    .wila-testimonial-rating-card,
    .wila-testimonial-card {
        width: min(360px, 62vw);
        min-height: 230px;
    }
}

/* =========================================
   RESPONSIVE — MOBILE
========================================= */

@media (max-width: 768px) {
    .wila-testimonials-section {
        height: 500px;
    }

    .wila-testimonials-section.is-slider-mode {
        height: 460px;
    }

    .wila-testimonials-header {
        --wila-header-top: 32px;
    }

    .wila-testimonials-title {
        font-size: 21px;
    }

    .wila-testimonials-description {
        width: 92%;
        margin-top: 12px;
        font-size: 11px;
    }

    .wila-testimonials-viewport {
        --wila-viewport-bottom: 18px;
    }

    .wila-testimonials-track {
        --wila-track-left: 18px;
        gap: 14px;
    }

    .wila-testimonial-rating-card,
    .wila-testimonial-card {
        width: min(300px, 78vw);
        min-height: 210px;
    }

    .wila-testimonial-card {
        padding: 20px 18px 16px;
    }

    .wila-testimonial-rating-card {
        padding: 22px 20px;
    }

    .wila-testimonial-rating-number {
        font-size: 38px;
    }

    .wila-testimonial-quote {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .wila-testimonial-text {
        font-size: 12px;
        line-height: 1.6;
    }
}

/* =========================================
   RESPONSIVE — SMALL PHONES
========================================= */

@media (max-width: 480px) {
    .wila-testimonials-section {
        height: 460px;
    }

    .wila-testimonials-section.is-slider-mode {
        height: 420px;
    }

    .wila-testimonials-header {
        --wila-header-top: 22px;
        padding: 0 14px;
    }

    .wila-testimonials-title {
        font-size: 18px;
    }

    .wila-testimonials-description {
        width: 96%;
        margin-top: 10px;
        font-size: 10px;
        line-height: 1.45;
    }

    .wila-testimonials-viewport {
        --wila-viewport-bottom: 12px;
    }

    .wila-testimonials-track {
        --wila-track-left: 14px;
        gap: 10px;
    }

    .wila-testimonial-rating-card,
    .wila-testimonial-card {
        width: min(240px, 82vw);
        min-height: 190px;
    }

    .wila-testimonial-card {
        padding: 16px 14px 14px;
    }

    .wila-testimonial-rating-card {
        padding: 18px 16px;
    }

    .wila-testimonial-rating-number {
        font-size: 32px;
    }

    .wila-testimonial-rating-text {
        font-size: 10px;
    }

    .wila-testimonial-stars {
        font-size: 13px;
    }

    .wila-testimonial-quote {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .wila-testimonial-text {
        font-size: 11px;
        line-height: 1.55;
    }

    .wila-testimonial-footer {
        gap: 8px;
        padding-top: 10px;
        margin-top: 10px;
    }

    .wila-testimonial-avatar,
    .wila-testimonial-avatar-sm {
        width: 26px;
        height: 26px;
    }

    .wila-testimonials-arrow {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wila-testimonials-section.is-slider-mode .wila-testimonials-viewport {
        scroll-behavior: auto;
    }
}