/* Base styles */
.overlay-container {
    position: relative;
    color: white;
    display: flex;
    height: 340px;

}
   .main-service {
        background-image: url("/assets/MainPages/Services.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #167AD8;
    opacity: 0.7;
}

.overlay-text {
    position: relative;
    display: flex;
    justify-content: center;
    height: 100%;
    flex-direction: column;
}
    .overlay-text h1 {
        color: var(--Neutral-White, #FFF);
        font-size: calc(16px + 2vw);
        font-style: normal;
        font-weight: 600;
        line-height: normal;
    }
.content-main-service h5 {
    color: var(--Neutral-900, #1A1A1A);
    font-size: clamp(16px, 3vw, 24px); /* Responsive font size using clamp */
    font-style: normal;
    font-weight: 600;
    line-height: 180%;
}

.content-main-service img {
    height: 431px;
}

@media screen and (max-width: 767px) {
    .services-main h2{
        text-align:center
    }
    .services-main p {
        text-align: center
    }
    .content-main-service h5 {
        font-size: clamp(14px, 4vw, 20px);
    }

    .content-main-service img {
        height: auto; /* Adjust image height */
    }
}

@media screen and (max-width: 576px) {
    .overlay-container {
        height: 30vh;
    }


    .content-main-service h5 {
        font-size: clamp(14px, 5vw, 18px);
    }

    .content-main-service img {
        height: auto; /* Adjust image height */
    }
}
