/* ============================================================
   job-ad.css  --  Stranica detalja oglasa za posao
   ============================================================ */

/* -- Scroll progress bar ------------------------------------------------- */
.ja-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #1a7a3f, #1a73c8, #6b35c9);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    pointer-events: none;
}

/* -- Toast notifikacija -------------------------------------------------- */
.ja-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a2a42;
    color: #fff;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 18px rgba(0,0,0,.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
    z-index: 10000;
    white-space: nowrap;
}
.ja-toast.ja-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* -- Wrapper kartice ----------------------------------------------------- */
.ja-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15,31,56,.10);
    overflow: hidden;
    margin-bottom: 28px;
}

/* ============================================================
   HERO HEADER
   ============================================================ */
.ja-hero {
    background: linear-gradient(135deg, #0f1f38 0%, #1e4a85 60%, #163870 100%);
    padding: 28px 28px 24px;
    position: relative;
    overflow: hidden;
}
.ja-hero::before,
.ja-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .08;
    pointer-events: none;
}
.ja-hero::before {
    width: 260px; height: 260px;
    top: -80px; right: -60px;
    background: #fff;
}
.ja-hero::after {
    width: 140px; height: 140px;
    bottom: -40px; left: 20px;
    background: #fff;
}

.ja-hero-top {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    position: relative;
    z-index: 1;
}

