/* ═══════════════════════════════════════════════════════════
   Remote Hive — Homepage Featured Insights
   ✓ Mobile-first responsive (480 → 768 → 1024 → 1280)
   ✓ BEM class naming: rh-featuredinsights-*
   ✓ CSS custom properties for Customizer-driven colors
   ✓ GSAP-compatible animation hooks
   ✓ Typography scale: exact match to mandatory spec
   ✓ Marquee testimonials contained within sidebar column
   v7.6.0
   ═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ── */
.rh-featuredinsights {
    --rh-featuredinsights-accent: #2e8de6;
    --rh-featuredinsights-heading-color: #1d6fb3;
    --rh-featuredinsights-cta-bg: #2558d4;
    --rh-featuredinsights-card-accent: #2596be;
}

/* ── Section wrapper ── */
.rh-featuredinsights {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    padding-bottom: 48px;
}

/* ── Ambient glows ── */
.rh-featuredinsights-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}
.rh-featuredinsights-glow--1 {
    top: 8%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 150, 190, 0.07) 0%, transparent 70%);
    animation: rhFiGlow1 8s ease-in-out infinite;
}
.rh-featuredinsights-glow--2 {
    top: 50%;
    left: 5%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.06) 0%, transparent 70%);
    animation: rhFiGlow2 10s ease-in-out infinite;
    filter: blur(50px);
}
.rh-featuredinsights-glow--3 {
    bottom: 10%;
    right: 25%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(74, 143, 226, 0.05) 0%, transparent 70%);
    animation: rhFiGlow3 12s ease-in-out infinite;
    filter: blur(45px);
}
@keyframes rhFiGlow1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -20px) scale(1.1); }
}
@keyframes rhFiGlow2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-25px, 15px) scale(1.05); }
}
@keyframes rhFiGlow3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(15px, 25px) scale(1.08); }
}

/* ══════════════════════════════════════
   Main grid layout
   ══════════════════════════════════════ */
.rh-featuredinsights-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════
   LEFT COLUMN: Sidebar
   ★ KEY FIX: min-width:0 + overflow:hidden
     keeps marquee tracks inside grid column
   ══════════════════════════════════════ */
.rh-featuredinsights-sidebar {
    text-align: center;
    min-width: 0;
    overflow: hidden;
}

/* ── Mobile Small (below 480px) — Typography Spec ── */

/* Section Label — 12px */
.rh-featuredinsights-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #2a9d8f;
    margin-bottom: 14px;
}

/* H2 — 26px, Bold, 1.2 */
.rh-featuredinsights-heading {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--rh-featuredinsights-heading-color);
    margin: 0 0 10px 0;
}

/* Body — 15px, Regular, 1.6 */
.rh-featuredinsights-desc {
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 14px 0 28px 0;
}

/* Button — 15px */
.rh-featuredinsights-btn {
    display: inline-block;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--rh-featuredinsights-accent);
    border: none;
    border-radius: 7px;
    padding: 12px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 14px rgba(46, 141, 230, 0.25);
}
.rh-featuredinsights-btn:hover,
.rh-featuredinsights-btn:focus-visible {
    color: #fff;
    background: #1a7ad8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 141, 230, 0.35);
}

/* ══════════════════════════════════════
   Marquee Testimonials
   Row 1 → Left to Right
   Row 2 → Right to Left
   ══════════════════════════════════════ */
