/* General Styles */
body {
    background-color: #FFFFFF; /* White background for the body */
}

.service-detail {
    display: flex;
    margin: 50px; /* Adjusted margin for better responsiveness */
    align-items: center;
    border: 2px solid #3D52A0; /* Border color and style */
    border-radius: 10px; /* Rounded corners */
    padding: 20px; /* Inner spacing */
    flex-wrap: wrap; /* Enable wrapping on smaller screens */
}

.service-left,
.service-right {
    flex: 1; /* Equal space for left and right sections */
    min-width: 300px; /* Minimum width for better layout */
    max-width: 50%; /* Prevent sections from becoming too wide */
    box-sizing: border-box; /* Include padding and border in width */
}

.service-card {
    border-radius: 10px;
    padding: 20px;
    margin: 10px; /* Space between cards */
    background-color: white;
}

/* Ensuring the image is fully visible */
.service-image {
    width: 100%; /* Full width of the container */
    height: auto; /* Maintain aspect ratio */
    max-height: 300px; /* Adjust max height to fit smaller areas */
    object-fit: contain; /* Ensures the image is not cropped */
    margin: 0 auto; /* Center the image horizontally */
    display: block; /* Block display for better layout */
    border-radius: 10px; /* Rounded corners */
    overflow: hidden; /* Prevent overflow issues */
}

.service-title {
    font-size: 2em;
    color: #3D52A0; /* Title color */
    margin-bottom: 30px; /* Space below the title */
}

.service-subheading {
    font-size: 1.5em;
    color: #3D52A0; /* Subheading color */
    text-align: left;
    padding-bottom: 15px;
}

.service-features {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
}

.service-features li::before {
    content: "\2022"; /* Unicode bullet */
    font-size: 18px; /* Size of the bullet */
    color: #000000; /* Bullet color */
    position: absolute;
    left: 0; /* Left alignment */
    top: 4px; /* Adjust bullet position */
}

.service-description-title {
    font-size: 1.5em;
    color: white; /* Title color for description */
    text-align: left;
    padding-bottom: 30px;
    padding-top: 20px;
}

.service-description {
    margin: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #3D5280, #8697CA); /* Gradient background */
    border-radius: 10px; /* Rounded corners */
    color: white; /* Text color */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.service-description:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .service-detail {
        flex-direction: column; /* Stack sections vertically */
        margin: 10px; /* Reduce margin */
        padding: 15px; /* Reduce padding */
    }

    .service-left,
    .service-right {
        min-width: 100%; /* Full width for smaller screens */
        max-width: 100%; /* Prevent overflowing */
    }

    .service-image {
        max-width: 100%; /* Ensure full width on tablets */
        max-height: 250px; /* Adjust image height for better fit */
    }

    .service-title {
        font-size: 1.5em; /* Adjust title size */
    }

    .service-subheading {
        font-size: 1.2em; /* Adjust subheading size */
    }

    .service-description {
        margin: 10px; /* Reduce margin */
        padding: 10px; /* Reduce padding */
    }
}

@media (max-width: 480px) {
    .service-detail {
        margin: 5px; /* Minimize margin for very small screens */
    }

    .service-left,
    .service-right {
        min-width: 100%; /* Full width */
        max-width: 100%; /* Prevent any overflow */
    }

    .service-image {
        max-width: 100%; /* Full width for small screens */
        max-height: 200px; /* Limit height for small screens */
    }

    .service-title {
        font-size: 1.2em; /* Adjust title size for small screens */
    }

    .service-subheading {
        font-size: 1em; /* Adjust subheading size */
    }

    .service-description {
        margin: 5px; /* Reduce margin further */
        padding: 8px; /* Reduce padding */
    }
}
