/*
Theme Name: Global Mayson
Description: قالب مخصص مبني من الصفر، يدعم الهوية المتعددة (White-label) مع خلفية ديناميكية.
Version: 1.3
*/

/* ==========================================================================
   1. استدعاء الخطوط (Google Fonts)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;600;700;900&display=swap');

/* ==========================================================================
   2. متغيرات الألوان (CSS Variables)
   ========================================================================== */
:root {
    --color-primary: #166534; 
    --color-primary-hover: #14532d;
    --color-secondary: #D4AF37; 

    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
}

/* ==========================================================================
   3. الإعدادات الأساسية (Reset & Base)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: var(--color-gray-800);
    background-color: var(--color-gray-50); 
    line-height: 1.6;
    direction: rtl; 
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   4. المربعات العائمة (الخلفية العامة للموقع)
   ========================================================================== */
.global-floating-squares {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none; 
    z-index: 0; 
    overflow: hidden;
}

.floating-square {
    position: absolute;
    background-color: var(--color-gray-200);
    border-radius: 0.5rem;
    opacity: 0.5;
    animation: floatAnimation linear infinite;
}

@keyframes floatAnimation {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

.site-main {
    position: relative;
    z-index: 10; 
}
/* ==========================================================================
   الترويسة المعزولة (Global Mayson Header)
   ========================================================================== */
.gm-main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: relative;
    z-index: 9999;
    direction: rtl; /* إجبار الاتجاه من اليمين لليسار */
}

.gm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between; /* يفصل اللوجو يميناً والقائمة يساراً */
    align-items: center;
}

/* اللوجو */
.gm-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* القائمة (شاشات الكمبيوتر) */
.gm-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-grow: 1; /* يسمح لحاوية القوائم بالتمدد لملء الفراغ */
    padding-right: 60px; /* المسافة التي تبعد القوائم عن اللوجو (يمكنك تعديل الرقم) */
}

.gm-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.gm-menu a {
    text-decoration: none;
    color: #111827;
    font-size: 1.1rem;
    font-weight: 700;
}

.gm-btn-contact {
    background-color: var(--color-primary, #059669);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-right: auto; /* السطر السحري الذي يدفع الزر وحده لأقصى اليسار */
}

/* زر الهمبرغر مخفي على الكمبيوتر */
.gm-hamburger {
    display: none;
}

/* ==========================================================================
   تصميم الجوال (أصغر من 992px)
   ========================================================================== */
@media (max-width: 992px) {
    /* إظهار الزر */
    .gm-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 35px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10001; /* يجب أن يكون أعلى من القائمة */
    }

    .gm-hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #111827;
        border-radius: 3px;
        transition: 0.3s;
    }

    /* حركة تحول الزر لـ X */
    .gm-hamburger.active span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
    .gm-hamburger.active span:nth-child(2) { opacity: 0; }
    .gm-hamburger.active span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

    /* القائمة المنزلقة */
    .gm-nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%; /* مخفية خارج الشاشة يميناً */
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 90px 20px 30px; /* مسافة علوية لعدم تغطية الزر */
        transition: right 0.4s ease;
        z-index: 10000;
    }

    .gm-nav-wrapper.active {
        right: 0; /* ظهور القائمة */
    }

    .gm-menu {
        flex-direction: column;
        width: 100%;
        margin-bottom: 40px;
    }

    .gm-menu li {
        width: 100%;
        border-bottom: 1px solid #eeeeee;
        padding: 15px 0;
    }

    .gm-btn-contact {
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* ==========================================================================
   6. البلوك الأول: الشاشة الافتتاحية (Hero Section)
   ========================================================================== */
.hero-block-section {
    position: relative;
    width: 100%;
    min-height: 75vh;
    background-color: transparent; 
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--color-gray-900) 20%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-700);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--color-gray-400);
    color: var(--color-gray-800);
}