.rh-featuredinsights-testi {
    margin-top: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.rh-featuredinsights-testi__row {
    overflow: hidden;
    width: 100%;
}

.rh-featuredinsights-testi__track {
    display: flex;
    gap: 10px;
    width: max-content;
    will-change: transform;
}

/* Row 1: slides right (starts at -50%, ends at 0) */
.rh-featuredinsights-testi__row--ltr .rh-featuredinsights-testi__track {
    animation: rhFiMarqueeLTR 28s linear infinite;
}

/* Row 2: slides left (starts at 0, ends at -50%) */
.rh-featuredinsights-testi__row--rtl .rh-featuredinsights-testi__track {
    animation: rhFiMarqueeRTL 28s linear infinite;
}

@keyframes rhFiMarqueeLTR {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}
@keyframes rhFiMarqueeRTL {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Pause on hover */
.rh-featuredinsights-testi:hover .rh-featuredinsights-testi__track {
    animation-play-state: paused;
}

/* Individual testimonial card */
.rh-featuredinsights-testi__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8f9fb;
    border-radius: 14px;
    padding: 16px 14px 14px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    min-width: 200px;
    max-width: 200px;
    min-height: 130px;
    flex-shrink: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.rh-featuredinsights-testi__card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Small — 12px */
.rh-featuredinsights-testi__quote {
    font-size: 12px;
    font-weight: 500;
    color: #2a2a2a;
    line-height: 1.55;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rh-featuredinsights-testi__author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.rh-featuredinsights-testi__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    filter: grayscale(0.2);
}

.rh-featuredinsights-testi__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rh-featuredinsights-testi__name {
    font-size: 10.5px;
    font-weight: 600;
    color: #3a3a3a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rh-featuredinsights-testi__role {
    font-size: 9px;
    font-weight: 400;
    color: #8a8a8a;
    line-height: 1.3;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════
   RIGHT COLUMN: Bento card grid
   ══════════════════════════════════════ */
.rh-featuredinsights-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.rh-featuredinsights-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eaeff4;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.rh-featuredinsights-card:hover {
    border-color: color-mix(in srgb, var(--rh-featuredinsights-card-accent) 33%, transparent);
    box-shadow: 0 12px 36px color-mix(in srgb, var(--rh-featuredinsights-card-accent) 9%, transparent);
    transform: translateY(-4px);
}

.rh-featuredinsights-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.rh-featuredinsights-card__figure {
    position: relative;
    height: 160px;
    overflow: hidden;
    margin: 0;
}

.rh-featuredinsights-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.rh-featuredinsights-card:hover .rh-featuredinsights-card__img {
    transform: scale(1.08);
}

.rh-featuredinsights-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--rh-featuredinsights-card-accent) 9%, transparent) 100%);
    pointer-events: none;
}

.rh-featuredinsights-card__body {
    padding: 18px 28px 22px;
}

.rh-featuredinsights-card__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.rh-featuredinsights-card__badge-dot {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--rh-featuredinsights-card-accent) 9%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.rh-featuredinsights-card__badge-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--rh-featuredinsights-card-accent);
    position: absolute;
}

/* Caption — 14px spec but smaller for badge */
.rh-featuredinsights-card__badge-text {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rh-featuredinsights-card-accent);
}

/* H3 — 22px Mobile Small */
.rh-featuredinsights-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #1a2030;
    line-height: 1.2;
    margin: 0 0 10px 0;
}

/* Small — 12px */
.rh-featuredinsights-card__desc {
    font-size: 12px;
    color: #6b7a8d;
    line-height: 1.5;
    margin: 0;
}

/* ══════════════════════════════════════
   BOTTOM: Portfolio CTA banner
   ══════════════════════════════════════ */
.rh-featuredinsights-cta {
    background: var(--rh-featuredinsights-cta-bg);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    padding: 40px 24px;
    margin: 40px 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 28px;
}

.rh-featuredinsights-cta__doodle {
    position: absolute;
    pointer-events: none;
}
.rh-featuredinsights-cta__doodle--tr {
    top: -10px; right: -20px; width: 160px; height: 120px; opacity: 0.25;
}
.rh-featuredinsights-cta__doodle--bl {
    bottom: 5px; left: 10px; width: 70px; height: 50px; opacity: 0.12;
}

.rh-featuredinsights-cta__content {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}

/* H3 — 22px Mobile Small */
.rh-featuredinsights-cta__heading {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 12px 0;
}
.rh-featuredinsights-cta__highlight {
    position: relative;
    display: inline-block;
}
.rh-featuredinsights-cta__underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 8px;
}

