.services {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 60px;
}

.service-section {
    padding: 20px 20px 60px 20px;
    text-align: center;
    background-color: #f9f5f5;
}

.service-section h1 {
    font-size: 66px;
    margin-bottom: 40px;
    color: #0c2d73;
    font-family: 'Arial Black', sans-serif;
}

.service {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

/* Card images */
.service img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.service h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #1e5631;
    font-family: 'Arial Black', sans-serif;
}

.service p {
    font-size: 15px;
    color: #555;
    line-height: 1.3;
    font-family: 'Arial', sans-serif;
}

/* Hover effect for the card itself */
.service:hover {
    transform: translateY(-20px) scale(1.1);
    filter: brightness(1.1);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

/* Dim all other cards when one is hovered */
.services:hover .service {
    filter: brightness(0.4);
}

.services .service:hover {
    filter: brightness(1.1);
}

@media (max-width: 992px) {
    .services {
        gap: 30px;
    }
    .service {
        width: 45%; /* 2 cards per row */
    }
}

/* Small devices (mobile phones) */
@media (max-width: 768px) {
    .service-section h1 {
        font-size: 36px;
        margin-bottom: 30px;
    }
    .services {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .service {
        width: 90%; /* full width on mobile */
    }
    .service img {
        height: 180px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .service-section h1 {
        font-size: 28px;
    }
    .service h3 {
        font-size: 16px;
    }
    .service p {
        font-size: 13px;
    }
    .service img {
        height: 150px;
    }
}
