/* Domyślnie: desktop pokazany, mobile ukryty */

img.nbp-slider-img-mobile {
    display: none;
}

/* Mobile breakpoint (do 849px): desktop ukryty, mobile pokazany */
@media (max-width: 849px) {
    img.nbp-slider-img-desktop {
        display: none !important;
    }

    img.nbp-slider-img-mobile {
        display: block !important;
    }
}


.nbp-slide-content {
    position: absolute;
    top: 50%;
    left: 2%;
    transform: translateY(-50%);
    z-index: 2; /* Zwiększ z-index żeby był nad gradientem */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 90%;
    padding: 1rem;
}


.nbp-slide-category {
    font-family: "Brygada 1918", serif;
    font-size: 2rem;
    line-height: 44px;
    font-weight: 400;
    color: #fff;
    margin-bottom: .8rem;
}

@media(min-width: 850px) {

    .nbp-slide-content {
        max-width: min(50%, 600px);
    }

    .nbp-slide-category {
        word-break: break-word;
    }
}

.nbp-slide-title {
    font-family: 'Libre Franklin', -apple-system, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: .8rem;
    line-height: 24px;
    color: #fff;
}

.nbp-slide-date {
    font-family: 'Libre Franklin', -apple-system, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 0.875rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: .8rem;
}

/* Zmniejsz rozmiary na mobilce */
@media (max-width: 849px) {
    .nbp-slide-category {
        font-size: 1.2rem;
        line-height: 28px;
    }

    .nbp-slide-title {
        font-size: 0.9rem;
        line-height: 20px;
    }

    .nbp-slide-date {
        font-size: 0.75rem;
    }
}

.nbp-slide-cta-button {
    background-color: #bdad7d;
    color: #152e52;
}


.nbp-slide-cta-button {
    display: inline-block;
    font-family: 'Libre Franklin', -apple-system, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    background-color: #bdad7d;
    color: #152e52;
    padding: 8px 20px;
    font-size: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: color .3s ease-in-out,
        background-color .3s ease-in-out,
        border-color .3s ease-in-out,
        box-shadow .3s ease-in-out;
}

.nbp-slide-cta-button:hover {
    background-color: #152e52;
    border-color: #bdad7d;
    color: #bdad7d;
    text-decoration: none;
}



/* Kontener nawigacji na desktopie */
.nbp-carousel-home {
    position: relative;
}

.nbp-navigation-container {
    position: absolute;
    bottom: 0px;
    left: 80px; 
    transform: none; 
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(189, 173, 125, 0.9);
    padding: 6px 10px;
    backdrop-filter: blur(5px);
}

/* Przycisk poprzedni */
.swiper-button-prev {
    position: static;
    margin: 0;
    width: 45px;
    height: 45px;
    background: url('../icons/carousel-arrow-prev.svg') center center no-repeat;
    background-size: 24px 24px;
    border: none;
    cursor: pointer;
}

.swiper-button-prev:after {
    content: none;
}

/* Przycisk następny z SVG */
.swiper-button-next {
    position: static;
    margin: 0;
    width: 45px;
    height: 45px;
    background: url('../icons/carousel-arrow-next.svg') center center no-repeat;
    background-size: 24px 24px;
    border: none;
    cursor: pointer;
}

.swiper-button-next:after {
    content: none;
}

/* Pagination dots */
.swiper-pagination {
    position: static;
    display: flex;
    gap: 8px;
    margin: 0 15px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 1px solid #152e52;
    border-radius: 50%;
    opacity: 1;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    background-color: #152e52;
}

/* Przycisk pauzy/play z własnymi SVG */
.nbp-play-pause-btn {
    width: 32px;
    height: 32px;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 35px;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
}

/* Domyślnie play */
.nbp-play-pause-btn.play {
    background-image: url('../icons/btn-play.svg');
}

/* Gdy pauza */
.nbp-play-pause-btn.pause {
    background-image: url('../icons/btn-stop.svg');
}



