
        /* تعريف المتغيرات لألوان الوضع الفاتح والداكن */
        :root {
            --primary-color: #2874f0; /* أزرق أساسي */
            --secondary-color: #1a53bf; /* أزرق ثانوي أغمق */
            --background-light: #f0f4ff; /* خلفية فاتحة جداً */
            --text-dark: #2c3e50; /* نص داكن */
            --text-medium: #555; /* نص متوسط */
            --card-background: #ffffff; /* خلفية البطاقة */
            --section-background: #ffffff; /* خلفية القسم */
            --accent-color: #ff5722; /* لون مميز للإعلان والأزرار */
            --header-height: 0px; /* سيتم تحديده بالـ JS */
            --banner-height: 0px; /* سيتم تحديده بالـ JS */
            --border-color-light: #e0e0e0; /* لون حدود فاتح */
            --shadow-light: rgba(0, 0, 0, 0.08); /* ظل فاتح */
        }

        /* الوضع الداكن */
        body.dark-mode {
            --primary-color: #5a8ee7; /* أزرق فاتح قليلاً للداكن */
            --secondary-color: #3b6edc; /* أزرق متوسط للداكن */
            --background-light: #1a202c; /* خلفية داكنة جداً */
            --text-dark: #e0e0e0; /* نص فاتح */
            --text-medium: #b0b0b0; /* نص متوسط فاتح */
            --card-background: #2d3748; /* خلفية بطاقة داكنة */
            --section-background: #222b3a; /* خلفية قسم داكنة */
            --accent-color: #ff8a65; /* لون مميز للإعلان في الوضع الداكن */
            --border-color-light: #4a5568; /* لون حدود داكن */
            --shadow-light: rgba(0, 0, 0, 0.2); /* ظل داكن */
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'Cairo', sans-serif;
            background: var(--background-light);
            color: var(--text-dark);
            direction: rtl;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            padding-top: 0;
            transition: background-color 0.4s ease, color 0.4s ease;
            line-height: 1.6; /* تحسين قراءة النص */
        }

        /* تحسين الهيدر */
        header {
            background-color: var(--primary-color);
            color: white;
            padding: 15px 30px;
            font-size: 24px;
            font-weight: 700;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* ظل ثابت */
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
            position: fixed;
            width: 100%;
            top: 0;
            left: 0;
            z-index: 1000;
            box-sizing: border-box;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color 0.4s ease, box-shadow 0.4s ease;
        }

        .logo {
            font-size: 28px;
            font-weight: 900;
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo i {
            font-size: 32px;
        }

        nav ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            gap: 25px;
        }

        nav ul li a {
            color: white;
            text-decoration: none;
            font-size: 1.1em;
            font-weight: 600;
            padding: 5px 0;
            position: relative;
            transition: color 0.3s ease;
        }

        nav ul li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: white;
            transition: width 0.3s ease;
        }

        nav ul li a:hover {
            color: #e0f0ff;
        }

        nav ul li a:hover::after,
        nav ul li a.active::after {
            width: 100%;
        }

        /* بانر الإعلان المحسن */
        .announcement-banner {
            background: linear-gradient(90deg, var(--accent-color) 0%, #e64a19 100%);
            color: white;
            text-align: center;
            padding: 15px 20px;
            font-size: 1.15em;
            font-weight: 700;
            position: fixed;
            top: var(--header-height);
            width: 100%;
            left: 0;
            z-index: 999;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            box-sizing: border-box;
            overflow: hidden;
            animation: pulse-background 3s infinite ease-in-out, slide-down 0.5s ease-out;
            border-bottom: 3px solid #ffccbc;
            transition: background 0.4s ease, border-color 0.4s ease;
        }

        @keyframes pulse-background {
            0% { background-color: var(--accent-color); }
            50% { background-color: #e64a19; }
            100% { background-color: var(--accent-color); }
        }

        @keyframes slide-down {
            0% { transform: translateY(-100%); opacity: 0; }
            100% { transform: translateY(0); opacity: 1; }
        }

        .announcement-banner p {
            margin: 0;
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .announcement-banner .banner-link {
            color: #fce4ec;
            text-decoration: none;
            font-weight: 900;
            transition: color 0.3s ease, transform 0.2s ease, text-shadow 0.3s ease;
            position: relative;
            padding-bottom: 2px;
        }

        .announcement-banner .banner-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #fce4ec;
            transform: scaleX(0);
            transform-origin: bottom right;
            transition: transform 0.3s ease-out;
        }

        .announcement-banner .banner-link:hover {
            color: white;
            transform: scale(1.03);
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
        }

        .announcement-banner .banner-link:hover::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }

        .close-banner {
            background: none;
            border: none;
            color: white;
            font-size: 1.8em;
            cursor: pointer;
            padding: 0 10px;
            line-height: 1;
            transition: color 0.3s ease, transform 0.2s ease;
            opacity: 0.8;
        }

        .close-banner:hover {
            color: #fce4ec;
            transform: rotate(90deg) scale(1.1);
            opacity: 1;
        }

        main {
            flex: 1;
            max-width: 1200px;
            margin: 40px auto; /* قيمة مبدئية، سيتم تعديلها بالـ JS */
            padding: 0 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 80px; /* زيادة المسافة بين الأقسام */
        }

        /* تحسينات عامة للأقسام */
        section {
            width: 100%;
            box-sizing: border-box;
            opacity: 0; /* للتحريك عند التمرير */
            transform: translateY(20px); /* للتحريك عند التمرير */
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }

        section.animate-on-scroll {
            opacity: 1;
            transform: translateY(0);
        }

        /* قسم البطل (Hero Section) */
        .hero-section {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            text-align: center;
            padding: 80px 20px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            width: 100%;
            box-sizing: border-box;
            animation: fade-in 1s ease-out forwards;
            animation-delay: 0.8s;
            position: relative;
            overflow: hidden;
            transition: background 0.4s ease, box-shadow 0.4s ease;
            opacity: 1; /* override for hero as it has its own animation */
            transform: translateY(0); /* override for hero as it has its own animation */
        }

        @keyframes fade-in {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .hero-section h1 {
            font-size: 3.2em;
            margin-bottom: 25px;
            font-weight: 900;
            line-height: 1.3;
            text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
        }

        .hero-section p {
            font-size: 1.25em;
            max-width: 800px;
            margin: 0 auto 40px auto;
            line-height: 1.7;
            opacity: 0.95;
        }

        .hero-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
        }

        .btn-primary {
            display: inline-block;
            background-color: white;
            color: var(--primary-color);
            padding: 15px 35px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1em;
            transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border: none;
        }

        .btn-primary:hover {
            background-color: #e0f0ff;
            color: var(--secondary-color);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        .btn-secondary {
            display: inline-block;
            background: transparent;
            color: white;
            padding: 15px 35px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1em;
            border: 2px solid white;
            transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .btn-secondary:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
            border-color: #e0f0ff;
        }

        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 30px;
            width: 100%;
        }

        .card {
            background: var(--card-background);
            border-radius: 20px;
            box-shadow: 0 8px 25px rgba(var(--primary-color), 0.1), 0 4px 10px rgba(var(--primary-color), 0.05);
            padding: 30px 20px;
            text-align: center;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
            display: flex;
            flex-direction: column;
            justify-content: center;
            user-select: none;
            border: 1px solid var(--border-color-light); /* استخدام متغير الحدود */
            box-sizing: border-box;
        }
        body.dark-mode .card {
            border-color: var(--border-color-light);
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(var(--primary-color), 0.25);
        }

        .card-icon {
            font-size: 70px;
            margin-bottom: 15px;
            color: var(--primary-color);
            transition: color 0.3s ease;
        }

        .card:hover .card-icon {
            color: var(--secondary-color);
        }

        .card-title {
            font-weight: 900;
            font-size: 24px;
            margin-bottom: 10px;
            color: var(--secondary-color);
            transition: color 0.3s ease;
        }

        .card:hover .card-title {
            color: #0d3a90;
        }
        body.dark-mode .card:hover .card-title {
            color: #7ab8f0; /* لون أفتح للهوفر في الوضع الداكن */
        }

        .card-desc {
            font-size: 16px;
            color: var(--text-medium);
            line-height: 1.6;
            flex-grow: 1;
        }

        /* قسم الشهادات */
        .testimonials-section {
            background: var(--section-background);
            padding: 60px 20px;
            text-align: center;
            border-radius: 15px;
            box-shadow: 0 8px 25px var(--shadow-light);
            transition: background-color 0.4s ease, box-shadow 0.4s ease;
        }

        .testimonials-section h2 {
            font-size: 2.5em;
            color: var(--secondary-color);
            margin-bottom: 40px;
            position: relative;
            padding-bottom: 15px;
        }

        .testimonials-section h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--accent-color);
            border-radius: 2px;
            transition: background-color 0.4s ease;
        }

        .testimonial-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            padding: 0 20px; /* لضمان وجود مساحة على الجانبين */
            overflow-x: auto; /* للسماح بالتمرير الأفقي إذا لزم الأمر */
            scroll-snap-type: x mandatory; /* لتحسين تجربة التمرير */
            -webkit-overflow-scrolling: touch; /* لتحسين التمرير على iOS */
        }

        .testimonial-card {
            background: var(--background-light);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 4px 15px var(--shadow-light);
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            scroll-snap-align: start; /* لجعل البطاقة تتوقف عند بداية التمرير */
            min-width: 280px; /* لمنع البطاقات من أن تصبح صغيرة جداً في التمرير الأفقي */
        }

        .testimonial-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        }

        .testimonial-card .student-avatar {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 20px;
            border: 4px solid var(--primary-color);
            box-shadow: 0 0 0 6px rgba(var(--primary-color), 0.2);
            transition: border-color 0.4s ease, box-shadow 0.4s ease;
        }

        .testimonial-card p {
            font-size: 1.1em;
            line-height: 1.7;
            color: var(--text-dark);
            margin-bottom: 15px;
            flex-grow: 1;
        }

        .testimonial-card h4 {
            font-size: 1.2em;
            color: var(--secondary-color);
            margin-bottom: 5px;
            font-weight: 700;
        }

        .testimonial-card span {
            font-size: 0.9em;
            color: var(--text-medium);
        }

        /* قسم الإحصائيات */
        .stats-section {
            background: var(--secondary-color);
            color: white;
            padding: 60px 20px;
            text-align: center;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            align-items: start;
            justify-content: center;
            transition: background-color 0.4s ease, box-shadow 0.4s ease;
        }

        .stats-section h2 {
            grid-column: 1 / -1;
            font-size: 2.5em;
            margin-bottom: 40px;
            position: relative;
            padding-bottom: 15px;
        }

        .stats-section h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: white;
            border-radius: 2px;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 20px;
            box-sizing: border-box;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            transition: transform 0.3s ease, background-color 0.3s ease;
        }
        body.dark-mode .stat-item {
            background: rgba(0, 0, 0, 0.2);
        }

        .stat-item:hover {
            transform: translateY(-5px);
            background-color: rgba(255, 255, 255, 0.2);
        }
        body.dark-mode .stat-item:hover {
            background-color: rgba(0, 0, 0, 0.3);
        }

        .stat-item i {
            font-size: 3.5em;
            color: #ffe0b2;
            margin-bottom: 10px;
            transition: color 0.4s ease;
        }
        body.dark-mode .stat-item i {
            color: #ffcc80;
        }

        .stat-item h3 {
            font-size: 2.8em;
            font-weight: 900;
            margin-bottom: 5px;
            color: white;
            line-height: 1.2;
        }

        .stat-item p {
            font-size: 1.05em;
            color: #e0f0ff;
            margin-top: 0;
        }

        /* قسم الأسئلة الشائعة (FAQ) */
        .faq-section {
            background: var(--section-background);
            padding: 60px 20px;
            text-align: center;
            border-radius: 15px;
            box-shadow: 0 8px 25px var(--shadow-light);
            transition: background-color 0.4s ease, box-shadow 0.4s ease;
        }

        .faq-section h2 {
            font-size: 2.5em;
            color: var(--secondary-color);
            margin-bottom: 40px;
            position: relative;
            padding-bottom: 15px;
        }

        .faq-section h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--accent-color);
            border-radius: 2px;
        }

        .faq-items {
            max-width: 800px;
            margin: 0 auto;
            text-align: right;
            border-top: 1px solid var(--border-color-light);
        }

        .faq-item {
            border-bottom: 1px solid var(--border-color-light);
            padding: 20px 0;
            transition: background-color 0.3s ease;
        }

        .faq-item:hover {
            background-color: rgba(0, 0, 0, 0.02);
        }
        body.dark-mode .faq-item:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }

        .faq-question {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-size: 1.2em;
            font-weight: 700;
            color: var(--text-dark);
            transition: color 0.3s ease;
        }

        .faq-question:hover {
            color: var(--primary-color);
        }

        .faq-question i {
            font-size: 0.8em;
            margin-left: 10px;
            transition: transform 0.3s ease;
        }

        .faq-question.active i {
            transform: rotate(-180deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
            opacity: 0;
            padding-right: 25px; /* لمسافة بادئة للنص */
            font-size: 1.05em;
            color: var(--text-medium);
            margin-top: 10px;
        }

        .faq-answer.show {
            max-height: 200px; /* قيمة تقديرية، يمكن تعديلها حسب أطول إجابة */
            opacity: 1;
        }

        /* قسم الاشتراك في النشرة البريدية */
        .newsletter-signup {
            background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            padding: 60px 20px;
            text-align: center;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            transition: background 0.4s ease, box-shadow 0.4s ease;
        }
        body.dark-mode .newsletter-signup {
            background: linear-gradient(90deg, #4a0d8c 0%, #1a4d9c 100%);
        }

        .newsletter-signup h2 {
            font-size: 2.8em;
            margin-bottom: 20px;
            font-weight: 900;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
        }

        .newsletter-signup p {
            font-size: 1.2em;
            max-width: 700px;
            margin: 0 auto 30px auto;
            line-height: 1.6;
        }

        .newsletter-signup form {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .newsletter-signup input[type="email"] {
            padding: 15px 25px;
            border-radius: 30px;
            border: none;
            width: 100%;
            max-width: 350px;
            font-size: 1.1em;
            color: var(--text-dark);
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
            direction: rtl;
            transition: background-color 0.4s ease, color 0.4s ease;
        }
        body.dark-mode .newsletter-signup input[type="email"] {
            background-color: #3b455c;
            color: #e0e0e0;
        }
        body.dark-mode .newsletter-signup input[type="email"]::placeholder {
            color: #888;
        }

        .newsletter-signup .btn-primary {
            background-color: var(--accent-color);
            color: white;
            padding: 15px 35px;
            border-radius: 30px;
            font-weight: 700;
            cursor: pointer;
            border: none;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .newsletter-signup .btn-primary:hover {
            background-color: #e64a19;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        }

        /* تحسين الفوتر */
        footer {
            background-color: var(--primary-color);
            color: white;
            padding: 40px 20px 20px; /* زيادة المساحة العلوية */
            font-size: 15px;
            margin-top: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 25px; /* زيادة المسافة */
            box-sizing: border-box;
            border-top: 5px solid var(--secondary-color);
            transition: background-color 0.4s ease, border-color 0.4s ease;
        }

        .footer-logo-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            margin-bottom: 20px;
            max-width: 300px;
        }

        .footer-logo {
            font-size: 32px;
            font-weight: 900;
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .footer-logo i {
            font-size: 38px;
        }

        .footer-logo-section p {
            font-size: 0.95em;
            color: #e0f0ff;
            line-height: 1.5;
        }

        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            width: 100%;
            max-width: 1000px;
            text-align: right;
            margin-bottom: 20px;
        }

        .footer-section {
            flex: 1;
            min-width: 200px;
            margin: 10px 20px;
        }

        .footer-section h3 {
            font-size: 1.3em;
            margin-bottom: 15px;
            color: #e0f0ff;
            position: relative;
            padding-bottom: 5px; /* لتوفير مساحة للخط السفلي */
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            right: 0;
            bottom: -5px;
            width: 50px;
            height: 2px;
            background-color: white;
        }

        .footer-section ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-section ul li {
            margin-bottom: 8px;
        }

        .footer-section ul li a {
            color: #d0e0ff;
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 0.95em;
        }

        .footer-section ul li a:hover {
            color: white;
            text-decoration: underline;
        }

        .social-icons {
            margin-top: 15px; /* مسافة بين الروابط والنص */
        }

        .social-icons a {
            color: white;
            font-size: 1.8em;
            margin: 0 10px;
            transition: color 0.3s ease, transform 0.2s ease;
        }

        .social-icons a:hover {
            color: #e0f0ff;
            transform: translateY(-3px) scale(1.1);
        }

        .contact-info p {
            margin: 5px 0;
            color: #d0e0ff;
        }

        .contact-info a {
            color: #d0e0ff;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .contact-info a:hover {
            color: white;
            text-decoration: underline;
        }

        .footer-bottom {
            width: 100%;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding-top: 15px;
            margin-top: 15px;
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .footer-links-bottom a {
            color: white;
            text-decoration: none;
            margin: 0 10px;
            transition: color 0.3s ease;
        }

        .footer-links-bottom a:hover {
            color: #e0f0ff;
        }

        a.card-link {
            color: inherit;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            height: 100%;
            outline-offset: 3px;
        }
        a.card-link:focus-visible {
            outline: 3px solid var(--secondary-color);
            outline-offset: 5px; /* زيادة التباعد لتحسين الرؤية */
            border-radius: 20px; /* لتوافق مع border-radius للبطاقة */
        }

        /* زر الصعود لأعلى */
        #scrollToTopBtn {
            display: none;
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 999;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 55px;
            height: 55px;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
        }

        #scrollToTopBtn:hover {
            background-color: var(--secondary-color);
            transform: translateY(-3px);
        }

        #scrollToTopBtn.show {
            display: flex;
            opacity: 1;
            pointer-events: auto;
        }

        #scrollToTopBtn.hide {
            opacity: 0;
            pointer-events: none;
        }

        /* زر وضع الظلام */
        .dark-mode-toggle {
            background-color: white;
            color: var(--primary-color);
            border: 1px solid var(--primary-color);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 1.2em;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s ease;
            margin-right: 15px; /* لإعطاء مسافة بينه وبين عناصر الـ nav */
        }

        .dark-mode-toggle:hover {
            background-color: var(--primary-color);
            color: white;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        }

        body.dark-mode .dark-mode-toggle {
            background-color: #3b455c;
            color: #f0f0f0;
            border-color: #f0f0f0;
        }
        body.dark-mode .dark-mode-toggle:hover {
            background-color: #f0f0f0;
            color: var(--primary-color);
        }

        /* استجابة للتصغير (Media Queries) */
        @media (max-width: 992px) {
            nav ul {
                gap: 15px;
            }
            .footer-section {
                margin: 10px;
            }
            .testimonial-cards {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            }
            .stats-section {
                grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
                gap: 25px;
            }
        }

        @media (max-width: 768px) {
            header {
                font-size: 20px;
                padding: 15px 20px;
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            nav ul {
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
            }

            .logo {
                font-size: 24px;
            }
            .logo i {
                font-size: 28px;
            }

            .announcement-banner {
                font-size: 1em;
                padding: 12px 15px;
                flex-direction: column;
                gap: 10px;
            }
            .close-banner {
                font-size: 1.5em; /* تصغير حجم زر الإغلاق ليكون أقل إزعاجًا */
            }
            .hero-section h1 {
                font-size: 2.5em;
            }
            .hero-section p {
                font-size: 1.1em;
            }
            .hero-buttons {
                flex-direction: column;
                gap: 15px;
            }
            .btn-primary, .btn-secondary {
                width: 80%;
                max-width: 300px;
            }
            .card-title {
                font-size: 20px;
            }
            .card-icon {
                font-size: 60px;
            }
            .footer-content {
                flex-direction: column;
                align-items: center;
            }
            .footer-section {
                text-align: center;
                margin: 15px 0;
            }
            .footer-section h3::after {
                left: 50%;
                transform: translateX(-50%);
            }
            .stats-section {
                grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
                padding: 40px 15px;
            }
            .stat-item {
                padding: 15px;
            }
            .stat-item i {
                font-size: 3em;
            }
            .stat-item h3 {
                font-size: 2.5em;
            }
            .stat-item p {
                font-size: 0.95em;
            }
            #scrollToTopBtn {
                width: 45px;
                height: 45px;
                font-size: 20px;
                bottom: 20px;
                right: 20px;
            }
            .testimonial-cards {
                grid-auto-columns: minmax(80%, 1fr); /* لجعلها قابلة للتمرير بشكل أفضل على الأجهزة الصغيرة */
                grid-auto-flow: column;
                justify-content: start;
            }
        }

        @media (max-width: 480px) {
            header {
                font-size: 18px;
                padding: 10px 15px;
            }
            .logo {
                font-size: 20px;
            }
            .logo i {
                font-size: 24px;
            }
            nav ul {
                gap: 8px;
            }
            nav ul li a {
                font-size: 0.9em;
            }
            .announcement-banner {
                font-size: 0.9em;
                padding: 10px 10px;
                flex-direction: column;
                gap: 5px;
            }
            .close-banner {
                font-size: 1.2em;
                padding: 0 5px;
            }
            .hero-section {
                padding: 60px 15px;
            }
            .hero-section h1 {
                font-size: 2em;
            }
            .hero-section p {
                font-size: 1em;
            }
            .cards-grid {
                gap: 20px;
                grid-template-columns: 1fr; /* بطاقة واحدة في كل صف على الشاشات الصغيرة جداً */
            }
            .card {
                padding: 25px 15px;
            }
            .footer-section {
                min-width: unset;
                margin: 10px 0;
            }
            .testimonials-section h2, .stats-section h2, .newsletter-signup h2, .faq-section h2 {
                font-size: 2em;
            }
            .stats-section {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            .faq-question {
                font-size: 1.1em;
            }
            .faq-answer {
                font-size: 0.95em;
            }
            .newsletter-signup input[type="email"] {
                padding: 12px 20px;
                font-size: 1em;
            }
            .newsletter-signup .btn-primary {
                padding: 12px 30px;
            }
        }
		/* ====== Content Cards (Latest sections) ====== */
.section-header {
  font-size: 2em;
  color: var(--secondary-color);
  margin: 0 0 25px 0;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}
.section-header::after{
  content:'';
  position:absolute;
  bottom:0; left:50%;
  transform:translateX(-50%);
  width:90px; height:4px;
  background: var(--accent-color);
  border-radius:3px;
}

.content-section{
  background: var(--section-background);
  border-radius: 15px;
  box-shadow: 0 8px 25px var(--shadow-light);
  padding: 28px 18px;
  transition: background-color .4s ease, box-shadow .4s ease;
}

.content-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 22px;
}

.content-card{
  background: var(--card-background);
  border: 1px solid var(--border-color-light);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.content-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 28px var(--shadow-light);
}

.content-thumb{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background:#ddd;
}

.content-body{
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.content-title{
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin: 0;
}

.content-excerpt{
  margin: 0;
  color: var(--text-medium);
  line-height: 1.6;
  font-size: .98rem;
  flex: 1;
}

.btn-more{
  align-self: flex-start;
  text-decoration: none;
  background: var(--accent-color);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: .95rem;
  transition: transform .2s ease, background-color .25s ease, box-shadow .25s ease;
}
.btn-more:hover{
  transform: translateY(-2px);
  background:#e64a19;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

/* تحسين الاستجابة */
@media (max-width:480px){
  .section-header{ font-size:1.6em }
}
.logo .brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.brand__icon {
  display: block;
  border-radius: 8px;        /* إطار ناعم حول الأيقونة */
  background: #ffffff;       /* خلفية بيضاء */
  padding: 4px;              /* مسافة بسيطة داخلية */
}

.brand__text {
  display: flex;
  flex-direction: column;    /* يضع الشعار الفرعي تحت الاسم */
  line-height: 1.2;
}

.brand__name {
  font-weight: 700;
  font-size: 1.2rem;
  color: #FFFFFF; /* الأخضر */
}

.brand__tagline {
  font-size: 0.85rem;
  color: #D4AF37; /* الذهبي */
  font-weight: 600;
}

    