/* =========================================================
   1. HERO SECTION (Glassmorphism & Gold Edition)
   ========================================================= */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* ارتفاع كامل */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* لتعويض الهيدر الشفاف */
}

/* طبقة الظلام (Overlay) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    z-index: 1;
}

/* ---------------------------
   Glass Card (المربع الزجاجي الفخم)
--------------------------- */
.hero-glass-card {
    position: relative;
    z-index: 2;
    background: rgba(18, 18, 18, 0.65); /* خلفية سوداء نصف شفافة */
    backdrop-filter: blur(12px);         /* تأثير التغويش الزجاجي */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-gold-main); /* الإطار الذهبي */
    padding: 3.5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), 
                inset 0 0 20px rgba(197, 160, 89, 0.1); /* توهج داخلي خفيف */
}

/* إجبار الوضع الداكن داخل الهيرو (للحفاظ على الفخامة) */
.hero-section.force-dark-mode .hero-glass-card {
    background: rgba(18, 18, 18, 0.65) !important;
    border-color: var(--color-gold-main) !important;
}

/* ---------------------------
   Typography (النصوص)
--------------------------- */
/* العنوان الذهبي الكبير */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* خط كبير متجاوب */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-gold-main); /* اللون الذهبي */
}

/* الوصف الفرعي الأبيض */
.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #f0f0f0; /* أبيض مائل للرمادي الخفيف جداً */
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------
   Buttons (الأزرار الدائرية)
--------------------------- */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 25px; /* مسافة جيدة بين الأزرار */
    flex-wrap: wrap;
}

/* تنسيق عام للأزرار داخل الهيرو */
.hero-actions .btn {
    border-radius: 50px; /* الحواف الدائرية (Pill Shape) */
    padding: 16px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent; /* تجهيز الحدود */
}

/* الزر الأساسي (الذهبي) */
.btn-hero-primary {
    background-color: var(--color-gold-main);
    color: var(--color-charcoal-900);
    border-color: var(--color-gold-main);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-hero-primary:hover {
    background-color: transparent;
    color: var(--color-gold-main);
    transform: translateY(-3px);
}

/* الزر الثانوي (الشفاف) */
.btn-hero-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: var(--color-gold-main);
}

.btn-hero-secondary:hover {
    background-color: var(--color-gold-main);
    color: var(--color-charcoal-900);
    transform: translateY(-3px);
}

/* ---------------------------
   Scroll Down Indicator
--------------------------- */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.scroll-down-indicator span {
    width: 4px;
    height: 8px;
    background: var(--color-gold-main);
    border-radius: 2px;
    margin-top: 10px;
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* Animation Classes */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Rules for Hero */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll; /* أفضل للأداء في الموبايل */
    }

    .hero-glass-card {
        padding: 2.5rem 1.5rem;
        margin: 0 15px;
        width: 100%;
        border-width: 1px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%; /* زر بعرض كامل في الموبايل */
        padding: 14px;
    }
}


/* =========================================================
   2. ABOUT SECTION (قسم من نحن)
   ========================================================= */
.about-section {
    padding: 100px 0;
    background-color: #fff; 
    overflow: hidden;
    position: relative;
    z-index: 10; /* ليكون فوق الهيرو قليلاً */
}

/* دعم الوضع الليلي لقسم من نحن (إذا أردت) */
body:not(.light-mode) .about-section {
    background-color: var(--color-charcoal-900);
    color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Image Side */
.image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* Content Side */
.sub-title {
    color: var(--color-gold-main); /* تعديل للذهبي */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: inherit; /* ليأخذ لون الـ body */
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-description {
    color: inherit;
    opacity: 0.8;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Features Icons */
.about-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(136, 136, 136, 0.2);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: inherit;
}

.feature-item .icon {
    font-size: 1.5rem;
    color: var(--color-gold-main);
}

/* Animation Classes (Scroll Reveal) */
.reveal-on-scroll {
    opacity: 0;
    transition: all 1s ease-out;
    will-change: transform, opacity;
}

.reveal-on-scroll.from-right { transform: translateX(50px); }
.reveal-on-scroll.from-left { transform: translateX(-50px); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateX(0); }

/* Responsive About */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .section-header.text-start { text-align: center; }
    .about-features { justify-content: center; }
    
    .reveal-on-scroll.from-right, 
    .reveal-on-scroll.from-left {
        transform: translateY(30px);
    }
}
/* =========================================
   3. STATS SECTION (Counter) - Compact Edition
   ========================================= */
.stats-section {
    padding: 45px 0; /* تقليل العرض (كان 80px) */
    position: relative;
    z-index: 5;
    /* اللون الافتراضي (للوضع الليلي) يتم التحكم به من التخصيص */
    /* هنا نضع قيماً احتياطية فقط */
    background-color: var(--color-gold-main); 
    color: var(--color-charcoal-900);
    transition: background-color 0.3s ease;
}

.stats-grid {
    display: flex;
    justify-content: space-around; /* توزيع متساوي */
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

/* الأيقونة */
.stat-icon {
    font-size: 2.5rem; /* تصغير حجم الأيقونة */
    margin-bottom: 10px;
    opacity: 0.9;
}

/* الرقم */
.stat-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 2.8rem; /* تصغير الرقم قليلاً */
    line-height: 1;
    margin-bottom: 5px;
}

.stat-plus {
    font-size: 1.5rem;
    margin-right: 5px;
    vertical-align: super;
}

/* العنوان */
.stat-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* -------------------------------------------
   Light Mode Colors (الوضع النهاري - أزرق صخري)
   ------------------------------------------- */
body.light-mode .stats-section {
    background-color: #2c3e50 !important; /* لون أزرق هندسي فخم */
    color: #ffffff !important;            /* النص يصبح أبيض */
}

/* إجبار العناصر الداخلية على اللون الأبيض في الوضع النهاري */
body.light-mode .stats-section .stat-icon, 
body.light-mode .stats-section .stat-number, 
body.light-mode .stats-section .stat-plus,
body.light-mode .stats-section .stat-label {
    color: #ffffff !important;
}

/* -------------------------------------------
   Responsive (Mobile Compact)
   ------------------------------------------- */
@media (max-width: 768px) {
    .stats-section {
        padding: 30px 0; /* تقليل المساحة أكثر في الموبايل */
    }
    
    .stats-grid {
        display: flex;       
        flex-direction: row; /* جعلها أفقية وليست عمودية */
        flex-wrap: wrap;     /* السماح بالنزول للسطر التالي إذا ضاقت */
        justify-content: center;
        gap: 15px;
    }

    .stat-item {
        /* جعل العناصر تأخذ مساحة صغيرة متجاورة (مثل 3 بجانب بعض أو 2) */
        flex: 0 0 30%;       /* العرض 30% ليتسع لـ 3 عناصر في صف واحد */
        min-width: 90px;     /* أقل عرض مسموح */
        padding: 5px;
    }

    .stat-icon { 
        font-size: 1.8rem !important; /* أيقونة صغيرة لطيفة */
        margin-bottom: 5px;
    }
    
    .stat-content { 
        font-size: 1.8rem !important; /* رقم صغير */
    }
    
    .stat-plus { font-size: 1rem; }
    
    .stat-label { 
        font-size: 0.8rem !important; /* خط صغير للعنوان */
        white-space: nowrap; /* منع نزول الكلمة لسطرين */
    }
}
/* =========================================================
   3. FEATURES SECTION (Services) - Compact Spotlight Edition
   ========================================================= */
.features-section {
    padding: 50px 0; /* مسافة مضغوطة */
    position: relative;
    background-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-gold-main);
    margin-bottom: 10px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: #888;
}

/* Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    padding: 10px 0;
}

/* Card Design */
.feature-card {
    /* Base Dark Glass */
    background: rgba(15, 15, 15, 0.6); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    
    /* Dimensions */
    padding: 30px 20px;
    min-height: 240px;
    
    /* Flex Center */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Hover Effect (Spotlight) */
.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.8);
    background: radial-gradient(
        circle at center, 
        rgba(197, 160, 89, 0.15) 0%,   
        rgba(20, 20, 20, 0.85) 70%     
    );
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* Icon */
.feature-card .icon {
    font-size: 3.5rem;
    color: var(--color-gold-main);
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
    transition: transform 0.4s ease;
}

.feature-card:hover .icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.4));
}

/* Typography */
.feature-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.feature-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    max-width: 100%;
}

/* Light Mode Overrides for Features */
body.light-mode .features-section {
    background-color: #f9f9f9;
}
body.light-mode .section-title {
    color: #2c3e50;
}
body.light-mode .feature-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
body.light-mode .feature-card:hover {
    border-color: var(--color-gold-main);
    background: radial-gradient(
        circle at center, 
        rgba(197, 160, 89, 0.1) 0%, 
        rgba(255, 255, 255, 1) 70%
    );
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
body.light-mode .feature-card .icon { color: var(--color-gold-main); }
body.light-mode .feature-title { color: #121212; }
body.light-mode .feature-text { color: #555555; }
/* =========================================================
   4. ABOUT SECTION (Strict Layout Fix)
   ========================================================= */
.about-section {
    padding: 80px 0;
    position: relative;
    background-color: #111111; /* خلفية داكنة */
    overflow: hidden;
}

/* --------------------------------------------------------
   أولاً: تنسيق سطح المكتب (الشاشات الكبيرة فقط)
   -------------------------------------------------------- */
@media (min-width: 992px) {
    .about-grid {
        display: flex !important;
        flex-direction: row !important; /* اتجاه أفقي */
        justify-content: space-between !important; /* تباعد الأطراف */
        align-items: center !important;
        gap: 50px;
    }

    /* 1. الصورة (يمين) */
    .about-image-side {
        width: 48% !important; /* عرض ثابت */
        max-width: 48% !important;
        flex: 0 0 48% !important; /* منع التمدد أو الانكماش */
        order: 1; /* الترتيب الأول (يمين في العربية) */
        margin: 0 !important; /* إلغاء أي توسط */
    }

    /* 2. النص (يسار) */
    .about-content-side {
        width: 48% !important;
        max-width: 48% !important;
        flex: 0 0 48% !important;
        order: 2; /* الترتيب الثاني (يسار في العربية) */
        text-align: right;
    }
}

/* --------------------------------------------------------
   ثانياً: تنسيق الموبايل والتابلت (الشاشات الصغيرة)
   -------------------------------------------------------- */
@media (max-width: 991px) {
    .about-section {
        padding: 50px 0;
    }

    .about-grid {
        display: flex !important;
        flex-direction: column !important; /* عمودي */
        gap: 30px;
        align-items: center;
    }

    .about-image-side, 
    .about-content-side {
        width: 100% !important;
        max-width: 100% !important;
        order: unset !important; /* إلغاء الترتيب الإجباري */
    }

    /* الصورة فوق */
    .about-image-side { order: 1 !important; }
    
    /* النص تحت */
    .about-content-side { 
        order: 2 !important; 
        text-align: center; /* توسيط النص في الموبايل */
    }
}

/* --------------------------------------------------------
   ثالثاً: التصميم الجمالي (الإطار الذهبي والخطوط)
   يعمل على الكل
   -------------------------------------------------------- */

/* تصميم الإطار الذهبي النحيف (حسب طلبك الأخير) */
.image-frame {
    background-color: transparent; /* بدون خلفية بيضاء */
    padding: 8px; /* مسافة صغيرة جداً بين الصورة والإطار */
    border: 1px solid var(--color-gold-main); /* إطار ذهبي رفيع */
    border-radius: 6px; /* زوايا حادة قليلاً (ليست دائرية جداً) */
    
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); /* ظل للعمق */
    transition: transform 0.3s ease;
}

.image-frame img {
    width: 100%;
    height: auto;
    border-radius: 4px; /* زوايا الصورة */
    display: block;
}

/* حركة بسيطة عند الهوفر */
.image-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.1);
}

/* العناوين والنصوص */
.about-subtitle {
    display: block;
    color: var(--color-gold-main);
    font-size: 1.5rem; /* تكبير الخط ليكون واضحاً كعنوان */
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.about-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 25px;
}

