/* --- UPDATED & NEW STYLES --- */

.solutions {
    /*
    * Created with https://www.css-gradient.com
    * Gradient link: https://www.css-gradient.com/?c1=ffa6fb&c2=efefef>=r&gd=dcc
    */
    background: #ffa6fb;
    background: radial-gradient(at center, #ffa6fb, #efefef);
    padding-top: 10vh;
    padding-bottom: 10vh;
}

.solutions-container > h1 {
    font-size: 48px;
}

.solution-list {
    margin-top: 8vh;
    overflow-x: hidden; /* Recommended for swiper */
}

.solution-item h1 {
    font-size: 16px;
    margin-bottom: 20px;
    margin-left: 1vw;
}

.solution-item a {
    text-decoration: none;
    color: unset;
}

/* UPDATED RULE: Added position: relative */
.solution-img {
    position: relative; /* This is crucial for the overlay */
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden; /* Hides overlay corners before hover */
}

/* Image Backgrounds */
.solution-img-1 {
    background-image: url(../../assets/img/hero/1.jpg);
}
.solution-img-2 {
    background-image: url(../../assets/img/hero/2.jpg);
}
.solution-img-3 {
    background-image: url(../../assets/img/hero/3.jpg);
}
.solution-img-4 {
    background-image: url(../../assets/img/hero/4.jpg);
}
.solution-img-5 {
    background-image: url(../../assets/img/hero/5.jpg);
}
.solution-img-6 {
    background-image: url(../../assets/img/hero/6.jpg);
}
.solution-img-7 {
    background-image: url(../../assets/img/hero/7.jpg);
}
.solution-img-8 {
    background-image: url(../../assets/img/hero/8.jpg);
}
.solution-img-9 {
    background-image: url(../../assets/img/hero/9.jpg);
}
.solution-img-10 {
    background-image: url(../../assets/img/hero/10.jpg);
}
.solution-img-11 {
    background-image: url(../../assets/img/hero/11.jpg);
}
.solution-img-12 {
    background-image: url(../../assets/img/hero/12.jpg);
}
.solution-img-13 {
    background-image: url(../../assets/img/hero/13.webp);
}

/* --- NEW OVERLAY STYLES --- */

.solution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(58, 38, 22, 0.8);

    /* Center the content inside */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Hide it by default */
    opacity: 0;
    visibility: hidden;

    /* Add a smooth transition for the hover effect */
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* The hover trigger */
.solution-item:hover .solution-overlay {
    opacity: 1;
    visibility: visible;
}

.solution-item:hover .solution-img p {
    display: none;
}

.overlay-content {
    color: #fff;
    /* text-align: center; */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* gap: 50px; */
    width: 100%;
    height: 100%;
}

.overlay-button {
    background-color: #efefef;
    border-radius: 200px;
    height: 60px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3a2616;
    font-size: 32px;
    align-self: flex-end;
}

.overlay-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.overlay-content li {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    /* margin-bottom: 12px; */
}

.overlay-content li:last-child {
    margin-bottom: 0;
}

/* --- SWIPER STYLES --- */

.swiper {
    width: 100%;
}

.solution-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
}

#button-prev,
#button-next {
    position: static;
    width: 50px;
    height: 50px;
    background-color: #3a2616;
    border-radius: 50%;
    color: #fff;
    margin-top: 0;
    transition: background-color 0.3s ease;
}

#button-prev:hover,
#button-next:hover {
    background-color: #5c442e;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

.item-number {
    font-size: 18px;
    font-weight: 500;
    color: #3a2616;
    min-width: 50px;
    text-align: center;
}

.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media only screen and (max-width: 800px) {
    .solutions-container > h1 {
        font-size: 32px;
    }
}
