/* ===========================================================
   KP (01.11): wizualne oddzielenie sekcji kategorii na stronie glownej.
   Werkkleding = naglowek 7ada836 + kafelki d50f0b9
   Werkschoenen = naglowek 6220eb2 + kafelki 5208208
   PBM          = naglowek c03c128 + kafelki 63fa622
   Rollback: usunac ten plik + linijke <link> w _partials/head.tpl.
   =========================================================== */

/* --- odstepy: grupy kategorii nie zlewaja sie --- */
.elementor-element-7ada836,
.elementor-element-6220eb2,
.elementor-element-c03c128 {
    padding-top: 56px !important;
    padding-bottom: 4px !important;
}
.elementor-element-d50f0b9 { padding-bottom: 48px !important; }  /* biala grupa Werkkleding */
.elementor-element-63fa622 { padding-bottom: 48px !important; }  /* grupa PBM */

/* --- naglowki sekcji: zloty akcent pod spodem --- */
.elementor-element-7ada836 .elementor-heading-title,
.elementor-element-6220eb2 .elementor-heading-title,
.elementor-element-c03c128 .elementor-heading-title {
    position: relative;
    padding-bottom: 18px;
}
.elementor-element-7ada836 .elementor-heading-title::after,
.elementor-element-6220eb2 .elementor-heading-title::after,
.elementor-element-c03c128 .elementor-heading-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: #f5b301;
}

/* --- naprzemienny pas tla: srodkowa grupa (Werkschoenen) na szaro --- */
.elementor-element-6220eb2,
.elementor-element-5208208 {
    background-color: #f5f7fb !important;
}
.elementor-element-6220eb2 { padding-top: 56px !important; }
.elementor-element-5208208 { padding-bottom: 52px !important; }

/* --- delikatna linia nad grupa PBM (dodatkowe oddzielenie) --- */
.elementor-element-c03c128 {
    border-top: 1px solid #e9edf2;
    margin-top: 6px;
}

/* ===========================================================
   KP (01.11): kafelki zawodow (beroepen) — czytelne etykiety.
   Kazdy kafelek = .el_collection4_item z <figcaption> na zdjeciu.
   Problem: bialy tekst na jasnych zdjeciach nieczytelny.
   Fix: ciemny gradient pod napisem + jednolity styl.
   =========================================================== */
.el_collection4_item .wp-caption,
.el_collection4_item .elementor-image figure {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 0;
}
.el_collection4_item figcaption.widget-image-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 36px 14px 13px;
    background: linear-gradient(to top, rgba(10,19,35,.92) 0%, rgba(10,19,35,.62) 42%, rgba(10,19,35,0) 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    text-align: left;
    line-height: 1.15;
    text-shadow: none !important;
}
/* lekki hover: kafelek delikatnie sie podnosi */
.el_collection4_item .wp-caption { transition: box-shadow .2s ease; }
.el_collection4_item:hover .wp-caption { box-shadow: 0 8px 20px rgba(10,19,35,.18); }

/* ===========================================================
   KP (01.11): karuzela zawodow — jeden rzad, przewijanie w bok.
   Sekcja el_collection4 = id 86999d7; kafelki w .elementor-row.
   Zamiast zawijania do 3 rzedow -> poziomy scroll ze snapem + strzalki.
   Strzalki wstrzykuje kp-custom.js. Rollback: usun te reguly + plik js.
   =========================================================== */
.elementor-element-86999d7 { position: relative; overflow: hidden; }
.elementor-element-86999d7 > .elementor-container { max-width: 100%; }
.elementor-element-86999d7 .elementor-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 14px;
    padding: 4px 2px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c7ced8 transparent;
}
.elementor-element-86999d7 .elementor-row::-webkit-scrollbar { height: 8px; }
.elementor-element-86999d7 .elementor-row::-webkit-scrollbar-thumb {
    background: #c7ced8;
    border-radius: 4px;
}
.elementor-element-86999d7 .elementor-row::-webkit-scrollbar-track { background: transparent; }

/* kazdy kafelek: stala szerokosc zamiast col-16 (16%) */
.elementor-element-86999d7 .el_collection4_item {
    flex: 0 0 200px !important;
    width: 200px !important;
    max-width: 200px !important;
    scroll-snap-align: start;
}
@media (max-width: 1024px) {
    .elementor-element-86999d7 .el_collection4_item {
        flex-basis: 170px !important; width: 170px !important; max-width: 170px !important;
    }
}
@media (max-width: 575px) {
    .elementor-element-86999d7 .el_collection4_item {
        flex-basis: 64% !important; width: 64% !important; max-width: 64% !important;
    }
}

/* strzalki nawigacji (wstrzykiwane przez JS) */
.kp-carousel-nav {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    z-index: 6;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: #ffffff;
    color: #0a1323;
    box-shadow: 0 4px 16px rgba(10,19,35,.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.kp-carousel-nav:hover { background: #f5b301; color: #ffffff; }
.kp-carousel-nav.kp-prev { left: 8px; }
.kp-carousel-nav.kp-next { right: 8px; }
.kp-carousel-nav[disabled] { opacity: 0; pointer-events: none; }