.btn-secondary:hover {
    border-color: var(--color-gray-800);
    color: var(--color-gray-900);
    background-color: #ffffff;
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* ==========================================================================
   7. البلوك الثاني: الإحصائيات (Statistics Section)
   ========================================================================== */
.stats-block-section {
    padding: 3.5rem 0;
    background-color: transparent; 
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
    position: relative;
    z-index: 10; 
}

.stats-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    border: 1px solid var(--color-gray-100);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-700);
    text-transform: uppercase;
}

/* ==========================================================================
   8. المدونة (Blog Archive)
   ========================================================================== */
.blog-archive-page {
    padding: 60px 0;
    background-color: transparent; 
}

.blog-container {
    width: 100%;
    max-width: 1280px; /* تم التوسيع لتستوعب 4 أعمدة براحة وأناقة */
    margin: 0 auto;
    padding: 0 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-gray-900);
    margin-bottom: 30px;
}

.blog-search-box .search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.search-field {
    flex-grow: 1;
    padding: 15px 20px;
    border: 1px solid var(--color-gray-200);
    border-left: none;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
}

.search-submit {
    background-color: var(--color-gray-800);
    color: #fff;
    border: none;
    padding: 0 30px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s;
}

.search-submit:hover {
    background-color: var(--color-primary);
}

/* --- شبكة المقالات (إجبار 4 أعمدة) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); 
    gap: 25px;
    margin-bottom: 50px;
}

.blog-card {
    background-color: rgba(255, 255, 255, 0.95); 
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.blog-card-image img, .placeholder-img {
    width: 100%;
    height: 180px; /* تقليل الارتفاع قليلاً لتناسب عرض 4 أعمدة */
    object-fit: cover;
}

.placeholder-img {
    background-color: var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.blog-card-content {
    padding: 20px;
}

/* --- التصنيفات الناعمة --- */
.blog-card-category {
    margin-bottom: 12px;
    display: block;
}

.blog-card-category a {
    background-color: var(--color-gray-100);
    color: var(--color-primary);
    padding: 4px 14px;
    border-radius: 50px; 
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    margin-left: 5px;
}

.blog-card-category a:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.blog-card-title {
    font-size: 1.1rem; /* تصغير الخط قليلاً ليتناسب مع المساحة الأضيق */
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--color-gray-900);
    text-decoration: none;
}

.blog-card-excerpt {
    color: var(--color-gray-600);
    font-size: 0.9rem;
}

/* --- أرقام الصفحات الفخمة --- */
.blog-pagination {
    margin-top: 50px;
    border-top: 1px solid var(--color-gray-200);
    padding-top: 30px;
}

.blog-pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.blog-pagination ul li a, .blog-pagination ul li span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; /* مرونة في العرض لاستيعاب الكلمات */
    height: 40px;
    padding: 0 12px; /* حشوة جانبية */
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--color-gray-600);
    text-decoration: none;
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.blog-pagination ul li span.current {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(22, 101, 52, 0.2);
}

.blog-pagination ul li a:hover {
    border-color: var(--color-gray-300);
    color: var(--color-gray-900);
    background-color: #ffffff;
}

/* --- تجاوب شبكة الـ 4 أعمدة مع الشاشات الأصغر --- */
@media (max-width: 1200px) {
    .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. صفحة المقالة المفردة (تخطيط 3 أعمدة احترافي)
   ========================================================================== */
.single-page-wrapper {
    padding: 60px 0;
    background-color: transparent; 
}

/* هندسة الشبكة (Grid) لتوزيع الأعمدة */
.custom-single-grid {
    max-width: 1300px !important; 
    display: grid;
    grid-template-columns: 280px 1fr 250px; 
    gap: 30px;
    align-items: start; 
}

/* --- تنسيق العمود الأوسط (المقالة والصورة) بخلفية صلبة لمنع المربعات --- */
.single-article-content {
    background-color: #ffffff !important; /* هذا السطر هو الذي سيخفي المربعات تماماً */
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: relative;
    z-index: 20; /* رفع المقالة فوق المربعات */
}

.article-featured-image {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-gray-200);
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-text-content {
    padding: 40px;
}

.article-title {
    font-size: 2.2rem;
    color: var(--color-gray-900);
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    color: var(--color-gray-500);
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-gray-200);
}

