/* =========================================================================
   Rjobs.net home — clean blue/white landing (matches the reference design).
   Scoped under .rj-home so it doesn't affect other pages.
   ========================================================================= */
.rj-home {
    --rj-blue: #2563eb;
    --rj-blue-600: #1d4ed8;
    --rj-blue-050: #eef4ff;
    --rj-ink: #0f172a;
    --rj-muted: #64748b;
    --rj-line: #e6e8ee;
    --rj-bg: #ffffff;
}

/* Calm the global background on the home page for a clean white look */
body:has(.rj-home) .blob-field,
body:has(.rj-home) .bg-noise,
body:has(.rj-home) .bg-mesh { display: none !important; }
body:has(.rj-home) { background: var(--rj-bg); }

.rj-home .container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== Hero ===== */
.rj-hero { position: relative; padding: calc(var(--nav-height, 72px) + 40px) 0 20px; overflow: hidden; }
.rj-hero-inner { max-width: 880px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }

.rj-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--rj-blue-050); color: var(--rj-blue);
    font-size: 0.82rem; font-weight: 600; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}

.rj-h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.08; font-weight: 800; color: var(--rj-ink); letter-spacing: -0.02em; margin: 0 0 18px; }
.rj-blue { color: var(--rj-blue); }

.rj-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--rj-muted); line-height: 1.6; max-width: 620px; margin: 0 auto 30px; }

/* Search bar */
.rj-search {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--rj-line); border-radius: 18px;
    box-shadow: 0 18px 50px -20px rgba(37, 99, 235, 0.28), 0 4px 12px rgba(16, 24, 40, 0.05);
    padding: 14px 14px 14px 18px; max-width: 820px; margin: 0 auto;
}
.rj-search-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: #0a66c2; color: #fff; display: flex; align-items: center; justify-content: center; }
.rj-search-field { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; }
.rj-search-label { font-size: 0.82rem; font-weight: 600; color: var(--rj-ink); }
.rj-search-input { border: none; outline: none; background: transparent; font: inherit; font-size: 0.98rem; color: var(--rj-ink); padding: 2px 0 0; width: 100%; }
.rj-search-input::placeholder { color: #9aa3b2; }
.rj-search-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
    background: var(--rj-blue); color: #fff; border: none; cursor: pointer;
    font-weight: 600; font-size: 1rem; padding: 15px 26px; border-radius: 12px;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.6); transition: background 0.15s, transform 0.05s;
}
.rj-search-btn:hover { background: var(--rj-blue-600); }
.rj-search-btn:active { transform: translateY(1px); }

.rj-secure { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--rj-muted); font-size: 0.86rem; margin: 18px 0 0; }

/* Decorative floating cards */
.rj-deco { position: absolute; top: 150px; width: 210px; z-index: 1; opacity: 0.9; }
.rj-deco--left { left: 20px; }
.rj-deco--right { right: 20px; }
.rj-deco-card { background: #fff; border: 1px solid var(--rj-line); border-radius: 16px; box-shadow: 0 20px 40px -24px rgba(16, 24, 40, 0.25); padding: 16px; }
.rj-deco-line { height: 9px; border-radius: 6px; background: #eef1f6; margin-bottom: 9px; }
.rj-deco-line.sm { width: 55%; }
.rj-deco-badge { position: absolute; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 10px 20px -8px rgba(37, 99, 235, 0.5); }
.rj-deco--left .rj-deco-badge { background: #0a66c2; right: -16px; bottom: -14px; }
.rj-deco--right .rj-deco-badge { background: var(--rj-blue); left: -16px; bottom: -14px; }
.rj-deco-title { font-size: 0.8rem; font-weight: 700; color: var(--rj-ink); display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.rj-deco-check { width: 18px; height: 18px; border-radius: 50%; background: #22c55e; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
@media (max-width: 1120px) { .rj-deco { display: none; } }

/* ===== Feature columns ===== */
.rj-features { padding: 46px 0 10px; }
.rj-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1080px; margin: 0 auto; }
.rj-feature { padding: 6px 26px; text-align: left; border-left: 1px solid var(--rj-line); }
.rj-feature:first-child { border-left: none; }
.rj-feature-icon { color: var(--rj-blue); margin-bottom: 14px; display: block; }
.rj-feature h3 { font-size: 1.02rem; font-weight: 700; color: var(--rj-ink); margin: 0 0 8px; }
.rj-feature p { font-size: 0.88rem; color: var(--rj-muted); line-height: 1.55; margin: 0; }
@media (max-width: 860px) { .rj-features-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; } .rj-feature { border-left: none; } }
@media (max-width: 480px) { .rj-features-grid { grid-template-columns: 1fr; } }

/* ===== Trusted ===== */
.rj-trusted { padding: 40px 0; text-align: center; }
.rj-trusted-title { font-size: 0.92rem; font-weight: 600; color: var(--rj-ink); margin: 0 0 22px; }
.rj-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 46px; }
.rj-logo { font-size: 1.25rem; font-weight: 700; color: #9aa3b2; letter-spacing: -0.01em; opacity: 0.85; }

/* ===== How it works ===== */
.rj-how { padding: 20px 0 70px; }
.rj-how-card { max-width: 1080px; margin: 0 auto; border: 1px solid var(--rj-line); border-radius: 24px; background: #fff; padding: 44px 34px; box-shadow: 0 18px 50px -30px rgba(16, 24, 40, 0.16); }
.rj-how-card h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--rj-ink); margin: 0 0 40px; }
.rj-steps { display: flex; align-items: flex-start; justify-content: center; gap: 8px; }
.rj-step { flex: 1; text-align: center; max-width: 220px; position: relative; }
.rj-step-icon { width: 66px; height: 66px; border-radius: 50%; background: var(--rj-blue-050); color: var(--rj-blue); display: inline-flex; align-items: center; justify-content: center; position: relative; margin-bottom: 16px; }
.rj-step-num { position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--rj-blue); color: #fff; font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; }
.rj-step h4 { font-size: 1rem; font-weight: 700; color: var(--rj-ink); margin: 0 0 6px; }
.rj-step p { font-size: 0.86rem; color: var(--rj-muted); line-height: 1.5; margin: 0; }
.rj-arrow { flex-shrink: 0; color: #cbd5e1; align-self: center; margin-top: -30px; }
@media (max-width: 820px) {
    .rj-steps { flex-direction: column; align-items: center; gap: 26px; }
    .rj-step { max-width: 340px; }
    .rj-arrow { transform: rotate(90deg); margin: 0; }
}

/* ===== Remove the golden brand on the home page — make everything blue ===== */
body:has(.rj-home) {
    --color-primary: #2563eb;
    --color-primary-alt: #1d4ed8;
    --color-on-primary: #ffffff;
    --gradient-brand: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-text: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
}
body:has(.rj-home) .gradient-text {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #2563eb;
}
/* Navbar CTA + any primary buttons → blue (not gold) on home */
body:has(.rj-home) .btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
body:has(.rj-home) .btn-primary:hover { background: #1d4ed8; }
