/*
 * valn-reviews-grid.css — v1.5
 * Reviews page (/reviews/, post 16649).
 * v1.3: gap fix (row padding), Poppins H1 56-64px, gold small-caps eyebrow,
 *        40px avatars w/ overflow circle, stat scores 44px, hero height -20%.
 * v1.4: eyebrow navy + gold bar, CTA mid-grid, remove "credit pull" copy.
 * v1.5: curated band (1.15fr/1fr, 360px photo, Source Serif 4 quotes),
 *        archive divider "All N reviews".
 * Enqueued by valn-reviews-grid.php mu-plugin, filemtime-versioned.
 */

/* ── Prevent horizontal scroll from full-bleed breakout ──────────────────────── */
body { overflow-x: hidden; }

/* ── Zero Divi default section padding so hero sits flush against header ─────── */
/* Targets our content section (et_pb_section_0) without touching tb_* templates */
.et_pb_section_0:not([class*="_tb"]) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* Belt-and-suspenders: also target via page post ID */
#post-16649 .et_pb_section:first-of-type {
    padding-top: 0 !important;
}
/* Kill Divi's default row padding (padding:30px 0 on .et_pb_row) — confirmed gap source */
#post-16649 .et_pb_row_0.et_pb_row {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ── Box model reset ─────────────────────────────────────────────────────────── */
.valn-rg-hero *,    .valn-rg-hero *::before,    .valn-rg-hero *::after,
.valn-rg-section *, .valn-rg-section *::before,  .valn-rg-section *::after {
    box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * HERO — v1.2: light background, left-aligned two-column layout
 * (replaces dark centered band; intentionally different from VU pattern)
 * ───────────────────────────────────────────────────────────────────────────── */
.valn-rg-hero {
    background: #F7F9FC;
    color: #071F3F;
    /* Full-bleed breakout from Divi row max-width (~1080px) */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 0;
    padding: 44px 28px 48px; /* v1.3: ~20% height reduction */
    border-bottom: 1px solid #DDE6EF;
}

.valn-rg-hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: center;
}

/* ── Left column ─────────────────────────────────────────────────────────────── */
/* v1.4: navy text small-caps, gold bar accent to the left */
.valn-rg-hero-eyebrow {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    font-variant: small-caps;
    text-transform: uppercase;
    color: #071F3F;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

/* Gold decorative bar — accent, not text color */
.valn-rg-hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 3px;
    background: #FFB800;
    border-radius: 2px;
    flex-shrink: 0;
}

/* !important guards Divi body_header_size dynamic CSS */
/* v1.3: Poppins (site heading font), 56-64px desktop, tighter line-height */
.valn-rg-hero-h1 {
    font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
    font-size: clamp(36px, 5.5vw, 62px) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em;
    color: #071F3F !important;
    margin: 0 0 18px;
}

/* v1.3: 18-19px, ~46ch */
.valn-rg-hero-sub {
    font-size: 18px;
    line-height: 1.58;
    color: #4B5E7A;
    margin: 0 0 28px;
    max-width: 46ch;
}

.valn-rg-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Right column: stats panel ───────────────────────────────────────────────── */
.valn-rg-hero-panel {
    background: #ffffff;
    border: 1px solid #D0DCE8;
    border-radius: 14px;
    padding: 26px 22px 20px;
    box-shadow: 0 4px 24px rgba(7,31,63,0.07);
}

.valn-rg-hero-stat {
    padding: 10px 0;
}

.valn-rg-hero-stat-score {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 44px; /* v1.3: 40px+ */
    font-weight: 900;
    color: #071F3F;
    line-height: 1;
    margin-bottom: 3px;
}

.valn-rg-hero-stat-stars {
    color: #FFB800;
    font-size: 15px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 3px;
}

.valn-rg-hero-stat-label {
    font-size: 11px;
    color: #6B7C93;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Thin gold rule between stats */
.valn-rg-hero-rule {
    border: none;
    border-top: 1px solid #FFB800;
    opacity: 0.35;
    margin: 6px 0;
}

/* Avatar cluster inside panel — v1.3: 40px circles, 4+overflow */
.valn-rg-hero-avatars {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8eef5;
}

.valn-rg-hero-avatar-stack {
    display: flex;
    align-items: center;
}

.valn-rg-hero-avatar-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    background: #0B2545;
    margin-left: -10px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px #D0DCE8;
}

