    /* === لوحة الألوان الفاخرة الجديدة (مستوحاة من الفوانيس والجدارية) === */
    :root {
        --bg-beige: #f4f1ea;          /* بيج فاتح كلاسيكي للخلفية */
        --stone-texture: #eaddca;     /* لون الحجر المعماري (للإطار الرئيسي) */
        --sage-green: #8a9f8a;        /* الأخضر الميرمية (من نقوش الخلفية والمصابيح) */
        --deep-green: #3d4d3d;        /* أخضر داكن عميق للنصوص */
        --ornate-gold: #cba156;       /* ذهبي غني مزخرف (للفوانيس والإطارات) */
        --antique-gold: #aa8c49;      /* ذهبي أغمق للظلال */
    }

    /* استيراد الخطوط الكلاسيكية */
    @import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;700&family=Changa:wght@400;600&display=swap');

    * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Changa', sans-serif; }

    body {
        background-color: var(--bg-beige);
        /* خلفية بنقش زهري خفيف جداً مثل الصورة، مع تدرج ذهبي دافئ */
        background-image: linear-gradient(to bottom, rgba(244, 241, 234, 0.9), rgba(203, 161, 86, 0.05)), url('https://www.transparenttextures.com/patterns/floral-linen.png');
        color: var(--deep-green);
        scroll-behavior: smooth;
        display: flex; flex-direction: column; min-height: 100vh;
    }

    h1, h2, h3 { font-family: 'El+Messiri', serif; font-weight: bold; }
    .inner-page { padding-top: 20px; }

    /* === شريط التنقل (ذهبي وأخضر داكن) === */
    .navbar {
        background: linear-gradient(to right, var(--deep-green), #2a3a2a);
        padding: 15px 0; position: sticky; top: 0; z-index: 1000;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        border-bottom: 4px solid var(--ornate-gold); /* حد ذهبي فاخر */
    }
    .navbar ul { list-style: none; display: flex; justify-content: center; gap: 30px; }
    .navbar a {
        color: var(--bg-beige); text-decoration: none; font-weight: 600; font-size: 1.2rem; transition: all 0.4s;
        position: relative;
    }
    .navbar a:hover, .navbar a.active { color: var(--ornate-gold); text-shadow: 0 0 10px rgba(203, 161, 86, 0.5); }

    /* === الواجهة الرئيسية (الإطار المعماري الحجري والذهبي) === */
    .hero-section {
        min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; 
        position: relative; text-align: center; padding: 40px 20px;
    }
    .hero-content {
        /* تحويل الخلفية من الوردي إلى مظهر حجري */
        background-color: var(--stone-texture);
        /* إطار ذهبي سميك ومزخرف */
        border: 8px solid var(--ornate-gold);
        /* حواف منحنية معمارية */
        border-radius: 60px; 
        padding: 80px 50px; width: 85%; max-width: 900px;
        /* تأثيرات ظل ليعطي عمقاً وكأنه بارز من الجدار */
        box-shadow: 
            0 20px 40px rgba(0,0,0,0.2), /* ظل خارجي */
            inset 0 0 30px rgba(61, 77, 61, 0.1), /* عمق داخلي */
            inset 0 0 0 3px var(--antique-gold); /* حافة داخلية دقيقة */
        position: relative;
    }
    /* زخرفة علوية للإطار (مثل القوس في الصورة) */
    .hero-content::before {
        content: ''; position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
        width: 100px; height: 20px; background: var(--ornate-gold);
        border-radius: 10px 10px 0 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .hero-content h1 {
        font-size: 5rem; font-weight: 900; color: var(--ornate-gold);
        margin-bottom: 15px;
        /* ظل للنص لجعله ذهبياً بارزاً */
        text-shadow: 3px 3px 0px var(--deep-green), 0 0 20px rgba(203, 161, 86, 0.4);
    }
    .hero-content p { font-size: 1.7rem; font-weight: 600; color: var(--deep-green); }

    /* السهم المتحرك */
    .scroll-down-arrow {
        margin-top: 40px; color: var(--ornate-gold);
        width: 60px; height: 60px; animation: bounce 2.5s infinite; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
    }
    @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }

    /* === الأقسام العامة === */
    section { padding: 90px 20px; max-width: 1200px; margin: 0 auto; text-align: center; flex: 1; }
    h2 {
        font-size: 3.5rem; margin-bottom: 60px; position: relative; display: inline-block;
        color: var(--ornate-gold);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    }
    /* خط زخرفي تحت العناوين باللون الأخضر */
    h2::after {
        content: ''; display: block; width: 70%; height: 4px; background: var(--sage-green); 
        margin: 20px auto 0; border-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    /* === العداد الزمني (مصابيح خضراء بسلاسل ذهبية) === */
    .hijri-date h3 { font-size: 2.2rem; color: var(--deep-green); margin-bottom: 50px; }
    .countdown-container { display: flex; justify-content: center; gap: 30px; margin-bottom: 80px; flex-wrap: wrap; margin-top: 50px;}
    .time-box {
        background-color: var(--sage-green); /* لون المصباح الأخضر */
        border-radius: 40px 40px 15px 15px;
        border-bottom: 6px dashed var(--ornate-gold); /* الشراشيب الذهبية */
        color: #fff; padding: 35px 25px; min-width: 140px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.15), inset 0 5px 10px rgba(255,255,255,0.2);
        position: relative; border: 2px solid var(--antique-gold);
    }
    /* السلسلة الذهبية */
    .time-box::before {
        content: ''; position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
        width: 4px; height: 50px; background: repeating-linear-gradient(to bottom, var(--ornate-gold), var(--ornate-gold) 5px, var(--antique-gold) 5px, var(--antique-gold) 10px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    /* حلقة التعليق الذهبية */
    .time-box::after {
        content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
        width: 16px; height: 16px; background-color: var(--ornate-gold); border-radius: 50%; border: 2px solid var(--deep-green);
    }
    .time-box span { font-size: 3.2rem; font-weight: 900; display: block; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
    .time-box p { font-size: 1.3rem; margin-top: 8px; color: var(--bg-beige); font-weight: 600; }

    /* === الخريطة والإحصائيات (إطارات ذهبية فاخرة) === */
    .info-grid { display: flex; gap: 40px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
    .map-container, .attendees-container, .history-content {
        flex: 1; min-width: 320px;
        background: var(--bg-beige);
        /* استبدال الحدود الوردية بحدود ذهبية مزدوجة */
        border: 5px double var(--ornate-gold);
        padding: 40px; border-radius: 25px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        position: relative;
    }
    .map-container h3, .attendees-container h3 { color: var(--deep-green); margin-bottom: 25px; font-size: 1.8rem; }
    .attendees-container { display: flex; flex-direction: column; justify-content: center; align-items: center; }
    .counter-number { font-size: 5.5rem; font-weight: 900; color: var(--ornate-gold); margin: 25px 0; text-shadow: 2px 2px 0 var(--deep-green); }

    /* === مكتبة الصور (محدثة لتكون بالعرض) === */
    .year-tabs { margin-bottom: 50px; }
    .tab-btn {
        background-color: transparent; border: 3px solid var(--ornate-gold); color: var(--deep-green);
        padding: 12px 30px; font-size: 1.2rem; font-weight: bold; cursor: pointer; border-radius: 5px; margin: 0 10px; transition: 0.4s;
    }
    .tab-btn.active, .tab-btn:hover { background-color: var(--ornate-gold); color: var(--deep-green); box-shadow: 0 5px 15px rgba(203, 161, 86, 0.3); }

    /* التعديل الجديد هنا ليصبح التمرير بالعرض */
    .image-grid { 
        display: flex; 
        flex-direction: row;
        overflow-x: auto; /* تفعيل التمرير الأفقي */
        gap: 30px; 
        padding: 20px 10px 40px 10px; /* مساحة سفلية إضافية لراحة العين */
        scroll-behavior: smooth;
        /* إخفاء شريط التمرير المزعج لجمالية أكثر */
        scrollbar-width: none; 
    }
    .image-grid::-webkit-scrollbar { 
        display: none; 
    }

    .image-grid img {
        flex: 0 0 auto; /* لمنع الصور من الانكماش */
        width: 280px; /* عرض ثابت لكل صورة */
        height: 350px; /* طول الصورة (يمكنك تكبيره أو تصغيره حسب رغبتك) */
        object-fit: cover; border-radius: 15px;
        border: 4px solid var(--ornate-gold); transition: all 0.4s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .image-grid img:hover { transform: scale(1.03) translateY(-5px); border-color: var(--sage-green); }
    /* === نصوص وزر التسجيل === */
    .history-content { line-height: 2.2; font-size: 1.4rem; text-align: right; color: var(--deep-green); }
    .register-btn {
        display: inline-block; background: linear-gradient(to bottom, var(--ornate-gold), var(--antique-gold));
        border: none; color: var(--deep-green);
        padding: 18px 50px; border-radius: 40px; font-size: 1.4rem; font-weight: bold; text-decoration: none; transition: 0.4s;
        box-shadow: 0 10px 20px rgba(170, 140, 73, 0.3);
        text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    }
    .register-btn:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(170, 140, 73, 0.5); color: #fff; }

    /* === الفوتر === */
    footer {
        background-color: var(--deep-green); color: var(--ornate-gold);
        text-align: center; padding: 35px 0; margin-top: auto; width: 100%;
        border-top: 5px solid var(--ornate-gold); font-weight: bold; font-size: 1.2rem;
        background-image: url('https://www.transparenttextures.com/patterns/arabesque.png');
    }
    /* === نافذة تكبير الصور (Lightbox) === */
    .modal {
        display: none; /* مخفي افتراضياً */
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.85); /* خلفية سوداء شفافة */
        backdrop-filter: blur(5px); /* تأثير ضبابي فخم للخلفية */
        justify-content: center;
        align-items: center;
    }
    .modal-content {
        max-width: 90%;
        max-height: 90%;
        border-radius: 15px;
        border: 4px solid var(--ornate-gold); /* إطار ذهبي للصورة المكبرة */
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        animation: zoomIn 0.3s ease; /* حركة تكبير ناعمة */
    }
    @keyframes zoomIn {
        from { transform: scale(0.8); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }
    .close-btn {
        position: absolute;
        top: 20px;
        right: 35px;
        color: var(--ornate-gold);
        font-size: 50px;
        font-weight: bold;
        cursor: pointer;
        transition: 0.3s;
    }
    .close-btn:hover { color: #fff; }

    /* === زر المشاركة العائم عبر الواتساب === */
    .whatsapp-float-btn {
        position: fixed;
        bottom: 30px; /* المسافة من أسفل الشاشة */
        left: 30px; /* المسافة من يسار الشاشة لكي لا يغطي على شريط التمرير */
        background: linear-gradient(to bottom, var(--ornate-gold), var(--antique-gold)); /* لون ذهبي ملكي */
        color: var(--deep-green); /* لون الخط أخضر داكن */
        padding: 12px 25px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.2rem;
        font-weight: bold;
        text-decoration: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        z-index: 2000;
        transition: all 0.3s ease;
        border: 2px solid var(--bg-beige); /* إطار بيج خفيف */
        font-family: 'Changa', sans-serif;
    }

    /* حركة الارتفاع واللمعان عند مرور الماوس */
    .whatsapp-float-btn:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 25px rgba(203, 161, 86, 0.4);
        color: #fff;
    }

    /* أيقونة الواتساب */
    .whatsapp-float-btn svg {
        transition: 0.3s;
    }
    .whatsapp-float-btn:hover svg {
        fill: #fff;
    }

    /* === قسم المقولة الترحيبية الروحانية === */
    .welcome-quote {
        text-align: center;
        padding: 70px 20px 30px; /* مساحات واسعة لراحة العين */
        max-width: 800px;
        margin: 0 auto;
        position: relative;
    }

    .welcome-quote p {
        font-family: 'El Messiri', sans-serif;
        font-size: 1.6rem;
        color: var(--deep-green);
        line-height: 2.2; /* تباعد الأسطر لسهولة القراءة */
        font-weight: bold;
        margin: 0;
    }

    /* علامات الاقتباس الذهبية */
    .welcome-quote .quote-mark {
        color: var(--ornate-gold);
        font-size: 3rem;
        vertical-align: middle;
        line-height: 0;
        margin: 0 10px;
    }

    /* تصغير الخط قليلاً في شاشات الجوال */
    @media screen and (max-width: 768px) {
        .welcome-quote {
            padding: 50px 20px 20px;
        }
        .welcome-quote p {
            font-size: 1.3rem;
            line-height: 2;
        }
    }

    /* === إعدادات التجاوب العامة === */
    html {
        font-size: 16px; /* الحجم المرجعي */
    }

    /* ضبط الصور لتكون مرنة */
    img {
        max-width: 100%;
        height: auto;
    }

    /* === شريط التنقل الديناميكي === */
    @media screen and (max-width: 1024px) {
        .navbar {
            padding: 10px 20px;
            gap: 20px;
        }
        .navbar a {
            font-size: 1rem;
        }
    }

    @media screen and (max-width: 768px) {
        .navbar {
            flex-direction: column; /* ترتيب عمودي للجوال */
            gap: 15px;
        }
        .navbar ul {
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }
        .navbar a {
            font-size: 0.9rem;
        }
    }

    /* === الواجهة الرئيسية (Hero) المتجاوبة === */
    @media screen and (max-width: 768px) {
        .hero-content {
            width: 95%; /* توسيع الإطار في الشاشات الصغيرة */
            padding: 40px 20px;
            border-width: 4px; /* تنحيف الإطار قليلاً */
            border-radius: 30px;
        }
        .hero-content h1 {
            font-size: 2.5rem; /* تصغير الخط ليتناسب مع الجوال */
        }
        .hero-content p {
            font-size: 1.2rem;
        }
    }

    /* === الشبكة المعلوماتية (Info Grid) === */
    @media screen and (max-width: 900px) {
        .info-grid {
            flex-direction: column; /* تحويل العناصر تحت بعضها */
            align-items: center;
        }
        .map-container, .attendees-container {
            width: 100%;
            max-width: 500px;
        }
    }

    /* === تحسين مكتبة الصور للجوال === */
    @media screen and (max-width: 600px) {
        .image-grid img {
            width: 220px; /* تصغير عرض الصور قليلاً */
            height: 280px;
        }
        h2 {
            font-size: 2.2rem; /* تصغير العناوين */
        }
    }

    /* === التوقيت والعداد === */
    @media screen and (max-width: 480px) {
        .countdown-container {
            gap: 10px;
        }
        .time-box {
            min-width: 80px;
            padding: 15px 10px;
        }
        .time-box span {
            font-size: 1.8rem;
        }
    }

    .countdown-title {
        text-align: center;
        margin-bottom: -20px; /* لتقريب الجملة من العداد */
        margin-top: 40px;
    }

    .countdown-title h3 {
        font-family: 'El Messiri', serif;
        font-size: 2rem;
        color: var(--deep-green);
        position: relative;
        display: inline-block;
    }

    /* إضافة زخرفة صغيرة جانب الجملة */
    .countdown-title h3::before, .countdown-title h3::after {
        content: '◈';
        color: var(--ornate-gold);
        margin: 0 15px;
        font-size: 1.2rem;
        vertical-align: middle;
    }

    /* للتجاوب مع الجوال */
    @media screen and (max-width: 768px) {
        .countdown-title h3 {
            font-size: 1.5rem;
        }
    }

 /* شريط انتقال مكتبة الصور */
.gallery-nav {
    background-color: var(--stone-texture);
    padding: 15px 0;
    margin-bottom: 40px;
    border-radius: 50px;
    border: 2px solid var(--ornate-gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gal-link {
    text-decoration: none;
    color: var(--deep-green);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 5px 15px;
    transition: 0.3s;
}

.gal-link.active, .gal-link:hover {
    color: var(--ornate-gold);
    border-bottom: 2px solid var(--ornate-gold);
}

.nav-divider {
    color: var(--ornate-gold);
    font-weight: lighter;
}

.gal-back {
    text-decoration: none;
    color: var(--sage-green);
    font-size: 0.9rem;
    font-weight: 600;
}

/* التجاوب مع الجوال */
@media screen and (max-width: 768px) {
    .gallery-nav {
        border-radius: 20px;
        padding: 10px;
    }
    .gallery-nav-container {
        gap: 10px;
    }
    .gal-link {
        font-size: 0.9rem;
    }
}
/* === عداد الزوار المصغر في الفوتر === */
.footer-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 1rem;
    color: var(--ornate-gold); /* لون ذهبي متناسق مع الفوتر */
}

.footer-counter img {
    height: 22px; /* تصغير العداد ليكون بحجم النص تقريباً */
    border-radius: 4px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}
/* === تعديلات الخطوط لأجهزة الجوال فقط === */
@media screen and (max-width: 768px) {
    /* تصغير نص الفوتر الأساسي (حقوق الحفظ) */
    footer p {
        font-size: 0.85rem;
    }

    /* تصغير حجم خط العداد */
    .footer-counter span {
        font-size: 0.85rem;
    }

    /* تصغير حجم صورة العداد لتتناسب مع الخط الجديد */
    .footer-counter img {
        height: 18px; 
    }
}
/* === 🎟️ تنسيق التذكرة الذكية === */
.registration-section {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.input-group { margin-bottom: 20px; }
.input-group input {
    width: 90%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: 'Changa', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.input-group input:focus { border-color: #cba156; }

/* تصميم التذكرة الفخمة */
.luxury-ticket {
    background: #3b4839;
    color: #fff;
    border: 3px solid #cba156;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    animation: ticketPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ticket-header {
    background: #cba156;
    padding: 15px;
    color: #3b4839;
}
.ticket-header h3 { margin: 0; font-family: 'El Messiri', serif; }

.ticket-body { padding: 30px; text-align: right; }
.ticket-info { margin-bottom: 15px; border-bottom: 1px dashed rgba(203, 161, 86, 0.3); padding-bottom: 5px; }
.ticket-info .label { color: #cba156; font-weight: bold; margin-left: 10px; }
.ticket-info .value { font-size: 1.3rem; }

.ticket-footer { text-align: center; margin-top: 20px; }
.qr-placeholder {
    width: 80px; height: 80px;
    background: #fff; color: #3b4839;
    margin: 10px auto; display: flex; align-items: center;
    justify-content: center; font-size: 0.6rem; font-weight: bold;
    border: 2px solid #cba156;
}

@keyframes ticketPop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* الألوان والخطوط الأساسية */
:root {
    --gold: #cba156;
    --dark-green: #3b4839;
    --cream-bg: #f6f3eb;
    --white: #ffffff;
}

body.inner-page {
    background-color: var(--cream-bg);
    font-family: 'Changa', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.challenge-container {
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.main-title {
    font-family: 'El Messiri', serif;
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.sub-title {
    color: var(--dark-green);
    font-weight: 600;
    margin-bottom: 30px;
}

/* صندوق السؤال المنقط (نفس تصميم الصورة) */
.question-box {
    background-color: var(--white);
    border: 3px dashed var(--gold);
    border-radius: 25px;
    padding: 60px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: all 0.5s ease;
}

#question-text {
    font-size: 1.8rem;
    color: var(--dark-green);
    line-height: 1.6;
    margin: 0;
    opacity: 0.2; /* تبدأ باهتة ثم تظهر عبر JS */
}

.challenge-footer {
    color: var(--dark-green);
    font-size: 1.1rem;
    font-weight: bold;
}