.article-body {
    font-size: 1.1rem;
    color: var(--color-gray-800);
    line-height: 1.8;
}

/* --- تنسيق الفهرس التلقائي للمقالة --- */
.article-toc {
    background-color: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.article-toc .toc-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-gray-200);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-toc .toc-title::before {
    content: '📑'; 
}

.article-toc .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc .toc-list li {
    margin-bottom: 12px;
    position: relative;
}

.article-toc .toc-list li a {
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.article-toc .toc-list li a:hover {
    color: var(--color-primary);
    transform: translateX(-5px); 
}

.article-toc .toc-level-3 {
    padding-right: 20px;
}

.article-toc .toc-level-3::before {
    content: '-';
    position: absolute;
    right: 5px;
    color: var(--color-gray-400);
}

/* --- تنسيق العمود الأيمن (أهم المقالات) وتثبيته --- */
.sidebar-right {
    position: sticky;
    top: 100px; /* هذا السطر يثبت القائمة أثناء التمرير */
}

.sidebar-right .widget-box {
    background-color: #ffffff; /* أبيض صلب لمنع المربعات من الظهور */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
}

.sidebar-right .widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-gray-200);
}

.top-post-item {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-gray-100);
    text-decoration: none;
    transition: padding-right 0.3s;
}

.top-post-item:last-child {
    border-bottom: none;
}

.top-post-item:hover {
    padding-right: 10px;
}

.top-post-title {
    color: var(--color-gray-800);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

.top-post-date {
    color: var(--color-gray-400);
    font-size: 0.85rem;
}

/* --- تنسيق العمود الأيسر (الإعلان) وتثبيته --- */
.sidebar-left {
    position: sticky;
    top: 100px;
}

.ad-image-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 4; 
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-gray-200);
}

.vertical-ad {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   10. التجاوب مع الشاشات للمقالة (Responsive)
   ========================================================================== */
@media (max-width: 1024px) {
    .custom-single-grid {
        grid-template-columns: 1fr 300px; 
    }
    .sidebar-left {
        display: none; 
    }
}

@media (max-width: 768px) {
    .custom-single-grid {
        grid-template-columns: 1fr; 
    }
    .sidebar-right, .sidebar-left {
        position: static; 
        display: block; 
    }
    .ad-image-container {
        aspect-ratio: auto; 
        height: 250px;
    }
    .article-text-content {
        padding: 20px;
    }
}

/* ==========================================================================
   11. التذييل (Footer)
   ========================================================================== */
.site-footer {
    position: relative;
    background-color: var(--color-gray-900);
    color: var(--color-gray-200);
    padding-top: 80px;
    width: 100%;
    margin-top: auto;
    overflow: hidden;
    z-index: 100; 
}

.footer-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.footer-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 55px !important;
    width: auto !important;
    max-width: 200px;
    margin-bottom: 25px;
    object-fit: contain;
    display: block;
    filter: grayscale(100%) brightness(200%);
}

.footer-about {
    line-height: 1.8;
    color: var(--color-gray-400);
    font-size: 0.95rem;
}

.widget-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-gray-600); 
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 15px;
}

.footer-menu-list li a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-menu-list li a:hover {
    color: #ffffff;
    transform: translateX(-5px); 
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 18px;
    color: var(--color-gray-400);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-info li svg {
    color: var(--color-gray-500);
}

.footer-bottom {
    position: relative;
    z-index: 10;
    background-color: #0b0f19;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--color-gray-800);
}

.copyright {
    color: var(--color-gray-600);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   12. التجاوب مع الشاشات (Media Queries العام)
   ========================================================================== */
@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
    }
    .hero-content {
        width: 50%;
        text-align: right;
        align-items: flex-start;
    }
    .hero-title {
        font-size: 4rem;
    }
    .hero-actions {
        justify-content: flex-start;
    }
    .hero-image-container {
        width: 50%;
        justify-content: flex-end;
    }
    .stats-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .stat-number {
        font-size: 3.5rem;
    }
}

