/* ReviewerHut theme tokens */
body.brand-reviewerhuthut,
body.brand-reviewerhuthuthut {
    --brand-primary: #0d6efd;
    --brand-hero: #041c4b; /* deep navy from screenshot */
    --brand-hero-2: #05265a;
}

/* Topbar */
.rh-topbar {
    background: #fff;
    border-bottom: 1px solid var(--rh-border);
}

.rh-topbar-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rh-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0b2b5f;
}

.rh-logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(13,110,253,.12);
    color: var(--brand-primary);
}

.rh-logo-text {
    font-size: 18px;
}

.rh-nav {
    display: flex;
    gap: 20px;
}

    .rh-nav a {
        color: #0b2b5f;
        font-weight: 600;
        font-size: 14px;
    }

        .rh-nav a:hover {
            text-decoration: none;
            color: var(--brand-primary);
        }

/* Hero */
.rh-hero {
    background: var(--brand-hero);
    padding: 20px 0 18px;
}

.rh-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    align-items: start;
}

.rh-company {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: center;
}

.rh-company-logo {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

    .rh-company-logo img {
        width: 48px;
        height: 48px;
        object-fit: contain;
    }

.rh-company-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rh-company-name {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.rh-verified-dot {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-primary);
    font-weight: 900;
    font-size: 12px;
}

.rh-company-sub {
    margin-top: 4px;
    font-size: 12px;
    opacity: .9;
}

.rh-link-light {
    color: #cfe2ff;
    text-decoration: underline;
}

.rh-company-score {
    text-align: right;
    color: #fff;
}

.rh-company-score-sub {
    font-size: 12px;
    opacity: .85;
    margin-top: 6px;
}

/* Rating box (right hero) */
.rh-rating-box {
    background: transparent;
    color: #fff;
}

.rh-rating-box-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.rh-rating-box-title {
    font-weight: 700;
    font-size: 13px;
    opacity: .95;
}

.rh-rating-box-avg {
    font-size: 14px;
    font-weight: 900;
    margin: 0 4px;
}

.rh-rating-box-star {
    color: #ffd43b;
    margin-right: 4px;
}

.rh-rating-box-total {
    opacity: .9;
}

.rh-btn-primary {
    background: var(--brand-primary);
    color: #fff;
}

    .rh-btn-primary:hover {
        filter: brightness(.95);
    }

.rh-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rh-bar-row {
    display: grid;
    grid-template-columns: 64px 1fr 40px;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}

.rh-bar-label {
    opacity: .9;
}

.rh-bar-track {
    height: 6px;
    background: rgba(255,255,255,.22);
    border-radius: 999px;
    overflow: hidden;
}

.rh-bar-fill {
    height: 100%;
    background: var(--brand-primary);
    border-radius: 999px;
}

.rh-bar-pct {
    text-align: right;
    opacity: .9;
}

/* Page grid */
.rh-page {
    background: #fff;
    padding: 18px 0 28px;
}

.rh-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
}

/* Reviews header */
.rh-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rh-section-title {
    font-size: 16px;
    font-weight: 800;
}

.rh-section-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--rh-muted);
}

.rh-sub-avg {
    font-weight: 800;
    color: #111;
}

.rh-sub-star {
    color: #ffd43b;
    margin: 0 4px;
}

.rh-sub-total {
    color: var(--rh-muted);
}

/* Review cards */
.rh-review-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rh-review {
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
    padding: 14px 14px 12px;
    background: #fff;
}

.rh-review-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rh-review-author {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.rh-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(13,110,253,.12);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 12px;
}

.rh-author-name {
    font-weight: 800;
    font-size: 13px;
}

.rh-author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.rh-mini-stars {
    display: inline-flex;
    gap: 2px;
}

.rh-mini-star {
    font-size: 12px;
    color: #cfd4da;
}

    .rh-mini-star.is-on {
        color: var(--brand-primary);
    }

.rh-verified-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(25,135,84,.14);
    color: #198754;
    font-weight: 700;
}

.rh-review-date {
    font-size: 11px;
    color: var(--rh-muted);
    white-space: nowrap;
}

.rh-review-body {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.55;
    color: #343a40;
}

/* Pager dots */
.rh-pager {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rh-pager-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: #cfd4da;
    cursor: pointer;
}

    .rh-pager-dot.is-active {
        background: var(--brand-primary);
    }