.about-desc {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* الزر المفرغ */
.btn-gold-solid {
    background-color: transparent;
    color: var(--color-gold-main);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    border: 1px solid var(--color-gold-main);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-gold-solid:hover {
    background-color: var(--color-gold-main);
    color: #000;
}

/* الوضع النهاري */
body.light-mode .about-section { background-color: #f9f9f9; }
body.light-mode .about-title { color: #2c3e50; }
body.light-mode .about-desc { color: #555; }
/* =========================================
   PROJECTS SECTION (General & Home)
   ========================================= */
.projects-section {
    padding: 80px 0;
    background-color: var(--bg-color-alt); /* لون فاتح قليلاً */
}

/* Filters */
.projects-filter {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--color-gold-main);
    color: var(--color-grey-500);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--color-gold-main);
    color: #fff;
}

/* Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Card */
.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-10px); }

.project-thumb {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.project-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.project-card:hover .project-thumb img { transform: scale(1.1); }

.project-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }

.btn-view {
    background: var(--color-gold-main); color: #000;
    padding: 10px 25px; border-radius: 25px; text-decoration: none; font-weight: 700;
}

.project-info { padding: 25px; text-align: right; }
.project-title a { color: var(--color-charcoal-900); text-decoration: none; font-size: 1.3rem; }
.project-excerpt { color: #666; font-size: 0.95rem; margin: 15px 0; line-height: 1.6; }
.btn-link { color: var(--color-gold-main); font-weight: 700; text-decoration: none; }

/* Dark Mode Home */
body:not(.light-mode) .project-card { background: #1e1e1e; }
body:not(.light-mode) .project-title a { color: #fff; }
body:not(.light-mode) .project-excerpt { color: #ccc; }

/* =========================================
   ARCHIVE HERO
   ========================================= */
.archive-hero {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    /* Force Dark Text Contrast */
    color: #fff;
}
.archive-hero .hero-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
}
.archive-hero .container { position: relative; z-index: 2; }
.archive-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; }
.cat-pill {
    display: inline-block; background: rgba(255,255,255,0.2);
    color: #fff; padding: 8px 20px; border-radius: 20px;
    margin: 5px; text-decoration: none; backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}
.cat-pill:hover { background: var(--color-gold-main); color: #000; border-color: var(--color-gold-main); }

/* =========================================
   SINGLE PROJECT LAYOUT
   ========================================= */
.single-project-hero {
    padding-top: 180px !important; 
    padding-bottom: 80px !important;
    background-color: #111; /* خلفية داكنة */
    color: #fff;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    position: relative;
    z-index: 1; /* لضمان أن الخلفية تظهر بشكل صحيح */
}

.hero-container {
    display: flex; align-items: center; justify-content: space-between; gap: 50px;
}
.hero-text-side { flex: 1; text-align: right; }
.hero-cat { color: var(--color-gold-main); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.hero-title { font-size: 3rem; margin: 15px 0; }
.hero-img-side { width: 40%; }
.hero-img-side img { width: 100%; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); border: 1px solid var(--color-gold-main); }

/* Body Grid */
.single-project-body { padding: 80px 0; }
.project-layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px; /* Content 1fr, Sidebar 350px */
    gap: 50px;
}

/* Sidebar Elements */
.project-details-card {
    background: #f9f9f9; padding: 30px; border-radius: 12px;
    border: 1px solid #eee; margin-bottom: 30px;
}
.project-details-card h3 { margin-bottom: 20px; border-bottom: 2px solid var(--color-gold-main); display: inline-block; padding-bottom: 5px; }
.project-details-card ul { list-style: none; padding: 0; margin-bottom: 20px; }
.project-details-card li { margin-bottom: 12px; border-bottom: 1px solid #eee; padding-bottom: 8px; font-size: 0.95rem; }
.project-details-card li strong { color: var(--color-charcoal-900); }

.trust-box {
    background: #eefbfb; border: 1px solid #bee; padding: 20px;
    border-radius: 8px; text-align: center; color: #006666;
}
.trust-icon { font-size: 2rem; margin-bottom: 10px; }

/* Dark Mode Single Body */
body:not(.light-mode) .project-details-card { background: #1e1e1e; border-color: #333; }
body:not(.light-mode) .project-details-card li { border-color: #333; color: #ccc; }
body:not(.light-mode) .project-details-card li strong { color: #fff; }
body:not(.light-mode) .trust-box { background: rgba(0,255,255,0.05); border-color: rgba(0,255,255,0.1); color: #aaf; }
/* =========================================
   زر "اطلب مشروع مماثل" (نسخة رشيقة وأنيقة)
   ========================================= */
.btn-gold-full {
    display: block;              
    width: 100%;
    text-align: center;
    
    /* الألوان */
    background-color: var(--color-gold-main); 
    color: #111 !important;   
    
    /* [تعديل] أبعاد أصغر وأكثر تناسقاً */
    padding: 12px 15px;          /* تقليل الحشوة العلوية والسفلية */
    font-size: 0.95rem;          /* تصغير الخط قليلاً ليتناسب مع الحجم */
    font-weight: 700;            /* سماكة خط متوسطة */
    
    /* الحواف */
    border-radius: 6px;          
    border: 1px solid var(--color-gold-main); /* إطار أنحف */
    
    /* الحركة */
    text-decoration: none;
    text-transform: uppercase;   /* أحرف كبيرة للغة الإنجليزية (اختياري) */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* تأثير الهوفر */
.btn-gold-full:hover {
    background-color: transparent; 
    color: var(--color-gold-main) !important; 
    transform: translateY(-3px);   
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); 
    letter-spacing: 0.5px;       /* تباعد خفيف جداً للأحرف */
}

/* في الموبايل (تحسين إضافي) */
@media (max-width: 768px) {
    .btn-gold-full {
        padding: 10px 15px; /* تصغير إضافي في الموبايل */
        font-size: 0.9rem;
        width: 100%;       /* ضمان عدم خروجه عن الشاشة */
        max-width: 100%;
    }
}
/* =========================================
   إصلاح الوضع النهاري لصندوق بيانات المشروع
   ========================================= */

body.light-mode .project-details-card {
    background-color: #fafafa !important; /* خلفية بيضاء نقية */
    border: 1px solid #C5A059 !important; /* إطار رمادي واضح */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important; /* ظل ناعم */
}

/* 1. إصلاح لون العنوان (بيانات المشروع) */
body.light-mode .project-details-card h3 {
    color: #2c3e50 !important; /* أزرق داكن (صخري) بدل الذهبي الفاتح ليكون أوضح */
    border-bottom-color: var(--color-gold-main) !important; /* الخط التحتي يبقى ذهبياً */
}

/* 2. إصلاح لون النصوص (القائمة) */
body.light-mode .project-details-card li {
    border-bottom: 1px solid #f0f0f0 !important; /* خط فاصل رمادي فاتح */
    color: #555555 !important; /* لون القيم (مثل: 2022) رمادي غامق */
}

/* 3. إصلاح لون العناوين الجانبية (سنة التنفيذ، المساحة...) */
body.light-mode .project-details-card li strong {
    color: #111111 !important; /* أسود عريض وواضح جداً */
}

/* 4. تحسين صندوق "الثقة" في الوضع النهاري */
body.light-mode .trust-box {
    background-color: #f8fcfc !important; /* سماوي فاتح جداً */
    border: 1px solid #a0dada !important;
    color: #006666 !important;
}
/* =========================================
   إصلاحات صفحة أرشيف المشاريع (Archive Fixes)
   ========================================= */

/* 1. إصلاح تداخل الهيرو مع الهيدر */
.archive-hero {
    /* زيادة الحشوة العلوية لتعويض الهيدر الشفاف */
    padding-top: 160px !important; 
    padding-bottom: 60px !important;
    
    /* إلغاء الطول الثابت ليسمح للمحتوى بالتمدد */
    height: auto !important;
    min-height: 350px; /* ضمان حد أدنى للارتفاع */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 2. إصلاح التصاق الكروت بالهيرو */
.main-content-archive {
    /* إضافة مسافة علوية كبيرة تفصل الكروت عن الهيرو */
    padding-top: 80px !important; 
    padding-bottom: 80px !important;
    
    background-color: var(--bg-body); /* لضمان لون الخلفية الصحيح */
}

/* تحسين إضافي: توسيط العنوان والفلاتر */
.archive-hero .container {
    text-align: center;
    position: relative;
    z-index: 2;
}
/* =========================================
   إصلاحات الوضع النهاري للأرشيف + الطبقة الداكنة
   ========================================= */

/* 1. إضافة الطبقة الداكنة (Overlay) لهيرو الأرشيف */
.archive-hero {
    position: relative; /* ضروري لتموضع الطبقة */
    z-index: 1;
}

/* إنشاء الطبقة السوداء الشفافة */
.archive-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6) !important; /* لون أسود شفاف بنسبة 60% */
    z-index: 1; /* تقع فوق الصورة الخلفية */
}

/* رفع المحتوى (النص) ليكون فوق الطبقة */
.archive-hero .container {
    position: relative;
    z-index: 2; 
}

/* تثبيت لون عنوان الأرشيف ليكون أبيض دائماً (لأنه فوق طبقة داكنة الآن) */
.archive-title, 
.archive-hero .cat-pill {
    color: #ffffff !important;
}

/* -----------------------------------------
   2. إصلاح اختفاء عناوين المشاريع (الوضع النهاري)
   ----------------------------------------- */

/* جعل عنوان المشروع أسود في الوضع النهاري */
body.light-mode .project-title a {
    color: #111111 !important; 
    font-weight: 800;
}

/* جعل المقتطف النصي (الشرح) رمادي داكن */
body.light-mode .project-excerpt,
body.light-mode .project-info p {
    color: #555555 !important;
}

/* =========================================
   تحديث: إطار ذهبي لبطاقات المشاريع (الوضع النهاري)
   ========================================= */

body.light-mode .project-card {
    background-color: #ffffff !important;
    
    /* التعديل هنا: إطار ذهبي بدلاً من الرمادي */
    border: 1px solid var(--color-gold-main) !important; 
    
    /* ظل خفيف لإبراز البطاقة */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    
    /* حركة ناعمة */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* تأثير عند مرور الماوس في الوضع النهاري */
body.light-mode .project-card:hover {
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15) !important; /* ظل ذهبي خافت */
    transform: translateY(-5px);
}
/* تنسيق أزرار الفلترة داخل هيرو الأرشيف */
.archive-hero .filter-btn {
    background: rgba(255, 255, 255, 0.1); /* خلفية شفافة */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 25px;
    margin: 5px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: inherit; /* لضمان نفس الخط */
}

.archive-hero .filter-btn:hover,
.archive-hero .filter-btn.active {
    background: var(--color-gold-main);
    color: #000;
    border-color: var(--color-gold-main);
}
/* =========================================
   CTA SECTION STYLES
   ========================================= */
.cta-section {
    position: relative;
    padding: 100px 0;
    background-color: #111; /* لون احتياطي */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* تأثير بارالاكس جميل */
    text-align: center;
    color: #fff;
    overflow: hidden;
}

/* طبقة التعتيم (Overlay) */
.cta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* تعتيم قوي بنسبة 70% لضمان وضوح النص */
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2; /* لرفع المحتوى فوق التعتيم */
}

/* العنوان */
.cta-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 40px;
    line-height: 1.3;
    color: #fff; /* أبيض دائماً لأنه فوق صورة */
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* 1. أزرار التواصل الرئيسية */
.cta-main-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-cta-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border: 2px solid #25D366;
}
.btn-whatsapp:hover {
    background-color: transparent;
    color: #25D366;
}

.btn-phone {
    background-color: #3498db; /* أزرق */
    color: #fff;
    border: 2px solid #3498db;
}
.btn-phone:hover {
    background-color: transparent;
    color: #3498db;
}

/* 2. الأزرار الإضافية (Custom Links) */
.cta-custom-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1); /* خط فاصل خفيف */
    padding-top: 30px;
}

.btn-cta-outline {
    background: transparent;
    border: 1px solid var(--color-gold-main);
    color: #fff;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-cta-outline:hover {
    background: var(--color-gold-main);
    color: #000;
    transform: translateY(-3px);
}

/* =========================================
   دعم الوضع النهاري (إذا لم يكن هناك صورة)
   ========================================= */
/* إذا كان المستخدم لم يضع صورة، نريد الخلفية فاتحة في الوضع النهاري */
body.light-mode .cta-section[style=""] { 
    background-color: #f9f9f9; 
}
/* إذا تغيرت الخلفية لفاتحة، نغير النصوص لداكنة */
body.light-mode .cta-section[style=""] .cta-title { color: #111; text-shadow: none; }
body.light-mode .cta-section[style=""] .btn-cta-outline { color: #333; border-color: #ccc; }
body.light-mode .cta-section[style=""] .cta-overlay { display: none; } /* إخفاء التعتيم */
/* =========================================
   تصميم معرض الصور (Slider + Lightbox)
   ========================================= */

/* حاوية السلايدر */
.albitar-gallery-wrapper {
    position: relative;
    padding: 20px 0;
    margin: 40px 0;
    overflow: hidden; /* لإخفاء شريط التمرير */
}

/* مسار الصور (Track) */
.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* سر السلاسة */
    scrollbar-width: none; /* إخفاء السكرول بار (فايرفوكس) */
    padding-bottom: 20px;
}
.gallery-track::-webkit-scrollbar { display: none; } /* كروم وسفاري */

/* العنصر الفردي */
.gallery-item {
    flex: 0 0 calc(33.333% - 14px); /* 3 صور في السطر للديسك توب */
    scroll-snap-align: start;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

/* 4 صور في الشاشات الكبيرة جداً */
@media (min-width: 1400px) {
    .gallery-item { flex: 0 0 calc(25% - 15px); }
}

/* الصورة */
.gallery-img-box {
    position: relative;
    height: 300px; /* ارتفاع موحد */
    width: 100%;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* تأثير الهوفر */
.gallery-img-box:hover img {
    transform: scale(1.1);
}

.hover-icon {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.hover-icon i {
    color: #fff;
    font-size: 2rem;
    background: var(--color-gold-main);
    padding: 15px;
    border-radius: 50%;
}

.gallery-img-box:hover .hover-icon {
    opacity: 1;
}

/* أزرار التنقل (الأسهم) */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--color-gold-main);
    border: none;
    color: #000;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center; justify-content: center;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { right: 0; }
.gallery-nav.next { left: 0; }

/* -----------------------------------------
   تجاوب الموبايل (صورة واحدة)
   ----------------------------------------- */
@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 100%; /* صورة واحدة كاملة */
        margin-right: 0;
    }
    .gallery-img-box { height: 250px; }
    
    /* تصغير الأسهم قليلاً */
    .gallery-nav { width: 35px; height: 35px; font-size: 0.9rem; }
}

/* -----------------------------------------
   LIGHTBOX STYLES (النافذة المنبثقة)
   ----------------------------------------- */
.theme-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.theme-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--color-gold-main);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: #fff;
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover { color: var(--color-gold-main); transform: rotate(90deg); }
/* =========================================
   تحديث شامل للمعرض (4 صور + أسهم واضحة)
   ========================================= */

.albitar-gallery-wrapper {
    position: relative;
    padding: 20px 40px; /* تركنا مساحة جانبية للأسهم */
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }

/* العنصر الفردي - العرض 4 صور (Desktop) */
.gallery-item {
    /* المعادلة: (100% / 4) - المسافات */
    flex: 0 0 calc(25% - 15px); 
    scroll-snap-align: start;
    cursor: pointer;
}

/* صورة المعرض */
.gallery-img-box {
    position: relative;
    height: 300px; /* ارتفاع ثابت */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2); /* إطار خفيف */
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* تأثير التكبير عند المرور */
.gallery-img-box:hover img {
    transform: scale(1.05);
}

/* أيقونة التكبير (للتوضيح أن الصورة قابلة للضغط) */
.hover-icon {
    position: absolute;
    bottom: 15px; right: 15px; /* مكان الأيقونة */
    width: 35px; height: 35px;
    background: var(--color-gold-main);
    color: #000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.gallery-img-box:hover .hover-icon {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------
   تصميم أزرار التقليب (واضحة وكبيرة)
   -------------------------------------- */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    /* الشكل */
    width: 45px; height: 45px;
    background-color: #111; /* خلفية سوداء */
    color: var(--color-gold-main); /* سهم ذهبي */
    border: 2px solid var(--color-gold-main);
    border-radius: 50%;
    
    /* الأيقونة */
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery-nav:hover {
    background-color: var(--color-gold-main);
    color: #000;
}

/* تموضع الأزرار (يمين ويسار) */
.gallery-nav.prev { right: 0; } /* الزر الأيمن */
.gallery-nav.next { left: 0; }  /* الزر الأيسر */
/* =========================================
   قسم آراء العملاء (Testimonials)
   ========================================= */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--bg-body);
}

/* الشبكة: 2 عمود في سطح المكتب (مربعين بجانب بعض) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* عمودين متساويين */
    gap: 30px; /* مسافة بين المربعات */
    max-width: 1000px;
    margin: 0 auto; /* توسيط الشبكة */
}

/* تصميم البطاقة */
.testi-card {
    background-color: #1a1a1a; /* لون داكن قليلاً عن الخلفية */
    border: 1px solid rgba(197, 160, 89, 0.2); /* إطار ذهبي خافت */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testi-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold-main);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.1);
}

