
/* ===== تنسيقات صفحة الخدمات ===== */
:root {
    --service-primary: #4a6cf7;
    --service-secondary: #6e44ff;
    --service-gradient: linear-gradient(135deg, var(--service-primary) 0%, var(--service-secondary) 100%);
}

/* تنسيق رأس الصفحة */
.breadcrumb-section {
    position: relative;
    background: var(--service-gradient);
    padding: 80px 0 70px;
    color: white;
    overflow: hidden;
    margin-bottom: 0;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" fill-opacity="0.1" d="M0,96L48,117.3C96,139,192,181,288,186.7C384,192,480,160,576,149.3C672,139,768,149,864,165.3C960,181,1056,203,1152,197.3C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 1;
}

.breadcrumb-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" fill-opacity="1" d="M0,224L48,213.3C96,203,192,181,288,170.7C384,160,480,160,576,170.7C672,181,768,203,864,229.3C960,256,1056,288,1152,282.7C1248,277,1344,235,1392,213.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    z-index: 2;
}

.breadcrumb-section .container {
    position: relative;
    z-index: 3;
}

.breadcrumb-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    position: relative;
}

.breadcrumb-section h1::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    margin-top: 15px;
}

.breadcrumb-item, .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.5);
}

/* تنسيق بطاقات الخدمات */
.services-list-section {
    position: relative;
    background-color: #fff;
    padding: 80px 0;
}

.services-list-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('<?php echo ASSETS_URL; ?>/images/patterns/dot-pattern.png');
    background-repeat: repeat;
    background-size: 40px;
    opacity: 0.03;
    z-index: 0;
}

.services-intro {
    position: relative;
    margin-bottom: 60px;
}

.services-intro .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 20px;
    text-align: center;
}

.services-intro .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .card-img-top {
    transform: scale(1.1);
}

.service-card .card-body {
    position: relative;
    z-index: 2;
}

.service-card .fa-2x {
    font-size: 3rem;
    color: var(--service-primary);
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

.service-card:hover .fa-2x {
    transform: rotateY(360deg);
}

.service-card .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--heading-color);
    position: relative;
    transition: all 0.3s ease;
}

.service-card:hover .card-title {
    color: var(--service-primary);
}

.service-card .card-text {
    color: var(--body-color);
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-card .btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--service-primary);
    transition: all 0.3s ease;
    z-index: -1;
}

.service-card .btn-outline-primary:hover {
    color: white;
    background-color: transparent;
}

.service-card .btn-outline-primary:hover::before {
    width: 100%;
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--service-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.4);
}

/* تنسيق صفحة الخدمة المنفردة */
.single-service-section {
    padding: 80px 0;
    background-color: #fff;
}

.service-header {
    margin-bottom: 40px;
}

.service-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    color: var(--heading-color);
}

.service-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--service-primary);
    margin-top: 15px;
}

.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.service-image img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-description {
    color: var(--body-color);
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-description h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.service-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.service-description p {
    margin-bottom: 20px;
}

.service-description ul, .service-description ol {
    margin-bottom: 20px;
    padding-right: 20px;
}

.service-description li {
    margin-bottom: 10px;
}

.service-description img {
    max-width: 100%;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-description blockquote {
    padding: 25px 30px;
    background-color: #f8f9fa;
    border-right: 4px solid var(--service-primary);
    border-radius: 0 10px 10px 0;
    margin: 30px 0;
    font-style: italic;
    position: relative;
}

.service-description blockquote::before {
    content: """;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 4rem;
    color: rgba(74, 108, 247, 0.1);
    font-family: sans-serif;
    line-height: 1;
}

.service-features {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-features h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 15px;
}

.service-features h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--service-primary);
}

.service-features .fas {
    width: 28px;
    height: 28px;
    background-color: rgba(74, 108, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--service-primary);
    margin-left: 15px;
    flex-shrink: 0;
}

.cta-box {
    border-radius: 15px;
    background-color: #f8f9fa;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    border-right: 4px solid var(--service-primary);
    transition: all 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%234a6cf7" fill-opacity="0.03" d="M50,0 C77.6,0 100,22.4 100,50 C100,77.6 77.6,100 50,100 C22.4,100 0,77.6 0,50 C0,22.4 22.4,0 50,0 Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 250px 250px;
    opacity: 0.5;
    z-index: 0;
}

.cta-box h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--heading-color);
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: var(--body-color);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.cta-box .btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.cta-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

/* تنسيق الشريط الجانبي */
.sidebar-card {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.sidebar-card .card-body {
    padding: 25px;
}

.sidebar-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 15px;
}

.sidebar-card .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--service-primary);
}

.price-range {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--service-primary);
}

.contact-info li, .sidebar-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-info li:last-child, .sidebar-card ul li:last-child {
    border-bottom: none;
}

.contact-info i, .sidebar-card i {
    width: 35px;
    height: 35px;
    background-color: rgba(74, 108, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--service-primary);
    margin-left: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sidebar-card a {
    color: var(--body-color);
    transition: all 0.3s ease;
}

.sidebar-card a:hover {
    color: var(--service-primary);
    transform: translateX(-5px);
}

.sidebar-card a:hover i {
    background-color: var(--service-primary);
    color: white;
    transform: rotateY(180deg);
}

/* تنسيقات تأثيرات التمرير */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* تحسينات تجربة المستخدم */
.service-process {
    counter-reset: process-counter;
    margin: 40px 0;
}

.process-step {
    position: relative;
    padding-right: 60px;
    margin-bottom: 30px;
    min-height: 50px;
}

.process-step::before {
    counter-increment: process-counter;
    content: counter(process-counter);
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: var(--service-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

.process-step h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.process-step p {
    color: var(--body-color);
}

.faq-section {
    margin-top: 50px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    background-color: white;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: var(--heading-color);
}

.faq-question::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

/* تحسينات لمحركات البحث (هيكلة البيانات) */
.structured-data {
    display: none;
}

/* الاستجابة للشاشات المختلفة */
@media (max-width: 991.98px) {
    .breadcrumb-section {
        padding: 60px 0 50px;
    }
    
    .service-title {
        font-size: 1.8rem;
    }
    
    .cta-box {
        text-align: center;
    }
    
    .cta-box .btn {
        margin-top: 15px;
    }
}

@media (max-width: 767.98px) {
    .breadcrumb-section h1 {
        font-size: 2rem;
    }
    
    .services-intro .section-title {
        font-size: 2rem;
    }
    
    .service-features {
        padding: 20px;
    }
    
    .process-step {
        padding-right: 50px;
    }
    
    .process-step::before {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .breadcrumb-section {
        padding: 50px 0 40px;
    }
    
    .breadcrumb-section h1 {
        font-size: 1.8rem;
    }
    
    .service-title {
        font-size: 1.6rem;
    }
    
    .service-features h4 {
        font-size: 1.3rem;
    }
    
    .sidebar-card .card-title {
        font-size: 1.2rem;
    }
}
