/* Custom CSS for Service Images - Uniform Sizing */

/* Service Three Items - Main Services Section */
.service-three__item__image {
    position: relative;
    margin: 0 -1px -1px;
    height: 200px; /* Fixed height for all service images */
    overflow: hidden;
}

.service-three__item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures images fill the container while maintaining aspect ratio */
    object-position: center; /* Centers the image within the container */
    transition: transform 0.3s ease;
}

/* Hover effect for service images */
.service-three__item:hover .service-three__item__image img {
    transform: scale(1.05);
}

/* Ensure hover background images also have consistent sizing */
.service-three__item__hover__inner {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .service-three__item__image {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .service-three__item__image {
        height: 160px;
    }
}

@media (max-width: 575px) {
    .service-three__item__image {
        height: 140px;
    }
}

/* Additional styling for better visual consistency */
.service-three__item {
    height: 100%;
}

.service-three__item__normal {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-three__item__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ensure text content has consistent spacing */
.service-three__item__title {
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.service-three__item__text {
    margin-bottom: 20px;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

/* Make sure all service cards have the same height */
.service-three .owl-item {
    display: flex;
}

.service-three .owl-item .item {
    width: 100%;
    display: flex;
}
