/* ═══════════════════════════════════════════════════════
   RECRUITEE JOBS — List view
═══════════════════════════════════════════════════════ */

.rjobs-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    color: #333;
}

/* ── Filter bar ──────────────────────────────────────── */
.rjobs-filterbar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.rjobs-lang-wrap select {
    padding: 8px 36px 8px 14px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 130px;
}

.rjobs-lang-wrap select:focus {
    outline: 2px solid #7B3FA0;
    outline-offset: 1px;
}

.rjobs-meta-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.rjobs-share {
    color: #7B3FA0;
    text-decoration: none;
    font-size: 14px;
}
.rjobs-share:hover { text-decoration: underline; }

/* ── Grid ────────────────────────────────────────────── */
.rjobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 680px) {
    .rjobs-grid { grid-template-columns: 1fr; }
}

/* ── Card ────────────────────────────────────────────── */
.rjobs-card {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.15s ease;
}
.rjobs-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.rjobs-card.rjobs-hidden { display: none; }

.rjobs-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.rjobs-title {
    color: #7B3FA0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.35;
    flex: 1;
}
.rjobs-title:hover { text-decoration: underline; color: #6a3389; }

.rjobs-btn {
    flex-shrink: 0;
    background: #7B3FA0;
    color: #fff !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s;
    align-self: flex-start;
    display: inline-block;
}
.rjobs-btn:hover { background: #6a3389; }

.rjobs-card-meta { display: flex; flex-direction: column; gap: 6px; }

.rjobs-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.rjobs-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    color: #444;
    line-height: 1.4;
}
.rjobs-meta-item svg { flex-shrink: 0; }

.rjobs-extra-loc { color: #7B3FA0; font-size: 13.5px; margin-left: 2px; }


/* ═══════════════════════════════════════════════════════
   RECRUITEE JOBS — Detail view
═══════════════════════════════════════════════════════ */

.rjobs-detail-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #333;
    max-width: 100%;
}

/* ── Full-width breakout ─────────────────────────────── */
.rjobs-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ── Hero ────────────────────────────────────────────── */
.rjobs-hero {
    position: relative;
    background-color: #2a2a3e;
    background-size: cover;
    background-position: center;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* No overlay by default */
.rjobs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

/* Gradient ONLY when a solid colour is the background (makes white text readable) */
.rjobs-hero-has-color::before {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.20) 55%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

/* Image mode: purely the photo, zero overlay */
.rjobs-hero-has-image::before {
    background: transparent;
}

.rjobs-hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 28px 48px 36px;
    /* No extra background — ::before is the only overlay */
}

.rjobs-back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 18px;
    transition: color 0.15s;
}
.rjobs-back-link:hover { color: #fff; }

.rjobs-hero-title {
    color: #ffffff !important;
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.2;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.rjobs-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    margin-bottom: 0;
}

.rjobs-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13.5px;
}
.rjobs-hero-meta-item svg { flex-shrink: 0; }

.rjobs-hero-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    margin: 10px 0 0;
    font-style: italic;
}

@media (max-width: 600px) {
    .rjobs-hero-overlay { padding: 24px 20px 28px; }
    .rjobs-hero-meta    { gap: 6px 14px; }
}

/* ── Tab navigation ──────────────────────────────────── */
.rjobs-tab-nav {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid #e5e5e5;
    padding: 0 48px;
    background: #fff;
}

.rjobs-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    font-family: inherit;
}

.rjobs-tab:hover { color: #333; }

.rjobs-tab-active {
    color: #222;
    border-bottom-color: #222;
}

.rjobs-tab-apply-btn {
    background: #7B3FA0;
    color: #fff !important;
    border-radius: 6px;
    padding: 10px 22px;
    margin-left: 8px;
    margin-bottom: 2px;
    border-bottom-color: transparent !important;
}
.rjobs-tab-apply-btn:hover { background: #6a3389; color: #fff; }

@media (max-width: 600px) {
    .rjobs-tab-nav { padding: 0 16px; }
}

/* ── Tab panels ──────────────────────────────────────── */
.rjobs-tab-panel { }
.rjobs-tab-panel-hidden { display: none; }

/* ── Detail body (two columns) ───────────────────────── */
.rjobs-detail-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding: 48px 48px 64px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 900px) {
    .rjobs-detail-body {
        grid-template-columns: 1fr;
        padding: 32px 24px 48px;
    }
    .rjobs-detail-sidebar { order: -1; }
}

/* ── Description content ─────────────────────────────── */
.rjobs-detail-content {
    min-width: 0; /* prevents grid blowout from long content */
}

.rjobs-description {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    overflow-wrap: break-word;
    word-break: break-word;
}

.rjobs-description h1,
.rjobs-description h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.rjobs-description h3,
.rjobs-description h4,
.rjobs-description strong { font-weight: 700; }

.rjobs-description h3,
.rjobs-description h4 {
    font-size: 16px;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #222;
}

.rjobs-description p { margin: 0 0 14px; }

.rjobs-description ul,
.rjobs-description ol {
    padding-left: 22px;
    margin: 0 0 16px;
}

.rjobs-description li { margin-bottom: 6px; }

.rjobs-description a { color: #7B3FA0; word-break: break-all; }
.rjobs-description a:hover { text-decoration: underline; }

.rjobs-description img  { max-width: 100%; height: auto; display: block; }
.rjobs-description table { max-width: 100%; table-layout: fixed; width: 100%; border-collapse: collapse; }
.rjobs-description td,
.rjobs-description th   { overflow-wrap: break-word; word-break: break-word; padding: 6px 8px; }
.rjobs-description pre,
.rjobs-description code { white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; max-width: 100%; }

/* ── Sidebar ─────────────────────────────────────────── */
.rjobs-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 80px;
}

.rjobs-sidebar-apply-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #7B3FA0;
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 16px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    box-sizing: border-box;
}
.rjobs-sidebar-apply-btn:hover { background: #6a3389; color: #fff !important; }

.rjobs-sidebar-or {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin: 0;
}

.rjobs-sidebar-external {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rjobs-ext-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
    box-sizing: border-box;
    text-align: center;
}
.rjobs-ext-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    color: #fff;
}
.rjobs-ext-btn:active { transform: translateY(0); }

.rjobs-ext-linkedin      { background: #0A66C2; }
.rjobs-ext-indeed        { background: #2557A7; }
.rjobs-ext-email         { background: #555;    }
.rjobs-ext-whatsapp      { background: #25D366; }
.rjobs-ext-whatsapp-chat { background: #128C7E; }

.rjobs-sidebar-whatsapp {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rjobs-sidebar-share-btn {
    display: block;
    text-align: center;
    border: 1px solid #7B3FA0;
    color: #7B3FA0 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 20px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    background: transparent;
    cursor: pointer;
}
.rjobs-sidebar-share-btn:hover {
    background: #f5eeff;
}

