.services-section {
    background-color: #f4f4f4;
    padding: 40px;
    text-align: center;
}

.services-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #181444;
    margin-bottom: 20px;
    margin-top: 50px;
    position: relative;
}

.services-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -13px; 
    transform: translateX(-50%); 
    width: 118px;
    height: 8px; 
    background-color: #f5d709; 
    border-radius: 15px; 
}

.services-title-main {
    font-size: 2.5em;
    font-weight: bold;
    color: #181444;
    margin-bottom: 20px;
    margin-top: 50px;
    position: relative;
}

.services-text {
    font-size: 1em;
    color: #181444;
    font-weight: normal;
    line-height: 1.6;
    margin-bottom: 15px;
}

.services-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.service-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 50px;
    position: relative;
}

.service-item {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    max-width: 350px; 
    position: relative;
    overflow: hidden; 
    border-radius: 20px;
    border: 2px solid #003366; 
    box-shadow: 0 1px 9px rgba(0, 0, 0, 0.5); 
    padding: 5px; 
    flex: 1 1 22%;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-img {
    width: 100%;
    height: 150px; 
    object-fit: contain; 
    transform: scale(0.95);
}

.service-caption {
    margin-top: 10px;
    font-size: 1.1em; 
    color: #181444;
    font-weight: bold;
    text-align: left;
    margin-left: 20px; 
}

.service-item p {
    margin-top: 7px;
    font-size: 1em; 
    font-weight: bold;
    color: #101010; 
    text-align: left;
    margin-left: 20px; 
    margin-bottom: 10px;
}

.view-all-button {
    display: inline-block;
    padding: 10px 25px;
    font-size: 1.2em;
    color: #181444; 
    background-color: #f4f4f4; 
    border: 2px solid #181444;
    box-shadow: 0 1px 9px rgba(0, 0, 0, 0.5); 
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold; 
    transition: all 0.3s ease;
    margin-top: -15px;
    margin-bottom: 40px;
}

.view-all-button:hover {
    background-color: #181444; 
    color: #f4f4f4; 
}

.services-details-title {
    font-size: 2em; 
    font-weight: bold;
    color: #181444;
    margin-top: 50px;
    margin-bottom: 40px;
    position: relative;
}

.services-details-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -13px;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background-color: #f5d709;
    border-radius: 15px;
}

.services-details-text {
    font-size: 1.08em;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

@media (max-width: 768px) {
    .service-item {
        max-width: 100%;
        flex: 1 1 100%; 
    }

    .services-title-main {
        font-size: 1.5em;
    }

    .services-text {
        font-size: 1em;
    }
}