.valn-rg-hero-avatar-item:first-child { margin-left: 0; }

.valn-rg-hero-avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overflow badge: "+28" circle */
.valn-rg-hero-avatar-overflow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0B2545;
    color: #ffffff;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    margin-left: -10px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px #D0DCE8;
    letter-spacing: 0;
}

.valn-rg-hero-avatar-label {
    font-size: 11px;
    font-weight: 600;
    color: #6B7C93;
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

/* ── Google badge (light background variant) ─────────────────────────────────── */
.valn-rg-google-badge {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(7,31,63,0.04);
    border: 1px solid rgba(7,31,63,0.12);
    color: #4B5E7A;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* ── Reviews section wrapper ─────────────────────────────────────────────────── */
.valn-rg-section {
    background: #F7F9FC;   /* same as hero — seamless continuation */
    padding: 0 28px 48px;
}

/* ── CTA band ─────────────────────────────────────────────────────────────────── */
.valn-rg-cta-band {
    background: #071F3F;
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 1200px;
    margin: 32px auto 28px;
}

.valn-rg-cta-band--bottom {
    margin-top: 28px;
    margin-bottom: 0;
}

.valn-rg-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.valn-rg-cta-text {
    flex: 1;
    min-width: 200px;
}

.valn-rg-cta-hl {
    display: block;
    color: #ffffff;
    font-family: 'Arimo', Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.valn-rg-cta-sub {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* ── CTA button (shared: hero left col + CTA bands) ──────────────────────────── */
.valn-rg-cta-btn,
.valn-rg-cta-btn:link,
.valn-rg-cta-btn:visited {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: #FFB800;
    color: #071F3F;
    font-family: 'Arimo', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    border: none;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
}

.valn-rg-cta-btn:hover,
.valn-rg-cta-btn:focus {
    background: #E6A800;
    color: #071F3F;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(255,184,0,0.32);
}

/* ── Featured card ────────────────────────────────────────────────────────────── */
.valn-rg-featured-wrap {
    max-width: 1200px;
    margin: 0 auto 24px;
}

.valn-rg-featured-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(7,31,63,0.09);
    margin-bottom: 16px;
}

.valn-rg-featured-card:last-child { margin-bottom: 0; }

.valn-rg-featured-photo {
    overflow: hidden;
    background: #e4eaf2;
    min-height: 280px;
}

.valn-rg-featured-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.valn-rg-featured-body {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.valn-rg-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,184,0,0.10);
    border: 1px solid rgba(255,184,0,0.28);
    color: #071F3F;
    padding: 4px 11px;
    border-radius: 5px;
    font-family: 'Arimo', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
    align-self: flex-start;
}

.valn-rg-featured-body .valn-rg-stars { margin-bottom: 14px; }
.valn-rg-featured-body .valn-rg-star  { width: 20px; height: 20px; }

.valn-rg-featured-text {
    flex: 1;
    margin-bottom: 20px;
}

.valn-rg-featured-text p {
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    font-style: italic;
    margin: 0 0 12px;
}

.valn-rg-featured-text p:last-child { margin-bottom: 0; }

.valn-rg-featured-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #e8eef5;
    flex-wrap: wrap;
}

.valn-rg-featured-author-text { flex: 1; min-width: 0; }

.valn-rg-featured-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* ── Shared avatar circle ────────────────────────────────────────────────────── */
.valn-rg-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #0B2545;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valn-rg-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.valn-rg-avatar-initial {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    font-family: 'Arimo', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ── Shared star row ─────────────────────────────────────────────────────────── */
.valn-rg-stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.valn-rg-star {
    width: 16px;
    height: 16px;
    fill: #FFB800;
}

/* ── Shared source badge (card Google link) ──────────────────────────────────── */
.valn-rg-source-badge,
.valn-rg-source-badge:link,
.valn-rg-source-badge:visited {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #EBF4FF;
    color: #005FA3 !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: background 0.15s ease;
    border-bottom: none !important;
    box-shadow: none !important;
}

.valn-rg-source-badge:hover,
.valn-rg-source-badge:focus {
    background: #D6EAFF;
    color: #004D8A !important;
    text-decoration: none !important;
}

/* ── Google colored logo letters (shared) ────────────────────────────────────── */
.valn-rg-gbadge-logo { font-weight: 800; font-size: 11px; letter-spacing: 0.01em; line-height: 1; }
.valn-rg-gbadge-logo .g1 { color: #4285F4; }
.valn-rg-gbadge-logo .g2 { color: #EA4335; }
.valn-rg-gbadge-logo .g3 { color: #FBBC05; }
.valn-rg-gbadge-logo .g4 { color: #4285F4; }
.valn-rg-gbadge-logo .g5 { color: #34A853; }
.valn-rg-gbadge-logo .g6 { color: #EA4335; }

/* ── Grid container: CSS columns masonry ─────────────────────────────────────── */
.valn-rg-grid {
    column-count: 3;
    column-gap: 20px;
    margin: 0 auto;
    padding: 4px 0 8px;
    max-width: 1200px;
}

/* ── Card ─────────────────────────────────────────────────────────────────────── */
.valn-rg-card {
    break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    margin-bottom: 20px;
}

/* learn-archive treatment: 1px #e8eef5 border, 10px radius, subtle shadow */
/* Visible on #F7F9FC section background (white cards pop off light blue-gray) */
.valn-rg-card-inner {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(7,31,63,0.07);
    padding: 18px 18px 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.valn-rg-card:hover .valn-rg-card-inner {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(7,31,63,0.11);
}

/* ── Card header ─────────────────────────────────────────────────────────────── */
.valn-rg-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.valn-rg-meta { flex: 1; min-width: 0; }

.valn-rg-name {
    font-family: 'Arimo', Arial, sans-serif;
    font-size: 15px !important;
    font-weight: 700;
    color: #071F3F;
    margin: 0 0 5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Card right (source badge + date) ───────────────────────────────────────── */
.valn-rg-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
    padding-top: 1px;
}

.valn-rg-date {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    display: block;
}

/* ── Card body / expander ────────────────────────────────────────────────────── */
.valn-rg-body { position: relative; }

.valn-rg-text { font-size: 14px; line-height: 1.65; position: relative; }

.valn-rg-text p { margin: 0 0 8px; color: #333; font-size: 14px; line-height: 1.65; }
.valn-rg-text p:last-child { margin-bottom: 0; }

.valn-rg-body--clamped .valn-rg-text { max-height: 11.55em; overflow: hidden; }

.valn-rg-body--clamped .valn-rg-text::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}

.valn-rg-body--expanded .valn-rg-text  { max-height: none !important; overflow: visible !important; }
.valn-rg-body--expanded .valn-rg-text::after { display: none; }

.valn-rg-expand-btn {
    display: block;
    margin-top: 8px;
    background: none;
    border: none;
    border-bottom: none;
    padding: 0;
    color: #0078D4;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

.valn-rg-expand-btn:hover { color: #005FA3; }
.valn-rg-expand-btn:focus-visible { outline: 2px solid #0078D4; outline-offset: 2px; border-radius: 3px; }

/* ── Responsive ───────────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .valn-rg-hero-inner { grid-template-columns: 1fr 280px; gap: 32px; }
    .valn-rg-grid { column-count: 2; }
}

@media (max-width: 760px) {
    /* Hero: stack text above panel, full-width panel */
    .valn-rg-hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .valn-rg-hero-h1 { font-size: 36px !important; letter-spacing: -0.01em; }
    .valn-rg-hero-panel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        padding: 16px 14px;
        width: 100%;
    }
    .valn-rg-hero-stat { padding: 8px 4px; text-align: center; }
    .valn-rg-hero-stat-score { font-size: 32px; }
    .valn-rg-hero-rule { display: none; }
    .valn-rg-hero-avatars { display: none; }
    .valn-rg-featured-card { grid-template-columns: 1fr; }
    .valn-rg-featured-photo { height: 240px; min-height: 0; }
    .valn-rg-featured-body { padding: 20px 18px 18px; }
}

@media (max-width: 640px) {
    .valn-rg-hero { padding: 32px 20px 36px; }
    .valn-rg-hero-sub { max-width: 100%; font-size: 16px; }
    .valn-rg-section { padding: 0 16px 32px; }
    .valn-rg-cta-band { padding: 18px 16px; border-radius: 10px; margin: 24px auto 20px; }
    .valn-rg-cta-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .valn-rg-cta-btn { width: 100%; justify-content: center; }
    .valn-rg-hero-actions { flex-direction: column; gap: 10px; align-items: flex-start; }
}

@media (max-width: 580px) {
    .valn-rg-grid { column-count: 1; column-gap: 0; }
    .valn-rg-card-inner { padding: 14px 14px 12px; }
}

/* ─────────────────────────────────────────────────────────────────────────────
 * CURATED BAND (v1.5) — mirrors homepage "Hear from veterans" section
 * Left col: Kayla Lee photo + quote. Right col: 3 compact serif stack cards.
 * ───────────────────────────────────────────────────────────────────────────── */
.valn-rg-curated-band {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 22px;
    max-width: 1200px;
    margin: 32px auto 0;
}

/* ── Featured card (left column) ─────────────────────────────────────────────── */
.valn-rg-curated-featured {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(7,31,63,0.08);
    display: flex;
    flex-direction: column;
}

.valn-rg-curated-photo {
    width: 100%;
    /* no fixed height — image renders at natural aspect ratio, no crop */
    background: #e4eaf2;
    flex-shrink: 0;
}

.valn-rg-curated-photo img {
    width: 100%;
    height: auto;   /* natural ratio — no object-fit crop */
    display: block;
}

.valn-rg-curated-featured-body {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.valn-rg-curated-featured-body .valn-rg-stars { margin-bottom: 10px; }
.valn-rg-curated-featured-body .valn-rg-star  { width: 16px; height: 16px; }

.valn-rg-curated-featured-quote {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.62;
    color: #1D2B3A;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    flex: 1;
}

.valn-rg-curated-featured-quote p { margin: 0; }

.valn-rg-curated-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #e8eef5;
    margin-top: auto;
}

.valn-rg-curated-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0B2545;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Arimo', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.valn-rg-curated-author-text .valn-rg-name { margin-bottom: 2px; }

/* ── Stack (right column: 3 compact serif cards) ─────────────────────────────── */
.valn-rg-curated-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.valn-rg-stack-card {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 11px;
    padding: 14px 18px;
    box-shadow: 0 1px 4px rgba(7,31,63,0.06);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.valn-rg-stack-stars { margin-bottom: 8px; }
.valn-rg-stack-stars .valn-rg-star { width: 13px; height: 13px; }

.valn-rg-stack-quote {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 14.5px;
    font-style: italic;
    line-height: 1.62;
    color: #1D2B3A;
    margin: 0 0 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.valn-rg-stack-author {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 10px;
    border-top: 1px solid #f0f4f8;
    margin-top: auto;
}

.valn-rg-stack-avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0B2545;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Arimo', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.valn-rg-stack-name {
    font-family: 'Arimo', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #071F3F;
    line-height: 1.2;
}

/* ── Archive divider — "All N reviews" ───────────────────────────────────────── */
.valn-rg-archive-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1200px;
    margin: 32px auto 24px;
    padding: 0 4px;
}

.valn-rg-archive-divider-line {
    flex: 1;
    height: 2px;
    background: #FFB800;
    opacity: 0.28;
    border-radius: 1px;
}

.valn-rg-archive-divider-label {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6B7C93;
    white-space: nowrap;
}

/* ── Curated band responsive ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .valn-rg-curated-band { grid-template-columns: 1fr; }
    .valn-rg-stack-quote { -webkit-line-clamp: 3; }
}