/* الأيقونة (FontAwesome) */
.testi-icon {
    font-size: 2rem;
    color: var(--color-gold-main);
    margin-bottom: 20px;
    opacity: 0.8;
}

/* النص */
.testi-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
    font-style: italic;
}

/* اسم العميل */
.testi-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   دعم الوضع النهاري (Light Mode)
   ========================================= */
body.light-mode .testi-card {
    background-color: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

body.light-mode .testi-text {
    color: #555;
}

body.light-mode .testi-name {
    color: #000;
}
/* =========================================
   تنسيقات المدونة والمقال
   ========================================= */

/* 1. الصفحة الرئيسية والأرشيف */
.blog-cat-pill {
    position: absolute;
    top: 15px; right: 15px;
    background: var(--color-gold-main);
    color: #000;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.blog-meta-top {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.read-more-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-gold-main);
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}
.read-more-link:hover { padding-left: 5px; }

/* أزرار التصنيفات في الأرشيف */
.archive-cats-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cat-filter-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    white-space: nowrap; /* منع النص من النزول سطر */
}
.cat-filter-btn:hover {
    background: var(--color-gold-main);
    color: #000;
}

/* الوضع الليلي/النهاري لهيرو الأرشيف */
/* إذا كان يوجد صورة: تجاهل الوضع */
.archive-hero.has-bg-image { color: #fff; }
.archive-hero.has-bg-image .archive-title { color: #fff; }

/* إذا لم يوجد صورة: طبق الألوان */
.archive-hero.no-bg-image {
    background-color: var(--bg-body); /* سيتغير تلقائياً */
}
body.light-mode .archive-hero.no-bg-image .archive-title { color: #000; }
body.light-mode .archive-hero.no-bg-image .cat-filter-btn { 
    border-color: #ccc; color: #555; background: #fff;
}
body.light-mode .archive-hero.no-bg-image .cat-filter-btn:hover {
    background: var(--color-gold-main); color: #fff;
}

/* 2. صفحة المقال المفرد - الهيرو */
.single-post-hero {
    background-color: var(--color-gold-main); /* لون الهوية */
    padding: 140px 0 60px; /* مسافة للهيدر */
    color: #000; /* نص أسود لأنه على خلفية ذهبية */
}

.single-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.single-hero-text { flex: 1; }
.single-hero-img { flex: 0 0 400px; max-width: 400px; }
.single-hero-img img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%; height: auto;
}

.hero-cat-btn {
    background: #000; color: #fff;
    padding: 5px 15px; border-radius: 4px;
    font-size: 0.8rem; display: inline-block; margin-bottom: 15px;
}

.single-post-title { font-size: 2.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }

.single-post-meta { font-size: 0.9rem; margin-bottom: 20px; font-weight: 600; opacity: 0.8; }
.meta-item { margin-left: 15px; }

.single-breadcrumbs { font-size: 0.85rem; opacity: 0.7; }
.single-breadcrumbs a { color: inherit; text-decoration: underline; }

/* 3. جسم المقال والسايدبار */
.single-post-body { padding: 60px 0; background: var(--bg-body); }
.single-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* المحتوى 2 : السايدبار 1 */
    gap: 40px;
}

.entry-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-color); }
.entry-content h2, .entry-content h3 { margin-top: 30px; margin-bottom: 15px; color: var(--color-gold-main); }
.entry-content p { margin-bottom: 20px; }

