.swiper {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-content {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.slider-image {
    width: 40%; /* Default for larger screens */
    height: 280px; /* Fixed height for all images */
    background-size: cover;
    background-position: center;
}

.slider-image a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.slider-text {
    width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #232323;
}

.slider-text h2 {
    margin: 0 0 10px;
    font-size: 1.5em;
}

.slider-text h2 a {
    text-decoration: none;  /* Remove the default underline */
    color: #fff;
    transition: color 0.3s, text-decoration 0.3s; /* Add transition for text-decoration */
}

.slider-text h2 a:hover {
    color: #d91a1a; /* Change color on hover */
    text-decoration: underline;  /* Underline the text on hover */
}


.slider-text p {
    font-size: 1em;
    line-height: 1.5;
    color: #aaa !important;
}

/* Responsive Design for Tablets */
@media (max-width: 768px) {
    .swiper {
        height: auto;
    }

    .slider-content {
        flex-direction: column;
        text-align: center;
    }

    .slider-image {
        width: 100%;
        height: auto;
    }

    .slider-text {
        width: 100%;
        padding: 15px;
    }

    .slider-text h2 {
        font-size: 1.2em;
    }

    .slider-text p {
        font-size: 0.9em;
    }
}

/* Responsive Design for Mobile */
@media (max-width: 480px) {
    .slider-image {
        height: auto;
    }

    .slider-text h2 {
        font-size: 1em;
    }

    .slider-text p {
        font-size: 0.8em;
    }
}
