/* Services Page Specific CSS */


/* Services Grid */
.services-grid {
    background-color: var(--white);
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Service Card Design - Matching Index Page Style */
.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure all cards have equal height */
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
    flex-shrink: 0; /* Prevent image from shrinking */
}

.service-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.service-card-content {
    padding: 25px;
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top */
}

.service-card-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    margin-top: 0; /* Remove any top margin */
    line-height: 1.2; /* Consistent line height */
    min-height: 60px; /* Ensure consistent heading height */
    display: flex;
    align-items: center; /* Vertically center text */
    font-weight: 600;
}

.service-card-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1; /* Take remaining space */
    display: flex;
    align-items: flex-start; /* Align text to top */
    padding-top: 10px; /* Consistent spacing from heading */
}

/* Service Categories */
.service-categories {
    background-color: var(--secondary-color);
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%; /* Equal height for all category cards */
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 0; /* Remove top margin */
    line-height: 1.2; /* Consistent line height */
    min-height: 45px; /* Ensure consistent heading height */
    display: flex;
    align-items: center; /* Vertically center text */
}

.category-card p {
    flex: 1; /* Take remaining space */
    display: flex;
    align-items: flex-start; /* Align text to top */
    padding-top: 10px; /* Consistent spacing from heading */
}

/* Process Section */
.process-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(245, 245, 245, 0.1));
    padding: 60px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Equal height for all process steps */
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1; /* Ensure step number appears above card */
    transition: all 0.3s ease;
}

.process-step:hover::before {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.process-step i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    flex-shrink: 0; /* Prevent icon from shrinking */
    transition: all 0.3s ease;
}

.process-step:hover i {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 0; /* Remove top margin */
    line-height: 1.2; /* Consistent line height */
    min-height: 45px; /* Ensure consistent heading height */
    display: flex;
    align-items: center; /* Vertically center text */
}

.process-step p {
    flex: 1; /* Take remaining space */
    display: flex;
    align-items: flex-start; /* Align text to top */
    padding-top: 10px; /* Consistent spacing from heading */
}

/* Testimonials */
.testimonials-section {
    background-color: var(--white);
    padding: 60px 0;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.testimonial-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.testimonial-item span {
    font-size: 14px;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
    }
    
    /* Mobile-specific adjustments for perfect alignment */
    .service-item-content h3 {
        min-height: 50px; /* Adjust heading height for mobile */
    }
    
    .category-card h3,
    .process-step h3 {
        min-height: 40px; /* Adjust heading height for mobile */
    }
    
    .service-item-content p,
    .category-card p,
    .process-step p {
        padding-top: 8px; /* Slightly reduce spacing on mobile */
    }
}

@media (max-width: 480px) {
    .services-container {
        gap: 20px; /* Reduce gap on very small screens */
    }
    
    .service-item-content {
        padding: 20px; /* Reduce padding on small screens */
    }
    
    .category-card,
    .process-step {
        padding: 25px 15px; /* Reduce padding on small screens */
    }
    
    .service-item-content h3 {
        min-height: 45px; /* Further adjust for small screens */
        font-size: 18px; /* Slightly smaller font */
    }
    
    .category-card h3,
    .process-step h3 {
        min-height: 35px; /* Further adjust for small screens */
        font-size: 16px; /* Slightly smaller font */
    }
}
