.service-section {
    background-color: #003368;
    color: white;
    text-align: center;
    padding: 1px 20px;
}

.service-container-text {
    margin: 60px;
}

.service-container h1 {
    font-size: 58px;
    margin-bottom: 5px;
}

.service-container p {
    font-size: 19px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: transform 0.8s ease-in-out box-shadow 0.8s ease-in-out !important;
}

.card:hover {
    transform: translateY(-20px) !important;
    box-shadow: 0px 15px 25px rgba(255, 255, 255, 0.3) !important;
}

.card img {
    width: 100%;
    height: 680px;
    object-fit: cover;
    border-radius: 5px;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.card-title {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: white;
}

.card-icon {
    width: 100px !important;
    height: 100px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
    object-fit: contain;
    display: block;
}


.slide-in-right {
    animation: slideInRight 1.5s ease-out forwards;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.services-wrapper .services-group {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.services-wrapper .services-group.active {
    display: grid;
}


@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1440px) {
    .services-wrapper .services-group.active {
        grid-template-columns: repeat(3, 1fr);
    }

    .card img {
        height: 550px;
    }

    .card-title {
        font-size: 26px;
    }

    .card-icon {
        width: 80px !important;
        height: 80px !important;
    }
}

@media (max-width: 1024px) {
    .services-wrapper .services-group.active {
        grid-template-columns: repeat(2, 1fr);
    }

    .card img {
        height: 420px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-icon {
        width: 70px !important;
        height: 70px !important;
    }

    .service-container-text {
        margin: 40px;
    }

    .service-container h1 {
        font-size: 44px;
    }

    .service-container p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .services-wrapper .services-group.active {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 350px;
    }

    .card-title {
        font-size: 22px;
    }

    .card-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .service-container-text {
        margin: 30px 10px;
    }

    .service-container h1 {
        font-size: 36px;
    }

    .service-container p {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .card img {
        height: 280px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 15px;
    }

    .service-container h1 {
        font-size: 28px;
    }

    .service-container p {
        font-size: 16px;
    }
}