/* services.css - modular CSS for service section */

.featured-services {
    padding: 4rem 0;
    background-color: #eaeaea;
}

.featured-services h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-item {
    background-color: white;
    padding: 2rem;
    width: 350px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;  /* Ensures the image doesn't overflow the rounded corners */
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Style for the images */
.service-image {
    width: 100%;
    height: auto;
    border-radius: 8px;  /* Rounded corners for the image */
    object-fit: cover;  /* Makes sure the image covers the entire space without distortion */
    margin-bottom: 1rem;  /* Space between the image and the text */
}

/* Service heading and text */
.service-item h3 {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: #333;
}

.service-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.service-item a {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: #FF6A00;
    font-weight: bold;
}

.service-item a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .service-list {
        flex-direction: column;
        align-items: center;
    }
}
