/* Plik: updates.css */

body {
    color: #e0e0e0;
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; */
    margin: 0;
    /* line-height: 1.6; */
}

/* Dodaj lub zaktualizuj te style dla kontenera main */
main {
    max-width: auto; /* Maksymalna szerokość kontenera */
    padding: 0 60px; /* Odstęp po bokach na mniejszych ekranach */
}

main h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 40px;
    border-bottom: 2px solid #555;
    padding-bottom: 15px;
}

.updates-category-section {
    position: relative;
    margin-bottom: 60px;
}

.category-header {
    margin-left: 20px;    
    font-size: 2rem;
    color: #f5f5f5;
    margin-bottom: 20px;
    text-transform: capitalize;
}

/* Nowa klasa do obsługi cienia, umieszczona wokół swipera */
.updates-carousel-container {
    position: relative;
    width: 100%;
    padding-bottom: 20px;
    -webkit-mask-image: linear-gradient(to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 2%,
        rgba(0,0,0,1) 98%, 
        rgba(0,0,0,0) 100%
    );
    mask-image: linear-gradient(to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 2%,
        rgba(0,0,0,1) 98%,
        rgba(0,0,0,0) 100%
    );
}

/* Dostosowujemy Swipera, aby dopasował się do nowego kontenera */
.updates-swiper {
    margin: 0 50px;
}

/* Pozycjonujemy przyciski względem nowego, zewnętrznego kontenera */
.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

/* Dostosuj położenie przycisków, żeby były na krawędziach karuzeli, a nie ekranu */
.updates-swiper .swiper-button-prev {
    left: 70px;/* Przesuń poza karuzelę */
}

.updates-swiper .swiper-button-next {
    right: 70px; /* Przesuń poza karuzelę */
}


.swiper-slide {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 300px;
}

.swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.update-link {
    display: block;
    width: 100%;
    height: auto;
}

.update-link img {
    width: 100%;
    height: auto;
    display: block;
}

.update-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.update-content h3 {
    font-size: 1.7rem;
    color: #fff;
    margin: 0 0 10px 0;
}

.update-content p {
    font-size: 1.4rem;
    color: #e0e0e0;
    margin: 0;
    flex-grow: 1;
    white-space: pre-wrap; /* Dodałem to! */
}

/* Ustawienia dla przycisków, które będą pozycjonowane względem .updates-carousel-container */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
}

.swiper-button-prev {
    left: -50px;
}

.swiper-button-next {
    right: -50px;
}


.updates-swiper .swiper-wrapper {
    align-items: stretch;
}


.updates-swiper .swiper-slide {
    width: 350px; /* Określa szerokość slajdu */
}

.update-link {
    display: block;
    width: 100%;
    height: 250px; /* Ustawienie stałej wysokości dla kontenera obrazu */
    overflow: hidden; /* Ukrywa nadmiar obrazu */
}

.update-link img {
    width: 100%;
    height: 100%;
    object-fit:cover; /* Sprawia, że obrazek wypełnia kontener, bez deformacji */
    display: block;
}

@media screen and (max-width: 768px) {
.updates-swiper .swiper-slide {
    width: 300px; /* Określa szerokość slajdu */
}

.update-link {
    height: 200px; /* Ustawienie stałej wysokości dla kontenera obrazu */
}

.update-content h3 {
    font-size: 1.4rem;
}

.update-content p {
    font-size: 0.9rem;
}

}