/*
Theme Name: درب الرخام
Theme URI: http://localhost/saudisand-v2
Author: Web Performance & SEO Expert
Description: قالب مخصص، خفيف وسريع جداً. مُهندس خصيصاً لعرض أعمال الرخام مع توافق تام مع السيو التقني.
Version: 1.0.0
Text Domain: darb-alrokham
*/
:root {
    /* لوحة الألوان */
    --black-color: #1a1a1a;
    --green-accent: #27ae60;
    --green-hover: #219653;
    --off-white: #f8f9fa;
    --white: #ffffff;
    --text-color: #4a4a4a;
    
    /* الخطوط - سنقوم بتحميلها لاحقاً */
    --main-font: 'Tajawal', sans-serif; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden; /* هذا هو السطر السحري الذي يمنع انزياح الشاشة */
    width: 100%;
    max-width: 100vw;
    font-family: var(--main-font);
    background-color: var(--off-white);
    color: var(--text-color);
    direction: rtl; 
    text-align: right;
    line-height: 1.6;
}

/* وتأكد أن قسم الكاروسيل يحتوي على هذه الخصائص كإجراء وقائي إضافي */
.carousel-section {
    padding: 80px 0;
    background-color: var(--off-white);
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}
body {
    font-family: var(--main-font);
    background-color: var(--off-white);
    color: var(--text-color);
    direction: rtl; /* دعم اللغة العربية */
    text-align: right;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* تظليل بنسبة 60% */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--green-accent);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--green-hover);
    transform: translateY(-2px);
}
/* --- القوائم المنسدلة العادية (Dropdowns) --- */
.site-navigation ul li {
    position: relative;
}

.site-navigation .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    border-top: 3px solid var(--green-accent);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 240px;
    list-style: none;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.site-navigation ul li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 15px);
}

.site-navigation .sub-menu a {
    display: block;
    padding: 15px 20px;
    font-size: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.site-navigation .sub-menu a:hover {
    background-color: var(--off-white);
    padding-right: 25px; /* تأثير تفاعلي بسيط */
    color: var(--green-accent);
}

/* --- الميجا منيو الديناميكية الفخمة (المعدلة) --- */
.site-navigation .has-mega-menu {
    position: relative; /* هذا هو السر: يجعل القائمة المنسدلة تلتصق تحت العنصر تماماً */
}

.site-navigation .has-mega-menu .sub-menu {
    width: 550px; /* عرض الميجا منيو (يمكنك زيادته إذا أردت) */
    right: 0; /* تبدأ المحاذاة من يمين العنصر الأب */
    transform: none; /* إلغاء التوسيط القديم الذي سبب الانزياح */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    min-height: auto;
}
.site-navigation .has-mega-menu .sub-menu li {
    width: 100%;
}

.site-navigation .has-mega-menu .sub-menu a {
    padding: 10px;
    border-bottom: 1px solid transparent;
    border-radius: 8px;
    display: block;
}
.site-navigation .has-mega-menu .sub-menu a:hover {
    background-color: var(--off-white);
    border-bottom-color: var(--green-accent);
}
/* تنسيق الهيكل الداخلي للرابط (الصورة + النصوص) */
.mega-link-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mega-thumb {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mega-link-info {
    display: flex;
    flex-direction: column;
}

.mega-title {
    font-weight: 700;
    color: var(--black-color);
    font-size: 15px;
    transition: color 0.3s ease;
}

.site-navigation .has-mega-menu .sub-menu a:hover .mega-title {
    color: var(--green-accent);
}

.mega-desc {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    line-height: 1.5;
}
/* --- تعديل العنوان وتوسيطه --- */
.section-title {
    text-align: center;
    width: 100%;
    display: block;
    font-size: 36px;
    font-weight: 800;
    margin: 0 auto 50px auto;
    color: var(--black-color);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--green-accent);
}

/* --- إعدادات الشريط المتحرك --- */
.carousel-section {
    padding: 80px 0;
    background-color: var(--off-white);
    overflow: hidden;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 25px;
    width: max-content;
    /* الحركة: 40 ثانية لتكون بطيئة ومريحة للعين (قابلة للتعديل) */
    animation: scrollTrack 40s linear infinite; 
}

/* إيقاف الحركة عند وقوف الماوس (Hover) */
.carousel-track:hover {
    animation-play-state: paused;
}

/* كود الحركة لدعم الاتجاه من اليمين لليسار (RTL) */
@keyframes scrollTrack {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); /* يحرك الشريط لنصف المسافة ليعيد نفسه */ }
}

/* --- تصميم البطاقات --- */
.carousel-item {
    width: 320px; /* العرض الثابت للبطاقة */
    height: 420px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-10px); /* بروز خفيف للبطاقة */
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%);
    transition: background 0.4s ease;
}

.carousel-item:hover .carousel-overlay {
    background: rgba(0,0,0,0.75); /* تعتيم كامل للبطاقة لإبراز الوصف */
}

.carousel-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    width: 100%;
    text-align: right;
}

.carousel-title {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
    transition: all 0.4s ease;
}

/* إخفاء الوصف والزر افتراضياً */
.carousel-hover-data {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* ظهور الوصف والزر عند التمرير */
.carousel-item:hover .carousel-title {
    margin-bottom: 12px;
    color: var(--green-accent);
}

.carousel-item:hover .carousel-hover-data {
    max-height: 200px; /* مساحة كافية للوصف والزر */
    opacity: 1;
}

.carousel-desc {
    color: #e0e0e0;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.carousel-btn {
    display: block;
    text-align: center;
    width: 100%;
    font-size: 15px;
    padding: 10px 0;
}

/* --- التجاوب مع الجوال (Mobile) --- */
@media (max-width: 768px) {
    .carousel-item {
        width: 260px;
        height: 350px;
    }
    
    /* إظهار العنوان والزر بشكل دائم على الجوال (لعدم وجود Hover) */
    .carousel-title {
        margin-bottom: 15px;
        font-size: 20px;
    }
    
    .carousel-hover-data {
        max-height: 100px;
        opacity: 1;
    }
    
    /* إخفاء الوصف على الجوال لتوفير المساحة وإبقاء الزر فقط */
    .carousel-desc {
        display: none; 
    }
    
    /* إبقاء التعتيم المتدرج الافتراضي */
    .carousel-item:hover .carousel-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%);
    }
    .carousel-item:hover {
        transform: none;
    }
}



/* --- ترويسة الأقسام (قابلة لإعادة الاستخدام) --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}
.section-subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 15px;
    line-height: 1.8;
}

/* --- شبكة الخدمات الصاروخية --- */
.services-section {
    padding: 100px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    /* السر: ترتيب أوتوماتيكي بناءً على العرض المتاح بدون Media Queries! */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* --- بطاقة الخدمة الفخمة --- */
.service-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* حركة ارتدادية ناعمة */
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* الدائرة المخفية للتأثير البصري (0 بايت جافاسكربت) */
.service-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08), rgba(39, 174, 96, 0));
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.6s ease;
}