/* Right sidebar */
.rh-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rh-ad {
    padding: 12px;
}

.rh-ad-title {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111;
}

.rh-ad-box {
    border: 1px solid var(--rh-border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.rh-ad-placeholder {
    width: 40px;
    height: 40px;
    border: 1px dashed #cfd4da;
    border-radius: 8px;
    margin: 0 auto 8px;
}

.rh-ad-small {
    font-size: 11px;
    color: var(--rh-muted);
}

.rh-info {
    padding: 12px 12px 10px;
}

.rh-info-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 900;
}

.rh-info-desc {
    margin: 0 0 10px;
    font-size: 12px;
    color: #495057;
    line-height: 1.45;
}

.rh-info-dl {
    margin: 0;
}

.rh-info-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid var(--rh-border);
}

    .rh-info-row:first-child {
        border-top: none;
    }

    .rh-info-row dt {
        font-size: 12px;
        color: #495057;
        font-weight: 700;
    }

    .rh-info-row dd {
        margin: 0;
        font-size: 12px;
        color: #111;
    }

    .rh-info-row a {
        color: var(--brand-primary);
        text-decoration: underline;
    }

.rh-info-links {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--rh-border);
    margin-top: 8px;
}

    .rh-info-links a {
        font-size: 12px;
        color: var(--brand-primary);
        text-decoration: underline;
    }

/* Features strip */
.rh-features {
    background: var(--brand-hero);
    padding: 22px 0;
}

.rh-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rh-feature {
    text-align: center;
    color: #fff;
}

.rh-feature-ico {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
    font-weight: 900;
}

.rh-feature-title {
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 4px;
}

.rh-feature-text {
    font-size: 12px;
    opacity: .9;
    line-height: 1.45;
}

/* Footer */
.rh-footer {
    border-top: 1px solid var(--rh-border);
    background: #fff;
}

.rh-footer-top {
    padding: 22px 0;
    display: grid;
    grid-template-columns: 1.5fr .8fr .8fr;
    gap: 18px;
}

.rh-footer-col h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 900;
}

.rh-footer-col p {
    margin: 0;
    font-size: 12px;
    color: #495057;
    line-height: 1.55;
}

.rh-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rh-footer-col li a {
    font-size: 12px;
    color: #0b2b5f;
}

    .rh-footer-col li a:hover {
        color: var(--brand-primary);
        text-decoration: none;
    }

.rh-footer-mail {
    display: inline-block;
    font-size: 12px;
    color: #0b2b5f;
    margin-bottom: 10px;
    text-decoration: underline;
}

.rh-footer-social {
    display: flex;
    gap: 10px;
}

    .rh-footer-social a {
        width: 26px;
        height: 26px;
        border-radius: 999px;
        border: 1px solid var(--rh-border);
        display: grid;
        place-items: center;
        font-weight: 900;
        color: var(--brand-primary);
    }

.rh-footer-bottom {
    padding: 10px 0 14px;
    border-top: 1px solid var(--rh-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #495057;
}

.rh-footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .rh-footer-links a {
        color: #0b2b5f;
        text-decoration: underline;
    }

/* Modal */
.rh-modal {
    position: fixed;
    inset: 0;
    display: none;
}

    .rh-modal.is-open {
        display: block;
    }

.rh-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.rh-modal-dialog {
    position: relative;
    width: min(460px, calc(100% - 32px));
    margin: 60px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--rh-shadow);
    overflow: hidden;
}

.rh-modal-head {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--rh-border);
}

.rh-modal-title {
    font-weight: 900;
}

.rh-modal-x {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
}

.rh-modal-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rh-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #212529;
}

    .rh-field input, .rh-field textarea {
        border: 1px solid var(--rh-border);
        border-radius: 8px;
        padding: 10px 10px;
        font: inherit;
    }

        .rh-field input:focus, .rh-field textarea:focus {
            outline: none;
            border-color: rgba(13,110,253,.6);
            box-shadow: 0 0 0 3px rgba(13,110,253,.12);
        }

.rh-req {
    color: #dc3545;
    margin-left: 3px;
}

.rh-help {
    color: var(--rh-muted);
    font-size: 11px;
}

.rh-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
}

    .rh-rating-input input {
        display: none;
    }

    .rh-rating-input label {
        font-size: 18px;
        color: #cfd4da;
        cursor: pointer;
        line-height: 1;
    }

        .rh-rating-input input:checked ~ label,
        .rh-rating-input label:hover,
        .rh-rating-input label:hover ~ label {
            color: var(--brand-primary);
        }

