/* ===== ValueHosted Reviews Widget ===== */
:root { --vhr-color: #1e40af; }

.vhr-widget { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; box-sizing: border-box; }
.vhr-widget *, .vhr-widget *::before, .vhr-widget *::after { box-sizing: inherit; }

/* Title */
.vhr-widget-title { text-align: center; margin-bottom: 32px; }
.vhr-widget-title h2 { font-size: clamp(22px,3vw,32px); font-weight: 700; color: #111827; margin: 0 0 12px; }
.vhr-title-line { width: 48px; height: 4px; background: var(--vhr-color); border-radius: 2px; margin: 0 auto; }

/* Card base */
.vhr-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .25s, transform .25s; position: relative; overflow: hidden; }
.vhr-card::before { content:''; position:absolute; top:0; left:0; width:4px; height:100%; background: var(--vhr-color); border-radius:4px 0 0 4px; opacity:0; transition: opacity .25s; }
.vhr-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.09); transform: translateY(-2px); }
.vhr-card:hover::before { opacity:1; }

/* Header row */
.vhr-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vhr-author-info { display: flex; align-items: center; gap: 10px; }
.vhr-author-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #e5e7eb; flex-shrink: 0; }
.vhr-author-initials { width: 42px; height: 42px; border-radius: 50%; background: var(--vhr-color); color: #fff; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vhr-author-name { font-weight: 600; font-size: 14px; color: #111827; line-height: 1.3; }
.vhr-review-date { font-size: 12px; color: #9ca3af; margin-top: 2px; }

/* Source logo */
.vhr-source-logo { width: 22px; height: 22px; flex-shrink: 0; }

/* Stars */
.vhr-stars { display: flex; gap: 2px; }
.vhr-star { font-size: 17px; line-height: 1; }
.vhr-star-filled { color: #f59e0b; }
.vhr-star-empty  { color: #d1d5db; }

/* Quote */
.vhr-review-content { margin: 0; font-size: 14px; line-height: 1.65; color: #4b5563; font-style: italic; }
.vhr-review-text { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.vhr-review-text.vhr-clamped { -webkit-line-clamp: 4; }
.vhr-read-more { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--vhr-color); cursor: pointer; background: none; border: none; padding: 0; font-style: normal; text-decoration: underline; text-underline-offset: 2px; }
.vhr-read-more:hover { opacity: .75; }

/* ===== GRID ===== */
.vhr-layout-grid .vhr-card { break-inside: avoid; }
@media (min-width: 600px) {
  .vhr-layout-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 900px) {
  .vhr-layout-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== LIST ===== */
.vhr-layout-list { display: flex; flex-direction: column; gap: 16px; }
.vhr-layout-list .vhr-card { flex-direction: row; flex-wrap: wrap; }
.vhr-layout-list .vhr-card-header { flex: 0 0 200px; flex-direction: column; align-items: flex-start; }
.vhr-layout-list .vhr-review-content { flex: 1 1 260px; font-size: 15px; }

/* ===== MASONRY ===== */
@media (min-width: 600px) {
  .vhr-layout-masonry { column-count: 2; column-gap: 20px; }
}
@media (min-width: 900px) {
  .vhr-layout-masonry { column-count: 3; }
}
.vhr-layout-masonry .vhr-card { margin-bottom: 20px; break-inside: avoid; }

/* ===== CAROUSEL ===== */
.vhr-layout-carousel { position: relative; }
.vhr-carousel-wrapper { position: relative; display: flex; align-items: center; gap: 8px; }
.vhr-carousel-track-outer { overflow: hidden; flex: 1; }
.vhr-carousel-track { display: flex; gap: 20px; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.vhr-carousel-track .vhr-card { flex: 0 0 calc(33.333% - 14px); min-width: 260px; }
@media (max-width: 800px) { .vhr-carousel-track .vhr-card { flex: 0 0 calc(50% - 10px); } }
@media (max-width: 520px) { .vhr-carousel-track .vhr-card { flex: 0 0 100%; } }
.vhr-carousel-btn { background: #fff; border: 1px solid #e5e7eb; border-radius: 50%; width: 40px; height: 40px; font-size: 24px; line-height: 1; cursor: pointer; flex-shrink: 0; color: var(--vhr-color); transition: background .2s, box-shadow .2s; display: flex; align-items: center; justify-content: center; }
.vhr-carousel-btn:hover { background: var(--vhr-color); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.vhr-carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.vhr-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; cursor: pointer; border: none; padding: 0; transition: background .2s, transform .2s; }
.vhr-carousel-dot.active { background: var(--vhr-color); transform: scale(1.25); }

.vhr-empty { color: #9ca3af; font-style: italic; text-align: center; padding: 30px; }
