/* Modern Services Section Styles */
.services-section {
    background-color: #f9f9f9;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background - clean minimalist style */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    z-index: 0;
}

/* Section title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-weight: 700;
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #0088ff);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: #555;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 25px auto 0;
}

/* Service items container */
.services-container {
    position: relative;
    z-index: 1;
}

/* Service item */
.service-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    top: 0;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.15);
    top: -10px;
}

/* Service icon */
.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -30px auto 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.1);
}

.service-icon i {
    color: #0056b3;
    font-size: 28px;
}

/* Service image */
.service-image {
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.08);
}

/* Service content */
.service-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #0056b3;
}

.service-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Service button */
.service-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(90deg, #0056b3, #0088ff);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    align-self: center;
    box-shadow: 0 3px 8px rgba(0, 86, 179, 0.2);
}

.service-btn:hover {
    background: linear-gradient(90deg, #0088ff, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.25);
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .section-title h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 2rem;
    }
    .service-image {
        height: 160px;
    }
    .services-section {
        padding: 60px 0;
    }
}

@media (max-width: 575px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    .section-title p {
        font-size: 1rem;
    }
}
