/* ═══════════════════════════════════════════════════════════════
   Blog & Post — Remote Job CI
   Inter · #14213d navy · #FFDE59 yellow
   ═══════════════════════════════════════════════════════════════ */

:root {
    --rj-ink:         #14213d;
    --rj-ink-soft:    #23344f;
    --rj-primary:     #FFDE59;
    --rj-primary-dk:  #e6c800;
    --rj-primary-bg:  #fffbea;
    --rj-gray:        #526276;
    --rj-gray-light:  #8a96a7;
    --rj-border:      #e2e6ec;
    --rj-bg:          #f8f9fb;
    --rj-white:       #ffffff;
    --rj-hover:       #f0f2f6;
    --rj-radius:      10px;
    --rj-radius-lg:   16px;
    --rj-font:        'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Fix GeneratePress flex/sidebar layout ──────────────────── */
.blog .site-content,
.single-post .site-content {
    display: block !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.blog #primary,
.single-post #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
}
.blog .widget-area,
.blog .is-right-sidebar,
.single-post .widget-area,
.single-post .is-right-sidebar  { display: none !important; }
.single-post .inside-article     { padding: 0 !important; margin: 0 !important; }
.single-post .entry-header,
.single-post .entry-footer,
.single-post .post-image          { display: none !important; }
.blog main, .single-post main     { padding: 0 !important; margin: 0 !important; }


/* ════════════════════════════════════════════════════════════════
   BLOG INDEX
   ════════════════════════════════════════════════════════════════ */

.rj-blog {
    font-family: var(--rj-font);
    color: var(--rj-ink);
    background: var(--rj-bg);
    min-height: 100vh;
    padding-bottom: 80px;
}
.rj-blog-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.rj-blog-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--rj-border);
    margin-bottom: 52px;
}
.rj-blog-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: var(--rj-primary);
    color: var(--rj-ink);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.rj-blog-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--rj-ink);
    margin: 0 0 12px;
    line-height: 1.12;
}
.rj-blog-hero > p {
    font-size: 17px;
    color: var(--rj-gray);
    max-width: 540px;
    margin: 0;
    line-height: 1.65;
}

/* Card grid */
.rj-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.rj-blog-grid > .rj-blog-card:first-child {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.rj-blog-grid > .rj-blog-card:first-child .rj-blog-card__media {
    border-radius: var(--rj-radius-lg) 0 0 var(--rj-radius-lg);
    aspect-ratio: unset;
    min-height: 280px;
}
.rj-blog-grid > .rj-blog-card:first-child .rj-blog-card__body { padding: 32px 36px; }
.rj-blog-grid > .rj-blog-card:first-child .rj-blog-card__body h2 { font-size: 22px; line-height: 1.25; }
.rj-blog-grid > .rj-blog-card:first-child .rj-blog-card__body > p { -webkit-line-clamp: 4; font-size: 15px; }

.rj-blog-card {
    background: var(--rj-white);
    border: 1px solid var(--rj-border);
    border-radius: var(--rj-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.rj-blog-card:hover {
    box-shadow: 0 8px 32px rgba(20,33,61,.09);
    transform: translateY(-3px);
}
.rj-blog-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--rj-primary-bg);
}
.rj-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.rj-blog-card:hover .rj-blog-card__media img { transform: scale(1.04); }
.rj-blog-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 160px;
    font-size: 44px;
    font-weight: 800;
    color: var(--rj-ink);
    background: var(--rj-primary-bg);
}
.rj-blog-card__body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.rj-blog-card__meta {
    font-size: 12px;
    color: var(--rj-gray-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    margin: 0;
}
.rj-blog-card__body h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--rj-ink);
}
.rj-blog-card__body h2 a { color: inherit; text-decoration: none; }
.rj-blog-card__body h2 a:hover { text-decoration: underline; }
.rj-blog-card__body > p {
    font-size: 14px;
    color: var(--rj-gray);
    line-height: 1.55;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rj-blog-card__cta {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rj-ink);
    background: var(--rj-primary);
    padding: 7px 15px;
    border-radius: 7px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.15s;
}
.rj-blog-card__cta:hover { background: var(--rj-primary-dk); }

/* Pagination */
.rj-blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.rj-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--rj-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rj-ink);
    background: var(--rj-white);
    text-decoration: none;
    transition: background 0.15s;
}
.rj-blog-pagination .page-numbers:hover { background: var(--rj-hover); }
.rj-blog-pagination .page-numbers.current {
    background: var(--rj-primary);
    border-color: var(--rj-primary);
    font-weight: 700;
}
.rj-blog-empty {
    padding: 80px 0;
    text-align: center;
    color: var(--rj-gray);
    font-size: 16px;
}


/* ════════════════════════════════════════════════════════════════
   SINGLE POST
   ════════════════════════════════════════════════════════════════ */

.rj-post {
    font-family: var(--rj-font);
    color: var(--rj-ink);
    background: var(--rj-white);
    min-height: 100vh;
}

/* Reading column */
.rj-post-inner {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 24px;
}
.rj-post-body { padding-bottom: 12px; }

