/* Services Page Styles */
.services {
    display: grid; /* Use grid layout for services */
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 2vw; /* Changed from 20px to 2vw for responsiveness */
    text-align: center; /* Center text alignment */
    margin: 0 auto; /* Center the services container */
    max-width: 1200px; /* Maximum width for the container */
    padding: 1.25rem; /* Converted from 20px to rem */
}

.service {
    margin-bottom: 1.875rem; /* Changed from 30px to rem */
}

.service img {
    width: 18.75vw; /* Changed from 300px to vw */
    height: 18.75vw; /* Changed from 300px to vw */
    object-fit: cover; /* Cover the area without stretching */
    border-radius: 50%; /* Make the image circular */
    border: 3px solid #2f2f93; /* Add a border with desired color and thickness */
}

.service h3 {
    margin-top: 15px; /* Keeping this as px or change to rem as needed */
    font-size: 1.125rem; /* Changed from 18px to rem */
}

/* Responsive Styles */
@media (max-width: 1023px) {
    .services {
        grid-template-columns: 1fr; /* Switch to a single column on medium screens */
        gap: 3vw; /* Adjust gap for spacing */
        padding: 1rem;
    }

    .service img {
        width: 35vw; /* Increase image size slightly */
        height: 35vw;
    }

    .service h3 {
        font-size: 1rem; /* Adjust font size for readability */
    }
}

@media (max-width: 768px) {
    .services {
        gap: 4vw; /* Increase gap slightly for smaller screens */
        padding: 0.75rem;
    }

    .service img {
        width: 45vw;
        height: 45vw;
    }

    .service h3 {
        font-size: 0.95rem; /* Further adjust font size */
    }
}

@media (max-width: 480px) {
    .services {
        padding: 0.5rem; /* Smaller padding for compact view */
    }

    .service img {
        width: 60vw;
        height: 60vw;
    }

    .service h3 {
        font-size: 0.875rem; /* Smaller font size for mobile */
    }
}