* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; width: 100%; max-width: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f4f6f8; color: #202124; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }

/* TRAKA KATEGORIJA */
.nav-categories { 
    background: #ffffff; 
    border-bottom: 1px solid #ebebeb; 
    width: 100%; 
}
.nav-categories-inner { 
    max-width: 1240px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    white-space: nowrap; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
}
.nav-link { 
    display: inline-block; 
    padding: 12px 14px; 
    color: #5f6368; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 14px; 
    border-bottom: 3px solid transparent; 
    transition: all 0.2s; 
    white-space: nowrap; 
    flex-shrink: 0;
}
.nav-link:hover, .nav-link.active { color: #0284c7; border-bottom-color: #0284c7; }

.portal-layout { max-width: 1240px; margin: 25px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; width: 100%; }
.main-jobs-feed { min-width: 0; width: 100%; }

.source-badge { font-weight: 800; padding: 2px 8px; border-radius: 12px; color: #fff; font-size: 10.5px; text-transform: uppercase; display: inline-block; }

/* FEATURED HERO JOB BANNER */
.featured-job-hero { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); border-radius: 16px; padding: 22px; color: #fff; margin-bottom: 30px; display: flex; gap: 20px; align-items: center; box-shadow: 0 4px 16px rgba(2,132,199,0.18); width: 100%; min-width: 0; }
.featured-job-img { width: 100px; height: 100px; object-fit: contain; border-radius: 12px; border: 2px solid #fff; background: #fff; padding: 4px; flex-shrink: 0; }
.featured-job-title { font-size: 21px; font-weight: 800; color: #ffffff; text-decoration: none; line-height: 1.3; display: block; margin: 6px 0; }
.featured-job-title:hover { text-decoration: underline; }
.btn-featured-apply { display: inline-block; background: #fff; color: #0284c7; font-weight: 800; padding: 8px 18px; border-radius: 20px; text-decoration: none; font-size: 13px; margin-top: 10px; transition: background 0.2s; }
.btn-featured-apply:hover { background: #f0f9ff; }

/* JOB CARDS LISTING */
.jobs-list-container { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; width: 100%; min-width: 0; }
.job-card-modern { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; min-width: 0; position: relative; }
.job-card-modern:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.04); border-color: #38bdf8; }
.job-logo-thumb { width: 75px; height: 75px; object-fit: contain; border-radius: 10px; border: 1px solid #f1f5f9; background: #fff; padding: 4px; flex-shrink: 0; }
.job-info-main { flex-grow: 1; min-width: 0; }
.job-card-title { font-size: 16.5px; font-weight: 800; color: #0f172a; text-decoration: none; line-height: 1.35; margin: 4px 0 2px 0; display: block; }
.job-card-title:hover { color: #0284c7; }
.job-card-company { font-size: 13.5px; font-weight: 700; color: #475569; margin-bottom: 8px; }
.job-tags-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #64748b; font-weight: 500; }
.job-tag-chip { background: #f1f5f9; padding: 2px 8px; border-radius: 6px; }
.btn-job-details { background: #0284c7; color: #fff; padding: 8px 18px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 13px; white-space: nowrap; flex-shrink: 0; align-self: center; transition: background 0.2s; }
.btn-job-details:hover { background: #0369a1; }

/* SINGLE JOB VIEW */
.single-job-box { background: #ffffff; border-radius: 16px; border: 1px solid #e2e8f0; padding: 30px; box-shadow: 0 4px 14px rgba(0,0,0,0.03); min-width: 0; width: 100%; }
.single-job-title { font-size: 26px; font-weight: 800; color: #0f172a; margin: 10px 0 4px 0; line-height: 1.3; word-break: break-word; }
.single-job-company { font-size: 17px; font-weight: 700; color: #0284c7; margin-bottom: 20px; }
.single-job-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px; padding: 16px; margin: 20px 0; width: 100%; }
.single-job-desc { font-size: 15.5px; color: #334155; line-height: 1.7; margin: 20px 0; word-break: break-word; }
.btn-job-apply-big { display: inline-block; background: #0284c7; color: #fff; font-weight: 800; font-size: 15px; padding: 12px 30px; border-radius: 24px; text-decoration: none; transition: background 0.2s; }
.btn-job-apply-big:hover { background: #0369a1; }

/* SOCIAL SHARE BUTTONS */
.social-share-strip { display: flex; align-items: center; gap: 8px; margin-top: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.share-label { font-size: 12.5px; font-weight: 700; color: #64748b; margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; text-decoration: none; font-size: 14px; font-weight: bold; transition: opacity 0.2s, transform 0.2s; }
.share-btn:hover { opacity: 0.85; transform: scale(1.08); }
.share-fb { background: #1877f2; }
.share-tw { background: #000000; }
.share-wa { background: #25d366; }
.share-vb { background: #7360f2; }
.share-tg { background: #24a1de; }

/* SIDEBAR */
.sidebar-wrapper { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 80px; width: 100%; min-width: 0; }
.side-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); width: 100%; min-width: 0; }
.side-card-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f1f3f4; display: flex; justify-content: space-between; align-items: center; }

/* DISCOVERY WIDGET ISPOD PONUDE */
.bottom-discovery-box { margin-top: 30px; padding: 20px; background: #fdfdfd; border: 1px solid #e2e8f0; border-radius: 14px; width: 100%; }
.discovery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; width: 100%; }
.discovery-card { background: #ffffff; border: 1px solid #edf0f2; border-radius: 10px; padding: 12px; text-decoration: none; color: inherit; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; transition: transform 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02); min-width: 0; }
.discovery-card:hover { transform: translateY(-2px); border-color: #0284c7; }

.pagination-box { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 30px 0; flex-wrap: wrap; }
.pagination-box a { padding: 7px 12px; background: #fff; border: 1px solid #dadce0; border-radius: 8px; color: #0284c7; text-decoration: none; font-weight: 700; font-size: 13px; }
.pagination-box a.active { background: #0284c7; color: #fff; border-color: #0284c7; }

@media (max-width: 1024px) {
    .portal-layout { grid-template-columns: 1fr; }
    .sidebar-wrapper { position: static; }
}

@media (max-width: 768px) {
    .nav-categories-inner { padding: 0 10px; gap: 4px; }
    .portal-layout { padding: 0 10px; margin: 15px auto; gap: 20px; width: 100%; }
    
    .featured-job-hero { flex-direction: column !important; text-align: center !important; padding: 16px 12px !important; gap: 12px !important; }
    .featured-job-img { width: 80px !important; height: 80px !important; }
    .featured-job-title { font-size: 17px !important; line-height: 1.3 !important; }

    .job-card-modern { 
        flex-direction: row !important; 
        align-items: flex-start !important; 
        padding: 12px !important; 
        gap: 12px !important; 
        flex-wrap: wrap !important;
    }
    .job-logo-thumb { 
        width: 56px !important; 
        height: 56px !important; 
        min-width: 56px !important; 
        border-radius: 8px !important;
    }
    .job-info-main { 
        flex: 1 1 calc(100% - 70px) !important; 
        min-width: 0 !important; 
    }
    .job-card-title { 
        font-size: 14.5px !important; 
        line-height: 1.3 !important; 
        margin: 2px 0 !important;
    }
    .job-card-company { 
        font-size: 12.5px !important; 
        margin-bottom: 6px !important; 
    }
    .job-tags-row { 
        font-size: 11px !important; 
        gap: 6px !important; 
    }
    .btn-job-details { 
        width: 100% !important; 
        text-align: center !important; 
        align-self: stretch !important; 
        margin-top: 6px !important; 
        padding: 7px 14px !important;
    }

    .single-job-box { padding: 16px !important; border-radius: 12px !important; }
    .single-job-title { font-size: 20px !important; }
    .single-job-desc { font-size: 14.5px !important; }
    
    .discovery-grid { display: flex !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; scrollbar-width: none !important; padding-bottom: 6px !important; gap: 10px !important; }
    .discovery-grid::-webkit-scrollbar { display: none !important; }
    .discovery-card { flex: 0 0 190px !important; width: 190px !important; min-width: 190px !important; }
}

/* DISCLAIMER I OZNAKA LOGOTIPA / SLIKE POSLA */
.job-img-disclaimer-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.job-img-disclaimer-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
    pointer-events: none;
}

.job-source-attribution-bar {
    font-size: 11.5px;
    color: #64748b;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e2e8f0;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: -6px;
    margin-bottom: 15px;
}