/* -- Avatar (inicijal kompanije) ---------------------------------------- */
/* Wrapper koji drzi logo ili avatar */
.ja-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
}
.ja-hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
    border: 2px solid rgba(255,255,255,.25);
    display: block;
}
.ja-avatar-wrap .ja-avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ja-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
    background: linear-gradient(135deg, #1a7a3f, #2ea855);
    text-transform: uppercase;
    border: 2px solid rgba(255,255,255,.18);
}
/* 26 varijanti po prvom slovu */
.ja-avatar--a, .ja-avatar--b { background: linear-gradient(135deg, #1a7a3f, #2ea855); }
.ja-avatar--c, .ja-avatar--d { background: linear-gradient(135deg, #1a3a8f, #2b5bd4); }
.ja-avatar--e, .ja-avatar--f { background: linear-gradient(135deg, #7a1a6e, #c42db0); }
.ja-avatar--g, .ja-avatar--h { background: linear-gradient(135deg, #7a4a1a, #d47f2b); }
.ja-avatar--i, .ja-avatar--j { background: linear-gradient(135deg, #1a6a7a, #2bacc8); }
.ja-avatar--k, .ja-avatar--l { background: linear-gradient(135deg, #4a1a7a, #8b35d4); }
.ja-avatar--m, .ja-avatar--n { background: linear-gradient(135deg, #7a1a1a, #d42b2b); }
.ja-avatar--o, .ja-avatar--p { background: linear-gradient(135deg, #1a5a3a, #2b9e6a); }
.ja-avatar--q, .ja-avatar--r { background: linear-gradient(135deg, #1a3a6a, #2b72c8); }
.ja-avatar--s, .ja-avatar--t { background: linear-gradient(135deg, #6a3a1a, #c87f2b); }
.ja-avatar--u, .ja-avatar--v { background: linear-gradient(135deg, #3a1a7a, #7535d4); }
.ja-avatar--w, .ja-avatar--x { background: linear-gradient(135deg, #1a6a4a, #2bc88a); }
.ja-avatar--y, .ja-avatar--z { background: linear-gradient(135deg, #5a1a5a, #b02bb0); }
.ja-avatar--default           { background: linear-gradient(135deg, #3a5a7a, #5a8ab0); }

/* -- Hero meta (naslov, kompanija, datum) -------------------------------- */
.ja-hero-meta {
    flex: 1;
    min-width: 0;
}
.ja-hero-company {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7eb8f7;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.ja-hero-company:hover {
    color: #a8d4ff;
    text-decoration: none;
}
.ja-hero-title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
    letter-spacing: -.3px;
}
.ja-hero-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ja-date-badge,
.ja-expire-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
/* Labela 'Objavljeno' / 'Istice' - suptilno slabija boja od datuma */
.ja-date-badge-label {
    opacity: .70;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .2px;
}
.ja-date-badge-label::after {
    content: ':';
}
.ja-date-badge {
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.18);
}
.ja-expire-badge {
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.18);
}
.ja-expire-badge.is-ok {
    background: rgba(26,122,63,.22);
    color: #7ef7a8;
    border-color: rgba(126,247,168,.22);
}
.ja-expire-badge.is-open {
    background: rgba(26,122,63,.15);
    color: #7ef7a8;
    border-color: rgba(126,247,168,.18);
}
.ja-expire-badge.is-warning {
    background: rgba(200,140,0,.28);
    color: #ffe066;
    border-color: rgba(255,224,102,.28);
}
.ja-expire-badge.is-urgent {
    background: rgba(200,40,40,.28);
    color: #f7a0a0;
    border-color: rgba(247,160,160,.28);
    animation: ja-pulse-red 1.8s ease-in-out infinite;
}
@keyframes ja-pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,40,40,.0); }
    50%       { box-shadow: 0 0 0 4px rgba(200,40,40,.22); }
}

/* -- Hero meta pills (lokacija, tip zaposlenja, remote) ------------------ */
.ja-hero-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.ja-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.82);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.3;
}
.ja-hero-pill i {
    font-size: .80rem;
    opacity: .75;
    flex-shrink: 0;
}

/* -- Hero akcije --------------------------------------------------------- */
.ja-hero-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-self: flex-start;
}
.ja-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.80);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
    text-decoration: none;
}
.ja-action-btn:hover {
    background: rgba(255,255,255,.22);
    color: #fff;
    transform: scale(1.08);
    text-decoration: none;
}
.ja-action-btn.is-bookmarked {
    background: rgba(230,60,60,.30);
    border-color: rgba(230,60,60,.45);
    color: #fca5a5;
}
.ja-action-btn.is-bookmarked i {
    /* Feather ikone su SVG sprite - fill se ne moze direktno; koristimo filter */
    filter: drop-shadow(0 0 2px rgba(252,165,165,.6));
}
.ja-action-btn.ja-action-btn--active {
    background: rgba(230,60,60,.35);
    color: #f7a0a0;
    border-color: rgba(230,60,60,.4);
}

/* ============================================================
   BODY (bela zona ispod heroja)
   ============================================================ */
.ja-body {
    padding: 24px 28px 28px;
}
.ja-body--separated {
    border-top: 3px solid #edf1f8;
}
.ja-sidebar-no-data {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #9aaac0;
    padding: 10px 0 4px;
    font-style: italic;
}

/* -- Divider ------------------------------------------------------------- */
.ja-divider {
    border: none;
    border-top: 1px solid #edf1f8;
    margin: 22px 0;
}

/* ============================================================
   INFO BEDZEVI
   ============================================================ */

/* Grupa labela iznad reda chipova */
.ja-badge-group {
    margin-bottom: 20px;
}
.ja-badge-group-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #94a3b8;
    margin-bottom: 8px;
    padding-left: 2px;
}
.ja-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

/* Svaki badge je kompaktan horizontalni chip */
.ja-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 8px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex: none;
    transition: border-color .15s, box-shadow .15s;
}
.ja-badge:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

/* Ikona krug levo od teksta */
.ja-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

/* Boja ikone po tipu */
/*  pozicija  - indigo  */
.ja-badge--position  .ja-badge-icon { background: #eef2ff; color: #4338ca; }
/*  zaposlenje - teal   */
.ja-badge--employment .ja-badge-icon { background: #f0fdf4; color: #16a34a; }
/*  remote     - violet */
.ja-badge--remote    .ja-badge-icon { background: #f5f3ff; color: #7c3aed; }
/*  iskustvo   - amber  */
.ja-badge--seniority .ja-badge-icon { background: #fffbeb; color: #d97706; }
/*  plata      - sky    */
.ja-badge--salary    .ja-badge-icon { background: #f0f9ff; color: #0284c7; }
/*  lokacija   - orange */
.ja-badge--location  .ja-badge-icon { background: #fff7ed; color: #ea580c; }
/*  obrazovanje - pink  */
.ja-badge--education .ja-badge-icon { background: #fdf4ff; color: #a21caf; }

/* Tekst badge vrednosti */
.ja-badge-label {
    display: none; /* skrivamo label - ide u grupu iznad */
}
.ja-badge-value {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    white-space: normal;
}

/* Pastelna pozadina celog chip-a po tipu */
.ja-badge--position   { background: #eef2ff; border-color: #c7d2fe; }
.ja-badge--position   .ja-badge-value { color: #3730a3; }

.ja-badge--employment { background: #f0fdf4; border-color: #bbf7d0; }
.ja-badge--employment .ja-badge-value { color: #15803d; }

.ja-badge--remote     { background: #f5f3ff; border-color: #ddd6fe; }
.ja-badge--remote     .ja-badge-value { color: #6d28d9; }

.ja-badge--seniority  { background: #fffbeb; border-color: #fde68a; }
.ja-badge--seniority  .ja-badge-value { color: #b45309; }

.ja-badge--location   { background: #fff7ed; border-color: #fed7aa; }
.ja-badge--location   .ja-badge-value { color: #c2410c; }

.ja-badge--education  { background: #fdf4ff; border-color: #e9d5ff; }
.ja-badge--education  .ja-badge-value { color: #86198f; }

/* Plata - featured badge, puna boja */
.ja-badge--salary {
    background: #0f766e;
    border-color: #0f766e;
    box-shadow: 0 2px 8px rgba(15,118,110,.25);
}
.ja-badge--salary .ja-badge-icon {
    background: rgba(255,255,255,.18);
    color: #fff;
}
.ja-badge--salary .ja-badge-value {
    color: #fff;
    font-weight: 700;
}
.ja-badge--salary:hover {
    border-color: #0d9488;
    box-shadow: 0 3px 12px rgba(15,118,110,.35);
}


/* ============================================================
   SEKCIJA O KOMPANIJI
   ============================================================ */
.ja-company-section {
    background: linear-gradient(135deg, #f8faff, #f0f4fb);
    border: 1px solid #dde6f5;
    border-radius: 14px;
    padding: 18px 20px 14px;
    margin-bottom: 20px;
}
.ja-company-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #6a82a8;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ja-company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.ja-company-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #e8eef8;
    box-shadow: 0 1px 4px rgba(20,40,80,.05);
}
.ja-company-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: #fff;
}
.ja-company-stat-icon--gold   { background: linear-gradient(135deg, #c88000, #f0b030); }
.ja-company-stat-icon--blue   { background: linear-gradient(135deg, #1a4a9a, #2b72d4); }
.ja-company-stat-icon--purple { background: linear-gradient(135deg, #5a1a9a, #8b35d4); }
.ja-company-stat-icon--green  { background: linear-gradient(135deg, #1a7a3f, #2ea855); }
.ja-company-stat-icon--orange { background: linear-gradient(135deg, #c86400, #f08030); }

.ja-company-stat-body {
    min-width: 0;
}
.ja-company-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #9aaac0;
    margin-bottom: 2px;
}
.ja-company-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #1a2a42;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ja-company-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    color: #1a73c8;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.ja-company-profile-link:hover {
    color: #0d5aad;
    text-decoration: underline;
}

/* -- Kratak opis (callout) ----------------------------------------------- */
.ja-short-desc {
    background: #f1f5f9;
    border-left: 3px solid #94a3b8;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
    font-style: italic;
}

/* ============================================================
   SEKCIJA NASLOVI
   ============================================================ */
.ja-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a42;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.ja-section-title .icon-blue   { color: #1a73c8; }
.ja-section-title .icon-green  { color: #1a7a3f; }
.ja-section-title .icon-orange { color: #c86400; }
.ja-section-title .icon-teal   { color: #0a8a8a; }
.ja-section-title .icon-purple { color: #6b35c9; }
.ja-section-title .feather-file-text { color: #64748b; }

/* ============================================================
   PROSE (HTML sadrzaj oglasa)
   ============================================================ */
.ja-prose {
    color: #334155;
    font-size: 15.5px;
    line-height: 1.85;
}

/* Naslovi sa levom accent linijom */
.ja-prose h1,
.ja-prose h2,
.ja-prose h3,
.ja-prose h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 3px solid #3b82f6;
    line-height: 1.35;
}
.ja-prose h1 { font-size: 1.20rem; }
.ja-prose h2 { font-size: 1.10rem; }
.ja-prose h3 { font-size: 1.00rem; }
.ja-prose h4 { font-size: 0.93rem; border-left-color: #94a3b8; }

/* Lista sa custom checkmark */
.ja-prose ul {
    list-style: none;
    padding-left: 4px;
    margin-bottom: 16px;
}
.ja-prose ol {
    padding-left: 22px;
    margin-bottom: 16px;
}
.ja-prose ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 7px;
}
.ja-prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 13px;
    height: 13px;
    background-color: #22c55e;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2,6 5,9 10,3'/%3E%3C/svg%3E");
    background-size: 9px 9px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
.ja-prose ol li {
    margin-bottom: 7px;
}

/* Paragrafi */
.ja-prose p {
    margin-bottom: 14px;
}

/* Linkovi unutar prose teksta - diskretni, bez plave boje */
.ja-prose a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #cbd5e1;
    text-underline-offset: 3px;
    transition: text-decoration-color .15s;
}
.ja-prose a:hover {
    text-decoration-color: #64748b;
}

/* Bold u paragrafima - samo tamniji tekst, bez pozadine */
.ja-prose strong,
.ja-prose b {
    font-weight: 700;
    color: #0f172a;
}

/* Highlight bold/strong samo unutar liste - istice kljucne stavke */
.ja-prose li strong,
.ja-prose li b {
    background: linear-gradient(120deg, #fef08a 0%, #fef9c3 100%);
    padding: 1px 4px;
    border-radius: 3px;
}

/* Paragraf koji sadrzi SAMO strong/b - tretira se kao podnaslov sekcije */
.ja-prose p:has(> strong:only-child),
.ja-prose p:has(> b:only-child) {
    margin-top: 20px;
    margin-bottom: 6px;
    padding-left: 12px;
    border-left: 3px solid #3b82f6;
}
.ja-prose p:has(> strong:only-child) strong,
.ja-prose p:has(> b:only-child) b {
    font-size: 0.97rem;
    color: #0f172a;
    background: none;
    padding: 0;
}

/* -- Read-more ----------------------------------------------------------  */
.ja-content-collapse {
    max-height: 200px;
    overflow: hidden;
    position: relative;
    transition: max-height .4s ease;
}
.ja-content-collapse.ja-collapse--open {
    max-height: 9999px;
}
.ja-content-collapse:not(.ja-collapse--open)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #fff 75%);
}
.ja-read-more-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #dde6f5;
    border-radius: 8px;
    color: #1a73c8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 7px 16px;
    margin-top: 10px;
    transition: background .2s, border-color .2s;
}
.ja-read-more-btn:hover {
    background: #f0f6ff;
    border-color: #a0ccff;
}

/* ============================================================
   CIPOVI (veštine, jezici, tagovi)
   ============================================================ */
.ja-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ja-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}
.ja-chip--must {
    background: #e8f7ef;
    color: #1a5a30;
    border-color: #b0dcc0;
}
.ja-chip--nice {
    background: #f0eeff;
    color: #4a2080;
    border-color: #c8b8f0;
}
.ja-chip--language {
    background: #fff4e0;
    color: #6a4a00;
    border-color: #ffd090;
}
.ja-chip--tag {
    background: #f1f4fb;
    color: #3b4f72;
    border-color: #d0d9ee;
    font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
    font-size: 11.5px;
    letter-spacing: -.2px;
}

/* ============================================================
   BENEFITI
   ============================================================ */
.ja-benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}
.ja-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8faff;
    border-radius: 8px;
    border: 1px solid #e8eef8;
    font-size: 13px;
    color: #2a3a52;
    font-weight: 500;
}
.ja-benefit-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a7a3f, #2ea855);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

/* ============================================================
   APPLY SEKCIJA
   ============================================================ */
.ja-apply-section {
    position: relative;
    overflow: hidden;
    padding: 32px 28px 28px;
    background: linear-gradient(135deg, #0f2952 0%, #1a3a6e 60%, #1e4d8c 100%);
    border-radius: 16px;
    border: none;
    text-align: center;
    margin-top: 8px;
}
.ja-apply-section::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.ja-apply-section::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    pointer-events: none;
}
.ja-apply-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.ja-apply-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.25;
    position: relative;
}
.ja-apply-subtitle {
    color: rgba(255,255,255,.60);
    font-size: 14px;
    margin-bottom: 22px;
    position: relative;
}
.ja-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #22c55e;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 52px;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(34,197,94,.35);
    transition: background .2s, transform .2s, box-shadow .2s;
    letter-spacing: .2px;
    position: relative;
    border: none;
    cursor: pointer;
}
.ja-apply-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(34,197,94,.45);
}
.ja-apply-btn i {
    font-size: 15px;
}

.ja-apply-btn--applied {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1.5px solid #a5d6a7;
    cursor: default;
    opacity: 1;
}

.ja-apply-btn--reapply {
    background: #22c55e;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 20px rgba(34,197,94,.35);
}

.ja-apply-btn--reapply:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(34,197,94,.45);
}

/* -- Apply modal: stilovi ---------------------------------------------- */
.ja-modal--wide {
    max-width: 520px;
    width: 100%;
}

.ja-apply-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.ja-apply-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.ja-apply-step--active {
    background: var(--color-brand, #3a5de5);
    color: #fff;
}

.ja-apply-step--done {
    background: #a5d6a7;
    color: #2e7d32;
}

.ja-apply-step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    min-width: 24px;
    max-width: 48px;
}

.ja-apply-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 8px;
    max-height: 220px;
    overflow-y: auto;
}

.ja-apply-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.ja-apply-item:has(input:checked) {
    border-color: var(--color-brand, #3a5de5);
    background: #f0f4ff;
}

.ja-apply-item input[type="radio"] {
    accent-color: var(--color-brand, #3a5de5);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ja-apply-item-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.ja-apply-item-icon--pdf { color: #e53935; }
.ja-apply-item-icon--doc { color: #1565c0; }

.ja-apply-item-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.ja-apply-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ja-apply-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ja-apply-cv-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 20px;
    line-height: 1.4;
}

.ja-apply-cv-badge--active {
    background: #dcfce7;
    color: #15803d;
}

.ja-apply-optional {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-left: 4px;
}

.ja-apply-textarea-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin: 12px 0 4px;
}

.ja-apply-textarea {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    resize: vertical;
    margin-top: 10px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.ja-apply-textarea:focus {
    outline: none;
    border-color: var(--color-brand, #3a5de5);
}

.ja-apply-nomi-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    margin: 12px 0 8px;
    background: #f5f7ff;
    border: 1.5px dashed #b0bdf0;
    border-radius: 10px;
    color: #555;
    font-size: 14px;
    text-align: center;
}

.ja-apply-nomi-notice > i {
    font-size: 22px;
    color: #7e97e8;
}

.ja-apply-nomi-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--color-brand, #3a5de5);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.ja-apply-nomi-link:hover {
    background: #2a4bc4;
    color: #fff;
    text-decoration: none;
}

.ja-apply-nomi-link i {
    font-size: 14px;
}

.ja-apply-error {
    color: #c62828;
    font-size: 13px;
    margin-top: 6px;
}

.ja-modal-icon--success {
    color: #2e7d32;
}

/* -- No-CV upload dropzone ------------------------------------------------- */
.ja-nocv-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ja-nocv-dropzone {
    position: relative;
    border: 2px dashed #c7d2e2;
    border-radius: 10px;
    background: #f8fafc;
    transition: border-color 0.18s, background 0.18s;
    margin-bottom: 14px;
    cursor: pointer;
}

.ja-nocv-dropzone:hover,
.ja-nocv-dropzone.is-dragover {
    border-color: #1967d2;
    background: #eef3fb;
}

.ja-nocv-dropzone.is-selected {
    border-color: #16a34a;
    background: #f0fdf4;
}

.ja-nocv-dropzone.is-error {
    border-color: #dc2626;
    background: #fff5f5;
}

.ja-nocv-dropzone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.ja-nocv-upload-icon {
    font-size: 2rem;
    color: #1967d2;
}

.ja-nocv-dropzone.is-selected .ja-nocv-upload-icon {
    color: #16a34a;
}

#ja-nocv-file-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2b4a;
    text-align: center;
    word-break: break-all;
}

.ja-nocv-hint {
    font-size: 0.78rem;
    color: #6b7280;
}

.ja-nocv-error {
    color: #dc2626;
    font-size: 0.83rem;
    margin: -8px 0 10px;
    text-align: center;
}

/* -- Auth modal - stilovi su u style.css (ja-modal-overlay, ja-modal itd.) -- */

.ja-apply-add-cv-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 9px 16px;
    margin-bottom: 12px;
    background: none;
    border: 1.5px dashed #c7d2e2;
    border-radius: 8px;
    color: #1967d2;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    justify-content: center;
}

.ja-apply-add-cv-btn:hover:not(:disabled) {
    border-color: #1967d2;
    background: #eef3fb;
}

.ja-apply-add-cv-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ja-apply-cv-upload-status {
    font-size: 0.82rem;
    text-align: center;
    margin: -6px 0 10px;
    color: #6b7280;
}

.ja-apply-cv-upload-status.is-error   { color: #dc2626; }
.ja-apply-cv-upload-status.is-success { color: #16a34a; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.ja-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}

/* -- Sidebar CTA kartica ------------------------------------------------ */
.ja-sidebar-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15,31,56,.10);
    overflow: hidden;
}
.ja-sidebar-card-header {
    background: linear-gradient(135deg, #0f1f38 0%, #1e4a85 100%);
    padding: 20px 18px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
/* Sidebar avatar (isti gradijent kao hero avatar) */
.ja-sidebar-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    border: 2px solid rgba(255,255,255,.22);
    display: block;
}
.ja-sidebar-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    background: linear-gradient(135deg, #1a7a3f, #2ea855);
    border: 2px solid rgba(255,255,255,.22);
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    /* nasledjuje gradijent klase ja-avatar--X */
}
.ja-sidebar-company-name {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1px;
}
.ja-sidebar-company-link {
    color: #7eb8f7;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ja-sidebar-company-link:hover {
    color: #a8d4ff;
    text-decoration: none;
}
.ja-sidebar-body {
    padding: 16px;
}
.ja-sidebar-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.ja-sidebar-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a7a3f, #2ea855);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 9px;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(26,122,63,.28);
    transition: transform .2s, box-shadow .2s;
}
.ja-sidebar-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(26,122,63,.36);
}
.ja-sidebar-share-row {
    display: flex;
    gap: 8px;
}
.ja-sidebar-share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border: 1px solid #dde6f5;
    border-radius: 8px;
    background: #f8faff;
    color: #3a5a82;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.ja-sidebar-share-btn:hover {
    background: #eef4ff;
    border-color: #a0ccff;
    text-decoration: none;
    color: #1a3a6a;
}

/* -- Sidebar info redovi ------------------------------------------------ */
.ja-sidebar-company-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ja-sidebar-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8faff;
    border: 1px solid #edf2fb;
    font-size: 13px;
}
.ja-sidebar-info-row i {
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}
.ja-sidebar-info-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #9aaac0;
    margin-bottom: 1px;
}
.ja-sidebar-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a2a42;
}
/* Ikona boje */
.ic-gold   { color: #c88000; }
.ic-green  { color: #1a7a3f; }
.ic-blue   { color: #1a4a9a; }
.ic-purple { color: #5a1a9a; }
.ic-red    { color: #9a1a1a; }

/* -- Rang bedz ---------------------------------------------------------- */
.ja-rang-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff4d0, #ffe090);
    border: 1px solid #f0c040;
    color: #7a5000;
    margin-top: 4px;
}
.ja-rang-badge__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(200,128,0,.15);
    flex-shrink: 0;
    font-size: 16px;
    color: #c88000;
}
.ja-rang-badge__value {
    font-size: 15px;
    font-weight: 800;
    color: #7a5000;
    line-height: 1.2;
}
.ja-rang-badge__label {
    font-size: 11px;
    font-weight: 500;
    color: #a07020;
    margin-top: 2px;
    line-height: 1.3;
}
.ja-sidebar-report-promo {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff8e1;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 12px 0 10px;
}
.ja-sidebar-report-promo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fde68a;
    color: #b45309;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}
.ja-sidebar-report-promo__title {
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 3px;
}
.ja-sidebar-report-promo__text {
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
}
.ja-sidebar-report-promo__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    width: 100%;
    justify-content: center;
    background-color: #b45309 !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(146,64,14,.30);
    color: rgba(0,0,0,0) !important;
    text-shadow: 0 0 0 #fff, 800px 0 0 #fff !important;
    transition: all 0.3s ease !important;
}
.ja-sidebar-report-promo__btn:hover {
    background-color: #78350f !important;
    box-shadow: 0 5px 14px rgba(146,64,14,.40);
    text-shadow: -800px 0 0 #fff, 0 0 0 #fff !important;
    text-decoration: none !important;
}

/* -- Slicni oglasi ------------------------------------------------------ */
.ja-related-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(15,31,56,.08);
    overflow: hidden;
}
.ja-related-header {
    background: linear-gradient(135deg, #f0f4fb, #e8eef8);
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #6a82a8;
    border-bottom: 1px solid #dde6f5;
    display: flex;
    align-items: center;
    gap: 7px;
}
.ja-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ja-related-item {
    border-bottom: 1px solid #f0f4fb;
}
.ja-related-item:last-child {
    border-bottom: none;
}
.ja-related-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    transition: background .18s;
}
.ja-related-link:hover {
    background: #f4f7ff;
    text-decoration: none;
}
.ja-related-avatar-wrap {
    flex-shrink: 0;
}
.ja-related-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e4ecf8;
    display: block;
}
.ja-related-avatar {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}
.ja-related-content {
    flex: 1;
    min-width: 0;
}
.ja-related-company {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #1a73c8;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ja-related-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a2a42;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ja-related-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 2px;
}
.ja-related-date {
    font-size: 11px;
    color: #9aaac0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ja-related-date--expire {
    color: #e05c5c;
}

/* -- Preview banner ------------------------------------------------------ */
.ja-preview-banner {
    background: #fff3cd;
    border-bottom: 2px solid #ffc107;
    padding: 10px 20px;
    font-size: 14px;
    color: #533f03;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* -- Mobilni fiksni CTA bar ---------------------------------------------- */
.ja-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1050;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e0eaf6;
    box-shadow: 0 -4px 16px rgba(15,31,56,.10);
}
.ja-mobile-cta-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #22c55e;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(34,197,94,.35);
    transition: background .2s, transform .2s, box-shadow .2s;
    letter-spacing: .2px;
    border: none;
    cursor: pointer;
}
.ja-mobile-cta-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(34,197,94,.45);
}
.ja-mobile-cta-btn--applied {
    background: #e8f5e9;
    color: #2e7d32 !important;
    border: 1.5px solid #a5d6a7;
    cursor: default;
    box-shadow: none;
}
.ja-mobile-cta-btn--applied:hover {
    transform: none;
    background: #e8f5e9;
    box-shadow: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .ja-sidebar {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .ja-hero {
        padding: 20px 16px 18px;
    }
    .ja-hero-title {
        font-size: 18px;
    }
    .ja-avatar {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 10px;
    }
    .ja-body {
        padding: 18px 16px 22px;
    }
    .ja-hero-actions {
        display: none;
    }
    .ja-mobile-cta {
        display: block;
    }
    .page-content {
        padding-bottom: 80px;
    }
    .ja-company-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .ja-badges {
        gap: 6px;
    }
    .ja-badge {
        font-size: 12px;
    }
    .ja-benefit-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ja-hero-title {
        font-size: 17px;
    }
    .ja-company-stats {
        grid-template-columns: 1fr;
    }
}