/* تأثيرات التحويم (Hover) */
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(39, 174, 96, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.service-card:hover::before {
    transform: scale(3.5); /* تتمدد الدائرة لتغطي خلفية البطاقة بتدرج لوني خفيف */
}

/* --- عناصر البطاقة الداخلية --- */
.service-icon-wrap {
    width: 70px;
    height: 70px;
    background-color: var(--off-white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.service-icon-wrap img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.service-card:hover .service-icon-wrap {
    background-color: var(--green-accent);
}
.service-card:hover .service-icon-wrap img {
    filter: grayscale(0%) brightness(200%); /* تحويل الأيقونة للأبيض عند الهوفر */
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--black-color);
    margin-bottom: 15px;
}

.service-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-accent);
    font-weight: 700;
    font-size: 15px;
}

.service-link svg {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link svg {
    transform: translateX(-5px); /* حركة السهم لليسار */
}



/* --- قسم معرض الأعمال --- */
.gallery-section {
    padding: 80px 0;
    background-color: var(--off-white);
}

/* التراكب السحري (Masonry) بـ CSS نقي */
.masonry-gallery {
    column-count: 4; /* 4 أعمدة للشاشات الكبيرة */
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid; /* يمنع انقسام الصورة بين عمودين */
    margin-bottom: 20px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    transform: translateZ(0); /* تسريع الرندر الهاردويري */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.masonry-item img {
    width: 100%;
    height: auto; /* الحفاظ على الأبعاد الحقيقية للصورة */
    display: block;
    transition: transform 0.5s ease;
}

/* تأثير التظليل والأيقونة عند الهوفر */
.masonry-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(39, 174, 96, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-overlay svg {
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-item:hover .masonry-overlay svg {
    transform: scale(1);
}

/* --- تصميم عارض الصور المنبثق (Lightbox) --- */
.lightbox-dialog {
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
    overflow: visible;
}

.lightbox-dialog::backdrop {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-dialog img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--green-accent);
}

/* --- التجاوب الاحترافي --- */
@media (max-width: 1024px) {
    .masonry-gallery { column-count: 3; }
}

@media (max-width: 768px) {
    .masonry-gallery { column-count: 2; column-gap: 15px; }
    .masonry-item { margin-bottom: 15px; }
}

@media (max-width: 480px) {
    .masonry-gallery { column-count: 1; }
    /* على الهواتف الصغيرة جداً نكتفي بعمود واحد للوضوح التام */
}



/* --- زر عرض الكل في معرض الأعمال --- */
.gallery-action {
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    font-size: 16px;
    border-radius: 50px; /* شكل بيضاوي أنيق */
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px rgba(39, 174, 96, 0.3);
}

.gallery-btn svg {
    transition: transform 0.3s ease;
}

.gallery-btn:hover svg {
    transform: translateX(-5px); /* حركة السهم لليسار لتعزيز فكرة الانتقال */
}



/* --- قسم الدعوة لاتخاذ إجراء (CTA) --- */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--black-color); /* احتياطي في حال عدم تحميل الحركة */
    color: var(--white);
}

/* الخلفية المتدرجة المتحركة بـ CSS نقي */
.cta-animated-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg, #1a1a1a, #2c3e50, #1a1a1a, var(--green-hover));
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    z-index: 1;
    opacity: 0.95;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-desc {
    font-size: 18px;
    margin-bottom: 45px;
    color: #e0e0e0;
    line-height: 1.6;
}

/* --- تنسيق الأزرار (واتساب واتصال) --- */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 45px;
    font-size: 18px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* زر الواتساب (الأخضر الرسمي) */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    color: white;
}

/* زر الاتصال (شفاف بحدود بيضاء) */
.btn-call {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-call:hover {
    background-color: var(--white);
    color: var(--black-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

/* --- تجاوب الأزرار مع الهواتف المحمولة --- */
@media (max-width: 768px) {
    .cta-title { font-size: 32px; }
    .cta-buttons { 
        flex-direction: column; 
        width: 100%; 
        gap: 15px; 
        padding: 0 20px;
    }
    .cta-buttons .btn { 
        width: 100%; 
        justify-content: center; 
    }
}

/* --- قسم آراء العملاء (شريط متحرك لانهائي) --- */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
}

.testimonials-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* حركة بطيئة ومستمرة (RTL يستوجب الحركة الإيجابية) */
    animation: scrollTesti 35s linear infinite; 
}

/* التوقف عند وضع الماوس أو لمس الشاشة للقراءة */
.testimonials-track:hover,
.testimonials-track:active {
    animation-play-state: paused;
}

@keyframes scrollTesti {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); /* يزيح الشريط لنصف المسافة ليعيد نفسه بسلاسة */ }
}

/* تنسيق بطاقة التقييم */
.testimonial-card {
    width: 380px; /* عرض ثابت لضمان دقة حسابات الحركة */
    background: #fbfbfb;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

.quote-icon {
    position: absolute;
    top: 25px;
    left: 25px;
}

.testi-stars {
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
}

.testi-text {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.testi-avatar,
.testi-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testi-avatar-placeholder {
    background-color: rgba(39, 174, 96, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testi-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--black-color);
}

/* التجاوب مع شاشات الجوال */
@media (max-width: 768px) {
    .testimonial-card {
        width: 300px; /* تصغير حجم البطاقة ليتناسب مع الجوال بشكل أجمل */
        padding: 30px 20px;
    }
}


/* --- قسم آلية العمل (الفخامة المعمارية) --- */
.luxury-editorial-process {
    padding: 120px 0;
    background-color: var(--white);
    overflow: hidden;
}

.editorial-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 100px auto;
}

.editorial-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--black-color);
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.editorial-subtitle {
    font-size: 16px;
    color: #777;
    line-height: 1.8;
}

.editorial-steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 150px;
}

.editorial-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 50px;
}

/* تبديل الاتجاه لكل خطوة */
.editorial-step:nth-child(even) {
    flex-direction: row-reverse;
}

/* الرقم المائي العملاق الثابت */
.step-sticky-number {
    position: absolute;
    top: -50px;
    left: 0;
    font-size: 250px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    line-height: 0.8;
    z-index: 0;
    pointer-events: none;
    font-family: serif;
}

.editorial-step:nth-child(even) .step-sticky-number {
    left: auto;
    right: 0;
}

/* حاوية الصورة */
.step-visual {
    flex: 1;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 4px;
}