/* ReviewerHut landing and categories pages */
.rhc-landing-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 68px;
    background:
        linear-gradient(180deg, rgba(9, 14, 29, 0.6), rgba(4, 8, 18, 0.78)),
        url('/brands/reviewerhut/assets/images/home_banner.jpg') center/cover no-repeat;
}

.rhc-hero-shell {
    max-width: 1060px;
    margin: 0 auto;
}

.rhc-hero-copy {
    color: #fff;
    margin-bottom: 28px;
}

.rhc-hero-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.rhc-hero-subtitle {
    margin: 10px auto 0;
    max-width: 620px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.86);
}

.rhc-search-panel {
    max-width: 920px;
    margin: 0 auto;
}

.rhc-search-box {
    display: flex;
    align-items: stretch;
    min-height: 56px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.rhc-search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 20px;
    border: 0;
    font-size: 0.98rem;
    color: #1d2433;
    background: #fff;
}

.rhc-search-input::placeholder {
    color: #8b94a7;
}

.rhc-search-input:focus {
    outline: none;
}

.rhc-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    padding: 0 24px;
    border: 0;
    border-radius: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    background: #2f6df6;
    transition: background-color 0.2s ease;
}

.rhc-search-button:hover {
    color: #fff;
    background: #245de0;
    text-decoration: none;
}

.rhc-home-grid,
.rhc-service-grid {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.rhc-home-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rhc-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rhc-service-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 218px;
    padding: 30px 18px 0;
    border: 1px solid #eef2f8;
    background: #fff;
    color: #182233;
    text-align: center;
    box-shadow: 0 22px 55px rgba(16, 35, 67, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rhc-service-tile:hover {
    color: #182233;
    text-decoration: none;
    transform: translateY(-4px);
    border-color: #dbe6f9;
    box-shadow: 0 28px 60px rgba(16, 35, 67, 0.14);
}

.rhc-service-tile-home {
    min-height: 188px;
}

.rhc-service-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin-bottom: 20px;
}

.rhc-service-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rhc-service-icon-more {
    border-radius: 999px;
    background: #eff4ff;
    color: #2f6df6;
    font-size: 1.35rem;
}

.rhc-service-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: #2450d3;
}

.rhc-service-meta,
.rhc-service-footer {
    width: calc(100% + 36px);
    margin-top: auto;
    padding: 13px 18px;
    border-top: 1px solid #edf1f7;
    font-size: 0.82rem;
    color: #77839a;
}

.rhc-service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rhc-service-arrow,
.rhc-all-category-arrow {
    color: #2f6df6;
    font-size: 0.85rem;
}

.rhc-page-section {
    padding: 58px 0;
}

.rhc-page-section-soft {
    background:
        radial-gradient(circle at top left, rgba(36, 80, 211, 0.08), transparent 38%),
        radial-gradient(circle at top right, rgba(36, 80, 211, 0.06), transparent 32%),
        #f7f9fc;
}

.rhc-page-section-compact {
    background: #fff;
    padding-top: 28px;
    padding-bottom: 70px;
}

.rhc-section-intro {
    margin-bottom: 28px;
}

.rhc-section-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #151f31;
}

.rhc-section-subtitle {
    margin: 10px auto 0;
    max-width: 560px;
    font-size: 1rem;
    color: #687389;
}

.rhc-all-category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid #edf1f6;
    background: #fff;
    color: #20293a;
    box-shadow: 0 14px 34px rgba(15, 28, 56, 0.05);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rhc-all-category-card:hover {
    color: #2450d3;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: #dce7fa;
}

.rhc-all-category-name {
    font-size: 0.92rem;
    font-weight: 500;
}

@media (max-width: 1199.98px) {
    .rhc-home-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .rhc-landing-hero {
        padding: 82px 0 56px;
    }

    .rhc-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .rhc-landing-hero {
        padding: 72px 0 48px;
    }

    .rhc-search-box {
        flex-direction: column;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
    }

    .rhc-search-input {
        min-height: 54px;
    }

    .rhc-search-button {
        min-height: 52px;
        width: 100%;
    }

    .rhc-home-grid,
    .rhc-service-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 24px;
    }

    .rhc-page-section {
        padding: 44px 0;
    }

    .rhc-section-title {
        font-size: 1.7rem;
    }
}
