.latest-offers-block {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 4rem;
    overflow: hidden;
}

.offers-container.swiper {
    position: relative;
    width: 100%;
    min-height: 350px;
    padding-bottom: 4rem;
}

.offers-container .swiper-wrapper {
    align-items: center;
}

.offer {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    background-color: #fff; /* add a background color for visibility */
}

.offer-background {
    background-size: cover;
    background-position: center;
    padding-top: 170px;
    padding-bottom: 170px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0.5;
    border-radius: 10px;
    overflow: hidden;
}

.offer-content {
    position: relative;
    color: #fff;
    z-index: 2;
}

.offer-title {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
    padding-left: 5vh;
    padding-right: 20vh;
    min-height: 200px;
}

.offer-link {
    display: inline-block;
    font-size: 1.5rem;
    text-decoration: none;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    padding-bottom: 0px;
    transition: all 0.3s ease; /* Smooth transition for hover effect */
}

.offer-link:hover {
    transform: scale(1.1); /* Enlarge the link */
}

.offer-link:hover .offer-arrow {
    margin-left: 20px; /* Move the arrow to the right */
    transform: scale(1.1); /* Enlarge the link */
}

.hentry .entry-content a {
    text-decoration: none !important;
}

.offer-arrow {
    margin-left: 10px;
    transition: margin-left 0.3s ease; /* Smooth transition for arrow movement */
}

.offer-thumbnail {
    flex: 1;
    margin-left: -200px; /* negative margin to overlap the left column */
    border-radius: 10px;
    overflow: hidden;
    max-width: 60%;
    max-height: 400px;
    aspect-ratio: calc(16 / 9);
    position: relative;
    z-index: 1;
}

.offer-thumbnail img {
    width: 100%;
    height: auto; /* Préserver le rapport d'aspect de l'image */
    object-fit: cover;
}

.offers-navigation {
    text-align: center;
    margin-top: 20px;
}

.nav-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.offers-container .swiper-pagination {
    bottom: 2rem;
}

.offers-container p.no-offers {
    text-align: center;
}

.nav-dot.active {
    background-color: #333;
}

/* Tablette */
@media screen and (max-width: 1200px) {
    .latest-offers-block,
    .latest-offers-block .swiper {
        overflow: visible;
    }
    .offer {
        position: relative;
    }
    .offer-background {
        padding: 2rem;
        align-items: center;
        flex: 1;
        margin-right: 120px;
    }
    .offer-thumbnail {
        max-width: 40%;
        margin-left: -50%;
        right: 5%;
    }
    .offer-title {
        padding: 0;
        padding-right: 2rem;
        margin-bottom: 60vh;
        min-height: 0;
        max-height: none;
    }
    .offer-thumbnail {
        position: absolute;
        max-width: none;
        height: 60%;
        margin-top: 4rem;
        right: 0;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        margin-left: 0;
        overflow: hidden;
        max-width: none;
        max-height: none;
    }
    .offer-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .offer-link {
        position: static;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .offers-container .offer {
        position: relative;
        padding: 1rem;
    }
    .offer-background {
        padding: 1rem;
        align-items: center;
        margin-right: 0;
        flex: 1;
    }
    .offer-background .offer-title {
        padding: 0;
        padding-right: 2rem;
        margin-bottom: 80vw;
        min-height: 0;
        max-height: none;
        font-size: 2rem;
    }
    .offer-thumbnail {
        position: absolute;
        width: 100%;
        aspect-ratio: calc(4 / 3);
        height: auto;
        /* top: 10rem; */
        bottom: 6rem;
        left: 0;
        right: 0;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        margin-left: 0;
        overflow: hidden;
        max-width: none;
        max-height: none;
    }
    .offer-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .offer-link {
        position: static;
    }
}