/* Wzór stylów dla slidera (Zgodnie z załącznikiem) */

body {
    background-color: #ffffff;
    /* Czyste tło wokół slidera */
}

.slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    margin-bottom: 100px;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    position: relative;
    padding: 0 20px;
    /* Przestrzeń na wystające przyciski strzałek */
    box-sizing: border-box;
}

.slider-box {
    position: relative;
}

.slider-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 0px 60px 0px 60px;
    /* Ścięte rogi (top-right, bottom-left) */
    background-color: #0b1f3c;
    /* Domyślne tło */
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.slide-item {
    flex: 0 0 33.3333%;
    box-sizing: border-box;
}

.slide-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 540px;
    box-sizing: border-box;
    padding: 0 0 40px 0;
}

/* Kolory tła dla konkretnych slajdów */
.bg-dark-blue {
    background-color: #081e3f;
}

.bg-mid-blue {
    background-color: #0b407d;
}

.bg-brown {
    background-color: #55483a;
}

.slide-img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    display: block;
    margin: 0 0 0px 0;
    /* Płynne przejście (wtopienie w tło) na dole zdjęcia */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
}

.slide-text-wrapper {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-end;
}

.slide-subtitle {
    color: #9da6b5;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
    line-height: 1.4;
}

.slide-title {
    font-size: 28px;
    color: #ffffff;
    margin: 0 0 30px 0;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
}

.slide-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    padding: 12px 30px;
    background-color: #d80000;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 13px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.slide-action-btn:hover {
    background-color: #b00000;
}

.slide-action-btn span {
    font-size: 16px;
    line-height: 1;
}

/* Przyciski nawigacyjne (strzałki) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #d80000;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    user-select: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.slider-btn:not(.disabled):hover {
    background: #b00000;
}

.slider-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#cedrob-btn-prev {
    left: -15px;
}

#cedrob-btn-next {
    right: -15px;
}

/* Kropeczki nawigacyjne (pills) */
.slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
    height: 8px;
    border-radius: 4px;
}

.slider-dot.active {
    width: 45px;
    background-color: #d80000;
}

.slider-dot.inactive {
    width: 25px;
    background-color: #9ba7bf;
}

/* Responsywność */
@media (max-width: 992px) {
    .slide-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 600px) {
    .slider-track-container {
        border-radius: 0px 40px 0px 40px;
    }

    .slide-item {
        flex: 0 0 100%;
    }

    .slide-content {
        min-height: 480px;
        padding-bottom: 30px;
    }

    .slide-img {
        height: 250px;
    }

    .slide-title {
        font-size: 22px;
    }

    #cedrob-btn-prev {
        left: -10px;
    }

    #cedrob-btn-next {
        right: -10px;
    }
}