.hrmg-reviews,
.hrmg-reviews * { box-sizing: border-box; }

.hrmg-reviews {
    --review-orange: #ff672f;
    --review-orange-dark: #d94a17;
    --review-ink: #17263a;
    --review-muted: #667789;
    --review-line: #dfe6ec;
    position: relative;
    width: 100%;
    margin: 34px 0;
    padding: clamp(28px, 4vw, 52px);
    overflow: hidden;
    border: 1px solid var(--review-line);
    border-radius: 20px;
    background: linear-gradient(145deg, #fff, #f7fafc);
    color: var(--review-ink);
    box-shadow: 0 22px 55px rgba(20, 34, 50, .1);
}

.hrmg-reviews::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--review-orange), #ff9b5e 52%, #774985);
}

.hrmg-reviews__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 30px;
}

.hrmg-reviews__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--review-orange-dark);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hrmg-reviews__header h2 {
    margin: 0 0 10px;
    color: var(--review-ink);
    font-size: clamp(31px, 4.5vw, 50px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.hrmg-reviews__header p {
    max-width: 660px;
    margin: 0;
    color: var(--review-muted);
    font-size: 16px;
    line-height: 1.65;
}

.hrmg-reviews__score {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 2px 10px;
    padding: 15px 18px;
    border: 1px solid #f1dfc0;
    border-radius: 12px;
    background: #fffbf2;
}

.hrmg-reviews__score strong { color: var(--review-ink); font-size: 26px; line-height: 1; }
.hrmg-reviews__score span { color: #e8a000; font-size: 16px; letter-spacing: 1px; }
.hrmg-reviews__score small { grid-column: 1 / -1; color: #788593; font-size: 10px; }

.hrmg-reviews__viewport { overflow: hidden; }
.hrmg-reviews__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 3px 2px 16px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #c7d0d9 transparent;
}

.hrmg-reviews__card {
    flex: 0 0 calc((100% - 36px) / 3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 23px;
    border: 1px solid var(--review-line);
    border-radius: 15px;
    background: #fff;
    scroll-snap-align: start;
    box-shadow: 0 7px 20px rgba(20, 34, 50, .05);
}

.hrmg-reviews__card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hrmg-reviews__stars { color: #e5a000; font-size: 17px; letter-spacing: 1px; white-space: nowrap; }
.hrmg-reviews__source { color: #7b8794; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .7px; }
.hrmg-reviews__quote {
    position: relative;
    margin-top: 23px;
    padding: 20px 20px 17px;
    border: 1px solid #edf0f3;
    border-radius: 11px;
    background: #f5f6f7;
}
.hrmg-reviews .hrmg-reviews__quote blockquote[data-review-copy] {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    max-height: 10.2em;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #34465a;
    font-size: 15px;
    font-style: normal;
    line-height: 1.7;
    quotes: none;
    transition: max-height .28s ease;
}
.hrmg-reviews .hrmg-reviews__quote blockquote[data-review-copy]::before,
.hrmg-reviews .hrmg-reviews__quote blockquote[data-review-copy]::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
}
.hrmg-reviews__card.has-overflow:not(.is-expanded) blockquote {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
}
.hrmg-reviews__card.is-expanded blockquote {
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
}
.hrmg-reviews__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 12px 0 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--review-orange-dark);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: underline;
    text-decoration-color: rgba(217, 74, 23, .42);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.hrmg-reviews__more[hidden] { display: none !important; }
.hrmg-reviews__more svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}
.hrmg-reviews__more:hover,
.hrmg-reviews__more:focus-visible { color: #a63711; }
.hrmg-reviews__more:focus-visible {
    outline: 2px solid rgba(255, 103, 47, .45);
    outline-offset: 4px;
    border-radius: 2px;
}
.hrmg-reviews__card.is-expanded .hrmg-reviews__more svg { transform: rotate(180deg); }
.hrmg-reviews__card footer { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 22px; }
.hrmg-reviews__avatar { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: #17263a; color: #fff; font-size: 13px; font-weight: 800; }
.hrmg-reviews__identity { min-width: 0; }
.hrmg-reviews__card footer strong,
.hrmg-reviews__card footer small { display: block; }
.hrmg-reviews__card footer strong { color: var(--review-ink); font-size: 13px; line-height: 1.35; }
.hrmg-reviews__card footer small { color: #8793a0; }
.hrmg-reviews__company {
    margin-top: 3px;
    overflow: hidden;
    color: #536579 !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hrmg-reviews__date { margin-top: 4px; font-size: 10px; }
.hrmg-reviews__controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.hrmg-reviews__controls button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #d4dce4; border-radius: 50%; background: #fff; color: var(--review-ink); cursor: pointer; font-size: 18px; transition: background .16s ease, color .16s ease, transform .16s ease; }
.hrmg-reviews__controls button:hover,
.hrmg-reviews__controls button:focus-visible { transform: translateY(-1px); border-color: var(--review-orange); background: var(--review-orange); color: #fff; }

.hrmg-reviews__empty { padding: 28px; border: 1px dashed #cad4dd; border-radius: 13px; background: #fff; text-align: center; }
.hrmg-reviews__empty strong { color: var(--review-ink); font-size: 18px; }
.hrmg-reviews__empty p { margin: 7px 0 0; color: var(--review-muted); }

.hrmg-reviews__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 34px -18px -18px;
    padding: 25px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #17191f, #31202b);
    color: #fff;
}
.hrmg-reviews__cta span,
.hrmg-reviews__cta strong { display: block; }
.hrmg-reviews__cta span { margin-bottom: 4px; color: #ff9b75; font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.hrmg-reviews__cta strong { color: #fff; font-size: 19px; line-height: 1.3; }
.hrmg-reviews__actions { display: flex; align-items: center; gap: 9px; }
.hrmg-reviews__actions a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #fff !important; font-size: 12px; font-weight: 750; text-decoration: none !important; }
.hrmg-reviews__actions .is-primary { border-color: var(--review-orange); background: var(--review-orange); }
.hrmg-reviews__actions a:hover,
.hrmg-reviews__actions a:focus-visible { border-color: #fff; }
.hrmg-reviews__action-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .16s ease;
}
.hrmg-reviews__actions .is-secondary:hover .hrmg-reviews__action-icon,
.hrmg-reviews__actions .is-secondary:focus-visible .hrmg-reviews__action-icon { transform: translate(2px, -2px); }
.hrmg-reviews__actions .is-primary:hover .hrmg-reviews__action-icon,
.hrmg-reviews__actions .is-primary:focus-visible .hrmg-reviews__action-icon { transform: translateX(3px); }

@media (max-width: 940px) {
    .hrmg-reviews__card { flex-basis: calc((100% - 18px) / 2); }
    .hrmg-reviews__cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 650px) {
    .hrmg-reviews { padding: 31px 21px; border-radius: 14px; }
    .hrmg-reviews__header { align-items: flex-start; flex-direction: column; gap: 19px; }
    .hrmg-reviews__score { width: 100%; }
    .hrmg-reviews__card { flex-basis: 88%; min-height: 290px; }
    .hrmg-reviews__cta { margin: 28px -7px -16px; padding: 22px; }
    .hrmg-reviews__actions { align-items: stretch; flex-direction: column; width: 100%; }
    .hrmg-reviews__actions a { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .hrmg-reviews__track { scroll-behavior: auto; }
    .hrmg-reviews__controls button,
    .hrmg-reviews__action-icon,
    .hrmg-reviews__card blockquote,
    .hrmg-reviews__more svg { transition: none; }
}