@media (max-width: 991px) {
    .main-navigation, .header-actions {
        display: none; 
    }
}
/* ==========================================================================
   بلوك لماذا يثق العملاء بنا (Trust Section)
   ========================================================================== */
.trust-block-section {
    padding: 80px 0;
    background-color: transparent; 
    position: relative;
    z-index: 10;
}

.trust-section-header {
    text-align: right;
    margin-bottom: 50px;
}

.trust-section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-gray-900);
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

/* الخط السفلي للعنوان */
.trust-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* التزام بالمحاذاة العربية */
    width: 100%;
    height: 3px;
    background-color: var(--color-gray-400); 
    border-radius: 2px;
}

/* هندسة الشبكة بـ 3 أعمدة */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* تصميم البطاقة */
.trust-card {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    text-align: right;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1);
    border-color: var(--color-primary); /* يظهر لون الشركة عند التمرير */
}

/* الأيقونة العلوية */
.trust-icon {
    width: 50px;
    height: 50px;
    color: var(--color-primary); /* تم التوحيد مع لون الهوية بدلاً من الأحمر */
    margin-bottom: 20px;
}

.trust-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900); /* لون داكن بدلاً من الأزرق ليتناسب مع الهوية */
    margin-bottom: 15px;
}

.trust-desc {
    color: var(--color-gray-600);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1; /* يدفع الرابط إلى أسفل البطاقة دائماً */
}

/* الرابط في أسفل البطاقة */
.trust-link {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* وضع الرابط في الجهة اليسرى (نهاية البطاقة) */
    gap: 10px;
    color: var(--color-gray-500);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.3s ease;
    align-self: flex-end; /* لضمان بقائه في الأسفل واليسار */
}

.trust-link:hover {
    color: var(--color-primary);
}

.arrow-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.trust-link:hover .arrow-icon {
    transform: translateX(-5px); /* حركة السهم لليسار عند التمرير */
}

/* ==========================================================================
   التجاوب مع الشاشات (Responsive) لبلوك الثقة
   ========================================================================== */
@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودين في التابلت */
    }
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr; /* عمود واحد في الجوال */
    }
    .trust-section-title {
        font-size: 1.5rem;
    }
}
/* ==========================================================================
   بلوك خدماتنا (Services Section - Light Theme)
   ========================================================================== */
.services-block-section {
    padding: 80px 0;
    /* خلفية بيضاء ناصعة تفصل القسم عن الفوتر الداكن تماماً وتخفي المربعات */
    background-color: #ffffff; 
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
    position: relative;
    z-index: 20;
}

.services-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-gray-900); /* نص داكن ليتناسب مع الخلفية البيضاء */
    margin-bottom: 15px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--color-primary); /* خط بلون الشركة */
    margin: 0 auto;
    border-radius: 2px;
}

/* هندسة الشبكة بـ 6 أعمدة */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 20px;
}

/* تصميم البطاقة الساطع */
.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--color-gray-200); /* حدود رمادية ناعمة */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

/* حاوية الصورة */
.service-img-wrapper {
    width: 100%;
    height: 140px; 
    overflow: hidden;
    background-color: var(--color-gray-100); 
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; 
}

/* تأثير التكبير عند تمرير الماوس */
.service-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

/* حاوية النص السفلية */
.service-title-wrapper {
    background-color: #ffffff;
    padding: 15px 10px;
    text-align: center;
    border-top: 3px solid var(--color-primary);
    transition: all 0.3s ease;
}

/* عكس الألوان بذكاء عند التمرير */
.service-card:hover .service-title-wrapper {
    background-color: var(--color-primary); 
}

