.elementor .elementor-background-overlay,
.elementor .elementor-background-slideshow {
    height: auto;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Hide the widget container on mobile */

@media (max-width: 768px) {
    .elementor-widget-container2 {
        display: none;
        /* Hide the entire container on mobile devices */
    }
}

/* Mobile responsiveness */

@media (max-width: 768px) {
    h1.elementor-heading-title {
        font-size: 24px;
        /* Adjust font size for mobile */
    }
    h5.elementor-heading-title {
        font-size: 16px;
        /* Adjust font size for mobile */
        padding: 0 10px;
        /* Add some padding for better spacing */
    }
}

@media (max-width: 480px) {
    h1.elementor-heading-title {
        font-size: 20px;
        /* Further reduce font size for smaller screens */
    }
    h5.elementor-heading-title {
        font-size: 14px;
        /* Further reduce font size for smaller screens */
    }
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
    /* Allow wrapping */
}

.text-section {
    flex: 1;
    padding-right: 20px;
    text-align: left;
    color: #555;
}

.text-section h4 {
    border-bottom: 2px solid #ED1943;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.slider-section {
    flex: 1;
    display: grid;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: #fff;
    margin-bottom: 20px;
    /* Add margin for spacing */
}

.image-container {
    max-width: 800px;
    position: relative;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-fit: cover;
    object-position: left;
    display: block;
    border-radius: 1rem;
}

.image-before {
    position: absolute;
    inset: 0;
    width: 50%;
    /* Default width at 50% */
    filter: none;
    /* Remove the grayscale filter */
    border-radius: 0;
    /* Remove the curved corners */
}

.slider-input {
    position: absolute;
    inset: 0;
    cursor: pointer;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.slider-divider {
    position: absolute;
    inset: 0;
    width: .2rem;
    height: 100%;
    background-color: #ED1943;
    left: 50%;
    /* Center the divider initially */
    transform: translateX(-50%);
    pointer-events: none;
}

.slider-handle {
    position: absolute;
    background-color: #ED1943;
    color: white;
    padding: .5rem;
    border-radius: 100vw;
    display: grid;
    place-items: center;
    top: 50%;
    left: 50%;
    /* Center the handle initially */
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        /* Stack elements */
        align-items: center;
        /* Center items */
    }
    .text-section {
        padding-right: 0;
        /* Remove padding on smaller screens */
        text-align: center;
        /* Center text */
    }
    .slider-section {
        width: 100%;
        /* Full width for images */
    }
}

.how-it-works-container {
    font-family: 'Poppins', sans-serif;
    max-width: 1619px;
    margin: auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.how-it-works-title {
    text-align: center;
    color: #ED1943;
    margin-bottom: 20px;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 20px 0;
}

.step {
    flex: 1;
    margin: 10px;
    padding: 20px;
    border-radius: 8px;
    background: #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    text-align: center;
}

.step:hover {
    transform: scale(1.05);
}

.step h2 {
    color: #ED1943;
    margin: 10px 0;
}

.step i {
    font-size: 40px;
    color: #ED1943;
    margin-bottom: 10px;
}

.cta-button {
    display: inline-block;
    margin: 30px auto;
    padding: 15px 30px;
    background: #ED1943;
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}

body {
    align-items: center;
    justify-content: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 7));
    }
}

.slider {
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: auto;
}

.slider .slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 14);
}

.slider .slide {
    height: 100px;
    width: 250px;
}