/* 1.3.15: isolated, stationary cards. Every slide shares ONE grid cell.
 * Visibility/opacity change; layout geometry never depends on the active slide.
 * Four-line previews bound long reviews. Full text remains available in the reader.
 */
body.hprc-home-testimonials #home-testimonials {
    --hprc-stationary-css: 1;
}
body.hprc-home-testimonials #home-testimonials.hprc-review-deck {
    width: min(100%, 980px);
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
}
body.hprc-home-testimonials #home-testimonials.hprc-review-deck[hidden],
body.hprc-home-testimonials #home-testimonials.hprc-review-deck [hidden] {
    display: none !important;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-stage {
    position: relative;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    isolation: isolate;
    overflow: visible;
    transform: none !important;
    transition: none !important;
}
body.hprc-home-testimonials #home-testimonials.hprc-deck-ready .hprc-review-stage {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0 !important;
    align-items: stretch;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-slide {
    box-sizing: border-box;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 16px !important;
    padding: 26px 30px !important;
    border: 1px solid #dfe9eb;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #fff 72%, #f5fbfa 100%);
    box-shadow: 0 12px 32px rgba(24, 49, 61, .065);
    transform: none !important;
    overflow: hidden;
    text-align: start;
}
body.hprc-home-testimonials #home-testimonials.hprc-deck-ready .hprc-review-slide {
    display: flex !important;
    flex-direction: column;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: stretch;
    margin: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    transition: opacity .2s ease, visibility 0s linear .2s !important;
}
body.hprc-home-testimonials #home-testimonials.hprc-deck-ready .hprc-review-slide.is-current {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
    transition: opacity .2s ease, visibility 0s !important;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-slide::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #0eaaa6 0%, #5cc6c3 55%, #e9f8f6 100%);
    pointer-events: none;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-slide::after {
    content: none !important;
    display: none !important;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-author,
body.hprc-home-testimonials .hprc-review-dialog .hprc-review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 56px;
    margin: 0 0 18px;
    padding: 0;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-author::after {
    content: '\201c';
    flex: 0 0 30px;
    margin-inline-start: auto;
    align-self: flex-start;
    color: #bde5e3;
    font: 54px/1 Georgia, serif;
    pointer-events: none;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-author > img.home-testim-avatar,
body.hprc-home-testimonials .hprc-review-dialog .home-testim-avatar {
    box-sizing: border-box;
    display: block !important;
    position: static !important;
    float: none !important;
    flex: 0 0 56px;
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    background: #e9f5f4;
    box-shadow: 0 3px 12px rgba(24, 49, 61, .1);
}
body.hprc-home-testimonials #home-testimonials .hprc-review-slide .home-testim,
[dir='rtl'] body.hprc-home-testimonials #home-testimonials .hprc-review-slide .home-testim {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    position: static;
    text-align: start;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-author .home-testim-name,
body.hprc-home-testimonials .hprc-review-dialog .home-testim-name {
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    color: #1f3139;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-author .home-testim-name::before {
    content: none !important;
    display: none !important;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-slide .home-testim-text {
    color: #586b73;
    font-family: inherit;
    font-size: 16px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-wrap: anywhere;
}
body.hprc-home-testimonials #home-testimonials.hprc-deck-ready .home-testim-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    max-height: 6.4em;
    overflow: hidden;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-read-slot {
    min-height: 44px;
    margin: 2px 0 0;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-read,
body.hprc-home-testimonials #home-testimonials .hprc-review-rotation {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: #087f7c;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-read:hover { text-decoration: underline; }
body.hprc-home-testimonials #home-testimonials .hprc-review-read.hprc-read-unneeded {
    visibility: hidden;
    pointer-events: none;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-slide .hprc-testimonial-meta {
    justify-content: flex-start;
    margin-top: 6px;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-slide .hprc-testimonial-rating { text-align: start; }
body.hprc-home-testimonials #home-testimonials .hprc-review-slide .hprc-testimonial-agent {
    margin: 12px 0 0;
    width: min(100%, 370px);
}
body.hprc-home-testimonials #home-testimonials.hprc-review-deck .hprc-carousel-nav {
    gap: 8px 10px;
    margin-top: 14px;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-rotation {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 114px;
    margin: 0;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}
body.hprc-home-testimonials #home-testimonials .hprc-carousel-count {
    font-variant-numeric: tabular-nums;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-read:focus-visible,
body.hprc-home-testimonials #home-testimonials .hprc-review-rotation:focus-visible,
body.hprc-home-testimonials .hprc-review-dialog button:focus-visible,
body.hprc-home-testimonials .hprc-review-dialog a:focus-visible {
    outline: 2px solid #087f7c;
    outline-offset: 3px;
    border-radius: 5px;
}
[dir='rtl'] body.hprc-home-testimonials #home-testimonials .hprc-testimonial-control svg,
body.hprc-home-testimonials[dir='rtl'] #home-testimonials .hprc-testimonial-control svg {
    transform: rotate(180deg);
}
/* Reader is out of document flow. Opening it never fixes/repositions the body. */
body.hprc-home-testimonials dialog.hprc-review-dialog {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(640px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: min(80vh, 760px);
    max-height: min(80dvh, 760px);
    margin: auto;
    padding: 0;
    border: 1px solid #d5e5e6;
    border-radius: 18px;
    background: #fff;
    color: #1f3139;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 24px 80px rgba(18, 39, 46, .3);
    overflow: hidden;
    z-index: 2147483000;
}
body.hprc-home-testimonials dialog.hprc-review-dialog:not([open]) { display: none !important; }
body.hprc-home-testimonials dialog.hprc-review-dialog[open] { display: flex; flex-direction: column; }
body.hprc-home-testimonials dialog.hprc-review-dialog::backdrop { background: rgba(18, 39, 46, .48); }
body.hprc-home-testimonials .hprc-review-dialog-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #dfe9eb;
    background: #f5fbfa;
}
body.hprc-home-testimonials .hprc-review-dialog-head strong { font-size: 15px; }
body.hprc-home-testimonials .hprc-review-close {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    border: 1px solid #0eaaa6;
    border-radius: 9px;
    color: #087f7c;
    background: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
body.hprc-home-testimonials .hprc-review-dialog-body {
    min-height: 0;
    padding: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
body.hprc-home-testimonials .hprc-review-dialog .home-testim-text {
    display: block;
    max-height: none;
    overflow: visible;
    margin: 0 0 20px;
    padding: 0;
    color: #586b73;
    font: inherit;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
body.hprc-home-testimonials .hprc-review-dialog .hprc-testimonial-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
body.hprc-home-testimonials .hprc-review-dialog .hprc-testimonial-rating {
    flex-basis: 100%;
    font-size: 18px;
    color: #087f7c;
}
body.hprc-home-testimonials .hprc-review-dialog .hprc-testimonial-service,
body.hprc-home-testimonials .hprc-review-dialog .hprc-testimonial-client-type,
body.hprc-home-testimonials .hprc-review-dialog .hprc-testimonial-verified {
    padding: 5px 9px;
    border: 1px solid #d5e5e6;
    border-radius: 16px;
    background: #effaf9;
    color: #087f7c;
}
body.hprc-home-testimonials .hprc-review-dialog .hprc-testimonial-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 10px;
    border: 1px solid #d5e5e6;
    border-radius: 12px;
    color: #087f7c;
    text-decoration: none;
}
body.hprc-home-testimonials .hprc-review-dialog .hprc-testimonial-agent-avatar,
body.hprc-home-testimonials .hprc-review-dialog .hprc-testimonial-agent-avatar img {
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}
body.hprc-home-testimonials .hprc-review-dialog .hprc-testimonial-agent-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
}
body.hprc-home-testimonials .hprc-review-dialog .hprc-testimonial-agent-kicker { font-size: 10px; }
@media (max-width: 767px) {
    body.hprc-home-testimonials #home-testimonials .hprc-review-slide { padding: 20px !important; border-radius: 17px; }
    body.hprc-home-testimonials #home-testimonials .hprc-review-author { margin-bottom: 15px; }
    body.hprc-home-testimonials #home-testimonials .hprc-review-slide .home-testim-text { font-size: 15px !important; }
    body.hprc-home-testimonials #home-testimonials .hprc-review-slide .hprc-testimonial-verified { max-width: 100%; }
    body.hprc-home-testimonials .hprc-review-dialog-body { padding: 18px; }
    body.hprc-home-testimonials .hprc-review-dialog-head { padding: 10px 14px; }
}
@media (max-width: 360px) {
    body.hprc-home-testimonials #home-testimonials .hprc-review-slide { padding: 18px 16px !important; }
    body.hprc-home-testimonials #home-testimonials .hprc-review-author { gap: 10px; }
    body.hprc-home-testimonials #home-testimonials .hprc-review-author::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    body.hprc-home-testimonials #home-testimonials.hprc-deck-ready .hprc-review-slide,
    body.hprc-home-testimonials #home-testimonials.hprc-deck-ready .hprc-review-slide.is-current {
        transition: none !important;
    }
}

/* Keep genuine service/agent details at the foot of shorter cards rather than
 * leaving an unused area under them. No missing metadata is fabricated. */
body.hprc-home-testimonials #home-testimonials.hprc-deck-ready .hprc-review-slide .home-testim {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-footer {
    margin-top: auto;
    padding-top: 6px;
}
body.hprc-home-testimonials #home-testimonials .hprc-review-footer .hprc-testimonial-meta {
    margin-top: 0;
}
