.services {
    text-align: center; /* Center-align text */
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

.services-header {
    margin-bottom: 40px; /* Space between header and grid */
}

.services-header h2 {
    font-size: 2.5em;
    color: #005f87;
    margin-bottom: 15px;
}

.services-header p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.service-box {
    background-color: #0077b6;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover,
.service-box:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-box h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.service-box p {
    font-size: 1.1em;
    color: #f0f0f0;
    line-height: 1.6;
}


/* Responsive Services Section */
@media (max-width: 1024px) {
    .services {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .service-box {
        padding: 20px;
    }

    .service-box h3 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }

    .service-box p {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .services {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 50px 15px;
    }

    .service-box {
        padding: 18px;
    }

    .service-box h3 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .service-box p {
        font-size: 0.95em;
    }
}
