/*CSS for All Custom Modules*/
.custom-modules--wrapper {
    position: relative;
    margin: 50px 0px; /* Adjust spacing above and below the module as needed */
}

.custom-modules--wrapper + .custom-modules--wrapper {
    margin-top: 0px;
}

.custom-modules-content {
    position: relative;
    z-index: 2;
}

/* Style 1: Background Image with content on top */

.custom-modules--wrapper.style-1 .bkg-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}

.custom-modules--wrapper.style-1 .custom-modules-content {
    padding: 32px; /* Adjust padding as needed for your project */
}

.custom-modules--wrapper.style-1 .custom-modules-content h2,
.custom-modules--wrapper.style-1 .custom-modules-content h3,
.custom-modules--wrapper.style-1 .custom-modules-content p {
    color: #fff; /* Adjust font color to match the site. Add additional font styles if needed */
}

.custom-modules--wrapper.style-1 .custom-modules-content {
    text-align: center;
    color: #fff;
}

.cm-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 15px 0;
}

.cm-step {
    padding: 30px;
    border-radius: 5px;
}



.cm-step:last-child:after {
    display: none;
}

.cm-steps .cm-step:nth-child(3n + 1) {
  background-color: #a9242b; 
}

.cm-steps .cm-step:nth-child(3n + 2) {
  background-color: #00467f;
}

.cm-steps .cm-step:nth-child(3n + 3) {
  background-color: #fdc00f; 
  color: #000;
}

.cm-steps .cm-step:nth-child(3n + 3):after {
    display: none;
}

.custom-modules--wrapper.style-1 a.btn.btn-primary:before {
    font-family: icomoon;
    font-weight: 300;
    content: "\e905";
    display: inline-block;
    left: 0;
    top: -3px;
    margin-right: 8px;
}

section.conversion-module + section.solution.hidden-sm-up {
    margin-top: 0;
}

.cm-step:after {
    content: "\f105";
    font-family: 'icomoon';
    display: block;
    position: absolute;
    transform: rotate(90deg);
    right: 50%;
    margin-top: 40px;
}

@media screen and (min-width: 768px) {
    .custom-modules--wrapper {
        margin-bottom: 20px;
    }

    .cm-steps {
        flex-direction: row;
        justify-content: center;
    }

    .cm-step:after {
        content: "\f105";
        font-family: 'icomoon';
        display: block;
        position: absolute;
        transform: none;
        right: 0;
        bottom: 30%;
        margin-right: -30px;
    }
}

@media screen and (min-width: 1200px) {
    .custom-modules--wrapper {
        margin: 80px 0;
    }
}

/* .custom-modules--wrapper.style-1:before {
    content: '';
    background: #000; 
    opacity: 0.8; 
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    z-index: 1;
} */


/* Style 2: 50/50 Layout */
.custom-modules--wrapper.style-2 {
    background: #fff; /* Change to desired background color */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2); /* Add shadow effect */
}

.custom-modules--wrapper.style-2 .image-wrapper {
    position: relative;
    height: 200px; /* Adjust height as needed for your project */
    overflow: hidden;

}

.custom-modules--wrapper.style-2 .image-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.custom-modules--wrapper.style-2 .custom-modules-content {
    padding: 32px; /* Adjust padding as needed for your project */
}

@media(min-width:768px){
    .custom-modules--wrapper.style-2{
        display: flex;
        flex-direction: row-reverse; /*Change to row if you want the image on the left */
        align-items: center;
    }

    /*If you want a different ratio for the image and content, adjust the width percentage */
    .custom-modules--wrapper.style-2 .custom-modules-content,
    .custom-modules--wrapper.style-2 .image-wrapper {
        width: 50%;
    }

    .custom-modules--wrapper.style-2 .image-wrapper {
        height: auto;
        min-height: 250px;/* Adjust height as needed for your project */
    }
}

/* Style 3: Background color with Text No Image */

.custom-modules--wrapper.style-3 {
    background: linear-gradient(15deg, #142850, #14365f, #13476f, #125d80, #107792, #0d96a5, #09b8b4, #04ccb1); /* Change to desired gradient or solid color */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);/* Add shadow effect */
}

.custom-modules--wrapper.style-3 .custom-modules-content {
    padding: 32px;/* Adjust padding as needed for your project */
    text-align: center;/* Adjust text alignment as needed for your project */

}

.custom-modules--wrapper.style-3 .custom-modules-content h2,
.custom-modules--wrapper.style-3 .custom-modules-content h3,
.custom-modules--wrapper.style-3 .custom-modules-content p {
    color: #fff; /* Adjust font color to match the site. Add additional font styles if needed */
}