/* Service Hero Section */
.service-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.service-hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 153, 204, 0.7), rgba(59, 130, 246, 0.7));
}

.service-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    opacity: 0.7;
}

.service-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.service-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* Service Details Section */
.service-details {
    padding: 80px 0;
    background: white;
}

.details-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.details-main h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #4b5563;
    margin-bottom: 50px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.feature-item {
    background: #f9fafb;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6699cc, #3b82f6);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    color: white;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 10px;
}

.feature-item p {
    color: #6b7280;
    line-height: 1.7;
}

/* Process Section */
.process-section {
    margin-top: 60px;
}

.process-section h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 40px;
    text-align: center;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #6699cc, transparent);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6699cc, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(102, 153, 204, 0.3);
}

.process-step h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 10px;
}

.process-step p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Sidebar */
.details-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.contact-card {
    background: linear-gradient(135deg, #6699cc, #3b82f6);
    padding: 35px;
    border-radius: 20px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 153, 204, 0.3);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.7;
}

.contact-card .btn-primary {
    background: white;
    color: #6699cc;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-card .btn-primary:hover {
    background: #f9fafb;
    transform: translateY(-2px);
}

.contact-info {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.info-item svg {
    flex-shrink: 0;
}

.related-services {
    background: #f9fafb;
    padding: 30px;
    border-radius: 15px;
}

.related-services h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 20px;
}

.related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: #6699cc;
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(102, 153, 204, 0.3);
}

.related-item svg {
    transition: transform 0.3s ease;
}

.related-item:hover svg {
    transform: translateX(-5px);
}

/* Gallery Section */
.service-gallery {
    padding: 80px 0;
    background: #f9fafb;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #111827;
    text-align: center;
    margin-bottom: 15px;
}

.gallery-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.gallery-slider {
    overflow: hidden;
    border-radius: 20px;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.gallery-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.gallery-caption p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover {
    background: #6699cc;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:hover svg {
    color: white;
}

.gallery-nav svg {
    color: #374151;
    transition: color 0.3s ease;
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: #6699cc;
    width: 30px;
    border-radius: 6px;
}

/* CTA Section */
.service-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
    text-align: center;
}

.service-cta h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.service-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .details-content {
        grid-template-columns: 1fr;
    }

    .details-sidebar {
        position: static;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .process-step::after {
        display: none;
    }

    .gallery-item {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .service-hero {
        height: 400px;
    }

    .service-title {
        font-size: 2.5rem;
    }

    .service-subtitle {
        font-size: 1.1rem;
    }

    .service-details {
        padding: 60px 0;
    }

    .details-main h2 {
        font-size: 1.8rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .gallery-container {
        padding: 0 60px;
    }

    .gallery-item {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .gallery-item img {
        height: 300px;
    }

    .gallery-nav {
        width: 50px;
        height: 50px;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .service-cta h2 {
        font-size: 2rem;
    }

    .service-cta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .service-hero {
        height: 350px;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-subtitle {
        font-size: 1rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    .gallery-container {
        padding: 0 50px;
    }

    .gallery-nav {
        width: 45px;
        height: 45px;
    }

    .gallery-item img {
        height: 250px;
    }

    .service-cta {
        padding: 60px 0;
    }

    .service-cta h2 {
        font-size: 1.7rem;
    }

    .btn-large {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
}



/* إضافة هذا الكود في نهاية ملف service-page.css */

/* Fix gallery slider direction for RTL */
.gallery-slider {
    overflow: hidden;
    border-radius: 20px;
    direction: ltr; /* Override RTL for slider */
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    direction: rtl; /* Keep items in RTL order */
}

/* Ensure gallery items maintain proper direction */
.gallery-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
    direction: rtl; /* Maintain RTL for content */
}

@media (max-width: 1024px) {
    .gallery-item {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
}


/* إضافة هذا الكود في نهاية ملف service-page.css */

/* Gallery Container */
.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Fix gallery slider */
.gallery-slider {
    overflow: hidden;
    border-radius: 20px;
    width: 100%;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    will-change: transform;
}

/* Ensure gallery items maintain proper sizing */
.gallery-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.gallery-caption p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Gallery Navigation Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover {
    background: #6699cc;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:hover svg {
    color: white;
}

.gallery-nav svg {
    color: #374151;
    transition: color 0.3s ease;
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

/* Gallery Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: #6699cc;
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 1024px) {
    .gallery-item {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    
    .gallery-container {
        padding: 0 70px;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .gallery-item img {
        height: 300px;
    }
    
    .gallery-container {
        padding: 0 60px;
    }
    
    .gallery-nav {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        padding: 0 50px;
    }
    
    .gallery-nav {
        width: 45px;
        height: 45px;
    }
    
    .gallery-item img {
        height: 250px;
    }
}