/**
 * Services Section Styles
 *
 * @package elegant
 */

/* ========================================
   Services Section
   ======================================== */
.services-section {
    position: relative;
    padding: 100px 20px;
    background: #f0f2f5;
    overflow: hidden;
}

/* Container */
.services-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ========================================
   Main Title
   ======================================== */
.services-main-title {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a3a5c;
    text-align: center;
    margin: 0 0 60px 0;
    position: relative;
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* ========================================
   Service Card
   ======================================== */
.service-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Service Link */
.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-link:hover,
.service-link:focus {
    text-decoration: none;
    color: inherit;
}

.service-link .service-title {
    transition: color 0.3s ease;
}

.service-link:hover .service-title {
    color: #c9a227;
}

/* Service Image */
.service-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #e0e5eb;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Placeholder */
.service-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e5eb 0%, #d0d5db 100%);
}

.service-placeholder i {
    font-size: 3rem;
    color: #a0a5ab;
}

/* Service Content */
.service-content {
    padding: 0 10px;
}

/* Service Title */
.service-title {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

/* Service Description */
.service-desc {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #5a6a7a;
    margin: 0;
}

/* ========================================
   RTL Support
   ======================================== */
[dir="rtl"] .services-section {
    direction: rtl;
}

[dir="rtl"] .service-card {
    text-align: center;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
    .services-section {
        padding: 80px 20px;
    }
    
    .services-grid {
        gap: 30px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 20px;
    }
    
    .services-main-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .services-grid {
        gap: 30px;
    }
    
    .service-image {
        margin-bottom: 20px;
    }
    
    .service-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }
    
    .service-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .services-section {
        padding: 50px 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .service-image {
        border-radius: 12px;
    }
}

/* ========================================
   Hover Effects Enhancement
   ======================================== */
.service-card {
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 58, 92, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

