/* ✅ Service Card */
.services-page .service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 60px; /* Increased spacing */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* ✅ Alternating Layout */
.services-page .service-card.reverse {
    flex-direction: row-reverse;
    justify-content: space-between;
}

/* ✅ Fix Image Cropping & Stretching */
.services-page .service-image {
    flex: 1;
    max-width: 350px; /* Ensures a proper width */
    min-width: 300px; /* Maintains a consistent square aspect ratio */
    height: 350px; /* Fixed height to keep square shape */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.services-page .service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Fixes cropping issue */
    border-radius: 10px;
}

/* ✅ Content Box */
.services-page .service-content {
    flex: 2;
    padding: 30px;
	text-align: justify;
}

/* ✅ Title Box */
.services-page .service-title {
    background-color: #043375;
    color: #ffffff;
    padding: 15px;
    font-size: 22px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px; /* Adds more space below title */
}

/* ✅ Description Styling */
.services-page .service-content p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 10px;
}

/* ✅ Hover Effect */
.services-page .service-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ✅ Responsive Fixes */
@media (max-width: 992px) {
    .services-page .service-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .services-page .service-card.reverse {
        flex-direction: column;
    }

    .services-page .service-image {
        max-width: 100%;
        height: auto;
        min-width: unset;
        margin-bottom: 20px;
    }

    .services-page .service-image img {
        height: auto;
        object-fit: contain;
    }
}