/* Progress bar */
.rj-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
}
.rj-progress__bar {
    height: 100%;
    width: 0;
    background: var(--rj-primary);
    transition: width 0.12s linear;
}

/* ── Hero ── yellow-tint block */
.rj-post-hero {
    background: var(--rj-primary-bg);
    border-bottom: 2px solid var(--rj-primary);
    padding: 48px 0 44px;
    margin-bottom: 40px;
}

.rj-post-breadcrumbs {
    font-size: 13px;
    color: var(--rj-gray-light);
    margin-bottom: 20px;
    line-height: 1.4;
}
.rj-post-breadcrumbs a {
    color: var(--rj-gray);
    text-decoration: none;
}
.rj-post-breadcrumbs a:hover { text-decoration: underline; }
.rj-post-breadcrumbs .sep { margin: 0 5px; color: var(--rj-border); }

.rj-post-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: var(--rj-primary);
    color: var(--rj-ink);
    padding: 4px 11px;
    border-radius: 4px;
    margin-bottom: 18px;
    text-decoration: none;
    transition: background 0.15s;
}
.rj-post-eyebrow:hover { background: var(--rj-primary-dk); }

.rj-post-title {
    font-size: clamp(26px, 3.8vw, 44px);
    font-weight: 800;
    line-height: 1.13;
    color: var(--rj-ink);
    margin: 0 0 28px;
    letter-spacing: -0.02em;
}

/* Byline row */
.rj-post-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(20,33,61,.1);
}
.rj-post-byline__author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rj-post-byline__avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    border: 2px solid var(--rj-primary);
}
.rj-post-byline__info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.rj-post-byline__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--rj-ink);
    text-decoration: none;
}
.rj-post-byline__name:hover { text-decoration: underline; }
.rj-post-byline__role {
    font-size: 12px;
    color: var(--rj-gray);
}
.rj-post-byline__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.rj-post-byline__item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--rj-gray);
}
.rj-post-byline__item svg { color: var(--rj-gray-light); flex-shrink: 0; }
.rj-post-byline__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--rj-border);
    flex-shrink: 0;
}

/* ── TOC ── */
.rj-post-toc {
    background: var(--rj-bg);
    border: 1px solid var(--rj-border);
    border-radius: var(--rj-radius-lg);
    overflow: hidden;
    margin-bottom: 36px;
}
.rj-post-toc__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--rj-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--rj-ink);
    text-align: left;
    letter-spacing: 0.01em;
}
.rj-post-toc__toggle:hover { background: var(--rj-hover); }
.rj-post-toc__toggle > svg:first-child { color: var(--rj-gray-light); flex-shrink: 0; }
.rj-post-toc__chevron {
    margin-left: auto;
    color: var(--rj-gray-light);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.rj-post-toc__list {
    margin: 0;
    padding: 4px 20px 16px 20px;
    list-style: none;
    counter-reset: toc;
    border-top: 1px solid var(--rj-border);
}
.rj-post-toc__list li {
    counter-increment: toc;
    margin: 0;
    padding: 0;
}
.rj-post-toc__list li.rj-toc-sub {
    padding-left: 20px;
}
.rj-post-toc__list li.rj-toc-sub::before { display: none; }
.rj-post-toc__list a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    color: var(--rj-gray);
    text-decoration: none;
    line-height: 1.4;
    border-bottom: 1px solid transparent;
    transition: color 0.15s;
}
.rj-post-toc__list li:not(.rj-toc-sub) > a::before {
    content: counter(toc) ".";
    font-size: 12px;
    font-weight: 700;
    color: var(--rj-primary-dk);
    flex-shrink: 0;
    width: 16px;
}
.rj-post-toc__list a:hover,
.rj-post-toc__list a.is-active {
    color: var(--rj-ink);
}
.rj-post-toc__list a.is-active {
    font-weight: 600;
}
.rj-post-toc__list a.is-active::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rj-primary);
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
}

/* ── Article content ── */
.rj-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--rj-ink);
    padding-bottom: 16px;
}
.rj-post-content > *:first-child { margin-top: 0; }

.rj-post-content h2 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    line-height: 1.22;
    margin: 2.4em 0 0.6em;
    color: var(--rj-ink);
    letter-spacing: -0.02em;
    padding-top: 8px;
}
.rj-post-content h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.8em 0 0.5em;
    color: var(--rj-ink);
}
.rj-post-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 1.5em 0 0.4em;
}
.rj-post-content p { margin: 0 0 1.3em; }

.rj-post-content a {
    color: var(--rj-ink);
    text-decoration: underline;
    text-decoration-color: var(--rj-primary-dk);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s;
}
.rj-post-content a:hover { text-decoration-color: var(--rj-ink); }

.rj-post-content ul,
.rj-post-content ol {
    margin: 0 0 1.3em;
    padding-left: 1.5em;
}
.rj-post-content li { margin-bottom: 0.5em; }
.rj-post-content ul li::marker { color: var(--rj-primary-dk); }

