/* Services Grid Section - Homepage */
.services-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--lightgrey) 0%, #ffffff 100%);
}



.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(36, 104, 133, 0.8), transparent);
}

.service-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--bevanblue);
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-card-description {
    color: var(--linkcolor);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--bevangreen), var(--bevanblue));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-card-btn:hover {
    background: linear-gradient(135deg, var(--cuteorange), var(--bevangreen));
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(35, 164, 160, 0.4);
}

[dir="rtl"] .service-card-btn:hover {
    transform: translateX(-5px);
}

.service-card-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

[dir="rtl"] .service-card-btn::after {
    content: '←';
}

.service-card-btn:hover::after {
    transform: translateX(3px);
}

[dir="rtl"] .service-card-btn:hover::after {
    transform: translateX(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-section {
        padding: 30px 15px;
    }

    .services-section-title h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .service-card-image {
        height: 180px;
    }

    .service-card-content {
        padding: 20px;
    }

    .service-card-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .service-card-image {
        height: 160px;
    }
}