/* Enhanced Services & Benefits Styles */

/* ======== SERVICES SECTION ENHANCEMENT ======== */

/* Service Wrapper Enhancement - Make it larger & more attractive */
.services-wrapper {
    gap: 35px !important;
    padding: 20px !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    margin: 20px auto !important;
    max-width: 1400px !important; /* Increased from default container */
}

/* Service Items Enhancement */
.service-item {
    padding: 35px 25px 45px !important;
    border-radius: 16px !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    background: #fff !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Enhanced hover effect */
.service-item:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Make the service icon larger and more attractive */
.service-icon {
    margin-bottom: 30px !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    width: 200px !important; /* Increased container size for larger images */
    height: 200px !important;
    border-radius: 16px !important; /* Changed to match image border-radius */
    padding: 10px !important;
    background: linear-gradient(145deg, #ffffff, #f5f5f5) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Service images - much larger and higher quality with square corners */
.service-img {
    width: 180px !important; /* Increased from 140px for better mobile display */
    height: 180px !important; /* Increased from 140px for better mobile display */
    border-radius: 12px !important; /* Changed to square with rounded corners */
    object-fit: cover !important;
    object-position: center !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 4px solid var(--secondary-color) !important; /* Thicker border */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    filter: contrast(1.1) brightness(1.05) !important; /* Enhance image quality */
}

/* Better hover effect for images */
.service-item:hover .service-img {
    transform: scale(1.08) rotate(5deg) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced titles */
.service-item h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    color: var(--primary-color) !important;
    text-align: center !important;
}

/* Enhanced description text */
.service-item p {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
    text-align: center !important;
    margin-bottom: 0 !important;
}

/* Add a decorative element */
.service-item::after {
    content: "";
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 4px !important;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color)) !important;
    border-radius: 4px !important;
}

/* ======== BENEFITS SECTION ENHANCEMENT ======== */

/* Benefits Cards Container */
.benefits-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 50px !important; /* Increased from 40px */
    padding: 20px !important;
    margin: 30px auto !important;
    max-width: 1400px !important;
}

/* Individual Benefit Card */
.benefit-card {
    background-color: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Enhanced hover effect */
.benefit-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Image Container */
.benefit-card-image {
    overflow: hidden !important;
    position: relative !important;
    height: 280px !important; /* Increased height for better image display without cropping */
    background-color: #f9f9f9 !important; /* Light background for better image contrast */
}

/* Enhanced Image Quality and Display */
.benefit-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Changed from cover to contain to preserve entire image */
    object-position: center !important;
    transition: transform 0.8s, filter 0.5s !important;
    filter: brightness(1.05) contrast(1.1) saturate(1.1) !important; /* Enhanced image quality */
    padding: 5px !important; /* Added padding to prevent edge cropping */
    background-color: #ffffff !important; /* Background color for contained images */
}

/* Image hover effect */
.benefit-card:hover .benefit-card-image img {
    transform: scale(1.1) !important;
    filter: brightness(1.1) contrast(1.15) saturate(1.15) !important;
}

/* Add overlay to images for better text contrast */
.benefit-card-image::after {
    content: "";
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 70px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent) !important;
}

/* Content Container */
.benefit-card-content {
    padding: 25px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    background: #fff !important;
    position: relative !important;
}

/* Title styling */
.benefit-card-content h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    color: var(--primary-color) !important;
    line-height: 1.3 !important;
}

/* Paragraph styling */
.benefit-card-content p {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin-bottom: 20px !important;
}

/* Add decorative element to content */
.benefit-card-content::before {
    content: "";
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color)) !important;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .services-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .benefits-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .services-wrapper {
        grid-template-columns: 1fr !important;
    }
    
    .benefits-cards {
        grid-template-columns: 1fr !important;
    }
    
    .service-icon {
        width: 180px !important; /* Larger for mobile */
        height: 180px !important;
    }
    
    .service-img {
        width: 160px !important; /* Much larger for mobile visibility */
        height: 160px !important;
    }
    
    .benefit-card-image {
        height: 220px !important; /* Taller for better image display */
    }
}