.services {
    padding: 60px 20px;
    max-width: 1500px;
    margin: 5% auto;

}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.left-column {
    flex: 1;
}

.right-column {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.h1-services {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.search-box {
    position: relative;
    width: 350px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
}



.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-icon {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1d4f77;
    display: flex;
    justify-content: center;
    align-items: center;
  
    overflow: hidden; 
}

.service-icon i {
    font-size: 1.5rem;
    color: #fff;
    width: auto;
    height: auto;
    max-width: 100%;  
    max-height: 100%;
    line-height: 1;  
}



.hidden-services {
    display: none;
}

.show-more-container {
    text-align: center;
    margin-top: 40px;
    margin: 0 auto;
}

.show-more-btn {
    background-color: #1d4f77;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.show-more-btn:hover {
    background-color: #163d5a;
}




.service-box {
    background-color: #F4F4F4;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: calc(33.333% - 20px);
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}


.service-box  h3 {
font-size: 1.1rem;
font-weight: 400;
}

.service-box.hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.service-box.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.hidden-services {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.hidden-services.show {
    max-height: 2000px;  
    opacity: 1;
    transform: translateY(0);
}


.service-box {
    background-color: #F4F4F4;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: calc(33.333% - 20px);
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    opacity: 1;
}
.service-box.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.service-box.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

@media (max-width: 1024px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .right-column {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .service-box {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .service-box {
        width: 100%;
    }
    .h1-services{
        font-size: 2.2rem;
        text-align: center;
        line-height: 1.6;
        margin-bottom: 5px;
    }
}
