File size: 58,217 Bytes
bcb5bf5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!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: #3b82f6; /* blue-500 */
            border-radius: 1.5px;
        }

        /* Timeline Styles */
        .timeline {
            position: relative;
            padding: 20px 0;
            list-style: none;
        }

        .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 4px;
            background: #cbd5e1; /* slate-300 */
            right: 31px; /* Adjusted for RTL */
            margin-right: -2px; /* Adjusted for RTL */
        }

        .timeline-item {
            margin: 20px 0;
            padding-right: 60px; /* Adjusted for RTL */
            position: relative;
        }

        .timeline-item::before { /* Dot */
            content: '';
            position: absolute;
            top: 15px;
            right: 19px; /* Adjusted for RTL */
            width: 25px;
            height: 25px;
            background: white;
            border: 4px solid #3b82f6; /* blue-500 */
            border-radius: 50%;
            z-index: 1;
        }
         .timeline-item:last-child {
             margin-bottom: 0;
         }

        .comparison-card {
            background: linear-gradient(135deg, #f0f9ff, #e0f2fe); /* sky-50 to sky-100 */
            border: 1px solid #bae6fd; /* sky-200 */
        }

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

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

        /* Flip Card Styles */
        .flip-card {
          background-color: transparent;
          width: 100%;
          height: 150px;
          perspective: 1000px;
        }

        .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; /* 8px */
        }

        .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; /* 16px */
          border-radius: 0.5rem; /* 8px */
        }

        .flip-card-front {
          background-color: #ffffff; /* white */
          color: black;
        }

        .flip-card-back {
          background-color: #3b82f6; /* blue-500 */
          color: white;
          transform: rotateY(180deg);
        }

        /* 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; /* gray-50 slightly different */
            border: 1px solid #e5e7eb; /* gray-200 */
            border-right: 3px solid; /* Color set by Tailwind */
        }

        /* Style for Quiz Sections */
        .quiz-section {
             background-color: #ffffff; /* white */
             padding: 2rem; /* p-8 */
             border-radius: 0.5rem; /* rounded-lg */
             box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
             margin-bottom: 2rem; /* mb-8 */
        }
        .quiz-title {
             font-size: 1.5rem; /* text-2xl */
             font-weight: 700; /* font-bold */
             color: #1f2937; /* text-gray-800 */
             margin-bottom: 1.5rem; /* mb-6 */
             text-align: center;
             border-bottom: 2px solid #60a5fa; /* border-blue-400 */
             padding-bottom: 0.5rem; /* pb-2 */
        }
        .quiz-question {
             border-bottom: 1px solid #e5e7eb; /* border-gray-200 */
             padding-bottom: 1rem; /* pb-4 */
             margin-bottom: 1.5rem; /* mb-6 */
        }
         .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-gavel text-blue-500"></i> درس الواجب <i class="fas fa-scroll text-blue-500"></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-balance-scale-left text-3xl text-blue-500 mb-2"></i>
                     <span>طبيعة الواجب</span>
                 </div>
                 <div class="flex flex-col items-center">
                     <i class="fas fa-brain text-3xl text-green-500 mb-2"></i>
                     <span>الوعي الأخلاقي</span>
                 </div>
                  <div class="flex flex-col items-center">
                     <i class="fas fa-users 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-red-400 p-4 rounded-md shadow-sm">
                        <h4 class="font-semibold text-red-700 flex items-center mb-1"><i class="fas fa-lock ml-2"></i> الإكراه والإلزام الأخلاقي</h4>
                        <p class="text-sm text-gray-600">الشعور بالضرورة والقوة القاهرة التي تفرضها القاعدة الأخلاقية (غالباً العقلية عند كانط) على الإرادة، بغض النظر عن الميول.</p>
                     </div>
                     <div class="axis-concept-card border-green-400 p-4 rounded-md shadow-sm">
                        <h4 class="font-semibold text-green-700 flex items-center mb-1"><i class="fas fa-running 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>
             <ul class="timeline">
                <li class="timeline-item">
                    <div class="philosopher-card border-red-500 bg-white p-4 rounded-lg shadow-md"> <h4 class="font-bold text-lg text-red-700 mb-2 flex items-center"><i class="fas fa-user-tie 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-red-600">إكراهاً وإلزاماً</strong> عقلياً.</li> <li>يجب فعل الواجب حتى لو تعارض مع الميول.</li> <li>الأساس هو احترام القانون الأخلاقي الذي يشرعه العقل.</li> <li>الواجب هو إكراه عقلي حر (تلتزم به الإرادة الحرة).</li></ul> </div>
                </li>
                 <li class="timeline-item">
                     <div class="philosopher-card border-green-500 bg-white p-4 rounded-lg shadow-md"> <h4 class="font-bold text-lg text-green-700 mb-2 flex items-center"><i class="fas fa-user-pen 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-green-600">ميل تلقائي</strong> للفعل الأخلاقي.</li> <li>ينبع من الحياة ويسعى للتحقق في الأفعال.</li> <li>كلما زادت قدرة الإنسان، زادت واجباته.</li> <li>الدافع هو شعور طبيعي عفوي، لا إلزام خارجي.</li></ul> </div>
                 </li>
             </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-red-700 mb-2 flex items-center"><i class="fas fa-user-tie 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-user-pen 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-green-50 border-r-4 border-green-400 p-4 rounded-lg shadow-sm mb-8">
                <h3 class="font-bold text-green-800 mb-2 flex items-center"><i class="fas fa-question-circle ml-2"></i> الإشكالية المحورية</h3>
                <p class="text-green-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-400 p-4 rounded-md shadow-sm">
                         <h4 class="font-semibold text-blue-700 flex items-center mb-1"><i class="fas fa-seedling ml-2"></i> الوعي الأخلاقي الفطري</h4>
                         <p class="text-sm text-gray-600">الاعتقاد بأن الإنسان يولد بمبدأ داخلي أو "غريزة" أخلاقية تمكنه من التمييز بين الخير والشر بشكل طبيعي (كما عند روسو).</p>
                      </div>
                     <div class="axis-concept-card border-yellow-500 p-4 rounded-md shadow-sm">
                         <h4 class="font-semibold text-yellow-700 flex items-center mb-1"><i class="fas fa-history 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-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-leaf 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-yellow-600 bg-white p-6 rounded-lg shadow-md"> <h4 class="font-bold text-lg text-yellow-700 mb-2 flex items-center"><i class="fas fa-hammer 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-yellow-700">عبر التاريخ</strong>.</li> <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-blue-700 mb-2 flex items-center"><i class="fas fa-leaf 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-yellow-700 mb-2 flex items-center"><i class="fas fa-hammer 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 lg:grid-cols-3 gap-4"> <div class="axis-concept-card border-indigo-400 p-4 rounded-md shadow-sm"> <h4 class="font-semibold text-indigo-700 flex items-center mb-1"><i class="fas fa-user-shield ml-2"></i> الضمير الفردي</h4> <p class="text-sm text-gray-600">القدرة الداخلية للفرد على إصدار الأحكام الأخلاقية والشعور بالمسؤولية تجاه أفعاله، قد يُنظر إليه كشيء مستقل أو متأثر بالمجتمع.</p> </div> <div class="axis-concept-card border-indigo-600 p-4 rounded-md shadow-sm"> <h4 class="font-semibold text-indigo-800 flex items-center mb-1"><i class="fas fa-users-cog ml-2"></i> الضمير الجمعي/الاجتماعي</h4> <p class="text-sm text-gray-600">مجموع المعتقدات والمشاعر المشتركة بين أفراد المجتمع، والتي تشكل نظاماً محدداً له حياته الخاصة، ويعتبره دوركايم مصدر الأخلاق والواجب.</p> </div> <div class="axis-concept-card border-teal-500 p-4 rounded-md shadow-sm lg:col-span-1 md:col-span-2"> <h4 class="font-semibold text-teal-700 flex items-center mb-1"><i class="fas fa-globe-africa 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-indigo-500 bg-white p-6 rounded-lg shadow-md"> <h4 class="font-bold text-lg text-indigo-700 mb-2 flex items-center"><i class="fas fa-users 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-indigo-600">الضمير الجمعي</strong>.</li><li>التربية والتنشئة تغرس الواجبات.</li><li>الوعي الأخلاقي الفردي صدى للوعي الجمعي.</li><li>حرية الفرد تتقلص أمام سلطة المجتمع.</li></ul> </div>
                  <div class="philosopher-card border-teal-500 bg-white p-6 rounded-lg shadow-md"> <h4 class="font-bold text-lg text-teal-700 mb-2 flex items-center"><i class="fas fa-globe 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>ضرورة الانفتاح على <strong class="text-teal-600">واجبات إنسانية كونية</strong>.</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-indigo-700 mb-2 flex items-center"><i class="fas fa-users ml-2"></i> دوركايم</h5> <ul class="list-disc pr-4 text-sm text-gray-700 space-y-1"><li>مصدر الواجب: المجتمع حصراً.</li><li>نطاق الواجب: مجتمعي، محلي.</li><li>العلاقة بالفرد: الفرد خاضع للمجتمع.</li><li>المفهوم المركزي: الضمير الجمعي.</li></ul> </div> <div> <h5 class="font-semibold text-teal-700 mb-2 flex items-center"><i class="fas fa-globe ml-2"></i> برغسون</h5> <ul class="list-disc pr-4 text-sm text-gray-700 space-y-1"><li>مصدر الواجب: المجتمع (مبدئياً) + انفتاح إنساني.</li><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-blue-500"> <h3 class="font-semibold text-lg text-blue-800 mb-2 flex items-center"><i class="fas fa-sitemap 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-green-500"> <h3 class="font-semibold text-lg text-green-800 mb-2 flex items-center"><i class="fas fa-balance-scale 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-check-double text-4xl text-blue-500 mb-2"></i> <h4 class="font-bold">الواجب</h4> </div> <div class="flip-card-back"> <p class="text-sm">الالتزام الأخلاقي بفعل ما ينبغي فعله، سواء بإكراه أو بميل طبيعي.</p> </div> </div> </div>
                  <div class="flip-card"> <div class="flip-card-inner"> <div class="flip-card-front"> <i class="fas fa-balance-scale-left text-4xl text-gray-500 mb-2"></i> <h4 class="font-bold">القانون الأخلاقي</h4> </div> <div class="flip-card-back"> <p class="text-sm">المبادئ التي تحدد ما هو صواب وما هو خطأ (قد تكون عقلية أو اجتماعية).</p> </div> </div> </div>
                  <div class="flip-card"> <div class="flip-card-inner"> <div class="flip-card-front"> <i class="fas fa-brain text-4xl text-green-500 mb-2"></i> <h4 class="font-bold">الوعي الأخلاقي</h4> </div> <div class="flip-card-back"> <p class="text-sm">القدرة على إصدار أحكام معيارية على الأفعال والتمييز بين الخير والشر.</p> </div> </div> </div>
                  <div class="flip-card"> <div class="flip-card-inner"> <div class="flip-card-front"> <i class="fas fa-heart text-4xl text-red-500 mb-2"></i> <h4 class="font-bold">الإرادة الخيرة</h4> </div> <div class="flip-card-back"> <p class="text-sm">عند كانط: الإرادة التي تفعل الخير بدافع احترام القانون الأخلاقي فقط.</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: التساؤل حول ما إذا كان الواجب نابعاً من <span class="text-red-600">الإكراه</span> أم من <span class="text-green-600">القدرة</span> هو الإشكالية الأساسية لـ:</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: التساؤل حول ما إذا كان الواجب يقتصر على <span class="text-indigo-600">الفرد</span> أم يؤطره <span class="text-purple-600">المجتمع</span>، وكيفية الانتقال للكونية، هو إشكالية أي محور؟</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-red-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-700 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-blue-700 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-indigo-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-teal-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-red-700 font-bold">كانط</span>، الواجب يتأسس أساساً على:</h3>
                        <div class="space-y-2">
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qs1" value="a" class="ml-2"> العاطفة والميل الطبيعي.</label>
                            <label class="flex items-center cursor-pointer"><input type="radio" name="qs1" value="b" data-correct="true" 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-green-700 font-bold">غويو</span> أن الواجب هو:</h3>
                         <div class="space-y-2">
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qs2" value="a" data-correct="true" class="ml-2"> قدرة طبيعية وعاطفة متدفقة من الحياة.</label>
                             <label class="flex items-center cursor-pointer"><input type="radio" name="qs2" value="b" 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-blue-700 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-yellow-700 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-indigo-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>
                 <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-blue-600 text-white w-14 h-14 rounded-full flex items-center justify-center shadow-lg hover:bg-blue-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('.quiz-question');
            const totalQuestions = questions.length;
            const resultDiv = document.getElementById(`${quizType}Result`);
            let score = 0;

            // --- Define question prefixes for radio button names ---
            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 selectedAnswer = questionDiv.querySelector(`input[name="${namePrefix}${questionNumber}"]:checked`);

                if (selectedAnswer) {
                    if (selectedAnswer.hasAttribute('data-correct')) {
                        score++;
                        // Add visual feedback for correct answer
                        selectedAnswer.parentElement.classList.add('text-green-600', 'font-semibold');
                    } else {
                        // Add visual feedback for incorrect answer and show correct one
                        selectedAnswer.parentElement.classList.add('text-red-600');
                        const correctAnswer = questionDiv.querySelector(`input[data-correct="true"]`);
                        if(correctAnswer) {
                             correctAnswer.parentElement.classList.add('text-green-600', 'font-semibold', 'bg-green-100', 'p-1', 'rounded');
                        }
                    }
                } else {
                     // Optional: Highlight questions that were not answered
                     const questionTitle = questionDiv.querySelector('h4'); // Use h4 for question title
                     if(questionTitle) questionTitle.classList.add('text-yellow-600', 'font-bold'); // Indicate unanswered
                }
            });


            const percentage = totalQuestions > 0 ? Math.round((score / totalQuestions) * 100) : 0;

            let feedbackMessage = '';
            let resultClass = '';
            let buttonClass = '';
             // Use quizType to determine button color
            if (quizType === 'problematics') buttonClass = 'bg-blue-600 hover:bg-blue-700';
            else if (quizType === 'concepts') buttonClass = 'bg-green-600 hover:bg-green-700';
            else if (quizType === 'stances') buttonClass = 'bg-purple-600 hover:bg-purple-700';
            else buttonClass = 'bg-gray-600 hover:bg-gray-700'; // Fallback


            if (percentage >= 80) {
                feedbackMessage = `ممتاز! (${score}/${totalQuestions}) إجابات صحيحة.`;
                resultClass = 'bg-green-100 text-green-800 mt-6 p-4 rounded-lg shadow';
                // Keep button class color specific to quiz type
            } else if (percentage >= 50) {
                feedbackMessage = `جيد! (${score}/${totalQuestions}) إجابات صحيحة. تحتاج لمراجعة بسيطة.`;
                resultClass = 'bg-yellow-100 text-yellow-800 mt-6 p-4 rounded-lg shadow';
                 // Keep button class color specific to quiz type
            } else {
                feedbackMessage = `تحتاج إلى مراجعة هذا القسم. (${score}/${totalQuestions}) إجابات صحيحة.`;
                resultClass = 'bg-red-100 text-red-800 mt-6 p-4 rounded-lg shadow';
                 // Keep button class color specific to quiz type
            }

            resultDiv.className = resultClass;
            resultDiv.innerHTML = `
                <h4 class="font-bold text-lg mb-2">النتيجة: ${percentage}%</h4>
                <p class="mb-3">${feedbackMessage}</p>
                <button onclick="retryQuiz('${quizType}')" class="mt-2 ${buttonClass} text-white py-2 px-4 rounded-lg font-medium transition duration-300">
                    أعد المحاولة <i class="fas fa-redo mr-1"></i>
                </button>
            `;

             resultDiv.scrollIntoView({ behavior: 'smooth', block: 'center' });
        }

        // Function to clear quiz formatting for a specific section
        function clearQuizFormatting(quizSection) {
             if (!quizSection) return;
             // Remove feedback styles from labels
             const labels = quizSection.querySelectorAll('label');
             labels.forEach(label => {
                 label.classList.remove('text-green-600', 'font-semibold', 'text-red-600', 'bg-green-100', 'p-1', 'rounded');
             });
              // Remove highlight from unanswered question titles
             const questionTitles = quizSection.querySelectorAll('.quiz-question h4');
             questionTitles.forEach(title => title.classList.remove('text-yellow-600', 'font-bold'));
        }

        // Generic smooth scroll function
        function scrollToElement(selector) {
             const element = document.querySelector(selector);
             if (element) {
                 element.scrollIntoView({ behavior: 'smooth', block: 'start' });
             }
        }


         // Retry function for a specific quiz
        function retryQuiz(quizType) {
             const quizSection = document.getElementById(`${quizType}QuizSection`);
             const resultDiv = document.getElementById(`${quizType}Result`);

             if(quizSection && resultDiv) {
                 // Clear radio buttons
                 const radioButtons = quizSection.querySelectorAll('input[type="radio"]');
                 radioButtons.forEach(rb => rb.checked = false);

                 // Clear result div
                 resultDiv.innerHTML = '';
                 resultDiv.className = 'mt-6'; // Reset result div style

                 // Clear formatting
                 clearQuizFormatting(quizSection);

                 // Scroll to the top of that specific quiz section
                 quizSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
             } else {
                 console.error(`Could not find section or result div for quiz type: ${quizType}`);
                 // Fallback: scroll to top of page if quiz section not found
                 scrollToElement('body');
             }
        }


    </script>

<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=methodya/devoire" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>