/**
 * Elementor Services Grid Widget Styles
 *
 * Minimal and modern styling for Services Grid widget
 *
 * @package Nila
 * @since 1.0.0
 */

/* ============================================
   Main Container
   ============================================ */
.nila-elementor-services-grid {
    width: 100%;
}

.nila-services-grid {
    display: grid;
    gap: 30px;
}

/* ============================================
   Grid Layout
   ============================================ */
.nila-services-grid.nila-services-grid {
    grid-template-columns: repeat(1, 1fr);
}

.nila-services-columns-1 .nila-services-grid {
    grid-template-columns: repeat(1, 1fr);
}

.nila-services-columns-2 .nila-services-grid {
    grid-template-columns: repeat(2, 1fr);
}

.nila-services-columns-3 .nila-services-grid {
    grid-template-columns: repeat(3, 1fr);
}

.nila-services-columns-4 .nila-services-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   List Layout
   ============================================ */
.nila-services-grid.nila-services-list {
    grid-template-columns: 1fr;
    gap: 0;
}

.nila-services-list .nila-service-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.nila-services-list .nila-service-item:last-child {
    border-bottom: none;
}

.nila-services-list .nila-service-icon,
.nila-services-list .nila-service-icon-image,
.nila-services-list .nila-service-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin: 0;
}

.nila-services-list .nila-service-icon-image img,
.nila-services-list .nila-service-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nila-services-list .nila-service-content {
    flex: 1;
    padding: 0;
}

.nila-services-list .nila-service-title {
    margin: 0 0 10px 0;
}

.nila-services-list .nila-service-excerpt {
    margin-bottom: 10px;
}

.nila-services-list .nila-service-price {
    margin-bottom: 10px;
}

/* ============================================
   Service Item
   ============================================ */
.nila-service-item {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 30px;
    margin-bottom: 0;
}

.nila-services-grid.nila-services-grid .nila-service-item {
    border-bottom: none;
    padding-bottom: 0;
}

.nila-services-grid.nila-services-grid .nila-service-item:last-child {
    border-bottom: none;
}

/* ============================================
   Service Icon
   ============================================ */
.nila-service-icon,
.nila-service-icon-image {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.nila-service-icon i {
    font-size: 24px;
    color: #667eea;
}

.nila-service-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.nila-service-thumbnail {
    margin-bottom: 20px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.nila-service-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Service Content
   ============================================ */
.nila-service-content {
    padding: 0;
}

.nila-service-title {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.nila-service-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nila-service-title a:hover {
    color: #667eea;
}

.nila-service-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.nila-service-price {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.nila-price-amount {
    color: #1a1a1a;
}

.nila-price-duration {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

/* ============================================
   Service Button
   ============================================ */
.nila-service-button {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: transparent;
}

.nila-service-button:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ============================================
   No Services
   ============================================ */
.nila-no-services {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .nila-services-columns-4 .nila-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nila-services-columns-3 .nila-services-grid,
    .nila-services-columns-4 .nila-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nila-services-grid {
        gap: 25px;
    }
    
    .nila-services-columns-2 .nila-services-grid,
    .nila-services-columns-3 .nila-services-grid,
    .nila-services-columns-4 .nila-services-grid {
        grid-template-columns: 1fr;
    }
    
    .nila-services-list .nila-service-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .nila-services-list .nila-service-icon,
    .nila-services-list .nila-service-icon-image,
    .nila-services-list .nila-service-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   RTL Support
   ============================================ */
.rtl .nila-services-list .nila-service-item {
    direction: rtl;
}

