.hero {
    position: relative;
    text-align: center;
    color: white;
}

.hero-image {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    filter: brightness(80%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 10px;
}

/* General Service Section Styling */
.service-detail {
    padding: 50px;
}

/* Styling for the service cards */
.service {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;  /* Space inside the card */

}


/* Default Service Styling: Image first, Text second */
.service .service-image {
    width: 30%;
    border-radius: 10px;
    object-fit: cover;
    height: 70vh;
}

.service-info h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.service-info {
    flex: 1;
    max-width: 50%; /* Ensures it takes only half of the service container */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    text-align: center;
}

.service-info p {
    width: 85%;
}

/* Reverse order: Text first, Image second */

.service-images {
    position: relative; /* Allows absolute positioning inside */
    width: 50%;
    display: flex;
    justify-content: center;
}

.service-images img {
    width: 80%; /* Default size */
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .service {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .service .service-image {
        width: 80%;
    }
    .service-info {
        flex: 1;
        max-width: none;
    }
    .hero-content {
        padding: 30px;
        border-radius: 10px;
        z-index: 1;
        transform: none;
        top: initial;
        left: initial;
    }
    .service .service-image {
        width: 90%;
        border-radius: 10px;
        object-fit: cover;
        height: 50vh;
    }
}
@media (max-width: 1280px) {
    .service .service-image {
        border-radius: 10px;
        object-fit: cover;
        height: 50vh;
    }
}




