/* Only the six homepage service sections; no global heading or slider rules. */
body.home .vc_row:has(.dj-services) .td_block_title { display: none; }
body.home .vc_row:has(.dj-services) .vc_column_text { margin-bottom: 0 !important; }
body.home .vc_row:has(.dj-services) { padding-bottom: 0 !important; }
body.home .dj-services {
    --dj-accent: #287678;
    --dj-tint: #eaf6f4;
    font-family: "Work Sans", sans-serif;
    color: #19364b;
    margin: 6px 0 26px;
    padding: 24px;
    border: 1px solid #e0eae8;
    border-radius: 18px;
    background: #f6f9f8;
}
body.home .dj-services--calculators { --dj-accent: #356ba0; --dj-tint: #eaf2fb; }
body.home .dj-services--insurance { --dj-accent: #426d5b; --dj-tint: #ecf5ed; }
body.home .dj-services--telecom { --dj-accent: #456ca0; --dj-tint: #edf2fb; }
body.home .dj-services--popular { --dj-accent: #986529; --dj-tint: #fbf2e5; }
body.home .dj-services * { box-sizing: border-box; }
body.home .dj-services [hidden] { display: none !important; }
body.home .dj-services__header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
body.home .dj-services__intro { min-width: 0; }
body.home .dj-services__intro h2 { font-family: inherit; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.45px; text-transform: none; color: #19364b; margin: 0 0 5px; }
body.home .dj-services__intro p { font-family: inherit; color: #637579; font-size: 14px; line-height: 1.5; margin: 0; }
body.home .dj-services__controls { display: flex; align-items: center; flex-shrink: 0; gap: 8px; }
body.home .dj-services__count { font-size: 12px; color: #637579; min-width: 64px; text-align: right; padding-right: 6px; font-variant-numeric: tabular-nums; }
body.home .dj-services__controls button { display: grid; place-items: center; padding: 0; width: 44px; height: 44px; border: 1px solid #b8d4d0; border-radius: 50%; color: var(--dj-accent); background: #fff; cursor: pointer; }
body.home .dj-services__prev svg { transform: rotate(180deg); }
body.home .dj-services__controls button:hover:not(:disabled) { color: #fff; background: var(--dj-accent); border-color: var(--dj-accent); }
body.home .dj-services__controls button:disabled { opacity: .35; cursor: default; }
body.home .dj-services__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 42px) / 4); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; margin: 0 !important; padding: 2px 2px 10px !important; list-style: none; scrollbar-width: thin; scrollbar-color: #b6d2ce transparent; }
body.home .dj-services__item { list-style: none; padding: 0; margin: 0 !important; min-width: 0; scroll-snap-align: start; }
body.home .dj-services__card { position: relative; height: 100%; min-height: 150px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-content: start; align-items: start; gap: 13px; padding: 22px 16px 29px; border: 1px solid #dbe6e3; border-radius: 13px; background: #fff; color: #19364b !important; text-decoration: none !important; box-shadow: 0 2px 3px rgba(25,54,75,.025); transition: border-color .18s, background-color .18s, box-shadow .18s; }
body.home .dj-services__card:hover { border-color: var(--dj-accent); background: #fcfefe; box-shadow: 0 4px 12px rgba(25,54,75,.07); }
body.home .dj-services__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--dj-accent); background: var(--dj-tint); }
body.home .dj-services__text { min-width: 0; display: grid; gap: 7px; }
body.home .dj-services__name { font-family: inherit; font-size: 16px; line-height: 1.3; font-weight: 650; overflow-wrap: break-word; }
body.home .dj-services__description { font-family: inherit; font-size: 12px; line-height: 1.45; font-weight: 400; color: #637579; }
body.home .dj-services__arrow { position: absolute; right: 16px; bottom: 11px; color: var(--dj-accent); height: 20px; }
body.home .dj-services__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
body.home .dj-services__hint { color: #637579; font-size: 12px; }
body.home .dj-services__expand { font-family: inherit; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--dj-accent); background: transparent; border: 0; padding: 8px 0 8px 12px; min-height: 40px; cursor: pointer; white-space: nowrap; }
body.home .dj-services__expand:hover { text-decoration: underline; }
body.home .dj-services :is(a,button,ul):focus-visible { outline: 3px solid #db9c41; outline-offset: 3px; }
body.home .dj-services.is-expanded .dj-services__track { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
@media (max-width: 1100px) and (min-width: 768px) {
    body.home .dj-services__track { grid-auto-columns: calc((100% - 28px) / 3); }
    body.home .dj-services.is-expanded .dj-services__track { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 767px) {
    body.home .dj-services { padding: 18px 14px 12px; margin-bottom: 18px; border-radius: 15px; }
    body.home .dj-services__header { align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
    body.home .dj-services__intro { width: 100%; }
    body.home .dj-services__intro h2 { font-size: 22px; }
    body.home .dj-services__intro p { font-size: 13px; }
    body.home .dj-services__controls { margin-left: auto; }
    body.home .dj-services__track { grid-auto-columns: 84%; gap: 12px; }
    body.home .dj-services__card { min-height: 136px; padding-top: 18px; }
    body.home .dj-services__name { font-size: 16px; }
    body.home .dj-services__description { font-size: 13px; }
    body.home .dj-services__hint { display: none; }
    body.home .dj-services__footer { justify-content: flex-end; margin-top: 3px; }
    body.home .dj-services.is-expanded .dj-services__track { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    body.home .dj-services__card { transition: none; }
}

/* Extra separation before the article sections. */
body.home .dj-services--popular { margin-bottom: 50px; }
@media (max-width: 767px) {
    body.home .dj-services--popular { margin-bottom: 38px; }
}
/* Consistent spacing between homepage sections, independent of legacy spacers. */
body.home .tdc-content-wrap { --dj-section-gap: 32px; }
body.home .tdc-content-wrap .tdc_zone > .tdc-row:has(.vc_empty_space):not(:has(.td_block_wrap:not(.vc_empty_space))) { display: none; }
body.home .vc_raw_html:has(#embeddable-job-widget) { margin-top: var(--dj-section-gap) !important; }
body.home #embeddable-job-widget { margin-top: 0; }
body.home .vc_row:has(#embeddable-job-widget) .tdm_block_button:has(a[title="Wszystkie oferty"]) + .vc_empty_space { display: none; }
body.home .vc_row:has(#embeddable-job-widget) .td_block_title { margin-top: var(--dj-section-gap) !important; }
body.home .vc_row:has(.dj-market-panel) { padding-top: 0 !important; padding-bottom: 0 !important; }
body.home .vc_column_text:has(.dj-market-panel) { margin-top: var(--dj-section-gap) !important; margin-bottom: 0 !important; }
body.home .tdc-content-wrap .dj-market-panel { margin-bottom: 0 !important; }
body.home .tdc-content-wrap .dj-services { margin-top: var(--dj-section-gap) !important; margin-bottom: 0 !important; }
body.home .tdc-content-wrap .tdc_zone > .tdc-row:has(.td_block_title):not(:has(.dj-services, #embeddable-job-widget)) {
    margin-top: var(--dj-section-gap) !important;
}
body.home .tdc-content-wrap .tdc_zone > .tdc-row:has(.td_block_title):not(:has(.dj-services, #embeddable-job-widget)) > .vc_row {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
body.home .tdc-content-wrap .tdc_zone > .tdc-row:has(.td_block_title):not(:has(.dj-services, #embeddable-job-widget)) .td_block_title {
    margin-top: 0 !important;
}
body.home .tdc-content-wrap .tdc_zone > .tdc-row:has(.td_block_title):not(:has(.dj-services, #embeddable-job-widget)) .td_block_wrap:last-child {
    margin-bottom: 0 !important;
}
@media (max-width: 767px) {
    body.home .tdc-content-wrap { --dj-section-gap: 24px; }
}
/* Matching homepage calls to action; navigation buttons are excluded. */
body.home a.tdm-btn[title="Wszystkie oferty"],
body.home a.tdm-btn[title="Wszystkie artykuły"] {
    background: #287678 !important;
    border-color: #287678 !important;
    color: #fff !important;
    transition: background-color 160ms ease, border-color 160ms ease;
}
body.home a.tdm-btn[title="Wszystkie oferty"] .tdm-btn-text,
body.home a.tdm-btn[title="Wszystkie artykuły"] .tdm-btn-text {
    color: inherit !important;
}
body.home a.tdm-btn[title="Wszystkie oferty"]:hover,
body.home a.tdm-btn[title="Wszystkie artykuły"]:hover {
    background: #205f61 !important;
    border-color: #205f61 !important;
    color: #fff !important;
}
body.home a.tdm-btn[title="Wszystkie oferty"]:focus-visible,
body.home a.tdm-btn[title="Wszystkie artykuły"]:focus-visible {
    outline: 3px solid #db9c41;
    outline-offset: 3px;
}
/* Shared job and company cards across the portal. */
body :is(#embeddable-job-widget,.dj-market-panel) {container-type:inline-size;}
body :is(#embeddable-job-widget,.dj-market-panel) .dj-services__header {display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px;}
body :is(#embeddable-job-widget,.dj-market-panel) .dj-services__controls {display:flex;align-items:center;flex-shrink:0;gap:8px;}
body :is(#embeddable-job-widget,.dj-market-panel) .dj-services__count {font-size:12px;color:#637579;min-width:64px;text-align:right;padding-right:6px;font-variant-numeric:tabular-nums;}
body :is(#embeddable-job-widget,.dj-market-panel) .dj-services__controls button {display:grid;place-items:center;padding:0;width:44px;height:44px;border:1px solid #b8d4d0;border-radius:50%;color:var(--dj-accent);background:#fff;cursor:pointer;}
body :is(#embeddable-job-widget,.dj-market-panel) .dj-services__prev svg {transform:rotate(180deg);}
body :is(#embeddable-job-widget,.dj-market-panel) .dj-services__controls button:hover:not(:disabled) {color:#fff;background:var(--dj-accent);border-color:var(--dj-accent);}
body :is(#embeddable-job-widget,.dj-market-panel) .dj-services__controls button:disabled {opacity:.35;cursor:default;}
@container (max-width:1000px) {
 body :is(.embeddable-job-widget-listings,.dj-market-panel .dojczland-companies) {grid-auto-columns:calc((100% - 28px) / 3)!important;}
}
@container (max-width:760px) {
 body :is(.embeddable-job-widget-listings,.dj-market-panel .dojczland-companies) {grid-auto-columns:calc((100% - 14px) / 2)!important;}
 body :is(#embeddable-job-widget,.dj-market-panel) .dj-services__header {flex-wrap:wrap;gap:12px;}
}
@container (max-width:500px) {
 body :is(.embeddable-job-widget-listings,.dj-market-panel .dojczland-companies) {grid-auto-columns:84%!important;}
 body :is(#embeddable-job-widget,.dj-market-panel) .dj-services__controls {margin-left:auto;}
}
body #embeddable-job-widget,
body .dojczland-companies {
    box-sizing: border-box;
    font-family: "Work Sans", sans-serif;
    background: #f6f9f8;
    border: 1px solid #e0eae8;
    border-radius: 18px;
    padding: 24px;
}
body #embeddable-job-widget { --dj-accent: #287678; margin-top: 12px; min-height: 0; }
body .dj-market-panel { --dj-accent: #287678; }
body :is(#embeddable-job-widget, .dj-market-panel) .dj-jobs-header .dj-market-title { margin: 0; min-width: 0; }
body :is(#embeddable-job-widget, .dj-market-panel) .dj-services__controls[hidden] { display: none; }
body :is(#embeddable-job-widget, .dj-market-panel) :is(button, .embeddable-job-widget-listings, .dojczland-companies):focus-visible { outline: 3px solid #db9c41; outline-offset: 3px; }
@media (max-width: 767px) {
    body :is(#embeddable-job-widget, .dj-market-panel) .dj-jobs-header .dj-market-title { width: 100%; }
}
body #embeddable-job-widget::after { display: none; }
body .embeddable-job-widget-listings,
body .dojczland-companies {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 42px) / 4);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #b6d2ce transparent;
}
body .embeddable-job-widget-listings {
    margin: 0 !important;
    padding: 2px 2px 10px !important;
}
body .dojczland-companies { margin-bottom: 22px; scroll-padding-inline: 24px; }
body .embeddable-job-widget-listings::-webkit-scrollbar,
body .dojczland-companies::-webkit-scrollbar { height: 6px; }
body .embeddable-job-widget-listings::-webkit-scrollbar-track,
body .dojczland-companies::-webkit-scrollbar-track { background: transparent; }
body .embeddable-job-widget-listings::-webkit-scrollbar-thumb,
body .dojczland-companies::-webkit-scrollbar-thumb { background: #b6d2ce; border-radius: 6px; }
body .embeddable-job-widget-listing,
body .dojczland-companies li {
    box-sizing: border-box;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    position: relative;
    list-style: none;
    background: #fff;
    border: 1px solid #dbe6e3;
    border-radius: 13px;
    box-shadow: 0 2px 3px rgba(25,54,75,.025);
    scroll-snap-align: start;
    transition: border-color .18s, box-shadow .18s;
}
body .embeddable-job-widget-listing:hover,
body .dojczland-companies li:hover {
    border-color: #287678;
    box-shadow: 0 4px 12px rgba(25,54,75,.07);
}
body .embeddable-job-widget-listing > a,
body .dojczland-companies li > a {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    height: 100%;
    padding: 54px 18px 18px;
    font-family: "Work Sans", sans-serif;
    color: #19364b !important;
    text-decoration: none !important;
}
body .embeddable-job-widget-listing > a { min-height: 252px; }
body .dojczland-companies li > a { min-height: 278px; }
body .embeddable-job-widget-listing > a:focus-visible,
body .dojczland-companies li > a:focus-visible {
    outline: 3px solid #db9c41;
    outline-offset: 3px;
    border-radius: 13px;
}
body .embeddable-job-widget-listing::before,
body .dojczland-companies .card-level-3::before {
    left: 18px;
    top: 16px;
    width: auto;
    height: 23px;
    padding: 0 9px;
    border-radius: 6px;
    font-family: "Work Sans", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 23px;
    letter-spacing: .3px;
    background: #edf2fb;
    color: #356ba0;
    pointer-events: none;
}
/* Featured homepage cards match the directory and job board. */
body .embeddable-job-widget-listing-featured::before {
    content: "★ Polecana oferta";
    background: #247d80;
    color: #fff;
    font-weight: 700;
}
body .dojczland-companies .card-level-3 {
    border: 2px solid #d5ad5d;
    border-inline-start: 4px solid #c49a41;
    background: linear-gradient(110deg,#fff7e5 0%,#fffdf7 65%,#fff 100%);
    box-shadow: 0 5px 18px #8b67251c;
}
body .dojczland-companies .card-level-3:hover {
    border-color: #b98a2f;
    box-shadow: 0 7px 22px #8b672529;
}
body .dojczland-companies .card-level-3::before {
    content: "★ Polecana";
    background: #f5dfaa;
    color: #614512;
    font-weight: 700;
}
body .embeddable-job-widget-listing-title {
    font-family: "Work Sans", sans-serif !important;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    margin: 0;
    overflow-wrap: break-word;
}
body .embeddable-job-widget-listing-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-top: auto;
    font-family: "Work Sans", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #637579;
}
body .embeddable-job-widget-listing-job-location { margin: 0; }
body .embeddable-job-widget-listing-job-salary {
    display: block;
    padding: 5px 8px;
    border-radius: 6px;
    color: #287678;
    background: #eaf6f4;
    font-weight: 600;
    font-size: 14px;
}
body .embeddable-job-widget-listing-job-salary:empty { display: none; }
body .dojczland-companies .company-logo {
    box-sizing: border-box;
    height: 82px;
    min-height: 82px;
    padding: 7px;
    margin: 0;
    border: 1px solid #edf2f0;
    border-radius: 9px;
    background: #fff;
}
body .dojczland-companies .company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
body .dojczland-companies .company-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: #f1f5f4;
    color: #506b63;
    font-size: 30px;
    font-weight: 700;
    font-family: 'Work Sans', sans-serif;
}
body .dojczland-companies .company-name {
    font-family: "Work Sans", sans-serif !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    height: auto;
    overflow-wrap: break-word;
}
body .embeddable-job-widget-listing > a::after,
body .dojczland-companies li > a::after {
    display: block;
    padding-top: 12px;
    border-top: 1px solid #edf2f0;
    color: #287678;
    font-family: "Work Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}
body .embeddable-job-widget-listing > a::after { content: "Zobacz ofertę →"; }
body .dojczland-companies li > a::after { content: "Zobacz profil →"; margin-top: auto; }
@media (max-width: 1100px) and (min-width: 768px) {
    body .embeddable-job-widget-listings,
    body .dojczland-companies { grid-auto-columns: calc((100% - 28px) / 3); }
}
@media (max-width: 767px) {
    body #embeddable-job-widget,
    body .dojczland-companies { padding: 18px 14px; border-radius: 15px; scroll-padding-inline: 14px; }
    body .embeddable-job-widget-listings,
    body .dojczland-companies { grid-auto-columns: 84%; gap: 12px; }
    body .embeddable-job-widget-listing > a { min-height: 248px; }
}
@media (prefers-reduced-motion: reduce) {
    body .embeddable-job-widget-listing,
    body .dojczland-companies li { transition: none; }
}
/* Text links below homepage job and company sliders. */
body .dj-market-footer { display: flex; justify-content: flex-end; margin-top: 10px; }
body .dj-market-all { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 0 8px 12px; font-family: "Work Sans", sans-serif; font-size: 13px; line-height: 1.4; font-weight: 600; color: #287678; text-decoration: none; }
body .dj-market-all:hover { text-decoration: underline; }
body .dj-market-all:focus-visible { outline: 3px solid #db9c41; outline-offset: 3px; }
@media (max-width: 767px) { body .dj-market-footer { margin-top: 3px; } }
/* The company heading stays outside its scrolling track, inside the panel. */
body .dj-market-panel {
    box-sizing: border-box;
    padding: 24px;
    margin-bottom: 22px;
    background: #f6f9f8;
    border: 1px solid #e0eae8;
    border-radius: 18px;
}
body .dj-market-panel .dojczland-companies {
    padding: 2px 2px 10px;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    scroll-padding-inline: 2px;
}
body #embeddable-job-widget .dj-market-title,
body .dj-market-panel .dj-market-title {
    font-family: "Work Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.45px;
    text-transform: none;
    text-align: left;
    color: #19364b;
    margin: 0 0 18px;
    padding: 0;
}
@media (max-width: 767px) {
    body .dj-market-panel {
        padding: 18px 14px;
        border-radius: 15px;
    }
    body #embeddable-job-widget .dj-market-title,
    body .dj-market-panel .dj-market-title {
        font-size: 22px;
        margin-bottom: 14px;
    }
}

