/* Products Page - Premium Design */

.page-hero {
    padding: var(--space-xxxl) 0 var(--space-xl);
    background: var(--white);
    border-bottom: 1px solid var(--gray-medium);
}

.page-hero h1 {
    font-size: var(--font-size-hero);
    color: var(--black);
    margin-bottom: var(--space-md);
    text-align: center;
}

.page-hero p {
    font-size: var(--font-size-xl);
    color: var(--gray-darker);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.services-section {
    padding: var(--space-xxxl) 0;
}

.services-section:nth-child(even) {
    background: var(--gray-light);
}

.service-image {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content h3 {
    font-size: var(--font-size-xl);
    color: var(--black);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.service-content p {
    font-size: var(--font-size-base);
    color: var(--gray-darker);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.service-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-base);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card h4 {
    font-size: var(--font-size-lg);
    color: var(--black);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.service-card p {
    font-size: var(--font-size-base);
    color: var(--gray-dark);
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxxl);
}

.section-header h2 {
    font-size: var(--font-size-xxl);
    color: var(--black);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
}

.section-header p {
    font-size: var(--font-size-md);
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0 auto;
}

/* RTL Support */
[dir="rtl"] .service-content {
    text-align: right;
}

[dir="rtl"] .service-card {
    text-align: right;
}

[dir="rtl"] .alm-slider-track {
    direction: ltr;
    /* Keep slider direction consistent */
}

/* ALM Image Slider */
.alm-slider-section {
    margin-top: var(--space-xxxl);
    padding-top: var(--space-xxxl);
    border-top: 1px solid var(--gray-medium);
}

.alm-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.alm-slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.alm-slider-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.alm-slide-item {
    box-sizing: border-box;
    flex: 0 0 calc(100% / 3);
    max-width: calc(100% / 3);
    padding: 0 calc(var(--space-md) / 2);
    height: 300px;
    border-radius: 0px;
    border-bottom: 4px solid var(--gold);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.alm-slide-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.alm-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tablet/iPad - 2 images per slide */
@media (max-width: 1024px) and (min-width: 769px) {
    .alm-slide-item {
        flex: 0 0 calc(100% / 2);
        max-width: calc(100% / 2);
    }
}

/* Mobile - 1 image per slide */
@media (max-width: 768px) {
    .page-hero {
        padding: var(--space-xl) 0;
    }

    .service-image {
        height: 300px;
        margin-bottom: var(--space-lg);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .alm-slide-item {
        flex: 0 0 100%;
        max-width: 100%;
        height: 250px;
    }
}