/* Na mobile ukrywamy niestandardową nawigację */
@media (max-width: 849px) {
    .nbp-navigation-container {
        display: flex;
        position: relative;
        bottom: auto;
        left: auto; /* Resetuj przesunięcie */
        transform: none;
        justify-content: center;
        align-items: center;
        gap: 15px;
        background-color: rgba(189, 173, 125, 0.9);
        padding: 6px 10px;
        border-radius: 0px;
        backdrop-filter: blur(5px);
        z-index: 5;
        margin: 0 auto; /* Wyśrodkuj na mobile */
    }

    .swiper-button-next,
    .swiper-button-prev {
        position: static;
        transform: none;
        top: auto;
        z-index: 1;
    }

    .swiper-pagination {
        position: static;
        display: flex;
        justify-content: center;
        margin: 0 10px;
    }

    .nbp-play-pause-btn {
        display: none !important;
    }
}

/* Dodaj te style na końcu pliku */

/* Pełne wypełnienie slajdera na całą szerokość */
.nbp-carousel-home {
    width: 100%;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* Kontener slajdu */
.swiper-slide {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: auto;
    padding: 0;
    margin: 0;
}

/* Kontener obrazu - na pełną szerokość */
.nbp-slider-image-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 40%; /* Proporcje 5:2 (szerokość:wysokość) */
    position: relative;
    overflow: hidden;
}

/* Style dla obrazów - pełne wypełnienie */
.nbp-slider-img-desktop,
.nbp-slider-img-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-position: center;
}

.nbp-slider-img-mobile {
    object-fit: cover;
}

/* Dostosowanie proporcji na urządzeniach mobilnych */
@media (max-width: 849px) {
    .nbp-slider-image-wrapper {
        padding-bottom: 66.67%; /* Proporcje 3:2 dla mobile */
    }
}

/* Usuń wszelkie marginesy i padding z głównego kontenera */
.nbp-carousel-home .swiper-wrapper {
    max-width: 100%;;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Zapewnienie, że slider zajmuje pełną szerokość strony */
.nbp-carousel-home {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto !important;
    position: relative;
    left: auto;
    right: auto;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden;
    padding: 0 !important;
}

/* Gradient overlay na desktopie */
.nbp-slider-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/slider_overlay.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain; /* lub cover jeśli chcesz wypełnić cały obszar */
    z-index: 1;
    pointer-events: none;
}


.nbp-slide-cta-button:focus {
    outline: 1px solid #fff !important;
    outline-offset: 1px;
    box-shadow: 0 0 0 1px #fff, 0 0 0 1px #fff;
}

.swiper-button-prev:focus,
.swiper-button-next:focus,
.nbp-play-pause-btn:focus,
.swiper-pagination-bullet:focus {
    outline: 1px solid #072143;
    outline-offset: 1px;
    box-shadow: 0 0 0 1px #072143, 0 0 0 1px #072143;
}


@media(max-width: 575px) {


    .swiper-slide {
        overflow: visible !important;
    }

    .nbp-slide-content {
        position: relative;
        top: unset;
        bottom: unset;
        transform: unset;
        margin-top: 1.5rem;
        left: 0;
        padding: 0 10px;
        width: 100%;
    }

    .nbp-slide-content .nbp-slide-category,
    .nbp-slide-content .nbp-slide-title,
    .nbp-slide-content .nbp-slide-date {
        color: #072143;
    }

    .nbp-navigation-container {
        background-color: transparent;
        border-top: 1px solid #c5ac75;
        border-bottom: 1px solid #c5ac75;
        padding: 1rem 1.5rem;
        margin-top: 3rem;
    }

    .swiper-pagination-bullet {
        border: 1px solid #c5ac75;
        width: 1rem;
        height: 1rem;
    }

    .swiper-pagination-bullet-active {
        background-color: #c5ac75;
    }

    .swiper-button-next:focus,
    .nbp-play-pause-btn:focus,
    .swiper-pagination-bullet:focus {
        outline: none !important;
        outline-offset: none !important;
        box-shadow: none !important;
        border: 0px !important;
    }
    

    .nbp-navigation-container .swiper-button-prev,
    .nbp-navigation-container .swiper-button-next {
        border: 1px solid #c5ac75 !important;
        border-radius: 0.25rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 1.5rem !important;
        width: 1rem !important;
        height: 1rem !important;
        transition: all 0.3s;
        background-size: 1rem !important;
    }
    
    .nbp-navigation-container .swiper-button-prev:hover,
    .nbp-navigation-container .swiper-button-next:hover {
        background-color: #c5ac75 !important;
        border-color: #c5ac75 !important;
    }
    
    .nbp-navigation-container .swiper-button-prev svg,
    .nbp-navigation-container .swiper-button-next svg {
        display: none !important;
    }


}