/* ويدجات السايدبار */
.sidebar-widget {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}
body.light-mode .sidebar-widget {
    background: #fff;
    border-color: #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.2rem; margin-bottom: 20px;
    border-bottom: 2px solid var(--color-gold-main);
    display: inline-block; padding-bottom: 5px;
}

/* ويدجت الموثوقية */
.widget-trust {
    border: 2px solid var(--color-gold-main);
    text-align: center;
    position: relative;
    padding-top: 40px;
}
.trust-icon {
    position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
    background: var(--bg-body); /* لتغطية الخط */
    font-size: 2.5rem; color: var(--color-gold-main);
    padding: 0 10px;
}

/* القوائم في السايدبار */
.styled-cat-list li {
    list-style: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 10px 0;
}
body.light-mode .styled-cat-list li { border-bottom-color: #eee; }
.styled-cat-list li a { color: inherit; transition: 0.3s; }
.styled-cat-list li a:hover { color: var(--color-gold-main); padding-right: 5px; }

/* 4. صندوق الكاتب */
.author-box {
    margin-top: 60px;
    padding: 30px;
    background: #1a1a1a;
    border-radius: 10px;
    display: flex; gap: 20px; align-items: flex-start;
}
body.light-mode .author-box { background: #f9f9f9; }

.author-avatar img { border-radius: 50%; border: 3px solid var(--color-gold-main); }
.author-name { margin-top: 0; color: var(--color-gold-main); }
.author-socials a { color: #888; margin-right: 10px; font-size: 1.1rem; }

/* 5. المقالات المشابهة */
.related-posts-section { margin-top: 60px; }
.related-title { margin-bottom: 25px; font-size: 1.5rem; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-card { background: var(--bg-card); padding: 10px; border-radius: 8px; }
.related-thumb img { width: 100%; height: 150px; object-fit: cover; border-radius: 4px; }
.related-info h5 { margin: 10px 0 5px; font-size: 1rem; }
.related-date { font-size: 0.8rem; color: #888; }

/* =========================================
   تجاوب المدونة والمقال (Responsive)
   ========================================= */
@media (max-width: 768px) {
    /* أرشيف المدونة */
    .blog-grid-layout { grid-template-columns: 1fr !important; }
    .archive-cats-list { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 10px; }
    
    /* المقال المفرد */
    .single-hero-content { flex-direction: column-reverse; text-align: center; }
    .single-hero-img { width: 100%; max-width: 100%; flex: 0 0 auto; }
    .single-post-title { font-size: 1.8rem; }
    
    .single-layout-grid { grid-template-columns: 1fr !important; gap: 30px; }
    .single-sidebar { order: 2; } /* السايدبار تحت المحتوى */
    
    .author-box { flex-direction: column; text-align: center; align-items: center; }
    
    .related-grid { grid-template-columns: 1fr !important; }
    .related-card { display: flex; gap: 15px; align-items: center; }
    .related-thumb img { width: 80px; height: 80px; }
    .related-info h5 { font-size: 0.9rem; margin: 0; }
}
/* =========================================
   قسم الأسئلة الشائعة (FAQ Accordion)
   ========================================= */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-body);
}

/* الشبكة: عمودين في الديسكتوب */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: flex-start; /* لكي لا تتمدد العناصر طولياً */
}

/* تصميم العنصر الواحد */
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* رأس السؤال (الزر) */
.faq-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right; /* للعربية */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    transition: 0.3s;
}

.faq-header:hover {
    color: var(--color-gold-main);
    background: rgba(255, 255, 255, 0.02);
}

/* الأيقونة (+ / -) */
.faq-icon {
    font-size: 1rem;
    color: var(--color-gold-main);
    transition: transform 0.3s ease;
}

/* منطقة الجواب (مخفية افتراضياً) */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.faq-content {
    padding: 0 20px 20px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- الحالة النشطة (عند الفتح) --- */
.faq-item.active {
    border-color: var(--color-gold-main);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* تحويل الزائد إلى ضرب (إكس) */
}

.faq-item.active .faq-header {
    color: var(--color-gold-main);
}

/* =========================================
   الوضع النهاري (Light Mode)
   ========================================= */
body.light-mode .faq-item {
    background: #ffffff;
    border-color: #e0e0e0;
}

body.light-mode .faq-header {
    color: #222;
}

body.light-mode .faq-header:hover,
body.light-mode .faq-item.active .faq-header {
    color: #000; /* أو الذهبي الداكن */
}

body.light-mode .faq-body {
    background: #f9f9f9;
}

body.light-mode .faq-content {
    color: #555;
}
/* =========================================
   قسم اتصل بنا (Overlapping Layout)
   ========================================= */
.contact-section {
    padding: 80px 0 120px; /* مسافة سفلية إضافية */
    background-color: var(--bg-body);
    position: relative;
}

/* الشبكة المتداخلة */
.contact-overlap-wrapper {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* تقسيم الشاشة لـ 12 عمود */
    align-items: center;
    position: relative;
}

/* 1. تنسيق الخريطة */
/* تعديل كود الخريطة لملء الفراغ */
.contact-map-box {
    grid-column: 1 / 9;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    filter: grayscale(100%) invert(90%);
}

/* هذا الكود الجديد سيجعل الخريطة تتمدد */
.google-map {
    width: 100%;
    height: 100%;
}

.google-map iframe {
    width: 100% !important;  /* عرض كامل إجباري */
    height: 100% !important; /* ارتفاع كامل إجباري لملء الـ 500 بكسل */
    border: 0;
    display: block; /* إزالة أي هوامش سفلية خفية */
}

.placeholder-map {
    width: 100%; height: 100%; background: #222;
    display: flex; align-items: center; justify-content: center; color: #777;
}

/* 2. تنسيق بطاقة النموذج (العنصر العائم) */
.contact-form-card {
    grid-column: 8 / 13; /* تأخذ الأعمدة من 8 إلى 12 (تتداخل مع الخريطة) */
    background: #111; /* خلفية داكنة */
    padding: 40px;
    border-radius: 10px;
    box-shadow: -20px 20px 50px rgba(0,0,0,0.4); /* ظل قوي للبروز */
    position: relative;
    z-index: 2; /* الطبقة الأمامية */
    border: 1px solid rgba(197, 160, 89, 0.2); /* إطار ذهبي خافت */
    margin-top: 50px; /* إزاحة بسيطة للأسفل */
}

/* شريط المعلومات */
.contact-info-bar {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.95rem;
}

.info-item i {
    color: var(--color-gold-main);
    width: 20px; text-align: center; font-size: 1.1rem;
}

.info-item a { color: #ccc; transition: 0.3s; }
.info-item a:hover { color: var(--color-gold-main); }

/* عنوان النموذج */
.form-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* تخصيص حقول Contact Form 7 لتناسب القالب */
.wpcf7-form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}
.wpcf7-form-control:focus {
    border-color: var(--color-gold-main);
    background: rgba(255,255,255,0.1);
    outline: none;
}
.wpcf7-submit {
    background: var(--color-gold-main);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    width: auto;
    padding: 10px 30px;
}
.wpcf7-submit:hover {
    background: #fff;
}

/* =========================================
   الوضع النهاري (Light Mode)
   ========================================= */
body.light-mode .contact-map-box {
    filter: none; /* إرجاع الخريطة لألوانها الطبيعية */
}

body.light-mode .contact-form-card {
    background: #ffffff;
    border-color: #eee;
    box-shadow: -10px 10px 40px rgba(0,0,0,0.1);
}

body.light-mode .info-item, 
body.light-mode .info-item a,
body.light-mode .form-title {
    color: #333;
}

body.light-mode .wpcf7-form-control {
    background: #f9f9f9;
    border-color: #ddd;
    color: #333;
}
body.light-mode .wpcf7-form-control:focus {
    background: #fff;
    border-color: var(--color-gold-main);
}
/* =========================================
   قسم شركاء النجاح (Infinite Marquee) - تحسين المسافات والوضوح
   ========================================= */
.partners-section {
    padding: 60px 0;
    background-color: var(--bg-body);
    overflow: hidden;
    direction: ltr; 
}

.partners-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.partners-track {
    display: flex;
    gap: 30px; /* [تعديل] تقليل المسافة من 40 إلى 30 */
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll-partners 30s linear infinite;
}

/* تصميم كرت الشعار */
.partner-logo {
    width: 200px; 
    height: 120px; 
    flex-shrink: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 15px;
    
    /* الوضع الليلي: رمادي */
    filter: grayscale(100%) opacity(0.8); /* زيادة الوضوح قليلاً */
    transition: all 0.3s ease;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.partners-slider-wrapper:hover .partners-track {
    animation-play-state: paused;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    background: rgba(255,255,255,0.05);
    border-color: var(--color-gold-main);
    transform: scale(1.05);
}

@keyframes scroll-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   الوضع النهاري (Light Mode) - إصلاح البهتان
   ========================================= */
body.light-mode .partner-logo {
    background: #fff;
    border-color: #eee;
    /* [تعديل هام] إلغاء الشفافية تماماً في الوضع النهاري لتكون الصورة واضحة */
    filter: grayscale(100%) opacity(1); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* إضافة ظل خفيف بدلاً من الشفافية */
}

body.light-mode .partner-logo:hover {
    filter: grayscale(0%); /* تلوين عند الهوفر */
    border-color: var(--color-gold-main);
}
/* =========================================
   تنسيقات الصفحات الداخلية (الأرشيف، 404، الصفحات)
   ========================================= */

/* 1. هيرو الأرشيف والبحث */
.archive-hero {
    padding: 120px 0 60px;
    background-color: var(--bg-card); /* خلفية احتياطية */
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 50px;
}

.archive-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--color-gold-main);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}
/* إخفاء كلمة "Category:" الافتراضية من ووردبريس */
.archive-title span { display: none; } 

.archive-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

/* 2. صفحة 404 */
.error-404-section {
    padding: 100px 0;
    min-height: 70vh; /* لتأخذ مساحة الشاشة */
    display: flex;
    align-items: center;
    background: var(--bg-body);
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-gold-main);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(197, 160, 89, 0.2);
}

