﻿/* General Styles */
.services-area {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.heading {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* Grid Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
    gap: 30px;
    justify-items: center; /* Center items horizontally */
}

/* Card Styles */
.service-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

.service-image {
    position: relative;
    height: 260px;
    margin: 0 -16px; /* کم شدن فاصله از دو طرف */
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

    .service-image img {
        object-fit: cover;
    }

.service-info {
    padding: 20px;
    text-align: center;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.card-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
        gap: 25px;
        justify-items: center; /* Center items horizontally */
    }

    .service-image {
        height: 180px;
    }
}


/* 🔥 از اینجا به پایین → همیشه فقط ۱ آیتم */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .services-area {
        padding: 20px 0;
    }

    .heading {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-image {
        height: 180px;
    }
}

/* Link Reset */
.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Empty */
.empty-text {
    text-align: center;
    color: #999;
    margin-top: 40px;
}
