.custom-slider-container {
    width: 100%;
    margin: 0 auto;
    height: 660px;
}

.custom-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.custom-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    height: 100%;
}

/* Lewa kolumna z tekstem */
.custom-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide-active .custom-slide-content {
    opacity: 1;
}

.custom-slide-title,
.custom-slide .custom-slide-title {
    font-family: "Outfit", Sans-serif;
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 3.875rem;
    color: #151618;
    margin: 0 0 16px 0 !important;
}

.custom-slide-description {
    margin-bottom: 30px;
}

.custom-slide-description p {
    font-family: "Open Sans", Sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75rem;
    color: #151618;
    margin-bottom: 1rem;
}

.custom-slide-description p:last-child {
    margin-bottom: 0;
}

.custom-slide-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #151618;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 100px;
    transition: background-color 0.3s ease;
    font-family: "Outfit", Sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.375rem;
    align-self: flex-start;
}

.custom-slide-button:hover {
    background: #2a2b2e;
    color: #ffffff !important;
}

.custom-slide-button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Prawa kolumna ze zdjęciem */
.custom-slide-image-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

.custom-slide-image {
    height: 100%;
    width: 100%;
}

.custom-slide-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Nawigacja */
.custom-slider .swiper-pagination-clone {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
}

.custom-slider .swiper-pagination-clone .swiper-pagination {
    position: static;
    display: flex !important;
    justify-content: center;
}

.custom-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ffffff;
    opacity: 1;
    margin: 0 4px;
}

.custom-slider .swiper-pagination-bullet-active {
    background: #151618;
}

/* Strzałki nawigacji */
.slider-navigation {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.custom-slider .swiper-button-next,
.custom-slider .swiper-button-prev {
    position: static;
    margin: 0;
    background: #151618;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

/* Ukryj domyślne strzałki Swipera */
.custom-slider .swiper-button-next:after,
.custom-slider .swiper-button-prev:after {
    display: none;
}

/* Style dla SVG */
.custom-slider .swiper-button-next svg,
.custom-slider .swiper-button-prev svg {
    width: 20px;
    height: 20px;
}

/* Responsywność */
@media (max-width: 1024px) {
    .custom-slide-title {
        font-size: 3.5rem;
        line-height: 3rem;
    }
}

@media (max-width: 768px) {
    .custom-slider-container {
        height: auto;
    }

    .custom-slide {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .custom-slide-image-wrapper {
        order: -1;
        height: auto;
     
        max-height: 400px;
    }

    /* Ukryj strzałki na mobile */
    .slider-navigation {
        display: none;
    }

    /* Dostosuj tytuł */
    .custom-slide-title,
    .custom-slide .custom-slide-title {
        font-size: 2.5rem;
        line-height: 2.5rem;
    }

    /* Dostosuj treść */
    .custom-slide-description p {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .custom-slide-description h2,
    .custom-slide-description h3 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .custom-slide-content {
        padding: 0 16px;
    }

    .custom-slide-button {
        align-self: flex-end;
    }
}

/* Dodatkowe style dla małych urządzeń */
@media (max-width: 480px) {
    .custom-slide {
        gap: 16px;
    }

    .custom-slide-image-wrapper {
        height: 258px; /* Stała wysokość dla mobile */
    }

    .custom-slide-title,
    .custom-slide .custom-slide-title {
        font-size: 2rem;
        line-height: 2.25rem;
        margin: 0 0 12px 0 !important;
    }

    /* Zmniejsz odstępy dla treści */
    .custom-slide-description {
        margin-bottom: 20px;
    }

    .custom-slide-description p {
        margin-bottom: 0.75rem;
    }

    /* Wycentruj paginację na zdjęciu */
    .custom-slider .swiper-pagination-clone {
        bottom: 16px;
    }
}

/* Styl dla średnich urządzeń (tablety) */
@media (min-width: 481px) and (max-width: 768px) {
    .custom-slide-image-wrapper {
        max-height: 350px;
    }
}

.custom-slide-description h2,
.custom-slide-description h3 {
    font-family: "Outfit", Sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 2rem;
    color: #151618;
    margin-bottom: 1rem;
}

/* Responsywność dla nagłówków w treści */
@media (max-width: 768px) {
    .custom-slide-description h2,
    .custom-slide-description h3 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

.custom-slide-button.scroll-to-anchor {
    cursor: pointer;
} 