.service-title-wrapper h3 {
    color: var(--color-gray-900); /* لون النص الأساسي داكن */
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
}

.service-card:hover .service-title-wrapper h3 {
    color: #ffffff; /* يتحول النص للأبيض لتسهيل القراءة فوق الأخضر */
}

/* ==========================================================================
   التجاوب مع الشاشات لبلوك الخدمات
   ========================================================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); 
        gap: 25px;
    }
    .service-img-wrapper {
        height: 180px; 
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr; 
    }
}
/* ==========================================================================
   صفحة المشاريع (التصميم البسيط - بطاقات بإطار ناعم)
   ========================================================================== */
.projects-page {
    background-color: #ffffff; /* خلفية بيضاء صافية */
}

/* شبكة بـ 3 أعمدة (4 صفوف = 12 مشروع) */
.projects-grid-simple {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-bottom: 50px;
}

/* البطاقة ذات الإطار الناعم */
.simple-project-card {
    background-color: #ffffff;
    border: 1px solid var(--color-gray-200); /* الإطار الناعم المطلوب */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); /* ظل خفيف جداً يبرز الإطار */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.simple-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.08);
    border-color: var(--color-gray-300);
}

/* صورة المشروع */
.spc-img-link {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-gray-100); /* خط فاصل ناعم بين الصورة والنص */
}

.spc-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.simple-project-card:hover .spc-img-link img {
    transform: scale(1.05); /* تكبير ناعم للصورة عند التمرير */
}

.spc-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    font-weight: bold;
}

/* حاوية النص */
.spc-content {
    padding: 25px;
    flex-grow: 1; /* لجعل الأزرار أو النهايات متساوية إذا اختلف طول العنوان */
}

.spc-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.spc-title a {
    color: var(--color-gray-900);
    text-decoration: none;
    transition: color 0.3s;
}

.spc-title a:hover {
    color: var(--color-primary); /* يظهر لون الشركة عند التمرير على العنوان */
}

/* إجبار النص على 5 أسطر فقط */
.spc-desc {
    color: var(--color-gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    
    /* الخدعة الهندسية لاقتطاع النص بعد 5 أسطر */
    display: -webkit-box;
    -webkit-line-clamp: 5; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* إزالة المسافات الزائدة التي يضيفها ووردبريس افتراضياً داخل excerpt */
.spc-desc p {
    margin: 0;
}

/* التجاوب مع الشاشات */
@media (max-width: 1024px) {
    .projects-grid-simple { grid-template-columns: repeat(2, 1fr); } /* عمودين في التابلت */
}
@media (max-width: 768px) {
    .projects-grid-simple { grid-template-columns: 1fr; } /* عمود واحد في الجوال */
}
/* ==========================================================================
   قائمة الجوال (Hamburger Menu & Off-canvas)
   ========================================================================== */

/* تصميم زر الهمبرغر (مخفي افتراضياً على شاشات الكمبيوتر) */
/* تصميم زر الهمبرغر الأساسي */
.hamburger-btn {
    display: none; /* مخفي في الكمبيوتر */
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 24px;
    padding: 0;
    z-index: 1000;
}

/* رسم الخطوط الثلاثة وإجبارها على الظهور بلون داكن */
.hamburger-line {
    width: 100% !important;
    height: 3px !important;
    background-color: var(--color-gray-900, #111827) !important; /* لون أسود/داكن إجباري */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    display: block !important;
}

/* التجاوب مع شاشات التابلت والجوال (أقل من 992px) */
/* إظهار الزر حصراً على شاشات الجوال والتابلت */
@media (max-width: 992px) {
    .hamburger-btn {
        display: flex !important; /* إجبار الزر على الظهور */
    }
}

    /* تحويل القائمة الرئيسية إلى قائمة جانبية مخفية (Off-canvas) */
    .main-nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* إخفاء القائمة خارج الشاشة من اليمين */
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 80px 20px 30px;
        display: flex;
        flex-direction: column;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    /* كلاس التفعيل الذي سيضيفه الجافاسكريبت لظهور القائمة */
    .main-nav-menu.is-active {
        right: 0; 
    }

    /* تنسيق روابط القائمة داخل الجوال لتكون عمودية */
    .main-nav-menu ul {
        flex-direction: column;category
        width: 100%;
        padding: 0;
    }

    .main-nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-gray-100);
    }

    .main-nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        color: var(--color-gray-900);
    }

    /* حركة "X" لزر الهمبرغر عند النقر */
    .hamburger-btn.is-active .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger-btn.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.is-active .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
