/* ============================================================
   Home Info Blocks — Swiper
   ============================================================ */

.home-info-blocks {
    background-color: #000;
    padding: 40px 0;
    overflow: hidden;
}

.home-info-blocks--heading {

}

/* Tytuł sekcji */
.home-info-blocks__title {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: center;
    color: #fff;
}

/* Swiper musi mieć overflow:visible żeby sąsiednie slajdy były widoczne.
   Przycinanie robi rodzic .home-info-blocks z overflow:hidden na osi X. */
.home-info-blocks {
    overflow: hidden;
}

.home-info-blocks__swiper {
    overflow: visible !important; /* nadpisuje Swiper inline style */
    padding-bottom: 40px; /* miejsce na pagination */
    margin: 0 40px; /* wcięcie pod strzałki */
}

/* ---- Karta ---- */
.home-info-blocks__item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /*border-radius: 6px;*/
    overflow: hidden;
    background: #111;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-info-blocks__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.1);
}


/* ---- Zdjęcie ---- */
.home-info-blocks__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #1a1a1a;
}

.home-info-blocks__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.home-info-blocks__item:hover .home-info-blocks__image img {
    transform: scale(1.06);
}

.home-info-blocks__info {
    padding: 10px 5px;
}

.home-info-blocks__name h4 {
    text-align: center;
    color: #fff;
}

/* ---- Tytuł z ">" ---- */
.home-info-blocks__title {
    padding: 0 40px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    justify-content: center;

    @media (max-width: 767px) {
        padding: 0 20px;
    }
}


.home-info-blocks__item:hover .home-info-blocks__title {
    color: #ddd;
}

.home-info-blocks__item:hover .home-info-blocks__title::after {
    transform: translateX(3px);
    opacity: 1;
}

/* ---- Przycisk "Zobacz" — identyczny z globalnym .btn-primary ---- */
.home-info-blocks__cta {
    margin-top: auto;
}

.home-info-blocks__cta .button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 501;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: linear-gradient(to right, #50533c 50%, #424242 50%);
    background-size: 200% 100%;
    background-position: left bottom;
    transition: all 0.4s ease;
}

.home-info-blocks__cta .button:hover {
    background-position: right bottom;
    color: #fff;
}

/* ---- Strzałki nawigacji ---- */
.home-info-blocks__swiper .swiper-button-prev,
.home-info-blocks__swiper .swiper-button-next {
    width: 36px;
    height: 36px;
    background-color: #fff;
    border-radius: 50%;
    top: 40%;
    /* Przesuwamy strzałki na zewnątrz kontenera */
    margin-top: -18px;
}

.home-info-blocks__swiper .swiper-button-prev {
    left: -40px;
}

.home-info-blocks__swiper .swiper-button-next {
    right: -40px;
}

.home-info-blocks__swiper .swiper-button-prev::after,
.home-info-blocks__swiper .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.home-info-blocks__swiper .swiper-button-prev:hover,
.home-info-blocks__swiper .swiper-button-next:hover {
    background-color: #ccc;
}

/* ---- Pagination ---- */
.home-info-blocks__swiper .swiper-pagination-bullet {
    background: #555;
    opacity: 1;
}

.home-info-blocks__swiper .swiper-pagination-bullet-active {
    background: #fff;
}

/* ============================================================
   Responsive
   ============================================================ */

@media ( max-width: 1199px ) {
    .home-info-blocks__swiper {
        margin: 0 36px;
    }
}

@media ( max-width: 767px ) {
    .home-info-blocks {
        padding: 32px 0 40px;
    }

    .home-info-blocks__swiper {
        margin: 0 16px;
    }

    .home-info-blocks__swiper .swiper-button-prev,
    .home-info-blocks__swiper .swiper-button-next {
        display: none;
    }
}