.step-visual img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(100%);
    transform: scale(1.05);
    transition: filter 0.8s ease, transform 0.8s ease;
}

.editorial-step:hover .step-visual img {
    filter: grayscale(0%);
    transform: scale(1);
}

/* محتوى النص */
.step-info {
    flex: 1;
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 60px;
    margin-right: -80px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.04);
}

.editorial-step:nth-child(even) .step-info {
    margin-right: 0;
    margin-left: -80px;
}

.step-info h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--black-color);
}

.step-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.9;
}

/* --- التجاوب المعماري مع الهاتف (Mobile-First Elegance) --- */
@media (max-width: 991px) {
    .editorial-header { 
        margin-bottom: 70px; 
        padding: 0 20px; 
    }
    .editorial-title { font-size: 32px; }
    
    .editorial-steps-wrapper { gap: 90px; }
    
    /* الحفاظ على بنية العرض الجانبي وإلغاء تحويله لعمودي */
    .editorial-step, 
    .editorial-step:nth-child(even) {
        flex-direction: row; /* إجبار البقاء على وضع الصف */
        align-items: center;
        gap: 0; /* الاعتماد على التداخل بدلاً من الفراغات */
        padding: 0 15px;
    }
    
    .editorial-step:nth-child(even) {
        flex-direction: row-reverse;
    }
    
    .step-sticky-number, 
    .editorial-step:nth-child(even) .step-sticky-number {
        font-size: 120px;
        top: -40px;
        left: 10px;
    }

    .editorial-step:nth-child(even) .step-sticky-number {
        left: auto;
        right: 10px;
    }
    
    /* هندسة المساحات للموبايل: الصورة 40% والنص 70% مع تداخل 10% */
    .step-visual { 
        flex: 0 0 40%; 
    }
    
    .step-visual img { 
        height: 280px; 
        filter: grayscale(0%); /* إظهار اللون مباشرة لغياب تأثير Hover في اللمس */
    }
    
    .step-info {
        flex: 0 0 70%; 
        padding: 25px 20px;
        margin-right: -10%; /* التداخل المعماري */
        margin-left: 0;
    }
    
    .editorial-step:nth-child(even) .step-info {
        margin-right: 0;
        margin-left: -10%;
    }
    
    .step-info h3 { 
        font-size: 18px; 
        margin-bottom: 12px; 
    }
    
    .step-info p { 
        font-size: 13px; 
        line-height: 1.6; 
    }
}


/* --- شريط تحميل الكتالوج (Premium Banner) --- */
.catalog-banner {
    background-color: #111111; /* لون فحمي فاخر يفصل بين الأقسام البيضاء */
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.catalog-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.catalog-heading {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.4;
}

.btn-premium-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    padding: 16px 35px;
    border: 2px solid var(--green-accent); /* إطار أخضر أنيق */
    border-radius: 4px; /* زوايا حادة قليلاً تناسب التصميم المعماري */
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-premium-download svg {
    transition: transform 0.3s ease;
}

.btn-premium-download:hover {
    background-color: var(--green-accent);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.2);
}

.btn-premium-download:hover svg {
    transform: translateY(3px); /* حركة السهم للأسفل توحي بالتحميل */
}

/* التجاوب مع الجوال */
@media (max-width: 768px) {
    .catalog-banner {
        padding: 45px 20px; /* إضافة مسافة داخلية جانبية لحماية النص من الالتصاق بحواف شاشة الهاتف */
    }
    
    .catalog-banner-inner {
        flex-direction: column; /* تحويل التوزيع الأفقي إلى عمودي ليتناسب مع طاولية الهاتف */
        text-align: center; /* توسيط النص بالكامل ليظهر بشكل متناسق في منتصف الشاشة */
        gap: 25px; /* مسافة مريحة تفصل بين النص والزر لمنع التداخل */
    }
    
    .catalog-heading {
        font-size: 20px; /* تصغير حجم الخط ليناسب شاشات الجوال الصغيرة ولا ينكسر بشكل قبيح */
        line-height: 1.5;
    }
    
    .catalog-action {
        width: 100%; /* جعل حاوية الزر تأخذ كامل عرض الشاشة المتاحة على الجوال */
    }
    
    .btn-premium-download {
        display: flex; /* تحويل التوزيع لـ Flex داخل الزر لتسهيل عملية التوسيط */
        width: 100%; /* إجبار الزر على أخذ عرض الشاشة بالكامل ليصبح سهل النقر بإبهام اليد */
        justify-content: center; /* توسيط النص والأيقونة معاً بدقة داخل الزر العريض */
        padding: 14px 20px; /* تعديل المسافات الداخلية للزر لتناسب أحجام الهواتف */
        font-size: 15px;
    }
}



/* --- قسم الأسئلة الشائعة الفاخر (Grid FAQ) --- */
.luxury-faq-section {
    padding: 120px 0;
    background-color: var(--white);
}

.luxury-faq-section .faq-header {
    text-align: center;
    margin-bottom: 70px;
}

/* توزيع العمودين */
.faq-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px; /* مسافة أفقية 60 بكسل بين العمودين */
    max-width: 1200px;
    margin: 0 auto;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 15px; /* المسافة بين كل سؤال والآخر */
}

