/* Customer reviews: styles scoped to the new pages. */
.reviews-page .page-hero{padding-bottom:72px}
.reviews-page .reviews-section{padding:56px 0 72px;background:#f7f8fc}
.reviews-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.review-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 12px 36px rgba(36,52,104,.04)}
.review-media{display:flex;align-items:center;justify-content:center;aspect-ratio:4 / 3;padding:16px;background:#eef1fb;border-bottom:1px solid var(--line)}
.review-media img{width:100%;height:100%;object-fit:contain}
.review-card-body{display:flex;flex:1;flex-direction:column;padding:26px}
.review-label{color:var(--blue);font-size:12px;font-weight:700}
.review-card h2{margin:14px 0 10px;font-size:22px;line-height:1.5;overflow-wrap:anywhere}
.review-project{margin:0;color:var(--muted);font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.review-card blockquote{margin:22px 0;padding:0 0 0 16px;border-left:3px solid var(--blue);color:#555e72;line-height:1.9;overflow-wrap:anywhere}
.review-summary{color:var(--muted);line-height:1.9}
.review-more{align-self:flex-start;margin-top:auto;padding-top:20px;color:var(--blue);font-size:13px;font-weight:700}
.reviews-empty{grid-column:1/-1;padding:64px 24px;border:1px solid var(--line);border-radius:24px;background:#fff;text-align:center}
.reviews-empty>span{color:var(--blue);font-size:11px;letter-spacing:.12em}
.reviews-empty h2{font-size:26px;margin:18px 0 12px}.reviews-empty p{color:var(--muted)}
.review-detail{max-width:900px;margin:auto;padding:clamp(24px,5vw,48px);border:1px solid var(--line);border-radius:24px;background:#fff}
.review-detail-lead{font-size:18px;line-height:1.9;color:#555e72;overflow-wrap:anywhere}
.review-detail-cover{margin:28px 0}.review-detail-cover img{max-width:100%;height:auto;margin:auto;border-radius:14px}
.review-content{overflow-wrap:anywhere}.review-content img{max-width:100%!important;height:auto!important}.review-content div{max-width:100%!important}
.review-back{margin-top:36px;padding-top:24px;border-top:1px solid var(--line);color:var(--blue);font-size:14px}
@media(max-width:980px){.reviews-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.reviews-grid{grid-template-columns:minmax(0,1fr)}.reviews-page .page-hero{padding-bottom:48px}.reviews-page .reviews-section{padding:32px 0 48px}.review-card-body{padding:24px}.review-detail{padding:24px 20px}}

/* v2: spacious horizontal entries and bounded text. */
.reviews-layout-v2 .reviews-grid{display:flex;flex-direction:column;gap:22px;max-width:1040px;margin:auto}
.reviews-layout-v2 .review-card{display:flex;flex-direction:row;align-items:stretch;border-radius:20px;box-shadow:0 8px 28px rgba(36,52,104,.04)}
.reviews-layout-v2 .review-media{flex:0 0 260px;width:260px;min-height:230px;aspect-ratio:auto;border:0;border-right:1px solid var(--line);padding:20px}
.reviews-layout-v2 .review-media img{max-height:250px;object-fit:contain}
.reviews-layout-v2 .review-card-body{min-width:0;flex:1;padding:28px 32px}
.reviews-layout-v2 .review-card h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:22px;font-weight:700;line-height:1.55;max-height:3.1em;margin:12px 0}
.reviews-layout-v2 .review-card blockquote{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-height:5.7em;font-size:15px;line-height:1.9;margin:4px 0 18px;padding-left:14px}
.reviews-layout-v2 .review-more{padding-top:12px}
.reviews-layout-v2 .page-hero h1{font-size:clamp(28px,3.5vw,44px);line-height:1.4;overflow-wrap:anywhere}
@media(max-width:680px){.reviews-layout-v2 .review-card{flex-direction:column}.reviews-layout-v2 .review-media{flex:none;width:100%;height:220px;min-height:0;border-right:0;border-bottom:1px solid var(--line)}.reviews-layout-v2 .review-media img{max-height:180px}.reviews-layout-v2 .review-card-body{padding:24px}.reviews-layout-v2 .review-card h2{font-size:19px}.reviews-layout-v2 .review-card blockquote{font-size:14px}}

/* Compact review detail header; long entry titles belong in the content card. */
.review-detail-page .review-detail-hero{padding:132px 0 38px;background:linear-gradient(120deg,#f7f9ff,#eef2ff)}
.review-detail-page .breadcrumbs{margin-bottom:24px;font-size:12px}
.review-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:28px}
.review-heading-label{display:block;color:var(--blue);font-size:11px;font-weight:700;letter-spacing:.16em}
.review-detail-page .page-hero h1{max-width:none;margin:10px 0 12px;font-size:36px;line-height:1.25;letter-spacing:0}
.review-detail-page .page-hero p{margin:0;font-size:15px;line-height:1.8;color:var(--muted)}
.review-heading-back{flex-shrink:0;padding:12px 18px;border:1px solid #dce3f7;border-radius:12px;background:#fff;color:var(--blue);font-size:13px;font-weight:700}
.review-heading-back:hover{border-color:var(--blue);background:#f8faff}
.review-detail-page .reviews-section{padding-top:32px}
.review-detail-page .review-detail{max-width:1000px;padding:36px 40px;box-shadow:0 12px 36px rgba(36,52,104,.04)}
.review-entry-title{margin:14px 0 24px;padding-bottom:24px;border-bottom:1px solid var(--line);font-size:24px;line-height:1.7;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.review-detail-page .review-detail-lead{margin:0 0 24px;font-size:16px;line-height:1.9}
@media(max-width:680px){.review-detail-page .review-detail-hero{padding:112px 0 28px}.review-detail-page .breadcrumbs{margin-bottom:20px}.review-detail-heading{align-items:flex-start;flex-direction:column;gap:20px}.review-detail-page .page-hero h1{font-size:28px}.review-detail-page .page-hero p{font-size:14px}.review-detail-page .review-detail{padding:24px 20px}.review-entry-title{font-size:19px;line-height:1.75;margin-bottom:20px;padding-bottom:20px}.review-detail-page .reviews-section{padding-top:24px}}

/* Preserve the original heading and allow full-width text flow. */
.reviews-page.review-wide-title .page-hero{padding:132px 0 40px}
.reviews-page.review-wide-title .page-hero>.container{display:block}
.reviews-page.review-wide-title .page-hero h1{display:block;width:100%;max-width:none!important;margin:24px 0 0;font-size:clamp(28px,2.6vw,40px);line-height:1.55;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;text-align:left}
@media(max-width:680px){.reviews-page.review-wide-title .page-hero{padding:112px 0 28px}.reviews-page.review-wide-title .page-hero h1{font-size:24px;line-height:1.6;margin-top:20px}}
