File size: 61,594 Bytes
0fdaeac
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>درس الدولة</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

        body {
            font-family: 'Tajawal', sans-serif;
            background-color: #f8fafc; /* gray-50 */
        }

        .concept-card {
            transition: all 0.3s ease;
        }

        .concept-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .philosopher-card {
            border-left: 4px solid; /* Color set by Tailwind */
            transition: all 0.3s ease;
        }
        .philosopher-card:hover {
             box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }

        .axis-header {
            position: relative;
            padding-bottom: 15px; /* Added padding */
            margin-bottom: 20px; /* Added margin */
        }

        .axis-header::after {
            content: "";
            position: absolute;
            bottom: 0; /* Adjusted position */
            right: 0;
            width: 100px;
            height: 3px;
            background-color: #ca8a04; /* yellow-600 */
            border-radius: 1.5px;
        }

        /* Timeline Styles (Kept in case needed, but using grid here) */
        .timeline {
            position: relative;
            padding: 20px 0;
            list-style: none;
        }
        .timeline::before { content: ''; position: absolute; top: 0; bottom: 0; width: 4px; background: #cbd5e1; right: 31px; margin-right: -2px; }
        .timeline-item { margin: 20px 0; padding-right: 60px; position: relative; }
        .timeline-item::before { content: ''; position: absolute; top: 15px; right: 19px; width: 25px; height: 25px; background: white; border: 4px solid #ca8a04; border-radius: 50%; z-index: 1; }
        .timeline-item:last-child { margin-bottom: 0; }

        .comparison-card {
            background: linear-gradient(135deg, #fefce8, #fef9c3); /* yellow-50 to yellow-100 */
            border: 1px solid #fde047; /* yellow-300 */
        }

        /* Floating Button Style */
         .floating-btn { position: fixed; bottom: 20px; left: 20px; z-index: 10; transition: transform 0.3s ease; }
         .floating-btn:hover { transform: scale(1.1); }

        .highlight { background-color: rgba(250, 204, 21, 0.3); padding: 0.1em 0.3em; border-radius: 3px; }

        /* Flip Card Styles */
        .flip-card { background-color: transparent; width: 100%; min-height: 170px; perspective: 1000px; display: flex; }
        .flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.6s; transform-style: preserve-3d; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.1); border-radius: 0.5rem; display: flex; flex-direction: column; }
        .flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
        .flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1rem; border-radius: 0.5rem; }
        .flip-card-front { background-color: #ffffff; color: black; }
        .flip-card-back { background-color: #ca8a04; /* yellow-600 */ color: white; transform: rotateY(180deg); overflow-y: auto; /* Scroll for long definitions */ }
        .flip-card-back p { font-size: 0.875rem; } /* text-sm */

        /* Fade-in Animation */
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .fade-in { animation: fadeIn 0.8s ease-out forwards; }

        /* Style for axis-specific concepts */
        .axis-concept-card { background-color: #f9fafb; border: 1px solid #e5e7eb; border-right: 3px solid; padding: 1rem; border-radius: 0.375rem; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

        /* Style for Quiz Sections */
        .quiz-section { background-color: #ffffff; padding: 2rem; border-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); margin-bottom: 2rem; }
        .quiz-title { font-size: 1.5rem; font-weight: 700; color: #1f2937; margin-bottom: 1.5rem; text-align: center; border-bottom: 2px solid #fcd34d; /* yellow-300 */ padding-bottom: 0.5rem; }
        .quiz-question { border-bottom: 1px solid #e5e7eb; padding-bottom: 1rem; margin-bottom: 1.5rem; }
        .quiz-question:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

    </style>
</head>
<body class="bg-gray-50">

    <div class="container mx-auto px-4 py-8">

        <header class="text-center mb-12">
            <h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-4">
                <i class="fas fa-landmark text-yellow-600"></i> درس الدولة <i class="fas fa-university text-yellow-600"></i>
            </h1>
            <p class="text-lg text-gray-600 max-w-3xl mx-auto">
                بحث في مفهوم الدولة، أسس قيامها ومشروعيتها، غاياتها، طبيعة سلطتها السياسية، وعلاقتها بالحق والعنف.
            </p>
        </header>

        <section class="mb-16" id="main-concepts-overview">
             <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center axis-header">نظرة عامة على المفاهيم</h2>
             <p class="text-center text-gray-600 mb-8">
                 الدولة بنية أساسية في التنظيم الاجتماعي والسياسي الحديث. يتناول هذا الدرس الأسئلة الجوهرية حولها: لماذا توجد الدولة وما غايتها؟ كيف تمارس سلطتها؟ وما علاقتها بالحقوق والعنف؟
             </p>
             <div class="flex justify-center space-x-8 space-x-reverse text-center text-gray-700">
                 <div class="flex flex-col items-center">
                     <i class="fas fa-check-circle text-3xl text-blue-500 mb-2"></i>
                     <span>مشروعية الدولة وغايتها</span>
                 </div>
                 <div class="flex flex-col items-center">
                     <i class="fas fa-theater-masks text-3xl text-red-500 mb-2"></i> <span>طبيعة السلطة السياسية</span>
                 </div>
                  <div class="flex flex-col items-center">
                     <i class="fas fa-balance-scale-left text-3xl text-purple-500 mb-2"></i>
                     <span>الدولة بين الحق والعنف</span>
                 </div>
             </div>
        </section>

        <section class="mb-16">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 axis-header">المحور الأول: مشروعية الدولة وغايتها</h2>
             <div class="bg-blue-50 border-r-4 border-blue-400 p-4 rounded-lg shadow-sm mb-8">
                <h3 class="font-bold text-blue-800 mb-2 flex items-center"><i class="fas fa-question-circle ml-2"></i> الإشكالية المحورية</h3>
                <p class="text-blue-700">على أي أساس تقوم الدولة؟ ما مشروعية قيامها؟ وما الغاية التي من أجلها تقوم الدولة وتنتظم؟</p>
            </div>
             <div class="mb-8">
                 <h3 class="font-bold text-xl text-gray-700 mb-4">مفاهيم أساسية للمحور:</h3>
                 <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                     <div class="axis-concept-card border-blue-500 p-4 rounded-md shadow-sm">
                        <h4 class="font-semibold text-blue-700 flex items-center mb-1"><i class="fas fa-check-double ml-2"></i> المشروعية (Legitimacy)</h4>
                        <p class="text-sm text-gray-600">الأساس أو المبرر الذي يجعل سلطة الدولة مقبولة ومعترف بها (قد يكون تعاقدياً، عقلانياً، تقليدياً، إلخ).</p>
                     </div>
                     <div class="axis-concept-card border-green-500 p-4 rounded-md shadow-sm">
                        <h4 class="font-semibold text-green-700 flex items-center mb-1"><i class="fas fa-bullseye ml-2"></i> غاية الدولة (Purpose)</h4>
                        <p class="text-sm text-gray-600">الهدف النهائي الذي تسعى الدولة لتحقيقه (مثل الحرية، الأمن، تحقيق القانون، إلخ).</p>
                     </div>
                 </div>
            </div>
             <h3 class="font-bold text-xl text-gray-700 mb-6">مواقف الفلاسفة:</h3>
             <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                <div class="philosopher-card border-blue-500 bg-white p-6 rounded-lg shadow-md">
                    <h4 class="font-bold text-lg text-blue-700 mb-2 flex items-center"><i class="fas fa-atom ml-2"></i> باروخ اسبينوزا: غاية الدولة هي الحرية</h4>
                    <p class="text-gray-600 mb-2 text-sm">مشروعية الدولة لا تأتي من الإرهاب أو القهر، بل من تحقيق <span class="highlight">غايتها</span> المتمثلة في تحرير المواطنين من الخوف وضمان أمنهم وحرياتهم (خاصة حرية التفكير).</p>
                    <ul class="list-disc pr-4 text-sm text-gray-500 space-y-1">
                         <li>الغاية الأساسية: <strong class="text-blue-600">الحرية والديمقراطية</strong>.</li>
                         <li>تستند إلى تعاقد اجتماعي يتنازل فيه الأفراد عن التصرف بمشيئتهم الفردية المطلقة.</li>
                         <li>لا يجب أن تحول الدولة الأفراد لآلات صماء، بل تمكنهم من استخدام العقل.</li>
                         <li>الدولة تضمن الحقوق المدنية وتمكن من ممارسة العقل.</li>
                    </ul>
                </div>
                <div class="philosopher-card border-purple-500 bg-white p-6 rounded-lg shadow-md">
                     <h4 class="font-bold text-lg text-purple-700 mb-2 flex items-center"><i class="fas fa-columns ml-2"></i> مونتسكيو: غاية الدولة هي سيادة القانون عبر فصل السلط</h4>
                     <p class="text-gray-600 mb-2 text-sm">مشروعية الدولة تُستمد من <span class="highlight">سيادة روح القوانين</span>. غايتها تتحقق بضمان هذه السيادة.</p>
                     <ul class="list-disc pr-4 text-sm text-gray-500 space-y-1">
                        <li>الغاية الأساسية: ضمان سيادة القانون وحماية الحقوق والملكيات.</li>
                        <li>الآلية لتحقيق الغاية: <strong class="text-purple-600">فصل السلطات</strong> (التشريعية، التنفيذية، القضائية).</li>
                        <li>كل سلطة تراقب وتحد من الأخرى لمنع الاستبداد.</li>
                        <li>مشروعية الدولة مرتبطة بقدرتها على تحقيق هذا الفصل وتطبيق القانون.</li>
                     </ul>
                 </div>
             </ul>
              <div class="mt-8">
                 <h3 class="font-bold text-lg text-gray-700 mb-4">مقارنة سريعة:</h3>
                 <div class="comparison-card p-6 rounded-lg shadow-sm grid grid-cols-1 md:grid-cols-2 gap-6">
                     <div>
                         <h5 class="font-semibold text-blue-700 mb-2 flex items-center"><i class="fas fa-atom ml-2"></i> اسبينوزا</h5>
                         <ul class="list-disc pr-4 text-sm text-gray-700 space-y-1">
                            <li>الغاية: الحرية، الأمن، تحرير الفرد.</li>
                            <li>أساس المشروعية: تحقيق هذه الغاية عبر العقد والعقل.</li>
                            <li>التركيز: الفرد ومكتسباته.</li>
                         </ul>
                     </div>
                     <div>
                          <h5 class="font-semibold text-purple-700 mb-2 flex items-center"><i class="fas fa-columns ml-2"></i> مونتسكيو</h5>
                          <ul class="list-disc pr-4 text-sm text-gray-700 space-y-1">
                            <li>الغاية: سيادة القانون، حماية الحقوق.</li>
                            <li>أساس المشروعية: القدرة على تطبيق القانون عبر فصل السلط.</li>
                            <li>التركيز: بنية الدولة وآلياتها.</li>
                          </ul>
                     </div>
                 </div>
            </div>
             <div class="bg-gray-100 border border-gray-200 p-4 rounded-lg shadow-inner mt-8">
                 <h3 class="font-bold text-gray-800 mb-2 flex items-center"><i class="fas fa-lightbulb ml-2 text-yellow-500"></i> تركيب المحور الأول</h3>
                 <p class="text-gray-700 text-sm">
                      يتكامل تصورا اسبينوزا ومونتسكيو؛ فبينما يركز الأول على الغايات الفردية (الحرية والأمن) كمصدر لمشروعية الدولة، يركز الثاني على الآليات البنيوية (سيادة القانون وفصل السلط) كضمانة لتحقيق هذه الغايات. الدولة المشروعة هي التي تضمن حرية الفرد عبر بنية قانونية ومؤسسية تمنع الاستبداد.
                 </p>
             </div>
        </section>

        <section class="mb-16">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 axis-header">المحور الثاني: طبيعة السلطة السياسية</h2>
             <div class="bg-red-50 border-r-4 border-red-400 p-4 rounded-lg shadow-sm mb-8">
                <h3 class="font-bold text-red-800 mb-2 flex items-center"><i class="fas fa-question-circle ml-2"></i> الإشكالية المحورية</h3>
                <p class="text-red-700">ما طبيعة السلطة السياسية؟ هل هي قائمة على الصراع والقوة والمكر والخداع؟ أم على الرفق والتوسط والاعتدال؟ أم أن جوهرها هو تحقيق الحرية والقانون في إطار الديموقراطية؟</p>
            </div>
             <div class="mb-8">
                 <h3 class="font-bold text-xl text-gray-700 mb-4">مفاهيم أساسية للمحور:</h3>
                 <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                      <div class="axis-concept-card border-red-500 p-4 rounded-md shadow-sm">
                         <h4 class="font-semibold text-red-700 flex items-center mb-1"><i class="fas fa-theater-masks ml-2"></i> الواقعية السياسية (مكيافيللي)</h4>
                         <p class="text-sm text-gray-600">منظور يرى السياسة كمجال صراع للمصالح، حيث "الغاية تبرر الوسيلة"، وقد يتطلب الحكم استخدام القوة والخداع والمكر بجانب القانون.</p>
                      </div>
                     <div class="axis-concept-card border-green-500 p-4 rounded-md shadow-sm">
                         <h4 class="font-semibold text-green-700 flex items-center mb-1"><i class="fas fa-balance-scale ml-2"></i> الاعتدال في السلطة (ابن خلدون)</h4>
                         <p class="text-sm text-gray-600">منظور يؤكد على ضرورة التوازن بين الرفق والقوة في ممارسة السلطة، وأهمية الحكمة والأخلاق والقرب من الرعية للحفاظ على الملك.</p>
                      </div>
                 </div>
             </div>
             <h3 class="font-bold text-xl text-gray-700 mb-6">مواقف الفلاسفة:</h3>
             <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                 <div class="philosopher-card border-red-500 bg-white p-6 rounded-lg shadow-md">
                     <h4 class="font-bold text-lg text-red-700 mb-2 flex items-center"><i class="fas fa-mask ml-2"></i> نيقولاي ماكيافيللي: السياسة صراع والغاية تبرر الوسيلة</h4>
                     <p class="text-gray-600 mb-2 text-sm">السياسة مجال صراع للمصالح. الأمير الناجح يستخدم كل الوسائل (قانون، قوة، مكر، خداع) للحفاظ على السلطة.</p>
                     <ul class="list-disc pr-4 text-sm text-gray-500 space-y-1">
                        <li><strong class="text-red-600">"الغاية تبرر الوسيلة"</strong> هي القاعدة الأساسية.</li>
                        <li>على الأمير أن يكون قوياً كالأسد وماكراً كالثعلب.</li>
                        <li>النجاح السياسي أهم من حفظ العهد أو الاستقامة الأخلاقية المجردة.</li>
                        <li>يجب إخفاء الطبيعة الحيوانية (القوة والخداع) بغطاء القانون والمصلحة العامة.</li>
                     </ul>
                 </div>
                 <div class="philosopher-card border-green-500 bg-white p-6 rounded-lg shadow-md">
                      <h4 class="font-bold text-lg text-green-700 mb-2 flex items-center"><i class="fas fa-city ml-2"></i> عبد الرحمن ابن خلدون: السلطة اعتدال وحكمة</h4>
                      <p class="text-gray-600 mb-2 text-sm">ممارسة السلطة تتطلب التوازن بين الرفق والقوة، مع الحكمة والأخلاق.</p>
                      <ul class="list-disc pr-4 text-sm text-gray-500 space-y-1">
                         <li>العلاقة بين السلطان والرعية أساسها القرب و<strong class="text-green-600">الرفق والاعتدال</strong>.</li>
                         <li>الرفق يكسب محبة الرعية، والتعسف يفسدها ويؤدي لخذلان الحاكم.</li>
                         <li>الإسراف في الرفق غفلة، والإفراط في القوة ظلم وإثقال.</li>
                         <li>الاعتدال (الكيس) أساس الملك الحسن.</li>
                      </ul>
                  </div>
                  <div class="philosopher-card border-purple-500 bg-white p-6 rounded-lg shadow-md md:col-span-2">
                     <h4 class="font-bold text-lg text-purple-700 mb-2 flex items-center"><i class="fas fa-columns ml-2"></i> للمناقشة: موقف مونتسكيو (تذكير)</h4>
                     <p class="text-gray-600 mb-2 text-sm">كمقابل للواقعية الميكافيللية أو الاعتدال الخلدوني، يرى مونتسكيو أن طبيعة السلطة الشرعية يجب أن تقوم على <span class="highlight">الديمقراطية وسيادة القانون</span>، مضمونة بفصل السلطات لمنع التعسف وضمان الحرية.</p>
                     <ul class="list-disc pr-4 text-sm text-gray-500 space-y-1">
                        <li>السلطة مقيدة بالقانون وليست مطلقة بيد الأمير.</li>
                        <li>الضمانة ضد الاستبداد هي فصل السلطات وليس فقط اعتدال الحاكم.</li>
                     </ul>
                  </div>
             </div>
              <div class="mt-8">
                 <h3 class="font-bold text-lg text-gray-700 mb-4">مقارنة سريعة (ماكيافيللي وابن خلدون):</h3>
                 <div class="comparison-card p-6 rounded-lg shadow-sm grid grid-cols-1 md:grid-cols-2 gap-6">
                     <div>
                         <h5 class="font-semibold text-red-700 mb-2 flex items-center"><i class="fas fa-mask ml-2"></i> ماكيافيللي</h5>
                         <ul class="list-disc pr-4 text-sm text-gray-700 space-y-1">
                            <li>طبيعة السياسة: صراع، واقعية.</li>
                            <li>وسائل السلطة: كل الوسائل مشروعة (قوة، خداع).</li>
                            <li>دور الأخلاق: ثانوي، يتبع المصلحة.</li>
                         </ul>
                     </div>
                     <div>
                          <h5 class="font-semibold text-green-700 mb-2 flex items-center"><i class="fas fa-city ml-2"></i> ابن خلدون</h5>
                          <ul class="list-disc pr-4 text-sm text-gray-700 space-y-1">
                            <li>طبيعة السياسة: تتطلب حكمة واعتدال.</li>
                            <li>وسائل السلطة: توازن بين الرفق والقوة.</li>
                            <li>دور الأخلاق: أساسي (النبل، الحكمة).</li>
                          </ul>
                     </div>
                 </div>
            </div>
             <div class="bg-gray-100 border border-gray-200 p-4 rounded-lg shadow-inner mt-8">
                 <h3 class="font-bold text-gray-800 mb-2 flex items-center"><i class="fas fa-lightbulb ml-2 text-yellow-500"></i> تركيب المحور الثاني</h3>
                 <p class="text-gray-700 text-sm">
                     تتباين النظرة لطبيعة السلطة السياسية بشكل كبير بين الواقعية التي تبرر كل الوسائل للحفاظ على الحكم (ماكيافيللي)، والاعتدال الذي يربط نجاح الحكم بالأخلاق والتوازن (ابن خلدون)، والتصور الديمقراطي الذي يربط السلطة بالقانون وفصل السلطات (مونتسكيو). يعكس هذا التباين التوتر الدائم بين ضرورات الحكم ومقتضيات الأخلاق والحقوق.
                 </p>
             </div>
        </section>

         <section class="mb-16">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 axis-header">المحور الثالث: الدولة بين الحق والعنف</h2>
             <div class="bg-purple-50 border-r-4 border-purple-400 p-4 rounded-lg shadow-sm mb-8">
                 <h3 class="font-bold text-purple-800 mb-2 flex items-center"><i class="fas fa-question-circle ml-2"></i> الإشكالية المحورية</h3>
                 <p class="text-purple-700">هل تمارس الدولة سلطتها بالقوة أم بالقانون، بالحق أم بالعنف؟ هل من المنطقي أن تمارس الدولة "العنف المشروع" باسم القانون؟ أم أن الدولة يجب أن تكون مثالاً للحق الإنساني؟</p>
             </div>
             <div class="mb-8">
                  <h3 class="font-bold text-xl text-gray-700 mb-4">مفاهيم أساسية للمحور:</h3>
                  <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                       <div class="axis-concept-card border-red-600 p-4 rounded-md shadow-sm">
                           <h4 class="font-semibold text-red-700 flex items-center mb-1"><i class="fas fa-fist-raised ml-2"></i> العنف المشروع (فيبر)</h4>
                           <p class="text-sm text-gray-600">الحق الذي تحتكره الدولة في استخدام القوة المادية (العنف) للحفاظ على النظام وضمان استمراريتها، ويعتبر وسيلتها الأساسية والمميزة.</p>
                       </div>
                       <div class="axis-concept-card border-blue-600 p-4 rounded-md shadow-sm">
                           <h4 class="font-semibold text-blue-700 flex items-center mb-1"><i class="fas fa-shield-alt ml-2"></i> دولة الحق (ج. روس)</h4>
                           <p class="text-sm text-gray-600">الدولة التي تقوم على احترام القانون وحقوق الإنسان وكرامته، وتعمل على تجنب الظلم والطغيان والعنف التعسفي، وتضمن فصل السلطات.</p>
                       </div>
                  </div>
              </div>
             <h3 class="font-bold text-xl text-gray-700 mb-6">مواقف الفلاسفة:</h3>
             <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                <div class="philosopher-card border-red-600 bg-white p-6 rounded-lg shadow-md">
                     <h4 class="font-bold text-lg text-red-700 mb-2 flex items-center"><i class="fas fa-university ml-2"></i> ماكس فيبر: الدولة تحتكر العنف المشروع</h4>
                     <p class="text-gray-600 mb-2 text-sm">الدولة الحديثة تُعرّف باحتكارها للاستخدام الشرعي للقوة المادية (العنف).</p>
                     <ul class="list-disc pr-4 text-sm text-gray-500 space-y-1">
                        <li><strong class="text-red-700">العنف المشروع</strong> وسيلة الدولة الأساسية والمفضلة.</li>
                        <li>هو حق للدولة لضمان استمراريتها ونظامها.</li>
                        <li>غياب عنف الدولة المشروع يؤدي للفوضى.</li>
                        <li>لا يحق لأي فرد أو جماعة ممارسة العنف إلا بتفويض من الدولة.</li>
                     </ul>
                 </div>
                <div class="philosopher-card border-blue-600 bg-white p-6 rounded-lg shadow-md">
                     <h4 class="font-bold text-lg text-blue-700 mb-2 flex items-center"><i class="fas fa-dove ml-2"></i> جاكلين روس: الدولة دولة حق لا عنف</h4>
                     <p class="text-gray-600 mb-2 text-sm">الدولة يجب أن تكون <span class="highlight">دولة حق</span> تحترم المواطن وحرياته وكرامته.</p>
                      <ul class="list-disc pr-4 text-sm text-gray-500 space-y-1">
                        <li>على الدولة تجنب الظلم والطغيان والعنف التعسفي (حتى لو كان "مشروعاً").</li>
                        <li>ليست مجرد ممارسة للعنف المشروع، بل تجسيد للحق.</li>
                        <li>يجب ألا تمارس شططاً في السلطة أو تستغلها لغايات غير قانونية.</li>
                        <li>الضمانة هي الحرص على <strong class="text-blue-600">فصل السلطات</strong> وحماية الحقوق.</li>
                      </ul>
                  </div>
             </div>
             <div class="mt-8">
                 <h3 class="font-bold text-lg text-gray-700 mb-4">مقارنة سريعة:</h3>
                 <div class="comparison-card p-6 rounded-lg shadow-sm grid grid-cols-1 md:grid-cols-2 gap-6">
                     <div>
                         <h5 class="font-semibold text-red-700 mb-2 flex items-center"><i class="fas fa-university ml-2"></i> ماكس فيبر</h5>
                         <ul class="list-disc pr-4 text-sm text-gray-700 space-y-1">
                            <li>خاصية الدولة: احتكار العنف المشروع.</li>
                            <li>دور العنف: ضروري للنظام والاستمرارية.</li>
                            <li>النظرة: واقعية، تحليلية لطبيعة الدولة.</li>
                         </ul>
                     </div>
                     <div>
                          <h5 class="font-semibold text-blue-700 mb-2 flex items-center"><i class="fas fa-dove ml-2"></i> جاكلين روس</h5>
                           <ul class="list-disc pr-4 text-sm text-gray-700 space-y-1">
                            <li>خاصية الدولة (المثالية): دولة الحق.</li>
                            <li>دور العنف: يجب تجنبه قدر الإمكان ومراقبته.</li>
                            <li>النظرة: معيارية، أخلاقية لما يجب أن تكون عليه الدولة.</li>
                           </ul>
                     </div>
                 </div>
             </div>
             <div class="bg-gray-100 border border-gray-200 p-4 rounded-lg shadow-inner mt-8">
                  <h3 class="font-bold text-gray-800 mb-2 flex items-center"><i class="fas fa-lightbulb ml-2 text-yellow-500"></i> تركيب المحور الثالث</h3>
                 <p class="text-gray-700 text-sm">
                    يطرح هذا المحور التوتر الأساسي بين واقع الدولة كأداة قسرية تحتكر العنف (فيبر) والمثال الأخلاقي للدولة كضامن للحقوق والحريات (روس). فبينما يرى فيبر العنف المشروع كخاصية جوهرية للدولة، تشدد روس على ضرورة أن تسمو الدولة فوق العنف لتكون دولة حق فعلية. التحدي يكمن في كيفية ممارسة الدولة لسلطتها الضرورية دون انتهاك حقوق الأفراد وكرامتهم.
                 </p>
             </div>
        </section>

        <section class="mb-16">
             <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center axis-header">خلاصة واستنتاجات</h2>
             <div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-8">
                 <div class="bg-white p-6 rounded-lg shadow-md border-l-4 border-yellow-500">
                    <h3 class="font-semibold text-lg text-yellow-800 mb-2 flex items-center"><i class="fas fa-landmark ml-2"></i> الدولة: ضرورة معقدة</h3>
                    <p class="text-gray-700 text-sm">الدولة بنية معقدة تتجاذبها غايات مختلفة (حرية، أمن، قانون)، وتتنوع طبيعة سلطتها (قوة، اعتدال، ديمقراطية)، وتواجه تحدي الموازنة بين ضرورة الحفاظ على النظام (عبر القوة أحياناً) واحترام الحقوق والحريات.</p>
                 </div>
                 <div class="bg-white p-6 rounded-lg shadow-md border-l-4 border-purple-500">
                     <h3 class="font-semibold text-lg text-purple-800 mb-2 flex items-center"><i class="fas fa-balance-scale-left ml-2"></i> التوتر الدائم</h3>
                    <p class="text-gray-700 text-sm">يظل التوتر قائماً بين مشروعية الدولة وغايتها، بين طبيعة السلطة المثالية والواقعية، وبين ممارسة الدولة لسلطتها القسرية وواجبها في حماية الحقوق. فهم هذه التوترات أساسي لتقييم أي نظام سياسي.</p>
                 </div>
             </div>
              <div class="bg-sky-100 border border-sky-300 p-6 rounded-lg shadow">
                 <h3 class="font-bold text-sky-800 mb-2 flex items-center"><i class="fas fa-book-open ml-2"></i> نحو دولة الحق</h3>
                 <p class="text-sky-700">
                     التفكير الفلسفي في الدولة يدعونا باستمرار إلى مساءلة أسسها وغاياتها وممارساتها، والسعي نحو بناء دولة توازن بين ضرورات السلطة ومقتضيات الحق والعدالة والحرية، دولة يكون فيها المواطن غاية لا وسيلة.
                 </p>
             </div>
        </section>

         <section class="mb-16">
             <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center axis-header">مراجعة المفاهيم الأساسية (انقر للتعريف)</h2>
             <div class="grid grid-cols-2 md:grid-cols-4 gap-6">
                 <div class="flip-card">
                     <div class="flip-card-inner">
                         <div class="flip-card-front"><i class="fas fa-university text-4xl text-yellow-600 mb-2"></i><h4 class="font-bold">الدولة</h4></div>
                         <div class="flip-card-back"><p>تنظيم سياسي وقانوني لجماعة بشرية على إقليم محدد، يتميز بوجود سلطة ذات سيادة ومؤسسات قادرة على فرض النظام.</p></div>
                     </div>
                 </div>
                  <div class="flip-card">
                     <div class="flip-card-inner">
                         <div class="flip-card-front"><i class="fas fa-check-circle text-4xl text-blue-500 mb-2"></i><h4 class="font-bold">المشروعية</h4></div>
                         <div class="flip-card-back"><p>الأساس أو المبرر الذي يجعل سلطة الدولة مقبولة ومعترفاً بها من قبل المحكومين (قد يكون تقليدياً، كاريزمياً، قانونياً-عقلانياً، أو تعاقدياً).</p></div>
                     </div>
                 </div>
                 <div class="flip-card">
                     <div class="flip-card-inner">
                         <div class="flip-card-front"><i class="fas fa-gavel text-4xl text-red-500 mb-2"></i><h4 class="font-bold">السلطة السياسية</h4></div>
                         <div class="flip-card-back"><p>القدرة على فرض الإرادة واتخاذ القرارات الملزمة داخل الدولة، وتوجيه سلوك الأفراد والجماعات. قد تُمارس بوسائل مختلفة (قوة، إقناع، قانون).</p></div>
                     </div>
                 </div>
                 <div class="flip-card">
                      <div class="flip-card-inner">
                          <div class="flip-card-front"><i class="fas fa-columns text-4xl text-purple-500 mb-2"></i><h4 class="font-bold">فصل السلطات</h4></div>
                          <div class="flip-card-back"><p>مبدأ يقضي بتوزيع وظائف الدولة الأساسية (التشريع، التنفيذ، القضاء) على هيئات مختلفة ومستقلة لمنع تركيز السلطة والاستبداد (مونتسكيو).</p></div>
                      </div>
                  </div>
                   <div class="flip-card">
                     <div class="flip-card-inner">
                         <div class="flip-card-front"><i class="fas fa-fist-raised text-4xl text-red-700 mb-2"></i><h4 class="font-bold">العنف المشروع</h4></div>
                         <div class="flip-card-back"><p>عند فيبر: الحق الذي تحتكره الدولة في استخدام القوة المادية كوسيلة للحفاظ على النظام وفرض سلطتها، ويعتبر خاصية مميزة للدولة الحديثة.</p></div>
                     </div>
                 </div>
                  <div class="flip-card">
                     <div class="flip-card-inner">
                         <div class="flip-card-front"><i class="fas fa-shield-alt text-4xl text-blue-600 mb-2"></i><h4 class="font-bold">دولة الحق</h4></div>
                         <div class="flip-card-back"><p>الدولة التي تخضع فيها السلطة نفسها للقانون، وتلتزم بحماية حقوق الأفراد وحرياتهم وكرامتهم، وتعمل وفق مبادئ الشرعية وفصل السلطات.</p></div>
                     </div>
                 </div>
                  <div class="flip-card">
                     <div class="flip-card-inner">
                         <div class="flip-card-front"><i class="fas fa-handshake text-4xl text-green-600 mb-2"></i><h4 class="font-bold">العقد الاجتماعي</h4></div>
                         <div class="flip-card-back"><p>نظرية تفسر قيام المجتمع المدني والدولة كاتفاق إرادي (صريح أو ضمني) بين الأفراد للخروج من حالة الطبيعة وتحقيق الأمن والسلم.</p></div>
                     </div>
                 </div>
                  <div class="flip-card">
                      <div class="flip-card-inner">
                          <div class="flip-card-front"><i class="fas fa-tree text-4xl text-orange-500 mb-2"></i><h4 class="font-bold">حالة الطبيعة</h4></div>
                          <div class="flip-card-back"><p>حالة افتراضية للإنسان قبل قيام المجتمع المنظم والدولة والقوانين، تختلف تصوراتها بين الفلاسفة (حرية مطلقة، حرب الكل ضد الكل، إلخ).</p></div>
                      </div>
                  </div>
             </div>
        </section>

        <section class="mb-16">
            <h2 class="text-3xl font-bold text-gray-800 mb-12 text-center axis-header">اختبر فهمك (أقسام منفصلة)</h2>

            <div id="problematicsQuizSection" class="quiz-section">
                <h3 class="quiz-title"><i class="fas fa-question-circle text-blue-500 mr-2"></i> اختبار الإشكاليات الفلسفية</h3>
                <div class="space-y-6">
                    <div class="quiz-question">
                        <h4 class="font-semibold text-lg mb-3">س1: المحور الأول في درس الدولة يبحث بشكل أساسي في:</h4>
                        <div class="space-y-2">
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qp1" value="a" data-correct="true" class="ml-2"> أساس قيام الدولة ومبررات وجودها والهدف منها.</label>
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qp1" value="b" class="ml-2"> كيفية ممارسة الحاكم للسلطة (بالقوة أم بالرفق).</label>
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qp1" value="c" class="ml-2"> علاقة الدولة بالعنف وهل يحق لها استخدامه.</label>
                        </div>
                    </div>
                    <div class="quiz-question">
                         <h4 class="font-semibold text-lg mb-3">س2: الإشكالية الرئيسية للمحور الثاني (طبيعة السلطة السياسية) تتمحور حول:</h4>
                         <div class="space-y-2">
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qp2" value="a" class="ml-2"> هل الدولة ضرورية أم لا.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qp2" value="b" data-correct="true" class="ml-2"> الأساليب التي تُمارس بها السلطة (صراع ومكر أم اعتدال وديمقراطية).</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qp2" value="c" class="ml-2"> الفرق بين الحق الطبيعي والحق الوضعي داخل الدولة.</label>
                         </div>
                     </div>
                     <div class="quiz-question">
                        <h4 class="font-semibold text-lg mb-3">س3: المحور الثالث (الدولة بين الحق والعنف) يتساءل بشكل أساسي عن:</h4>
                        <div class="space-y-2">
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qp3" value="a" class="ml-2"> أفضل أشكال فصل السلطات.</label>
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qp3" value="b" class="ml-2"> غاية وجود الدولة بالنسبة للأفراد.</label>
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qp3" value="c" data-correct="true" class="ml-2"> مدى شرعية استخدام الدولة للعنف وعلاقتها بمفهوم دولة الحق.</label>
                        </div>
                    </div>
                </div>
                <button id="submitProblematicsQuiz" class="mt-8 w-full bg-blue-600 text-white py-3 px-6 rounded-lg font-semibold hover:bg-blue-700 transition duration-300 text-lg">
                    إرسال إجابات الإشكاليات <i class="fas fa-paper-plane mr-2"></i>
                </button>
                <div id="problematicsResult" class="mt-6"></div>
            </div>

            <div id="conceptsQuizSection" class="quiz-section">
                <h3 class="quiz-title"><i class="fas fa-book-open text-green-500 mr-2"></i> اختبار المفاهيم الفلسفية</h3>
                 <div class="space-y-6">
                    <div class="quiz-question">
                        <h4 class="font-semibold text-lg mb-3">س1: مفهوم <span class="text-blue-600 font-bold">"المشروعية"</span> في سياق الدولة يشير إلى:</h4>
                        <div class="space-y-2">
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qc1" value="a" data-correct="true" class="ml-2"> الأساس أو المبرر الذي يجعل سلطة الدولة مقبولة ومعترفاً بها.</label>
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qc1" value="b" class="ml-2"> القوانين المكتوبة في الدستور فقط.</label>
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qc1" value="c" class="ml-2"> ممارسة العنف من قبل الدولة.</label>
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qc1" value="d" class="ml-2"> شكل الحكومة (ملكية، جمهورية، إلخ).</label>
                        </div>
                    </div>
                     <div class="quiz-question">
                        <h4 class="font-semibold text-lg mb-3">س2: مبدأ <span class="text-purple-600 font-bold">"فصل السلطات"</span> عند مونتسكيو يهدف إلى:</h4>
                         <div class="space-y-2">
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc2" value="a" class="ml-2"> تركيز كل السلطات بيد الحاكم.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc2" value="b" data-correct="true" class="ml-2"> توزيع وظائف الدولة (تشريع، تنفيذ، قضاء) على هيئات مستقلة لمنع الاستبداد.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc2" value="c" class="ml-2"> إلغاء السلطة القضائية.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc2" value="d" class="ml-2"> ضمان سيطرة السلطة التنفيذية.</label>
                         </div>
                     </div>
                     <div class="quiz-question">
                         <h4 class="font-semibold text-lg mb-3">س3: <span class="text-red-600 font-bold">"الواقعية السياسية"</span> المرتبطة بماكيافيللي تعني أن:</h4>
                         <div class="space-y-2">
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc3" value="a" class="ml-2"> الأخلاق هي أساس كل قرار سياسي.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc3" value="b" class="ml-2"> الحاكم يجب أن يعتمد على الرفق فقط.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc3" value="c" data-correct="true" class="ml-2"> السياسة صراع مصالح، وقد تتطلب استخدام القوة والخداع لتحقيق غايات الدولة.</label>
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qc3" value="d" class="ml-2"> الديمقراطية هي الشكل الوحيد للحكم.</label>
                         </div>
                     </div>
                     <div class="quiz-question">
                         <h4 class="font-semibold text-lg mb-3">س4: مبدأ <span class="text-green-600 font-bold">"الاعتدال"</span> في ممارسة السلطة عند ابن خلدون يؤكد على:</h4>
                         <div class="space-y-2">
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc4" value="a" data-correct="true" class="ml-2"> التوازن بين الرفق والقوة، مع الحكمة والأخلاق.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc4" value="b" class="ml-2"> استخدام القوة المفرطة دائماً لفرض الهيبة.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc4" value="c" class="ml-2"> الرفق المبالغ فيه وتجنب أي شكل من أشكال الحزم.</label>
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qc4" value="d" class="ml-2"> تجاهل آراء الرعية تماماً.</label>
                         </div>
                     </div>
                    <div class="quiz-question">
                        <h4 class="font-semibold text-lg mb-3">س5: مفهوم <span class="text-red-700 font-bold">"العنف المشروع"</span> عند ماكس فيبر هو:</h4>
                         <div class="space-y-2">
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc5" value="a" class="ml-2"> العنف الذي يمارسه الأفراد ضد الدولة.</label>
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qc5" value="b" class="ml-2"> أي شكل من أشكال العنف يعتبر غير مقبول.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc5" value="c" data-correct="true" class="ml-2"> الحق الذي تحتكره الدولة في استخدام القوة المادية للحفاظ على النظام.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc5" value="d" class="ml-2"> العنف المبرر أخلاقياً في جميع الحالات.</label>
                         </div>
                     </div>
                     <div class="quiz-question">
                         <h4 class="font-semibold text-lg mb-3">س6: <span class="text-blue-600 font-bold">"دولة الحق"</span> كما تصفها جاكلين روس هي الدولة التي:</h4>
                         <div class="space-y-2">
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc6" value="a" class="ml-2"> تمتلك أقوى جيش وأجهزة قمعية.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc6" value="b" data-correct="true" class="ml-2"> تخضع سلطتها للقانون وتحترم حقوق الإنسان وكرامته وتفصل بين السلطات.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc6" value="c" class="ml-2"> تطبق العنف المشروع بشكل دائم ومكثف.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qc6" value="d" class="ml-2"> تمنع أي شكل من أشكال المعارضة.</label>
                         </div>
                     </div>
                 </div>
                 <button id="submitConceptsQuiz" class="mt-8 w-full bg-green-600 text-white py-3 px-6 rounded-lg font-semibold hover:bg-green-700 transition duration-300 text-lg">
                     إرسال إجابات المفاهيم <i class="fas fa-paper-plane mr-2"></i>
                 </button>
                 <div id="conceptsResult" class="mt-6"></div>
             </div>

            <div id="stancesQuizSection" class="quiz-section">
                 <h3 class="quiz-title"><i class="fas fa-users text-purple-500 mr-2"></i> اختبار المواقف الفلسفية</h3>
                 <div class="space-y-6">
                     <div class="quiz-question">
                        <h4 class="font-semibold text-lg mb-3">س1: الغاية القصوى للدولة عند <span class="text-blue-700 font-bold">اسبينوزا</span> هي:</h4>
                        <div class="space-y-2">
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qs1" value="a" data-correct="true" class="ml-2"> ضمان حرية الأفراد وتمكينهم من استخدام العقل.</label>
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qs1" value="b" class="ml-2"> فرض الطاعة العمياء على المواطنين.</label>
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qs1" value="c" class="ml-2"> تحقيق الثروة الاقتصادية فقط.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qs1" value="d" class="ml-2"> الحفاظ على سلطة الحاكم بأي ثمن.</label>
                        </div>
                    </div>
                     <div class="quiz-question">
                         <h4 class="font-semibold text-lg mb-3">س2: يرى <span class="text-purple-700 font-bold">مونتسكيو</span> أن ضمان سيادة القانون وحماية الحقوق يتطلب بالضرورة:</h3>
                         <div class="space-y-2">
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qs2" value="a" class="ml-2"> حاكماً قوياً ومستبداً.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qs2" value="b" data-correct="true" class="ml-2"> الفصل بين السلطات التشريعية والتنفيذية والقضائية.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qs2" value="c" class="ml-2"> الاعتماد على التقاليد والأعراف فقط.</label>
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qs2" value="d" class="ml-2"> منح السلطة المطلقة للشعب مباشرة.</label>
                         </div>
                     </div>
                     <div class="quiz-question">
                         <h4 class="font-semibold text-lg mb-3">س3: حسب <span class="text-red-600 font-bold">ماكيافيللي</span>، على الأمير لكي يحافظ على سلطته أن يكون:</h3>
                         <div class="space-y-2">
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qs3" value="a" class="ml-2"> مستقيماً وصادقاً في جميع الأحوال.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qs3" value="b" data-correct="true" class="ml-2"> قادراً على استخدام القوة والخداع عند الضرورة (كالأسد والثعلب).</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qs3" value="c" class="ml-2"> معتمداً على الرفق واللين فقط.</label>
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qs3" value="d" class="ml-2"> متنازلاً عن السلطة للشعب.</label>
                         </div>
                     </div>
                     <div class="quiz-question">
                         <h4 class="font-semibold text-lg mb-3">س4: يؤكد <span class="text-green-600 font-bold">ابن خلدون</span> على أن أساس الملك الصالح هو:</h3>
                         <div class="space-y-2">
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qs4" value="a" class="ml-2"> المكر والخداع المستمر للرعية.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qs4" value="b" class="ml-2"> القوة المفرطة والبطش.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qs4" value="c" data-correct="true" class="ml-2"> الاعتدال والتوازن بين الرفق والقوة، مع الحكمة والقرب من الرعية.</label>
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qs4" value="d" class="ml-2"> الرفق المفرط الذي يصل حد الغفلة.</label>
                         </div>
                     </div>
                     <div class="quiz-question">
                         <h4 class="font-semibold text-lg mb-3">س5: الخاصية الأساسية التي تميز الدولة الحديثة عند <span class="text-red-700 font-bold">ماكس فيبر</span> هي:</h3>
                         <div class="space-y-2">
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qs5" value="a" class="ml-2"> تحقيق العدالة الاجتماعية الكاملة.</label>
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qs5" value="b" data-correct="true" class="ml-2"> احتكار الاستخدام المشروع للعنف المادي.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qs5" value="c" class="ml-2"> الاعتماد الكلي على الإقناع والحوار.</label>
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qs5" value="d" class="ml-2"> إلغاء جميع أشكال السلطة.</label>
                         </div>
                     </div>
                     <div class="quiz-question">
                         <h4 class="font-semibold text-lg mb-3">س6: تدعو <span class="text-blue-600 font-bold">جاكلين روس</span> إلى أن تكون الدولة:</h3>
                         <div class="space-y-2">
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qs6" value="a" class="ml-2"> قادرة على استخدام العنف دون قيود.</label>
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qs6" value="b" data-correct="true" class="ml-2"> دولة حق تحترم كرامة المواطن وحقوقه وتفصل بين السلطات.</label>
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qs6" value="c" class="ml-2"> قائمة على أساس الدين فقط.</label>
                              <label class="flex items-center cursor-pointer"><input type="radio" name="qs6" value="d" class="ml-2"> مجرد أداة للقمع والهيمنة.</label>
                         </div>
                     </div>
                 </div>
                 <button id="submitStancesQuiz" class="mt-8 w-full bg-purple-600 text-white py-3 px-6 rounded-lg font-semibold hover:bg-purple-700 transition duration-300 text-lg">
                      إرسال إجابات المواقف <i class="fas fa-paper-plane mr-2"></i>
                  </button>
                 <div id="stancesResult" class="mt-6"></div>
             </div>

        </section>
        </div> <a href="#main-concepts-overview" onclick="event.preventDefault(); scrollToElement('#main-concepts-overview');"
       class="floating-btn bg-yellow-600 text-white w-14 h-14 rounded-full flex items-center justify-center shadow-lg hover:bg-yellow-700"> <i class="fas fa-arrow-up text-xl"></i>
    </a>

 <script>
    document.addEventListener('DOMContentLoaded', () => {
        // Add fade-in animation to body or main container
        document.body.classList.add('fade-in');

        // Attach event listeners to respective submit buttons
        document.getElementById('submitProblematicsQuiz')?.addEventListener('click', () => submitSpecificQuiz('problematics'));
        document.getElementById('submitConceptsQuiz')?.addEventListener('click', () => submitSpecificQuiz('concepts'));
        document.getElementById('submitStancesQuiz')?.addEventListener('click', () => submitSpecificQuiz('stances'));
    });

    // Generic function to handle submission for any quiz type
    function submitSpecificQuiz(quizType) {
        const quizSection = document.getElementById(`${quizType}QuizSection`);
        if (!quizSection) {
            console.error(`Quiz section not found for type: ${quizType}`);
            return;
        }

        const questions = quizSection.querySelectorAll(':scope > .space-y-6 > .quiz-question');
        const totalQuestions = questions.length;
        const resultDiv = document.getElementById(`${quizType}Result`);
        let score = 0;

        let namePrefix = '';
        if (quizType === 'problematics') namePrefix = 'qp';
        else if (quizType === 'concepts') namePrefix = 'qc';
        else if (quizType === 'stances') namePrefix = 'qs';
        else {
            console.error(`Unknown quiz type: ${quizType}`);
            return;
        }

        resultDiv.innerHTML = ''; // Clear previous results
        clearQuizFormatting(quizSection); // Clear previous formatting

        questions.forEach((questionDiv, index) => {
            const questionNumber = index + 1;
            const inputName = `${namePrefix}${questionNumber}`;
            const selectedAnswer = questionDiv.querySelector(`input[name="${inputName}"]:checked`);

            if (selectedAnswer) {
                if (selectedAnswer.hasAttribute('data-correct')) {
                    score++;
                    selectedAnswer.parentElement.classList.add('text-green-600', 'font-semibold');
                } else {
                    selectedAnswer.parentElement.classList.add('text-red-600', 'font-semibold');
                }

                // Highlight correct answer
                const allOptions = questionDiv.querySelectorAll(`input[name="${inputName}"]`);
                allOptions.forEach((input) => {
                    if (input.hasAttribute('data-correct')) {
                        input.parentElement.classList.add('text-green-600', 'font-semibold');
                    }
                });
            }
        });

        const percentage = Math.round((score / totalQuestions) * 100);
        resultDiv.innerHTML = `
            <div class="mt-4 p-4 rounded-md ${percentage >= 80 ? 'bg-green-100 text-green-800' : 'bg-yellow-100 text-yellow-800'} font-medium">
                لقد حصلت على <strong>${score}</strong> من أصل <strong>${totalQuestions}</strong> سؤالًا. (${percentage}%)
            </div>
        `;
    }

    // Reset formatting before grading
    function clearQuizFormatting(section) {
        const labels = section.querySelectorAll('label');
        labels.forEach(label => {
            label.classList.remove('text-green-600', 'text-red-600', 'font-semibold');
        });
    }

    // Smooth scroll
    function scrollToElement(selector) {
        const el = document.querySelector(selector);
        if (el) {
            el.scrollIntoView({ behavior: 'smooth' });
        }
    }
</script>