/* بطاقة السؤال */
.luxury-faq-item {
    background-color: transparent;
    border-bottom: 1px solid #eaeaea; /* خط سفلي أنيق فقط */
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0; /* مساحات تنفس دون إطار كامل */
    font-size: 18px;
    font-weight: 700;
    color: var(--black-color);
    cursor: pointer;
    list-style: none;
    transition: color 0.3s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-text {
    flex: 1;
    padding-left: 20px;
}

/* الأيقونة المعمارية (+ / -) */
.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: #333;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-icon::after { top: 0; left: 9px; width: 2px; height: 20px; }

/* التفاعل عند الفتح */
.luxury-faq-item[open] {
    border-color: var(--black-color); /* يغمق الخط عند الفتح للتركيز */
}

.luxury-faq-item[open] .faq-question {
    color: var(--green-accent);
}

.luxury-faq-item[open] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.luxury-faq-item[open] .faq-icon::before {
    background-color: var(--green-accent);
    transform: rotate(180deg);
}

/* حركة الإجابة */
.faq-answer {
    padding: 0 0 30px 0;
    color: #555;
    line-height: 1.8;
    font-size: 15px;
    animation: slideDownFade 0.4s ease-out;
}

@keyframes slideDownFade {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- التجاوب مع الجوال (Mobile) --- */
@media (max-width: 991px) {
    .faq-grid-wrapper {
        grid-template-columns: 1fr; /* تحويل لعمود واحد */
        gap: 15px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 18px 0;
    }
    
    .faq-answer {
        font-size: 14px;
        padding-bottom: 25px;
    }
}


/* ===================================================
   --- الفوتر المعماري الشامل ---
====================================================== */
.site-footer {
    background-color: var(--black-color, #111);
    color: #a0a0a0;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.widget-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--green-accent, #27ae60);
}

/* العمود الأيمن (القائمة) */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 15px;
}

.footer-nav-list a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease, padding-right 0.3s ease;
    display: inline-block;
}

.footer-nav-list a:hover {
    color: #ffffff;
    padding-right: 8px; /* حركة ارتدادية ناعمة عند التمرير */
}

/* العمود الأوسط (الهوية) */
.footer-brand-widget {
    text-align: center;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.footer-site-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-desc {
    line-height: 1.8;
    font-size: 15px;
}

/* العمود الأيسر (المعلومات والزر) */
.footer-info-text {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 15px;
}

.footer-action-btn {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid var(--green-accent, #27ae60);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-action-btn:hover {
    background-color: var(--green-accent, #27ae60);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
}

/* الشريط السفلي (حقوق النشر) */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: #777;
}

/* ===================================================
   --- التجاوب مع الجوال (Mobile) ---
====================================================== */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center; /* توسيط كل شيء على الهاتف لجمالية أفضل */
    }

    .widget-title::after {
        right: 50%;
        transform: translateX(50%); /* توسيط الخط الأخضر */
    }

    .footer-nav-list a:hover {
        padding-right: 0; /* تعطيل الحركة الجانبية على اللمس */
        color: #ffffff;
    }
    
    .footer-action-btn {
        width: 100%; /* زر بعرض الشاشة في الموبايل لسهولة النقر */
    }
}

/* ===================================================
   --- الأزرار العائمة (يمين / يسار) ---
====================================================== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none; /* يمنع حجب النقرات للمساحة الشفافة المحيطة بها */
}
.floating-actions.pos-right { right: 30px; }
.floating-actions.pos-left { left: 30px; }

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    pointer-events: auto; /* استعادة النقرات للزر نفسه فقط */
    text-decoration: none;
}
.float-btn:hover { transform: scale(1.08); color: #fff; }

/* زر الصعود */
.btn-up { background-color: #333; width: 50px; height: 50px; opacity: 0; visibility: hidden; transform: translateY(20px); align-self: flex-end; }
.floating-actions.pos-left .btn-up { align-self: flex-start; }
.btn-up.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* زر الاتصال */
.btn-call { background-color: #3498db; }

/* زر الواتساب */
.btn-wa { background-color: #25D366; }

/* ===================================================
   --- نافذة الواتساب المنبثقة التفاعلية ---
====================================================== */
.wa-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end; /* لتبدأ النافذة من الأسفل */
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.wa-modal.active { opacity: 1; visibility: visible; }

.wa-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.wa-modal-content {
    position: relative;
    width: 400px;
    max-width: 100%;
    background: #e5ddd5; /* لون خلفية دردشة الواتساب */
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}
.wa-modal.active .wa-modal-content { transform: translateY(0); }

/* الهيدر الأخضر يحاكي التطبيق */
.wa-header {
    background-color: #075e54;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wa-user-info { display: flex; align-items: center; gap: 15px; }
.wa-avatar { width: 45px; height: 45px; background: #fff; color: #075e54; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.wa-title h3 { margin: 0 0 4px 0; font-size: 16px; font-weight: bold; color: #fff; }
.wa-title span { font-size: 12px; opacity: 0.8; }
.wa-close { background: none; border: none; color: #fff; font-size: 34px; cursor: pointer; padding: 0; margin-top: -6px; }

/* جسم الدردشة */
.wa-body {
    padding: 20px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); /* خلفية الرسومات الرسمية للواتساب */
    background-size: cover;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

/* فقاعة الرسالة */
.wa-message {
    background: #fff;
    padding: 12px 15px;
    border-radius: 0 15px 15px 15px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.6;
    color: #111;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.wa-message::before {
    content: "";
    position: absolute;
    top: 0; right: -8px; /* في العربية يجب أن يكون السهم من اليسار إذا كان المستقبل، لكن لليمين لأنك المرسل الافتراضي */
    width: 0; height: 0;
    border-top: 10px solid #fff;
    border-right: 10px solid transparent;
}
.wa-message p { margin: 0 0 5px 0; }
.wa-time { font-size: 11px; color: #999; float: left; margin-top: 5px; }

/* شريط الإدخال */
.wa-footer-form {
    background: #f0f0f0;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.wa-footer-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 30px;
    outline: none;
    font-size: 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.wa-send {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #128C7E;
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===================================================
   --- التجاوب الخارق للهاتف (Mobile-First Logic) ---
====================================================== */
@media (max-width: 768px) {
    /* حماية الأزرار من تغطية المحتوى الهام في الهاتف */
    .floating-actions { bottom: 20px; }
    .floating-actions.pos-right { right: 15px; }
    .floating-actions.pos-left { left: 15px; }
    
    .float-btn { width: 50px; height: 50px; }
    
    /* تحويل نافذة الواتساب لملء الشاشة وإخفاء ما تحتها */
    .wa-modal-content {
        width: 100%;
        height: 100vh; /* تغطية الارتفاع بالكامل */
        border-radius: 0;
    }
    
    .wa-body {
        flex: 1; /* إجبار مساحة الدردشة على التمدد لملء الشاشة بالكامل */
    }
}

/* ===================================================
   --- الهيدر الأساسي ---
====================================================== */
.site-header-main {
    background-color: var(--white, #ffffff);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.header-mobile-toggle { display: none; }
.header-logo img { max-height: 50px; width: auto; }

/* إعدادات أزرار الأيقونات */
.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--black-color, #111);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: color 0.3s ease;
}
.icon-btn:hover { color: var(--green-accent, #27ae60); }

/* ===================================================
   --- الشاشات المنبثقة الكاملة (بحث + قائمة موبايل) ---
====================================================== */
.fullscreen-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.98); /* أسود فخم شبه معتم */
    backdrop-filter: blur(8px); /* ضبابية راقية */
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-overlay {
    position: absolute;
    top: 30px;
    right: 40px; /* أو اليسار حسب الـ RTL */
    background: transparent;
    border: none;
    color: #fff;
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.close-overlay:hover { transform: rotate(90deg); }

.overlay-inner {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}
.fullscreen-overlay.active .overlay-inner { transform: translateY(0); }

/* --- تصميم فورم البحث --- */
.fullscreen-search-form {
    display: flex;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
    margin-bottom: 40px;
}
.search-field {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    outline: none;
}
.search-field::placeholder { color: rgba(255,255,255,0.3); }
.search-submit {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* --- الهاشتاغات المتراكمة (Social Media Vibe) --- */
.search-hashtags {
    display: flex;
    flex-wrap: wrap; /* يتراكم على عدة أسطر إذا لزم الأمر */
    gap: 15px;
    justify-content: center;
}
.hashtag-item {
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px; /* تدوير فخم */
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}
/* لا يوجد Hover مبالغ فيه بناءً على طلبك، فقط حركة ضغط بسيطة */
.hashtag-item:active {
    transform: scale(0.95);
}

/* --- قائمة الموبايل الصافية --- */
.fullscreen-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.fullscreen-mobile-menu li { margin-bottom: 25px; }
.fullscreen-mobile-menu a {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

/* ===================================================
   --- التجاوب الخارق للموبايل (Grid Center Logo) ---
====================================================== */
@media (max-width: 991px) {
    .header-desktop-nav { display: none; } /* إخفاء قائمة الديسكتوب */
    .header-mobile-toggle { display: block; } /* إظهار الهمبرغر */
    
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr; /* 3 أعمدة: يمين، وسط، يسار */
        align-items: center;
        height: 80px;
    }
    
    /* توجيه الأيقونات لأطراف الشاشة */
    .header-mobile-toggle { justify-self: start; }
    .header-search-icon { justify-self: end; }
    
    /* اللوغو في المنتصف تماماً */
    .header-logo {
        justify-self: center;
        text-align: center;
    }
    .header-logo img { max-height: 40px; }

    /* تعديل أحجام شاشة البحث للموبايل */
    .search-field { font-size: 22px; }
    .close-overlay { top: 15px; right: 20px; font-size: 40px; }
}
/* ===================================================
   --- الهيدر الأساسي (بنية صلبة) ---
====================================================== */
.site-header-main {
    background-color: var(--white, #ffffff);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000; /* يجب أن يكون أعلى من أي محتوى آخر في الصفحة */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    gap: 30px; /* مسافة أمان بين العناصر */
}

/* اللوغو (اليمين) */
.header-logo {
    flex-shrink: 0; /* منع اللوغو من الانضغاط */
    display: flex;
    align-items: center;
}
.header-logo img { max-height: 55px; width: auto; }

/* أيقونة القائمة للموبايل (مخفية في الديسكتوب) */
.header-mobile-toggle { display: none; }

/* زر البحث (اليسار) */
.header-search-icon { flex-shrink: 0; }
.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--black-color, #111);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: color 0.3s ease;
}
.icon-btn:hover { color: var(--green-accent, #27ae60); }

/* ===================================================
   --- قائمة سطح المكتب والميجا منيو ---
====================================================== */
.header-desktop-nav {
    flex-grow: 1; /* إجبار القائمة على أخذ المساحة المتبقية */
    display: flex;
    justify-content: center; /* توسيط القائمة في المنتصف */
}

.desktop-menu-list {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu-list > li {
    position: relative; /* نقطة الارتكاز الأساسية للقوائم المنسدلة */
    padding: 30px 0; /* مساحة علوية وسفلية تمنع اختفاء القائمة عند مرور الماوس */
}

.desktop-menu-list > li > a {
    color: var(--black-color, #111);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.desktop-menu-list > li > a:hover {
    color: var(--green-accent, #27ae60);
}

/* --- ضبط القوائم المنسدلة والميجا منيو (Sub-menus & Mega Menus) --- */
.desktop-menu-list .sub-menu,
.desktop-menu-list .mega-menu {
    position: absolute;
    top: 100%;
    right: 0; /* يبدأ من يمين العنصر الأب (RTL) */
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-top: 3px solid var(--green-accent, #27ae60);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 0 0 6px 6px;
    z-index: 1001;
}

/* الإظهار عند مرور الماوس (Hover) */
.desktop-menu-list li:hover > .sub-menu,
.desktop-menu-list li:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* عناصر القائمة المنسدلة */
.desktop-menu-list .sub-menu li {
    padding: 0;
    margin: 0;
}

.desktop-menu-list .sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: #444;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.desktop-menu-list .sub-menu li:last-child a { border-bottom: none; }
.desktop-menu-list .sub-menu li a:hover {
    background-color: #fcfcfc;
    color: var(--green-accent, #27ae60);
    padding-right: 26px; /* حركة ارتدادية خفيفة */
}

/* ===================================================
   --- التجاوب مع الهاتف (Mobile Header Grid) ---
====================================================== */
@media (max-width: 991px) {
    /* 1. إخفاء قائمة سطح المكتب تماماً */
    .header-desktop-nav { display: none !important; }
    
    /* 2. إظهار زر الهمبرغر */
    .header-mobile-toggle { display: block; }
    
    /* 3. تحويل تخطيط الهيدر إلى شبكة (Grid) بثلاثة أعمدة */
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr; /* يمين، وسط، يسار */
        align-items: center;
        height: 80px;
        gap: 0; /* تصفير الـ gap للاعتماد على الـ justify-self */
    }
    
    /* توزيع العناصر في أطراف ومنتصف الشاشة */
    .header-mobile-toggle { justify-self: start; } /* أقصى اليمين في RTL */
    .header-logo { justify-self: center; }        /* المنتصف تماماً */
    .header-search-icon { justify-self: end; }    /* أقصى اليسار في RTL */
    
    .header-logo img { max-height: 45px; }
}
/* ===================================================
   --- 1. قائمة سطح المكتب (Desktop Nav) ---
====================================================== */
.desktop-menu-list > li {
    position: relative;
    padding: 30px 0;
}

.desktop-menu-list > li > a {
    color: var(--black-color, #111);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    position: relative; /* لتموضع الخط السفلي */
    display: inline-block;
    padding-bottom: 5px; /* مسافة للخط السفلي */
}

/* حركة الخط السفلي (Hover Underline) */
.desktop-menu-list > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* يبدأ من اليمين للغة العربية */
    width: 0;
    height: 2px;
    background-color: var(--green-accent, #27ae60);
    transition: width 0.3s ease;
}
.desktop-menu-list > li > a:hover::before {
    width: 100%;
}

/* السهم الدلالي بجانب العناصر التي تملك قائمة فرعية */
.desktop-menu-list .menu-item-has-children > a {
    padding-left: 18px; /* مسافة للسهم */
}
.desktop-menu-list .menu-item-has-children > a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 45%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666; /* شكل مثلث صغير */
    transition: transform 0.3s ease;
}
.desktop-menu-list .menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg); /* ينعكس السهم للأعلى */
    border-top-color: var(--green-accent, #27ae60);
}

/* تحسين مساحة الميجا منيو والقوائم الفرعية */
.desktop-menu-list .sub-menu,
.desktop-menu-list .mega-menu {
    min-width: 260px; /* جعلها أعرض ومريحة */
    padding: 15px;
    border-radius: 8px;
    /* باقي التنسيقات (position, opacity) كما هي من الكود السابق */
}

/* ===================================================
   --- 2. قائمة الهاتف الأكورديون (Mobile Menu) ---
====================================================== */
.menu-inner {
    text-align: right; /* القائمة في الموبايل تبدو أفضل على اليمين */
    padding-top: 50px; /* إبعادها عن زر الإغلاق */
}

.mobile-accordion-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-accordion-menu > li {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-accordion-menu a {
    color: #ffffff;
    font-size: 18px; /* خط مثالي ومريح للموبايل */
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 18px 0; /* مساحة لمس (Touch Target) ممتازة */
}

/* زر الزائد (+) الأكورديون */
.mobile-toggle-btn {
    position: absolute;
    left: 0; /* أقصى اليسار */
    top: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.mobile-toggle-btn.open {
    background: var(--green-accent, #27ae60);
    border-color: var(--green-accent, #27ae60);
    transform: rotate(45deg); /* يتحول إلى علامة X */
}

/* القائمة الفرعية في الموبايل */
/* --- القائمة الفرعية في الموبايل (محدثة للوضوح) --- */
.mobile-accordion-menu .sub-menu {
    display: none;
    list-style: none;
    padding: 5px 20px 5px 0; /* إزاحة لليمين */
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.04); /* خلفية بيضاء شفافة جداً ومريحة للعين */
    border-right: 2px solid var(--green-accent, #27ae60); /* خط أخضر أنيق يوضح أنها فرعية */
    border-radius: 4px;
}

.mobile-accordion-menu .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* فاصل خفيف جداً بين العناصر الفرعية */
}
.mobile-accordion-menu .sub-menu li:last-child {
    border-bottom: none;
}

.mobile-accordion-menu .sub-menu a {
    font-size: 16px; /* تكبير الخط قليلاً لسهولة القراءة */
    padding: 12px 10px;
    color: #ffffff !important;  /* أبيض ناصع لوضوح تام */
    opacity: 0.9;
    display: block;
    transition: all 0.3s ease;
}

.mobile-accordion-menu .sub-menu a:hover,
.mobile-accordion-menu .sub-menu a:active {
    color: var(--green-accent, #27ae60);
    opacity: 1;
    padding-right: 15px; /* حركة لمس خفيفة */
}
/* --- إجبار جميع النصوص داخل القائمة الفرعية للموبايل على اللون الأبيض --- */
.mobile-accordion-menu .sub-menu a,
.mobile-accordion-menu .sub-menu a *, /* يستهدف أي span أو أيقونة داخل الرابط */
.mobile-accordion-menu .sub-menu span,
.mobile-accordion-menu .sub-menu div,
.mobile-accordion-menu .sub-menu p,
.mobile-accordion-menu .sub-menu h1,
.mobile-accordion-menu .sub-menu h2,
.mobile-accordion-menu .sub-menu h3,
.mobile-accordion-menu .sub-menu h4,
.mobile-accordion-menu .sub-menu h5,
.mobile-accordion-menu .sub-menu h6 {
    color: #ffffff !important;
}

/* تحسين خفيف للسطوع عند مرور الماوس/اللمس */
.mobile-accordion-menu .sub-menu a:hover,
.mobile-accordion-menu .sub-menu a:hover *,
.mobile-accordion-menu .sub-menu a:active,
.mobile-accordion-menu .sub-menu a:active * {
    color: var(--green-accent, #27ae60) !important;
}


/* ===================================================
   --- 1. هيرو الصفحات الثابتة والخدمات (محدث ومطابق للرئيسية) ---
====================================================== */
.page-hero-section.luxury-hero {
    position: relative;
    height: 70vh; /* نفس ارتفاع الصفحة الرئيسية تقريباً */
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.luxury-hero .page-title {
    color: #ffffff;
    font-size: 56px; /* خط فخم وعريض */
    font-weight: 900;
    margin: 0;
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
    line-height: 1.3;
}

/* ===================================================
   --- 2. تنظيف معرض ووردبريس (Gallery) ---
====================================================== */
.editor-content-wrapper .wp-block-image {
    cursor: zoom-in; /* إشارة للمستخدم أن الصورة قابلة للتكبير */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
}

.editor-content-wrapper .wp-block-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* إخفاء أي زر قديم إذا نسيته في الكود */
.wa-overlay-btn { display: none !important; }

/* ===================================================
   --- التجاوب مع الهاتف (Mobile) ---
====================================================== */
@media (max-width: 768px) {
    .page-hero-section.luxury-hero {
        height: 45vh;
        min-height: 350px;
        background-attachment: scroll; /* لحماية أداء الهاتف */
    }
    .luxury-hero .page-title {
        font-size: 34px; /* حجم متناسق جداً مع الهاتف */
        padding: 0 20px;
    }
}
/* ===================================================
   --- نظام الـ Lightbox الفخم للصور ---
====================================================== */
.darb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.darb-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
}

/* الشريط العلوي (زر الإغلاق والواتساب) */
.lightbox-top-bar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.lightbox-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s;
}
.lightbox-close:hover { transform: rotate(90deg) scale(1.1); color: var(--green-accent); }

/* زر الواتساب وفقاعة المحادثة */
.lightbox-wa-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #25D366;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.lightbox-wa-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }

.wa-bubble {
    background: #25D366;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    position: relative;
}
/* سهم الفقاعة */
.wa-bubble::after {
    content: '';
    position: absolute;
    left: -8px; /* اتجاه اليسار للسهم */
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid #25D366;
}

/* مساحة الصورة وأزرار التنقل */
.lightbox-content-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

#lightboxMainImg {
    max-height: 70vh;
    max-width: 80vw;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: fadeInZoom 0.4s ease;
}

@keyframes fadeInZoom {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.lightbox-nav:hover { background: var(--green-accent); transform: scale(1.1); }

/* شريط المصغرات السفلي */
.lightbox-thumbnails-wrapper {
    position: relative;
    z-index: 10;
    height: 100px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    overflow-x: auto;
    /* إخفاء شريط التمرير */
    scrollbar-width: none; 
}
.lightbox-thumbnails-wrapper::-webkit-scrollbar { display: none; }

.lightbox-thumb-item {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.lightbox-thumb-item:hover { opacity: 0.8; }
.lightbox-thumb-item.active {
    opacity: 1;
    border-color: var(--green-accent);
    transform: scale(1.1);
}

/* ===================================================
   --- التجاوب مع الهاتف (Lightbox Mobile) ---
====================================================== */
@media (max-width: 768px) {
    .lightbox-top-bar { padding: 15px 20px; }
    .lightbox-close { font-size: 40px; }
    
    .wa-bubble { font-size: 12px; padding: 6px 12px; }
    
    .lightbox-content-area { padding: 0; justify-content: center; }
    
    /* جعل أزرار التنقل تطفو فوق الصورة في الموبايل لتوفير المساحة */
    .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        font-size: 20px;
        background: rgba(0,0,0,0.5);
    }
    .lightbox-prev { right: 10px; }
    .lightbox-next { left: 10px; }
    
    #lightboxMainImg { max-width: 100vw; max-height: 60vh; border-radius: 0; }
    
    .lightbox-thumbnails-wrapper { height: 80px; }
    .lightbox-thumb-item { width: 50px; height: 50px; }
}
/* ===================================================
   --- نموذج طلب التسعيرة الفخم (Lead Generation Form) ---
====================================================== */
.custom-order-section {
    margin: 80px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.order-form-box {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 50px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

/* شريط علوي جمالي فوق الفورم */
.order-form-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #111111, var(--green-accent, #27ae60));
}

.order-form-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--black-color, #111);
    margin-bottom: 15px;
    text-align: center;
}

.order-form-desc {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

.darb-order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: right; /* ضمان الاتجاه العربي */
}

.form-group label {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

/* تصميم الحقول (Inputs & Select & Textarea) */
.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fcfcfc;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    color: #333;
    appearance: none; /* إخفاء سهم القائمة المنسدلة الافتراضي */
    -webkit-appearance: none;
}

/* السهم المخصص للقائمة المنسدلة */
select.form-control {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: left 20px top 50%; /* السهم على اليسار في العربي */
    background-size: 12px auto;
}

/* تأثير عند الضغط على الحقل (Focus) */
.form-control:focus {
    border-color: var(--green-accent, #27ae60);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1); /* هالة خضراء خفيفة */
}

/* زر الإرسال عبر الواتساب */
.btn-submit-order {
    background-color: #25D366; /* لون الواتساب */
    color: #ffffff;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-submit-order:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.3);
}

/* ===================================================
   --- تجاوب النموذج مع الهاتف (Mobile Design) ---
====================================================== */
@media (max-width: 768px) {
    .custom-order-section {
        margin: 50px auto;
    }
    
    .order-form-box {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .order-form-title {
        font-size: 22px;
    }
    
    .btn-submit-order {
        font-size: 16px;
        padding: 15px;
    }
}
/* ===================================================
   --- صندوق التقييم التفاعلي العضوي (واضح المعالم) ---
====================================================== */
.darb-interactive-rating {
    background-color: #ffffff !important;
    border: 2px solid #eaeaea !important;
    border-radius: 12px !important;
    padding: 30px 20px !important;
    margin: 40px auto !important; /* توسيط إجباري في منتصف الصفحة */
    max-width: 450px !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    display: block !important;
    transition: all 0.3s ease;
}

.darb-rating-header {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #222 !important;
    margin-bottom: 15px !important;
}

.darb-stars-container {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 20px 0 !important;
    direction: ltr !important; /* لضمان تعبئة النجوم من اليسار لليمين برمجياً */
}

.darb-rate-star {
    font-size: 45px !important; /* حجم كبير وواضح للضغط بالأصابع */
    color: #e0e0e0 !important; /* لون رمادي باهت للنجمة الفارغة */
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    line-height: 1 !important;
}

/* حالة التقييم الافتراضي */
.darb-rate-star.active {
    color: #ffc107 !important; /* لون ذهبي */
}

/* تأثير التمرير من الجافاسكريبت (تضيء النجوم التي قبلها) */
.darb-interactive-rating:not(.already-voted) .darb-rate-star.hover {
    color: #ff9800 !important; /* ذهبي داكن قليلاً للمؤشر */
    transform: scale(1.15) !important; /* تكبير تفاعلي */
}

/* منع النقر بعد التصويت */
.already-voted .darb-rate-star {
    cursor: default !important;
}

.darb-rating-feedback {
    font-size: 14px !important;
    color: #555 !important;
    background: #f9f9f9 !important;
    padding: 12px !important;
    border-radius: 6px !important;
    margin-top: 15px !important;
}

.darb-rating-feedback strong {
    color: #111 !important;
}

/* ===================================================
   --- التجاوب مع الهاتف للموبايل ---
====================================================== */
@media (max-width: 768px) {
    .darb-interactive-rating {
        margin: 30px 15px !important; /* حواف آمنة في الهاتف */
        padding: 25px 15px !important;
    }
    .darb-rate-star {
        font-size: 40px !important; /* تصغير بسيط للهاتف */
    }
}
/* ===================================================
   --- 1. هيرو الأرشيف (Glassmorphism Effect) ---
====================================================== */
.archive-hero-section {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.archive-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4); /* تظليل خفيف لجمالية الزجاج */
    z-index: 2;
}

.archive-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* البوكس الزجاجي الفخم */
.glass-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px 60px;
    text-align: center;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.archive-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.archive-description {
    color: #f0f0f0;
    font-size: 18px;
    line-height: 1.6;
}

/* ===================================================
   --- 2. فتات الخبز (Rank Math Breadcrumbs) ---
====================================================== */
.darb-breadcrumbs-wrapper {
    background-color: #fcfcfc;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.darb-breadcrumbs-wrapper a {
    color: var(--black-color, #111);
    text-decoration: none;
    transition: color 0.3s;
}

.darb-breadcrumbs-wrapper a:hover {
    color: var(--green-accent, #27ae60);
}

/* ===================================================
   --- 3. شبكة المقالات (Grid) ---
====================================================== */
.archive-main-content {
    padding: 70px 0;
    background-color: #ffffff;
}

.darb-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.darb-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f5f5f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.darb-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.post-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.darb-post-card:hover .post-card-img img {
    transform: scale(1.08);
}

.post-card-category {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--green-accent, #27ae60);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    z-index: 2;
}

.post-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.5;
}

.post-card-title a {
    color: var(--black-color, #111);
    text-decoration: none;
    transition: color 0.3s;
}

.post-card-title a:hover {
    color: var(--green-accent, #27ae60);
}

.post-card-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--black-color, #111);
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.post-read-more span {
    margin-right: 8px; /* السهم لليسار في العربي */
    transition: transform 0.3s;
}

.post-read-more:hover { color: var(--green-accent, #27ae60); }
.post-read-more:hover span { transform: translateX(-5px); }

/* ===================================================
   --- 4. الترقيم (Pagination) ---
====================================================== */
.darb-pagination {
    margin-top: 50px;
    text-align: center;
}
.darb-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.darb-pagination .page-numbers {
    padding: 10px 18px;
    background: #fcfcfc;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    color: var(--black-color, #111);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}
.darb-pagination .page-numbers.current,
.darb-pagination .page-numbers:hover {
    background: var(--green-accent, #27ae60);
    color: #fff;
    border-color: var(--green-accent, #27ae60);
}

/* ===================================================
   --- 5. خطاف الإجراء السفلي (Archive CTA) ---
====================================================== */
.archive-cta-section {
    padding: 0 0 70px 0;
    background-color: #ffffff;
}

.archive-cta-box {
    background: linear-gradient(135deg, #111111, #1a1a1a);
    border-radius: 16px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

/* خط جمالي أخضر */
.archive-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--green-accent, #27ae60);
}

.cta-box-content { flex: 1; padding-left: 30px; }
.cta-title { color: #fff; font-size: 32px; font-weight: 900; margin-bottom: 15px; }
.cta-desc { color: #ccc; font-size: 16px; line-height: 1.6; margin-bottom: 20px; max-width: 600px; }

.cta-hashtags { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-tag {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.btn-cta-archive {
    background: var(--green-accent, #27ae60);
    color: #fff;
    padding: 16px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s, transform 0.3s;
}

.btn-cta-archive:hover {
    background: #1ebe57;
    transform: translateY(-3px);
}

/* ===================================================
   --- التجاوب مع الهاتف (Mobile Design) ---
====================================================== */
@media (max-width: 991px) {
    .archive-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .cta-box-content { padding-left: 0; margin-bottom: 30px; }
    .cta-hashtags { justify-content: center; }
}

@media (max-width: 768px) {
    .archive-hero-section {
        height: 40vh;
        min-height: 300px;
        background-attachment: scroll; /* منع بطء التمرير في الهواتف */
    }
    .glass-box {
        padding: 30px 20px;
        margin: 0 15px;
    }
    .archive-title { font-size: 28px; }
    .archive-description { font-size: 15px; }
    
    .darb-post-grid {
        grid-template-columns: 1fr; /* عمود واحد في الهاتف */
    }
    .cta-title { font-size: 24px; }
}
/* ===================================================
   --- 1. الهيرو المنقسم (Split Animated Hero) ---
====================================================== */
.single-hero-split {
    /* تدرج لوني فخم متحرك بوزن 0 كيلوبايت */
    background: linear-gradient(-45deg, #0d1110, #182b20, #111a14, #050505);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 80px 0;
    color: #fff;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-split-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-split-text { flex: 1.2; }
.hero-split-image { flex: 1; text-align: left; }

.single-breadcrumbs { margin-bottom: 20px; font-size: 14px; color: #aaa; }
.single-breadcrumbs a { color: var(--green-accent); text-decoration: none; }

.single-hero-title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 15px;
}

.single-hero-meta { color: #888; font-size: 14px; }
.meta-divider { margin: 0 10px; color: #555; }

.floating-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-5deg); /* لمسة 3D خفيفة جداً */
    transition: transform 0.5s;
}
.floating-thumbnail:hover { transform: perspective(1000px) rotateY(0deg) scale(1.02); }

/* ===================================================
   --- 2. هيكل المحتوى والسايد بار اللزج ---
====================================================== */
.single-main-area { padding: 60px 0; background: #fff; }

.darb-row { display: flex; gap: 40px; align-items: flex-start; }

.darb-col-content.has-sidebar { width: 68%; }
.darb-col-content.full-width { width: 100%; max-width: 900px; margin: 0 auto; }
.darb-col-sidebar { width: 30%; position: sticky; top: 100px; /* يجعل السايد بار يلحق الزائر أثناء القراءة */ }

.single-content-body { font-size: 18px; line-height: 1.9; color: #333; }

/* صندوق الثقة (Trust Badge) */
.sticky-trust-badge {
    background: #fcfcfc;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.badge-icon { margin-bottom: 15px; }
.badge-title { font-size: 20px; font-weight: 800; color: #111; margin-bottom: 10px; }
.badge-text { font-size: 15px; color: #666; line-height: 1.6; }

/* ===================================================
   --- 3. بوكس التحويل السفلي (Post CTA) ---
====================================================== */
.single-custom-cta {
    background: #111;
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.single-cta-content { flex: 1; color: #fff; }
.single-cta-content h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; color: var(--green-accent); }
.single-cta-content p { color: #ccc; font-size: 16px; margin: 0; }

.single-cta-actions { display: flex; gap: 15px; }

.btn-cta-wa {
    background: #25D366; color: #fff; padding: 12px 24px; border-radius: 6px;
    font-weight: bold; text-decoration: none; transition: 0.3s;
}
.btn-cta-wa:hover { background: #1ebe57; transform: translateY(-2px); }

.btn-cta-call {
    background: rgba(255,255,255,0.1); color: #fff; padding: 12px 24px; border-radius: 6px;
    font-weight: bold; text-decoration: none; border: 1px solid rgba(255,255,255,0.2); transition: 0.3s;
}
.btn-cta-call:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ===================================================
   --- 4. سلايدر الصور المدمج (Scroll Snap) ---
====================================================== */
.darb-in-content-slider-wrapper { margin: 40px 0; }
.darb-scroll-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    scrollbar-width: thin; /* للفايرفوكس */
}

/* تجميل شريط التمرير */
.darb-scroll-slider::-webkit-scrollbar { height: 8px; }
.darb-scroll-slider::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.darb-scroll-slider::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.slider-item {
    flex: 0 0 70%; /* يظهر 70% من الصورة الأولى لتلميح وجود صور أخرى */
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.slider-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s;
}
.slider-item:hover .slider-image { transform: scale(1.03); }

.slider-hint { text-align: center; font-size: 13px; color: #888; margin-top: 5px; }

/* ===================================================
   --- التجاوب مع الموبايل ---
====================================================== */
@media (max-width: 991px) {
    .darb-row { flex-direction: column; }
    .darb-col-content.has-sidebar, .darb-col-sidebar { width: 100%; position: static; }
    .single-custom-cta { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    /* ضربة المعلمين: إخفاء الصورة في الموبايل لتسريع LCP */
    .hero-split-image { display: none; }
    .single-hero-title { font-size: 28px; }
    .single-hero-split { padding: 50px 0; }
    .slider-item { flex: 0 0 90%; } /* في الهاتف اجعل الصورة تأخذ مساحة أكبر */
    .slider-image { height: 250px; }
}
.darb-404-section { padding: 100px 0; text-align: center; }
.error-code { font-size: 150px; font-weight: 900; color: var(--green-accent); margin: 0; }
.error-title { font-size: 32px; margin-bottom: 20px; }
.error-actions { display: flex; gap: 15px; justify-content: center; margin-top: 30px; }
.page-header {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.header-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); }
.page-header h1 { position: relative; z-index: 1; font-size: 48px; }
.content-area { padding: 60px 0; }