.error-title { font-size: 2rem; margin-bottom: 15px; }
.error-text { font-size: 1.1rem; margin-bottom: 30px; color: #888; }
.error-search { max-width: 500px; margin: 0 auto 30px; }

/* 3. الصفحة العامة (Page.php) */
.page-hero {
    background: var(--bg-card);
    padding: 100px 0 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-title { font-size: 2.5rem; color: var(--color-gold-main); }

.page-container { padding: 60px 0; background: var(--bg-body); }
.page-content-box {
    background: rgba(255,255,255,0.02);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.page-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* الوضع النهاري */
body.light-mode .archive-hero.no-bg-image { background: #f0f0f0; }
body.light-mode .page-hero { background: #f9f9f9; border-color: #eee; }
body.light-mode .page-content-box { background: #fff; border-color: #eee; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
/* =========================================
   تنسيقات صفحة من نحن (التصميم النهائي: تباعد صحيح)
   ========================================= */

/* 1. الهيرو */
.overlap-hero-header {
    background-color: var(--color-gold-main);
    
    /* [الحل] زيادة الحشوة العلوية لكي لا يغطي الهيدر المحتوى */
    /* 160px كافية جداً لإظهار الهيدر وبحته مسافة فارغة قبل العنوان */
    padding-top: 160px; 
    padding-bottom: 80px; 
    
    position: relative;
    border-bottom: 10px solid rgba(0,0,0,0.1);
}

/* حاوية الفليكس لترتيب العناصر بجانب بعض */
.hero-flex-wrapper {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 50px;
}

/* عمود النص (اليمين) */
.hero-text-col {
    flex: 1;
    text-align: right;
}

.overlap-page-title {
    color: #000;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-breadcrumb {
    font-size: 1rem;
    color: rgba(0,0,0,0.7);
    font-weight: bold;
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 50px;
}
.hero-breadcrumb a { color: inherit; text-decoration: none; }

/* عمود الصورة (اليسار) */
.hero-image-col {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* الصورة أقصى اليسار */
}

.overlap-featured-image {
    width: 100%;
    max-width: 550px; 
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border: 5px solid rgba(255,255,255,0.2);
    
    /* ضمان عدم التداخل */
    position: relative; 
    transform: none; 
    margin: 0; 
}

.overlap-featured-image img {
    width: 100%; height: 100%; object-fit: cover;
}

/* الوضع النهاري */
body.light-mode .overlap-hero-header {
    background-color: #0056b3; 
}
body.light-mode .overlap-page-title { color: #fff; }
body.light-mode .hero-breadcrumb { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.2); }


/* 2. جسم الصفحة */
.overlap-page-body {
    padding: 60px 0; /* مسافة عادية */
    background-color: var(--bg-body);
}

.overlap-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px; /* المحتوى : مربع الثقة */
    gap: 50px;
    align-items: start;
}

/* مربع الثقة */
.trust-box-sidebar {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-gold-main);
    padding: 30px;
    border-radius: 10px;
    position: sticky;
    top: 100px;
    text-align: center;
}
body.light-mode .trust-box-sidebar {
    background: #fff; border-color: #0056b3; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
/* =========================================
   تنسيقات الشريط التاريخي (Timeline Widget)
   ========================================= */
.history-timeline-wrapper {
    position: relative;
    padding: 30px 20px 30px 0; /* مسافة لليمين للعربية */
    border-right: 2px solid rgba(255,255,255,0.1); /* الخط الرأسي */
    margin: 50px 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-right: 30px; /* مسافة بين الخط والنص */
}

/* النقطة المضيئة */
.timeline-dot {
    position: absolute;
    right: -7px; /* محاذاة النقطة تماماً على الخط (الخط عرضه 2px والنقطة 12px) */
    top: 5px;
    width: 12px; height: 12px;
    background: var(--color-gold-main);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-gold-main); /* توهج */
    z-index: 2;
}

.timeline-year {
    font-weight: 900; 
    font-size: 1.4rem; 
    color: var(--color-gold-main);
    display: block; 
    margin-bottom: 5px;
    font-family: 'Tajawal', sans-serif;
}

.timeline-text { 
    font-size: 1.1rem; 
    margin: 0;
    color: var(--text-color);
    line-height: 1.5;
}

/* الوضع النهاري */
body.light-mode .history-timeline-wrapper {
    border-right-color: #ddd; /* لون الخط في النهاري */
}
body.light-mode .timeline-text {
    color: #333;
}
/* =========================================
   تنسيقات الصفحات العادية (Standard Pages) - محدث
   ========================================= */

/* 1. هيرو الصفحة */
.standard-page-hero {
    position: relative;
    /* [تعديل] استخدام min-height بدلاً من height ثابت لمرونة أكثر */
    min-height: 450px; 
    
    background-color: var(--color-gold-main); 
    background-size: cover;
    background-position: center;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 0;

    /* [تعديل هام] زيادة الحشوة العلوية لتبتعد عن هيدر الموقع */
    padding-top: 160px; 
    padding-bottom: 60px;
}

/* إذا لم توجد صورة بارزة */
.standard-page-hero.no-bg-image {
    background: #111;
    background-image: linear-gradient(45deg, #111 0%, #222 100%);
}

.standard-page-title {
    color: #fff;
    font-size: 3.5rem; /* تكبير الخط قليلاً */
    font-weight: 900;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.standard-breadcrumb {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.2); /* خلفية خفيفة للنص لزيادة الوضوح */
    padding: 5px 15px;
    border-radius: 50px;
}
.standard-breadcrumb a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; transition: 0.3s; }
.standard-breadcrumb a:hover { border-bottom-color: var(--color-gold-main); }
.standard-breadcrumb .sep { margin: 0 5px; color: var(--color-gold-main); }


/* 2. جسم الصفحة ومربع المحتوى */
.standard-page-body {
    padding: 60px 0 80px;
    background-color: var(--bg-body);
}

.page-content-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 50px;
    
    /* [تعديل هام] توسيع عرض المحتوى */
    max-width: 1200px; /* زدنا العرض من 900px إلى 1200px */
    width: 100%;       /* لضمان التجاوب */
    
    margin: 0 auto; 
    min-height: 300px;
}

/* تنسيق النصوص داخل المحتوى */
.entry-content {
    font-size: 1.15rem; /* تكبير خط القراءة قليلاً */
    line-height: 1.9;
    color: var(--text-color);
}
.entry-content h2, .entry-content h3 { color: var(--color-gold-main); margin-top: 30px; margin-bottom: 15px; }
.entry-content p { margin-bottom: 20px; }
.entry-content ul { margin-right: 20px; margin-bottom: 20px; }
.entry-content li { margin-bottom: 10px; }

/* الوضع النهاري */
body.light-mode .standard-page-hero.no-bg-image {
    background: #0056b3; 
}
body.light-mode .page-content-card {
    background: #fff;
    border-color: #eee;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
}
/* =========================================
   6. الفوتر (Footer) - النسخة الفاخرة (Premium)
   ========================================= */

/* 1. الحاوية الأساسية (ثابتة اللون دائماً) */
.site-footer {
    background-color: #0f0f0f !important; /* أسود فحمي */
    color: #b0b0b0 !important; /* نص رمادي فاتح */
    padding-top: 80px;
    position: relative;
    z-index: 10;
    border-top: 4px solid var(--color-gold-main); /* الخط الذهبي العلوي */
    font-family: 'Tajawal', sans-serif;
}

/* في الوضع النهاري نجبره يبقى داكن */
body.light-mode .site-footer {
    background-color: #0f0f0f !important;
    color: #b0b0b0 !important;
}

.footer-widgets-area {
    padding-bottom: 60px;
}

/* 2. الشبكة والفواصل الذهبية */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* ألغينا المسافة لنضع الحدود يدوياً */
}

.footer-col {
    padding: 0 40px; /* مسافة داخلية للمحتوى */
    position: relative;
}

/* رسم الخط الذهبي العمودي */
.footer-col:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0; /* الخط يظهر على اليسار */
    top: 10%;
    height: 80%; /* ليس بطول كامل، لجمالية أكثر */
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--color-gold-main), transparent);
    opacity: 0.5;
}