.rj-post-content blockquote {
    margin: 2em 0;
    padding: 20px 24px 20px 28px;
    border-left: 4px solid var(--rj-primary);
    background: var(--rj-primary-bg);
    border-radius: 0 var(--rj-radius) var(--rj-radius) 0;
    font-style: italic;
    color: var(--rj-ink-soft);
}
.rj-post-content blockquote p:last-child { margin-bottom: 0; }

.rj-post-content code {
    font-size: 0.87em;
    background: #eef0f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "SFMono-Regular", Consolas, monospace;
}
.rj-post-content pre {
    background: var(--rj-ink);
    color: #e2e6ec;
    padding: 22px 26px;
    border-radius: var(--rj-radius);
    overflow-x: auto;
    font-size: 14px;
    margin: 1.6em 0;
    line-height: 1.6;
}
.rj-post-content pre code { background: none; padding: 0; color: inherit; }

.rj-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--rj-radius);
    display: block;
    margin: 1.5em auto;
}
.rj-post-content figure { margin: 2em 0; }
.rj-post-content figcaption { font-size: 13px; color: var(--rj-gray-light); text-align: center; margin-top: 8px; }

.rj-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: 15px;
    border-radius: var(--rj-radius);
    overflow: hidden;
    border: 1px solid var(--rj-border);
}
.rj-post-content th {
    background: var(--rj-ink);
    color: var(--rj-white);
    padding: 11px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
}
.rj-post-content td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--rj-border);
    vertical-align: top;
}
.rj-post-content tr:last-child td { border-bottom: none; }
.rj-post-content tr:nth-child(even) td { background: var(--rj-bg); }

/* Category tags */
.rj-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 28px 0 48px;
    border-top: 1px solid var(--rj-border);
    margin-top: 12px;
}
.rj-post-tags__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--rj-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 4px;
}
.rj-post-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 13px;
    background: var(--rj-primary-bg);
    color: var(--rj-ink);
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255,222,89,.5);
    transition: background 0.15s;
}
.rj-post-tag:hover { background: var(--rj-primary); }

/* ── Author card — navy block ── */
.rj-post-author {
    background: var(--rj-ink);
    padding: 60px 0;
}
.rj-post-author__inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.rj-post-author__avatar-wrap { flex-shrink: 0; }
.rj-post-author__avatar {
    width: 88px !important;
    height: 88px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
    border: 3px solid rgba(255,222,89,.35);
}
.rj-post-author__body { flex: 1; min-width: 0; }
.rj-post-author__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,.4);
    margin: 0 0 6px;
}
.rj-post-author__name {
    display: block;
    font-size: 21px;
    font-weight: 800;
    color: var(--rj-primary);
    margin-bottom: 3px;
    letter-spacing: -0.02em;
}
.rj-post-author__role {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    font-weight: 500;
    margin: 0 0 16px;
}
.rj-post-author__bio {
    font-size: 14px;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    margin: 0 0 22px;
    max-width: 520px;
}
.rj-post-author__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.rj-post-author__btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.06);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rj-post-author__btn:hover {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.35);
    color: #fff;
}
.rj-post-author__btn--primary {
    background: var(--rj-primary);
    border-color: var(--rj-primary);
    color: var(--rj-ink);
}
.rj-post-author__btn--primary:hover {
    background: var(--rj-primary-dk);
    border-color: var(--rj-primary-dk);
    color: var(--rj-ink);
}

/* ── Trust bar ── */
.rj-post-trust {
    background: var(--rj-bg);
    border-top: 1px solid var(--rj-border);
    padding: 18px 0;
}
.rj-post-trust__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    align-items: center;
}
.rj-post-trust__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--rj-gray);
}
.rj-post-trust__item svg { color: var(--rj-gray-light); flex-shrink: 0; }
.rj-post-trust__item strong { color: var(--rj-ink); font-weight: 600; }


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
    .rj-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .rj-blog-grid > .rj-blog-card:first-child {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }
    .rj-blog-grid > .rj-blog-card:first-child .rj-blog-card__media {
        border-radius: var(--rj-radius-lg) var(--rj-radius-lg) 0 0;
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    .rj-blog-hero { padding: 40px 0 28px; }
    .rj-blog-grid,
    .rj-blog-grid > .rj-blog-card:first-child {
        grid-template-columns: 1fr;
        grid-column: span 1;
    }

    .rj-post-hero { padding: 32px 0 28px; }
    .rj-post-title { font-size: 26px; }
    .rj-post-byline { gap: 12px; }
    .rj-post-byline__dot { display: none; }
    .rj-post-byline__meta { gap: 8px; }

    .rj-post-content { font-size: 16px; line-height: 1.72; }

    .rj-post-author { padding: 40px 0; }
    .rj-post-author__inner { flex-direction: column; gap: 16px; }
    .rj-post-author__avatar { width: 64px !important; height: 64px !important; }
    .rj-post-author__name { font-size: 18px; }
    .rj-post-author__bio { max-width: 100%; }

    .rj-post-trust__grid { gap: 10px 20px; }
}