/* ==========================================================================
   تنسيق حاوية الهيدر (لضبط اللوجو والهمبرغر على خط واحد)
   ========================================================================== */
.header-mobile-wrapper {
    display: flex;
    justify-content: space-between; /* يدفع اللوجو لطرف والزر للطرف الآخر */
    align-items: center; /* يضمن توسيطهما عمودياً على نفس الخط */
    width: 100%;
    padding: 10px 0;
}

/* تعديل بسيط لزر الهمبرغر لضمان عدم تداخله */
.hamburger-btn {
    margin-right: auto; /* يدفعه لليسار في المواقع العربية (RTL) */
}
/* ==========================================================================
   شريط تصفح التصنيفات (Category Pills Filter)
   ========================================================================== */
.blog-categories-section {
    margin-bottom: 50px;
    padding: 0 10px;
}

/* العنوان مع الخط الأحمر الجانبي */
.section-title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.title-accent {
    width: 4px;
    height: 22px;
    background-color: #b91c1c; /* اللون الأحمر الداكن */
    margin-left: 12px; /* مسافة لليسار لأن الموقع عربي */
    border-radius: 2px;
}

.section-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

/* حاوية الأزرار */
.category-pills-list {
    display: flex;
    flex-wrap: wrap; /* للنزول لسطر جديد في الشاشات الصغيرة */
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* تصميم الزر (Pill) */
.cat-pill {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    padding: 8px 24px;
    border-radius: 50px; /* حواف دائرية بالكامل */
    text-decoration: none;
    color: #4b5563; /* لون نص رمادي داكن */
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); /* ظل ناعم جداً */
    transition: all 0.3s ease;
}