/* 3. عناوين الودجات */
.footer-title {
    color: #fff !important; /* أبيض دائماً */
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

/* زخرفة صغيرة تحت العنوان */
.footer-title::before {
    content: '';
    position: absolute;
    bottom: -10px; right: 0;
    width: 30px; height: 2px;
    background-color: var(--color-gold-main);
}

/* 4. الروابط والنصوص */
.footer-widget p, .footer-widget li {
    color: #aaa !important;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-widget a {
    color: #ccc !important;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.footer-widget a:hover {
    color: var(--color-gold-main) !important;
    transform: translateX(-5px); /* حركة خفيفة عند التحويم */
}

/* القوائم النقطية */
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget ul li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* 5. شريط الحقوق السفلي */
.site-info {
    background-color: #000 !important;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: #888 !important;
}

.designer-credit a {
    color: var(--color-gold-main) !important;
    font-weight: bold;
}


/* =========================================
   أزرار التواصل العائمة (النسخة الهندسية)
   ========================================= */
.desktop-floating-btns {
    position: fixed;
    left: 40px; 
    bottom: 40px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 55px; height: 55px;
    background-color: #111; /* خلفية سوداء فخمة */
    border: 1px solid var(--color-gold-main); /* إطار ذهبي */
    color: var(--color-gold-main);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    
    /* تصميم هندسي */
    border-radius: 8px; /* حواف ناعمة قليلاً وليست دائرية */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.float-btn:hover {
    background-color: var(--color-gold-main);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.4); /* ظل ذهبي */
}

/* زر الصعود للأعلى (بنفس الستايل) */
.scroll-to-top {
    position: fixed;
    right: 40px; bottom: 40px;
    width: 50px; height: 50px;
    background: var(--color-gold-main);
    color: #000;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    z-index: 990;
    opacity: 0; visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.scroll-to-top.show { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: #fff; transform: translateY(-5px); }


/* =========================================
   الشريط السفلي للموبايل (Mobile Sticky Bar) - مصحح
   ========================================= */
.mobile-sticky-bar {
    display: none; 
    position: fixed;
    bottom: 0; left: 0; right: 0;
    
    /* خلفية داكنة صلبة (غير شفافة) */
    background-color: #0f0f0f !important; 
    border-top: 2px solid var(--color-gold-main);
    
    z-index: 2000; /* طبقة عالية جداً */
    padding: 12px 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
}

.sticky-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    color: #888; /* لون النص العادي */
    transition: 0.3s;
}

.sticky-btn i {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: #fff; /* لون الأيقونة */
    transition: 0.3s;
}

/* تلوين الأيقونات عند التفعيل */
.sticky-btn:hover i, .sticky-btn:active i { color: var(--color-gold-main); }
.sticky-btn:hover { color: #fff; }

/* تمييز الأيقونات */
.whatsapp-btn i { color: #25D366; } /* أخضر واتساب */
.call-btn i { color: var(--color-gold-main); } /* ذهبي اتصال */


/* =========================================
   تجاوب الموبايل (Fixes)
   ========================================= */
@media (max-width: 992px) {
    /* إلغاء الفواصل الذهبية في الموبايل والتابلت */
    .footer-col::after { display: none; }
    
    .footer-grid {
        grid-template-columns: 1fr; /* عمود واحد */
        gap: 40px;
    }
    .footer-col { padding: 0; text-align: center; }
    
    .footer-title::before { right: 50%; transform: translateX(50%); } /* توسيط الخط تحت العنوان */
}

@media (max-width: 768px) {
    .site-footer { padding-top: 60px; padding-bottom: 80px; /* مسافة للشريط السفلي */ }
    
    /* إخفاء الأزرار العائمة */
    .desktop-floating-btns { display: none !important; }

    /* إظهار الشريط السفلي */
    .mobile-sticky-bar { display: flex; justify-content: space-around; }

    /* تعديل زر الصعود */
    .scroll-to-top {
        bottom: 90px; right: 20px; width: 40px; height: 40px;
    }
}
/* 2. العناوين (المشكلة الرئيسية) - نجبر كل أنواع العناوين على البياض */
body.light-mode .site-footer h1,
body.light-mode .site-footer h2,
body.light-mode .site-footer h3,
body.light-mode .site-footer h4,
body.light-mode .site-footer h5,
body.light-mode .site-footer h6,
.site-footer .widget-title,
.site-footer .footer-title {
    color: #ffffff !important; /* أبيض ناصع رغماً عن الوضع النهاري */
    font-weight: bold;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
/* =========================================
   إصلاح محاذاة شريط الحقوق (يمين - يسار)
   ========================================= */

/* جعل الحاوية مرنة لتوزيع العناصر */
.site-info .container {
    display: flex !important;
    justify-content: space-between !important; /* يوزع المسافة: واحد يمين وواحد يسار */
    align-items: center !important;
    width: 100%;
}

/* في الموبايل: نجعلهم تحت بعض لترتيب أفضل */
@media (max-width: 768px) {
    .site-info .container {
        flex-direction: column !important; /* عمودي */
        justify-content: center !important;
        gap: 10px;
    }
    
    .copyright-text, 
    .designer-credit {
        text-align: center !important;
        width: 100%;
    }
}
/* =========================================
   تنسيقات مسار التنقل (Breadcrumbs)
   ========================================= */
.albitar-breadcrumb-wrapper {
    padding: 15px 0; /* مسافة داخلية */
    margin-bottom: 30px; /* [مهم] المسافة السفلية التي تفصله عن المحتوى */
    border-bottom: 1px solid rgba(128,128,128,0.1); /* خط فاصل خفيف */
    font-size: 0.9rem;
    color: #888;
    background-color: transparent; /* أو يمكن وضع لون خلفية خفيف */
}

/* تنسيق الروابط داخل المسار */
.albitar-breadcrumb-wrapper a {
    color: var(--text-color); /* يأخذ لون النص الافتراضي */
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.albitar-breadcrumb-wrapper a:hover {
    color: var(--color-gold-main); /* يتلون بالذهبي عند التحويم */
}

/* الفواصل (بين الكلمات) */
.albitar-breadcrumb-wrapper .separator,
.rank-math-breadcrumb .separator {
    margin: 0 10px;
    color: var(--color-gold-main); /* لون الفاصل ذهبي */
}

/* الكلمة الأخيرة (الصفحة الحالية) */
.albitar-breadcrumb-wrapper .last,
.rank-math-breadcrumb .last {
    color: #999;
    pointer-events: none; /* غير قابل للنقر */
}
/* =========================================
   تنسيقات التعليقات (Comments)
   ========================================= */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(128,128,128,0.2);
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--color-gold-main);
    border-bottom: 2px solid var(--color-gold-main);
    display: inline-block;
    padding-bottom: 10px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    display: flex;
    gap: 20px;
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(128,128,128,0.1);
}

.comment-author-avatar img {
    border-radius: 50%;
    border: 2px solid var(--color-gold-main);
}

.comment-content-wrap {
    flex: 1;
}

.comment-meta h5 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.comment-date {
    font-size: 0.85rem;
    color: #888;
}

.comment-text {
    margin-top: 10px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.reply a {
    color: var(--color-gold-main);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--color-gold-main);
    padding: 5px 15px;
    border-radius: 4px;
    transition: 0.3s;
}
.reply a:hover {
    background: var(--color-gold-main);
    color: #000;
}

/* الردود المتداخلة */
.children {
    list-style: none;
    padding-right: 50px; /* إزاحة لليسار في الردود */
    border-right: 2px solid rgba(128,128,128,0.1);
}

/* نموذج التعليق */
.comment-form-group {
    margin-bottom: 20px;
}
.comment-form-group input,
.comment-form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 5px;
    color: var(--text-color);
    font-family: inherit;
}
.comment-form-group input:focus,
.comment-form-group textarea:focus {
    border-color: var(--color-gold-main);
    outline: none;
    background: rgba(0,0,0,0.1);
}


/* =========================================
   تنسيقات نموذج البحث (Search Form)
   ========================================= */
.search-form .search-group {
    display: flex;
    position: relative;
    border: 1px solid rgba(128,128,128,0.3);
    border-radius: 50px;
    overflow: hidden;
    background: var(--bg-card);
}

.search-field {
    flex: 1;
    border: none;
    padding: 15px 20px;
    background: transparent;
    color: var(--text-color);
    outline: none;
}

.search-submit {
    background: var(--color-gold-main);
    color: #000;
    border: none;
    width: 50px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
}

.search-submit:hover {
    background: #fff;
}
/* =========================================
   نافذة البحث الكاملة (Full Screen Overlay)
   ========================================= */
.search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 15, 15, 0.98); /* خلفية داكنة جداً */
    z-index: 99999; /* فوق كل شيء */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* تأثير ضبابي للخلفية */
}

/* حالة الفتح */
.search-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* منع السكرول في الموقع عند الفتح */
body.search-open {
    overflow: hidden !important;
}

/* زر الإغلاق */
.close-search {
    position: absolute;
    top: 30px; left: 30px; /* لليسار لأننا عربي */
    background: none; border: none;
    color: #fff; font-size: 2.5rem;
    cursor: pointer; transition: 0.3s;
}
.close-search:hover { color: var(--color-gold-main); transform: rotate(90deg); }

/* المحتوى */
.search-overlay-content { width: 100%; text-align: center; }
.search-overlay-title { color: #888; font-size: 1.2rem; margin-bottom: 30px; }

/* حقل الإدخال الضخم */
.overlay-search-form {
    position: relative;
    max-width: 800px; margin: 0 auto 60px;
    border-bottom: 2px solid #333;
}
.overlay-search-input {
    width: 100%;
    background: transparent; border: none;
    font-size: 2.5rem; font-weight: bold;
    color: #fff; padding: 15px 0;
    text-align: center;
}
.overlay-search-input:focus { outline: none; border-bottom-color: var(--color-gold-main); }
.overlay-search-input::placeholder { color: #444; font-size: 2rem; }
.overlay-search-submit { display: none; } /* نخفي الزر ونعتمد على Enter */

/* الروابط السريعة */
.quick-label { display: block; color: var(--color-gold-main); margin-bottom: 15px; font-weight: bold; }
.quick-links-grid {
    display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;
}
.quick-link-item {
    padding: 10px 25px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: #fff; text-decoration: none;
    transition: 0.3s;
}
.quick-link-item:hover {
    background: var(--color-gold-main);
    color: #000; border-color: var(--color-gold-main);
}

/* تجاوب الموبايل */
@media (max-width: 768px) {
    .overlay-search-input { font-size: 1.5rem; }
    .overlay-search-input::placeholder { font-size: 1.2rem; }
    .quick-links-grid { flex-direction: column; align-items: center; }
    .quick-link-item { width: 80%; }
}