.inner_banner_services {
    margin-bottom: 60px;
}
.inner_banner_services {
    margin-bottom: 0px !important;
    margin-top: 86px;
}

.services_banner {
    background-image: url(../images/aboutpage/about_banner.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}
.services_banner .inner_banner_title {
    display: inline-block;
    padding: 160px 0px 160px;
    position: relative;
    text-align: left;
}

/* Custom CSS */
.custom-image {
    border-radius: 20px;
    width: 100%;
    height: auto;
}

/* Optional: Add custom styling for service_1st_sec if needed */
.service_1st_sec {
    background-color: #f8f9fa; /* Example background color, adjust as needed */
    padding: 80px 140px; /* Adjust padding if desired */
}
.sercies_top_sec_image_side {
    text-align: center;
}
.sercies_top_sec_image_side img {
    width: 420px;
}

.service_1st_sec h4,
.service_2st_sec h4,
.service_3rd_sec h4,
.service_4th_sec h4,
.service_5th_sec h4 {
    font-size: 30px;
    font-weight: 800;
    color: #fe0002;
}
.service_1st_sec h5,
.service_2st_sec h5,
.service_3rd_sec h5,
.service_4th_sec h5,
.service_5th_sec h5 {
    color: #343434;
    font-size: 32px;
    line-height: 44px;
    margin-top: 5px;
    font-weight: 600;
}
.service_2st_sec h5,
.service_4th_sec h5 {
    color: white;
}
.service_2st_sec p,
.service_4th_sec p {
    color: #f8f9fa;
}

.sercies_top_sec_para_div {
    padding-top: 30px;
}
.service_2st_sec {
    background-color: #454545; /* Example background color, adjust as needed */
    padding: 80px 140px; /* Adjust padding if desired */
}
.service_3rd_sec {
    padding: 80px 140px; /* Adjust padding if desired */
}
.left_side_image_div_bottom {
    margin-top: 20px;
}
.right_side_image_div {
    margin-top: 135px;
    margin-left: -35px;
}
.service_3rd_sec .sercies_top_sec_para_div {
    padding-top: 30px;
    padding-right: 100px;
}
.service_4th_sec {
    padding: 80px 140px; /* Adjust padding if desired */
    background-color: #454545; /* Example background color, adjust as needed */
}
.service_5th_sec {
    padding: 80px 140px; /* Adjust padding if desired */
}
.service_5th_sec .title_div {
    padding: 0 250px 60px 250px;
    text-align: center;
}
.service-slider_servicepage .owl-stage {
    display: flex;
    gap: 15px; /* Fixed gap between cards */
}
.service-slider_servicepage .owl-item .card {
    width: 350px; /* Fixed width */
    height: 285px; /* Fixed height */
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 10px;
    flex-shrink: 0; /* Prevents cards from shrinking */
    border: none;
    padding: 0 20px;
}

.service_sce {
    background-color: #454545;
    padding: 70px 0px;
    position: relative;
    overflow: hidden;
}

.service_sce .web_title {
    margin-bottom: 70px;
}

.service_sce .wgl-services-7 .wgl-services_wrap {
    position: relative;
    z-index: 1;
    border-radius: 0px;
    overflow: hidden;
}

.service_sce .wgl-services-7 .wgl-services_wrap:before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*opacity: 0;*/
    transition: 0.4s;
    /* background-color: rgba(0, 0, 0, 0.3); */
    background-image: url(../images/service_rectangle.png);
    background-repeat: no-repeat;
}

.service_sce .wgl-services-7 .wgl-services_image-wrap {
    overflow: hidden;
}

.service_sce .wgl-services-7 .wgl-services_title {
    line-height: 1.3;
    position: relative;
    z-index: 1;
    margin-bottom: 0px;
    font-weight: 600;
    color: #fff;
    font-size: 22px;
}
.service_sce .wgl-services-7 .wgl-services_title a {
    color: #fff;
    transition: all 0.5s;
    font-weight: 600;
    font-size: 24px;
    text-decoration: none;
}