/* Body — 15px */
.rh-featuredinsights-cta__desc {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.rh-featuredinsights-cta__right {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.rh-featuredinsights-cta__stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.rh-featuredinsights-cta__stat {
    text-align: center;
}

.rh-featuredinsights-cta__stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.rh-featuredinsights-cta__stat-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.rh-featuredinsights-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--rh-featuredinsights-cta-bg);
    background: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 14px 32px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.rh-featuredinsights-cta__btn:hover,
.rh-featuredinsights-cta__btn:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.rh-featuredinsights-cta__btn-arrow {
    transition: transform 0.3s ease;
}
.rh-featuredinsights-cta__btn:hover .rh-featuredinsights-cta__btn-arrow {
    transform: translateX(3px);
}

/* ══════════════════════════════════════
   GSAP reveal hooks
   ══════════════════════════════════════ */
.rh-featuredinsights--will-animate .rh-featuredinsights-sidebar,
.rh-featuredinsights--will-animate .rh-featuredinsights-card,
.rh-featuredinsights--will-animate .rh-featuredinsights-cta {
    opacity: 0;
    transform: translateY(30px);
}

/* ══════════════════════════════════════════════════════════
   Mobile Large — 480px to 767px
   H2: 30px | H3: 24px | Body: 16px | Label: 12px | Btn: 15px
   ══════════════════════════════════════════════════════════ */
@media (min-width: 480px) {
    .rh-featuredinsights-heading { font-size: 30px; }
    .rh-featuredinsights-desc { font-size: 16px; }

    .rh-featuredinsights-cards { grid-template-columns: 1fr 1fr; }
    .rh-featuredinsights-card__title { font-size: 16px; }

    .rh-featuredinsights-testi__card { min-width: 220px; max-width: 220px; }
    .rh-featuredinsights-testi__quote { font-size: 12px; }

    .rh-featuredinsights-cta__heading { font-size: 24px; }
}

/* ══════════════════════════════════════════════════════════
   Tablet — 768px to 1023px
   H2: 36px | H3: 28px | Body: 16px | Label: 13px
   ══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .rh-featuredinsights { padding-bottom: 60px; }
    .rh-featuredinsights-grid { padding: 60px 32px 0; gap: 48px; }

    .rh-featuredinsights-heading { font-size: 36px; }
    .rh-featuredinsights-label { font-size: 13px; }
    .rh-featuredinsights-desc { font-size: 16px; }

    .rh-featuredinsights-card__title { font-size: 18px; }
    .rh-featuredinsights-card__desc { font-size: 13px; }

    .rh-featuredinsights-glow--1 { width: 300px; height: 300px; }
    .rh-featuredinsights-glow--2 { width: 260px; height: 260px; }
    .rh-featuredinsights-glow--3 { width: 280px; height: 280px; }

    /* Testimonials tablet */
    .rh-featuredinsights-testi { margin-top: 36px; gap: 12px; }
    .rh-featuredinsights-testi__track { gap: 12px; }
    .rh-featuredinsights-testi__card {
        min-width: 240px; max-width: 240px;
        padding: 18px 16px 16px; border-radius: 16px;
    }
    .rh-featuredinsights-testi__quote { font-size: 13px; }
    .rh-featuredinsights-testi__avatar { width: 32px; height: 32px; }
    .rh-featuredinsights-testi__name { font-size: 11.5px; }
    .rh-featuredinsights-testi__role { font-size: 10px; }

    /* CTA tablet */
    .rh-featuredinsights-cta {
        border-radius: 18px; padding: 48px 40px;
        margin: 48px 32px 0; flex-direction: row; gap: 36px;
    }
    .rh-featuredinsights-cta__content { text-align: left; }
    .rh-featuredinsights-cta__heading { font-size: 28px; }
    .rh-featuredinsights-cta__desc { font-size: 16px; max-width: 480px; }
    .rh-featuredinsights-cta__right { align-items: flex-end; }
    .rh-featuredinsights-cta__stats { gap: 20px; }
    .rh-featuredinsights-cta__stat-num { font-size: 26px; }
    .rh-featuredinsights-cta__doodle--tr { top: -15px; right: 10px; width: 220px; height: 160px; }
    .rh-featuredinsights-cta__doodle--bl { bottom: 8px; left: 24px; width: 90px; height: 60px; }
}

