.services {
    padding: 0 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-image {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 12 / 12; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.embedded-image {
    position: absolute;
    top: 39%;  
    left: 49%;
    transform: translate(-50%, -50%); 
    width: 80%;  
    height: 60%;  
    overflow-y: auto;  
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.embedded-image img {
    width: 100%;
    height: auto; 
}
.read-more a{
    background-color: #51a5c6;
    border-radius: 10%;
    font-weight: 400;
    letter-spacing: 1px;;
}
.read-more a:hover{
    background-color: #208bb5;
    color:white;
}
@media screen and (max-width: 768px) {
    .home-bg {
        padding: 20px;
    }
    .featured-image {
        max-width: 300px;
    }
    .embedded-image {
        width: 62%;
        height: 40%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .featured-image {
        max-width: 500px;
    }
    .embedded-image {
        left: 49.8%;
        width: 61%;
        height: 41%;
    }
}

@media screen and (min-width: 1024px) {
    .featured-image {
        max-width: 700px;
    }
    .embedded-image {
        left: 49.5%;
        width: 61.5%;
        height: 41%;
    }
}

@media screen and (min-width: 1440px) {
    .featured-image {
        max-width: 900px;
    }
    .embedded-image {
        left: 49.5%;
        width: 62%;
        height: 40%;
    }
}
@media screen and (max-width: 425px) {
    .service{
        flex-direction: column;
        padding: 0 5%;
        text-align: center;
    }
    .featured-image {
        order: -1; 
        margin: 0 auto; 
    }

    .featured-image img {
        max-width: 100%;
        height: auto;
    }

    .content {
        padding: 10px; 
        width: 100%; 
        box-sizing: border-box; 
        padding: 0 !important;
    }

    .read-more {
        text-align: center;
    }
}

@media screen and (max-width: 320px) {
    .content h1 {
        font-size: 20px;
      }
    
      .content p {
          font-size: 14px;
      }
    
      .read-more a {
          font-size: 14px;
          padding: 5px;
      }
}