.service_sce .wgl-services-7 .wgl-services_text {
    color: #ffffff;
    transition: opacity 0.4s, visibility 0.4s, max-height 0.6s, margin 0.4s;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.service_sce .wgl-services-7 .wgl-services_content {
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 0;
    width: 100%;
    /*padding: 40px;*/
    padding: 30px 25px;
}

.service_sce .wgl-services-7 .wgl-services_wrap:hover .wgl-services_text {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    transition: max-height 2s;
    margin-top: 10px;
    margin-bottom: 40px;
    font-size: 16px;
    font-weight: 300;
}

.service_sce .wgl-services-7 .wgl-services_wrap:hover:before {
    opacity: 1;
    background-color: rgba(254, 0, 2, 0.79);
    background-image: none;
}
.service_sce .wgl-flipbox {
    position: relative;
    perspective: 1000px;
    height: 320px;
    width: 100%;
}
.service_sce .web_title h2 {
    font-size: 34px;
    /* font-weight: 300; */
    font-weight: 700;
    color: #fe0002;
}
.service_sce .web_title p {
    /* font-weight: 300; */
    font-weight: 500;
    font-size: 16px;
    color: white;
}
.service_sce .service_bolg {
    border-radius: 25px;
    overflow: hidden;
}

@media (max-width: 767px) {
    /* Inner Banner Adjustments */
    .inner_banner_services {
        margin-top: 60px; /* Slightly reduced for mobile */
    }
    .services_banner .inner_banner_title {
        padding: 100px 0; /* Reduced padding for mobile */
        text-align: center; /* Center-align title for better mobile appearance */
    }

    /* Service Sections Padding and Layout */
    .service_1st_sec,
    .service_2st_sec,
    .service_3rd_sec,
    .service_4th_sec,
    .service_5th_sec {
        padding: 40px 15px; /* Reduced padding for mobile */
    }

    /* Typography Adjustments */
    .service_1st_sec h4,
    .service_2st_sec h4,
    .service_3rd_sec h4,
    .service_4th_sec h4,
    .service_5th_sec h4 {
        font-size: 22px; /* Smaller font size for mobile */
    }
    .service_1st_sec h5,
    .service_2st_sec h5,
    .service_3rd_sec h5,
    .service_4th_sec h5,
    .service_5th_sec h5 {
        font-size: 24px; /* Smaller font size for mobile */
        line-height: 32px; /* Adjusted line height */
    }

    /* Image Adjustments */
    .sercies_top_sec_image_side img {
        width: 100%; /* Make image fully responsive */
        max-width: 280px; /* Cap the width for mobile */
    }
    .right_side_image_div {
        margin-top: 20px; /* Reduced margin for mobile */
        margin-left: 0; /* Remove negative margin to prevent overflow */
    }
    .service_3rd_sec .sercies_top_sec_para_div {
        padding-right: 0; /* Remove extra padding for mobile */
        padding-top: 20px; /* Slightly reduced padding */
    }

    /* Service 5th Section Title Div */
    .service_5th_sec .title_div {
        padding: 0 15px 30px 15px; /* Reduced padding for mobile */
    }

    /* Owl Carousel Adjustments for service-slider_servicepage */
    .service-slider_servicepage .owl-stage {
        gap: 10px; /* Reduced gap for mobile */
    }
    .service-slider_servicepage .owl-item .card {
        width: 100%; /* Full width for mobile */
        height: 220px; /* Reduced height for mobile */
        padding: 0 10px; /* Adjusted padding */
    }

    /* Service_sce Section Adjustments */
    .service_sce {
        padding: 40px 0; /* Reduced padding for mobile */
    }
    .service_sce .web_title {
        margin-bottom: 40px; /* Reduced margin for mobile */
    }
    .service_sce .web_title h2 {
        font-size: 26px; /* Smaller font size for mobile */
    }
    .service_sce .web_title p {
        font-size: 14px; /* Smaller font size for mobile */
    }
    .service_sce .wgl-flipbox {
        height: 260px; /* Reduced height for mobile */
    }
    .service_sce .wgl-services-7 .wgl-services_title a {
        font-size: 20px; /* Smaller font size for mobile */
    }
    .service_sce .wgl-services-7 .wgl-services_content {
        padding: 20px 15px; /* Reduced padding for mobile */
    }
    .service_sce .wgl-services-7 .wgl-services_wrap:hover .wgl-services_text {
        font-size: 14px; /* Smaller font size for mobile */
        margin-bottom: 20px; /* Reduced margin for mobile */
        max-height: 300px; /* Adjusted max-height for mobile */
    }
    .service_sce .wgl-services-7 .wgl-services_wrap:before {
        background-size: cover; /* Ensure background image scales properly on mobile */
    }
    .owl-theme .owl-dots {
        transform: unset !important;
    }
    .sercies_top_sec_heading_div {
        padding-top: 20px;
    }
}