/* ══════════════════════════════════════════════════════════
   Laptop — 1024px to 1279px
   H2: 42px | H3: 32px | Body: 17px | Label: 14px
   ★ Grid becomes 2-col: LEFT sidebar | RIGHT bento
   ══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .rh-featuredinsights { padding-bottom: 80px; }

    .rh-featuredinsights-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        padding: 80px 48px 0;
        align-items: start;
    }

    .rh-featuredinsights-sidebar {
        position: sticky;
        top: 100px;
        text-align: left;
        min-width: 0;
        overflow: hidden;
    }

    .rh-featuredinsights-heading { font-size: 42px; }
    .rh-featuredinsights-label { font-size: 14px; margin-bottom: 18px; }
    .rh-featuredinsights-desc { font-size: 17px; }
    .rh-featuredinsights-btn { font-size: 16px; padding: 13px 26px; }

    .rh-featuredinsights-card__title { font-size: 20px; }
    .rh-featuredinsights-card__desc { font-size: 14px; }

    .rh-featuredinsights-glow--1 { width: 380px; height: 380px; }
    .rh-featuredinsights-glow--2 { width: 300px; height: 300px; }
    .rh-featuredinsights-glow--3 { width: 340px; height: 340px; }

    /* Testimonials laptop — compact to fit sidebar */
    .rh-featuredinsights-testi { margin-top: 32px; gap: 10px; }
    .rh-featuredinsights-testi__track { gap: 10px; }
    .rh-featuredinsights-testi__card {
        min-width: 200px; max-width: 200px;
        padding: 14px 12px 12px; min-height: 120px;
    }
    .rh-featuredinsights-testi__quote { font-size: 11px; -webkit-line-clamp: 3; margin-bottom: 10px; }
    .rh-featuredinsights-testi__avatar { width: 26px; height: 26px; }
    .rh-featuredinsights-testi__name { font-size: 10px; }
    .rh-featuredinsights-testi__role { font-size: 8.5px; }

    /* CTA laptop */
    .rh-featuredinsights-cta {
        border-radius: 20px; padding: 52px 56px;
        margin: 50px 48px 0; max-width: 1304px;
        margin-left: auto; margin-right: auto; gap: 40px;
    }
    .rh-featuredinsights-cta__heading { font-size: 32px; }
    .rh-featuredinsights-cta__desc { font-size: 17px; max-width: 520px; }
    .rh-featuredinsights-cta__stats { gap: 24px; }
    .rh-featuredinsights-cta__stat-num { font-size: 28px; }
    .rh-featuredinsights-cta__doodle--tr { top: -20px; right: 20px; width: 280px; height: 200px; }
    .rh-featuredinsights-cta__doodle--bl { bottom: 10px; left: 30px; width: 100px; height: 70px; }
}

/* ══════════════════════════════════════════════════════════
   Desktop — 1280px and above
   H2: 48px Bold 1.2 | H3: 36px Semi Bold 1.2
   Body: 18px Regular 1.6 | Label: 14px | Button: 16px
   ══════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
    .rh-featuredinsights-heading { font-size: 48px; font-weight: 700; line-height: 1.2; }
    .rh-featuredinsights-label { font-size: 14px; }
    .rh-featuredinsights-desc { font-size: 18px; }
    .rh-featuredinsights-btn { font-size: 16px; }

    .rh-featuredinsights-card__title { font-size: 22px; font-weight: 600; line-height: 1.2; }
    .rh-featuredinsights-card__desc { font-size: 14px; }

    /* Testimonials desktop */
    .rh-featuredinsights-testi { margin-top: 36px; gap: 12px; }
    .rh-featuredinsights-testi__track { gap: 12px; }
    .rh-featuredinsights-testi__card {
        min-width: 220px; max-width: 220px;
        padding: 16px 14px 14px; min-height: 130px;
    }
    .rh-featuredinsights-testi__quote { font-size: 12px; -webkit-line-clamp: 4; margin-bottom: 12px; }
    .rh-featuredinsights-testi__avatar { width: 30px; height: 30px; }
    .rh-featuredinsights-testi__name { font-size: 11px; }
    .rh-featuredinsights-testi__role { font-size: 9px; }

    /* CTA desktop */
    .rh-featuredinsights-cta__heading { font-size: 36px; font-weight: 600; line-height: 1.2; }
    .rh-featuredinsights-cta__desc { font-size: 18px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .rh-featuredinsights-testi__track { animation-duration: 0s !important; }
    .rh-featuredinsights-glow { animation: none !important; }
}