/* تأثير التمرير (Hover) */
.cat-pill:hover, 
.cat-pill.active {
    border-color: var(--color-primary, #059669);
    color: var(--color-primary, #059669);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cat-name {
    margin-left: 15px; /* مسافة تفصل الاسم عن الدائرة */
}

/* تصميم دائرة العداد (الرقم) */
.cat-count {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6; /* خلفية رمادية فاتحة */
    color: #9ca3af;
    font-size: 0.75rem;
    min-width: 26px;
    height: 26px;
    border-radius: 50%; /* جعلها دائرة مثالية */
    padding: 0 6px;
    transition: all 0.3s ease;
}

/* تغيير لون الدائرة عند المرور بالماوس على الزر */
.cat-pill:hover .cat-count {
    background-color: var(--color-primary, #059669);
    color: #ffffff;
}
/* ==========================================================================
   صفحة من نحن (About Us Page)
   ========================================================================== */

/* تخطيط النص والصورة (الكمبيوتر) */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* عمودين متساويين */
    gap: 60px;
    align-items: center;
}

.about-main-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* شبكة القيم الجوهرية (3 أعمدة) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--color-primary, #059669);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.value-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
}

.value-desc {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   التجاوب مع شاشات الجوال والتابلت (Responsive)
   ========================================================================== */
@media (max-width: 992px) {
    /* تحويل تخطيط النص والصورة إلى عمود واحد */
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrapper {
        order: -1; /* رفع الصورة لتكون فوق النص في الجوال */
    }
    
    /* تحويل شبكة القيم إلى عمود واحد */
    .values-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   صفحة من نحن المطورة (Global Mayson Developed About Us)
   ========================================================================== */

/* 1. لافتة خضراء عريضة بعرض الصفحة (Hero Banner) */
.gm-hero-banner {
    background-color: #059669; /* اللون الأخضر الغامق */
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    border-bottom: 2px solid #047857; /* خط سفلي أنيق */
    margin-bottom: 80px;
}

.gm-hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.custom-logo-light {
    max-height: 80px;
    width: auto;
    margin-bottom: 30px;
}

.gm-hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.2;
}

.gm-hero-desc {
    font-size: 1.3rem;
    color: #f1f5f9;
    line-height: 2;
    margin-bottom: 40px;
}

.gm-btn-contact-light {
    background-color: #ffffff;
    color: #059669;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.gm-btn-contact-light:hover {
    background-color: #f3f4f6;
}

/* 2. قسم الرؤية والرسالة المطور */
.gm-about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.gm-details-text {
    padding-right: 40px; /* مسافة لليمين في المواقع العربية */
}

.gm-details-desc {
    font-size: 1.2rem;
    color: #4b5563;
    line-height: 2;
}

.about-main-img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 30px rgba(0,0,0,0.1);
}

/* 3. شبكة القيم الجوهرية المطورة */
.gm-values-grid-wrapper {
    margin-bottom: 100px;
}

.gm-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.gm-section-title .title-accent {
    width: 4px;
    height: 26px;
    background-color: #b91c1c; /* اللون الأحمر للعنوان الجانبي */
    margin-left: 15px;
    border-radius: 2px;
}

.gm-section-title .section-heading {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.gm-centered-title {
    justify-content: center;
}

.gm-values-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.gm-value-pill {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.gm-value-pill:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #059669; /* اللون الأخضر عند التمرير */
}

.gm-pill-icon {
    font-size: 4rem;
    margin-bottom: 30px;
}

.gm-pill-icon img {
    max-height: 60px;
    width: auto;
}

.gm-pill-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

.gm-pill-content p {
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ==========================================================================
   التجاوب المطور مع الجوال والتابلت
   ========================================================================== */
@media (max-width: 992px) {
    .gm-hero-title {
        font-size: 2.2rem;
    }
    
    .gm-hero-desc {
        font-size: 1.1rem;
    }

    .gm-about-details {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .gm-details-text {
        padding-right: 0;
        text-align: center;
    }
    
    .gm-details-desc {
        font-size: 1.1rem;
    }

    .gm-section-title {
        justify-content: center;
    }

    .gm-details-image {
        order: -1;
    }
    
    .about-main-img {
        height: 400px;
    }

    .gm-values-pills {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* ==========================================================================
   صفحة من نحن - التصميم الاحترافي العميق
   ========================================================================== */

/* 1. اللافتة العلوية (Hero Banner) */
.gm-hero-banner-elegant {
    /* لون أخضر غابي عميق جداً وأنيق */
    background-color: #0d3b2a; 
    
    /* نمط الخطوط الشبكية الرمادية الناعمة لإضافة عمق */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px; /* حجم المربعات */
    
    padding: 70px 0 100px 0; /* ارتفاع أقل ومدروس */
    text-align: center;
    border-bottom: 4px solid #08261b;
}

.gm-hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.gm-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.gm-hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1; /* لون رمادي فاتح مريح */
    line-height: 1.8;
}

/* 2. قسم القصة (Story Section) */
.gm-story-header {
    text-align: right;
    margin-bottom: 30px;
}

.gm-story-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: #0d3b2a; /* خط أخضر داكن تحت العنوان */
    border-radius: 2px;
}

.gm-story-content p {
    font-size: 1.15rem;
    color: #475569;
    line-height: 2.2;
    margin-bottom: 20px;
    text-align: justify;
}

/* 3. شريط الإحصائيات (Stats Grid) */

/* 3. شبكة القيم الجوهرية (Core Values) */
.gm-core-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gm-value-box {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8fafc; /* خلفية رمادية فاتحة جداً وأنيقة */
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.gm-value-box:hover {
    transform: translateY(-5px); /* حركة ارتفاع ناعمة */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #0d3b2a; /* ظهور إطار بلون الهيدر العميق عند التمرير */
}

.gm-value-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

.gm-value-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.gm-value-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}


.gm-stat-item:last-child {
    border-left: none;
    padding-left: 0;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
}

/* ==========================================================================
   التجاوب مع الجوال (Mobile Adjustments)
   ========================================================================== */
/* ==========================================================================
   التجاوب مع الجوال (Mobile Adjustments)
   ========================================================================== */
@media (max-width: 768px) {
    .gm-hero-title { font-size: 2rem; }
    .gm-story-section { padding: 30px 20px; margin-top: -20px; }
    .gm-core-values-grid { 
        grid-template-columns: 1fr; /* تحويل البطاقات إلى عمود واحد */
        gap: 20px;
    }
}
    .gm-stat-item {
        border-left: none;
        border-bottom: 2px solid #0d3b2a;
        padding-left: 0;
        padding-bottom: 20px;
    }
    .gm-stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}
/* ==========================================================================
   شريط الأخبار - الإصلاح النهائي المضمون 100%
   ========================================================================== */
.gm-news-ticker-wrapper {
    display: flex;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    height: 45px;
    width: 100%; /* إجبار الشريط على أخذ العرض الكامل */
    direction: rtl;
    overflow: hidden;
}

/* المربع الأخضر الثابت */
.gm-ticker-label {
    background-color: #0d3b2a;
    color: #ffffff;
    padding: 0 25px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 10;
    box-shadow: -4px 0 10px rgba(0,0,0,0.05);
}

/* حاوية النص (استخدام Block بدلاً من Flex لمنع الانهيار) */
.gm-ticker-content {
    display: block; 
    flex-grow: 1;
    position: relative;
    height: 45px;
    overflow: hidden;
    width: calc(100% - 130px); /* خطوة أمان إضافية لضمان وجود مساحة */
}

/* مسار الحركة */
.gm-ticker-track {
    display: block;
    position: absolute;
    top: 0;
    right: 100%; /* البداية من أقصى اليسار خارج الشاشة */
    height: 45px;
    line-height: 45px; /* توسيط النص عمودياً بطريقة آمنة */
    white-space: nowrap;
    animation: gm-ticker-run 35s linear infinite;
}

/* إيقاف الحركة عند وضع الماوس */
.gm-ticker-content:hover .gm-ticker-track {
    animation-play-state: paused;
}

/* روابط المقالات */
.gm-ticker-item {
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 20px;
    display: inline-block;
    transition: color 0.3s ease;
}

.gm-ticker-item:hover {
    color: #059669; /* أخضر فاتح عند التمرير */
}

/* النقطة الفاصلة */
.gm-ticker-item::after {
    content: "•";
    color: #cbd5e1;
    margin-right: 40px;
}

.gm-ticker-item:last-child::after {
    display: none;
}

/* هندسة الحركة باستخدام VW لضمان خروج النص بالكامل من أي شاشة */
@keyframes gm-ticker-run {
    0%   { right: 100%; }
    100% { right: -150vw; } 
}

/* التجاوب مع الجوال */
@media (max-width: 768px) {
    .gm-ticker-label { padding: 0 15px; font-size: 0.85rem; }
    .gm-ticker-item { font-size: 0.85rem; padding: 0 15px; }
    .gm-ticker-item::after { margin-right: 20px; }
}
/* ==========================================================================
   إصلاح ألوان اللوجو في الفوتر
   ========================================================================== */
.site-footer img, 
.footer-logo img, 
footer img {
    filter: none !important; /* إلغاء أي فلاتر رمادية */
    -webkit-filter: none !important;
    opacity: 1 !important; /* إرجاع الشفافية كاملة بنسبة 100% */
    mix-blend-mode: normal !important; /* منع تداخل الألوان مع الخلفية */
}