/* Services Section Layout Fix */

/* Ensure services section has proper spacing and layout */
.services-overview {
    padding: 80px 0 !important;
    margin: 0 !important;
    background: #f8fafc;
    width: 100%;
    overflow: hidden;
}

.services-overview .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-overview .section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-overview .section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #0096D6, #003B73);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.services-overview .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003B73;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.services-overview .section-description {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* Service Card Styling */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 59, 115, 0.08);
    border: 1px solid rgba(0, 150, 214, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 59, 115, 0.15);
    border-color: #0096D6;
}

.service-card.featured {
    border: 2px solid #0096D6;
    background: linear-gradient(135deg, rgba(0, 150, 214, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
}

.service-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0096D6, #003B73);
}

/* Service Icon */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 150, 214, 0.1), rgba(0, 59, 115, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #0096D6;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #0096D6, #003B73);
    color: white;
    transform: scale(1.05) rotate(5deg);
}

/* Service Badge */
.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card.featured .service-badge {
    background: linear-gradient(135deg, #2ed573, #26d0ce);
}

/* Service Content */
.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #003B73;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.service-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.service-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.5;
    position: relative;
    padding-left: 24px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #2ed573;
    font-weight: bold;
    font-size: 14px;
}

/* Service CTA */
.service-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0096D6, #003B73);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.service-cta:hover {
    background: linear-gradient(135deg, #003B73, #0096D6);
    transform: translateX(4px);
    text-decoration: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
    
    .service-card {
        padding: 30px 24px;
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .services-overview {
        padding: 60px 0 !important;
    }
    
    .services-overview .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .service-card {
        padding: 24px 20px;
        min-height: 400px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .services-overview {
        padding: 40px 0 !important;
    }
    
    .services-overview .container {
        padding: 0 16px;
    }
    
    .services-overview .section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 20px 16px;
        min-height: 350px;
    }
    
    .service-badge {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 16px;
        display: inline-block;
    }
}