/* CSS for Services flexible section */ 
/* Import Main Css */

.services {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-secondary-soft);
}

.services__card {
    background-color: var(--color-white);
    margin-top: 100px;
    width: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Hidden services styling */
.services__item--hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.services__item--hidden.services__item--show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

.services__item--visible.services__item--hide {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.services__item--visible.services__item--hide.hidden {
    display: none !important;
}

.services__card_images {
    position: relative;
}

.services__card-signature {
    width: 70px;
    height: 70px;
    position: absolute;
    padding: 3px;
    top: -35px;
    border-radius: 50%;
    border: 1px solid var(--color-white);
    background-color: var(--color-white);
    z-index: 1;
    overflow: hidden;
}

.services__card-signature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    overflow: hidden;
}

.services__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image  {
    width: 100%!important;
    min-width: 100%!important;
    height: 100%!important;
    object-fit: cover!important;
    object-position: center!important;
}

.service-flag {
    width: 100%!important;
    min-width: 100%!important;
    height: 100%!important;
    object-fit: cover!important;
    object-position: center!important;
}

.services__card-flag {
    width: 100px;
    height: 60px;
    position: absolute;
    object-fit: cover;
    bottom: -30px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid var(--color-white);
    background-color: var(--color-white);
}

.services__card-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services__card-title {
    margin-top: 40px;
    padding: 10px 10px;
}

.services__card:hover {
    background-color: var(--color-primary);
}

.services__card:hover .services__card-title {
    color: var(--color-white);
}

.services__card:hover .services__card-image img {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Button styling */
.btn-more-countries,
.btn-less-countries {
    width: fit-content !important;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-more-countries:hover,
.btn-less-countries:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-more-countries:disabled,
.btn-less-countries:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Loading state for buttons */
.btn-more-countries.loading,
.btn-less-countries.loading {
    position: relative;
    color: transparent;
}

.btn-more-countries.loading::after,
.btn-less-countries.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation for showing services */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services__item--show {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services__card {
        margin-top: 80px;
    }

    
    .btn-more-countries,
    .btn-less-countries {
        margin: 5px;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .services__buttons {
        flex-direction: column;
        gap: 10px;
    }
    .services__card {
        margin-top: 70px;
    }
    
    
    
    .services__card-title {
        font-size: 1rem !important;
        margin-top: 30px;
    }
}