 
        :root {
            --primary-color: #2ecc71;
            --secondary-color: rgba(255, 255, 255, 0.31);
            --dark-color: rgb(0, 0, 0);
            --light-color: #ecf0f1;
            --text-color: rgb(255, 255, 255);
            --accent-color: #2ecc71;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Cairo', sans-serif;
            background-color: var(--dark-color);
            color: var(--light-color);
            line-height: 1.6;
            overflow-x: hidden;
        }


        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(108, 99, 255, 0.1), rgba(55, 66, 250, 0.1));
            z-index: -1;
        }


        .top-bar {
            background: rgba(30, 39, 46, 0.8);
            backdrop-filter: blur(10px);
            color: var(--light-color);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo-area {
            display: flex;
            align-items: center;
        }

        .logo-area .logo {
            width: 50px;
            height: 50px;
            margin-left: 15px;
            border-radius: 8px;
            object-fit: cover;
        }

        .platform-name {
            font-size: 1.2rem;
            font-weight: bold;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary-color);
        }

        .admin-btn,
        .login-button {
            background-color: var(--primary-color);
            color: var(--light-color);
            padding: 0.7rem 1.2rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s ease;
        }

        .admin-btn:hover,
        .login-button:hover {
            background-color: var(--secondary-color);
        }

       /* style_home.css */

.side-nav {
    position: fixed;
    top: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    width: 250px;
    height: 100%;
    padding-top: 60px;
    z-index: 101;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.side-nav.open {
    transform: translateX(0);
}

.side-nav .close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.side-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #eee;
    transition: background-color 0.3s ease;
}

.side-nav a:hover {
    background-color: #444;
}

.side-nav .user-info.mobile-version {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #444;
}

.side-nav .user-info.mobile-version .user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 2px solid #eee;
}

.side-nav .user-info.mobile-version .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-nav .user-info.mobile-version .user-name {
    font-size: 1.2em;
    margin-bottom: 5px;
}

@media (min-width: 769px) {
    .side-nav {
        transform: translateX(0);
    }

    .mobile-menu {
     }

    .container {
        margin-right: 250px;
    }
}

.container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
}
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 2rem;
        }

        h2 {
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .students-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .student-card {
            background: rgba(30, 39, 46, 0.7);
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .student-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        .student-card img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 1rem;
            border: 2px solid var(--accent-color);
        }

        .student-name {
            font-weight: bold;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            color: var(--light-color);
        }

        .student-track {
            font-size: 0.9rem;
            color: var(--text-color);
            margin-bottom: 0.8rem;
        }

        .progress-bar-container {
            background-color: #2c3e50;
            border-radius: 5px;
            height: 10px;
            overflow: hidden;
            margin-bottom: 0.5rem;
        }

        .progress-bar {
            background-color: var(--accent-color);
            height: 100%;
            width: 0%;
            border-radius: 5px;
            transition: width 1s ease-in-out;
        }

        .student-grade {
            font-size: 0.9rem;
            color: var(--light-color);
        }

        .center-button {
            text-align: center;
            margin-bottom: 3rem;
        }

        .toggle-button {
            background-color: var(--accent-color);
            color: var(--dark-color);
            padding: 1rem 2rem;
            border-radius: 8px;
            font-size: 1.1rem;
            cursor: pointer;
            border: none;
            transition: background-color 0.3s ease, transform 0.3s ease;
        }

        .toggle-button:hover {
            background-color: #00a884;
            transform: scale(1.05);
        }

        form {
            background-color: rgba(30, 39, 46, 0.7);
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            display: none;
            margin-bottom: 3rem;
        }

        form.show {
            display: block;
            animation: slideDown 0.5s ease forwards;
        }

        form label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--light-color);
            font-weight: bold;
        }

        form input[type="text"],
        form input[type="email"],
        form input[type="tel"],
        form input[type="password"],
        form select,
        form input[type="file"] {
            width: 100%;
            padding: 0.8rem;
            margin-bottom: 1rem;
            border: none;
            border-radius: 6px;
            background-color: #2c3e50;
            color: var(--light-color);
            font-size: 1rem;
        }

        form button[name="regester_1"] {
            background-color: var(--primary-color);
            color: var(--light-color);
            padding: 1rem 2rem;
            border-radius: 8px;
            font-size: 1.1rem;
            cursor: pointer;
            border: none;
            transition: background-color 0.3s ease, transform 0.3s ease;
        }

        form button[name="regester_1"]:hover {
            background-color: var(--secondary-color);
            transform: scale(1.02);
        }


        .why-join {
            background-color: #2c3e50;
            padding: 3rem 2rem;
            border-radius: 12px;
            margin-bottom: 3rem;
            text-align: center;
        }

        .why-join h2 {
            color: var(--accent-color);
            margin-bottom: 2rem;
        }

        .why-join-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .why-join-item {
            text-align: center;
        }

        .why-join-item i {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .why-join-item h3 {
            color: var(--light-color);
            margin-bottom: 0.5rem;
        }

        .why-join-item p {
            color: var(--text-color);
            font-size: 0.9rem;
        }


        .certificates {
            background-color: #34495e;
            padding: 3rem 2rem;
            border-radius: 12px;
            margin-bottom: 3rem;
            text-align: center;
        }

        .certificates h2 {
            color: var(--accent-color);
            margin-bottom: 2rem;
        }

        .certificates-grid {
            display: flex;
            overflow-x: auto;
            gap: 1.5rem;
            padding-bottom: 1.5rem;
        }

        .certificate-card {
            min-width: 250px;
            background-color: #2c3e50;
            border-radius: 8px;
            padding: 1rem;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        }

        .certificate-card img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
        }

        .certificate-card h4 {
            color: var(--light-color);
            margin-top: 0.5rem;
            font-size: 1rem;
        }

        /* تذييل الصفحة */
        footer {
            background-color: var(--dark-color);
            color: var(--text-color);
            text-align: center;
            padding: 1rem 0;
            border-top: 1px solid #2c3e50;
            font-size: 0.8rem;
        }

        /* تصميم الهاتف */
        @media (max-width: 768px) {
            .top-bar {
                padding: 1rem;
            }

            .logo-area .logo {
                width: 40px;
                height: 40px;
                margin-left: 10px;
            }

            .platform-name {
                font-size: 1rem;
            }

            .user-info {
                gap: 10px;
            }

            .user-avatar {
                width: 30px;
                height: 30px;
            }

            .admin-btn,
            .login-button {
                padding: 0.6rem 1rem;
                font-size: 0.9rem;
            }

            .mobile-menu {
                display: block;
            }

            .user-info {
                display: none;
            }

            .container {
                padding: 0 1rem;
                margin-top: 1rem;
            }

            h2 {
                font-size: 1.5rem;
                margin-bottom: 1rem;
            }

            .students-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 1rem;
            }

            .student-card {
                padding: 1rem;
            }

            .student-card img {
                width: 60px;
                height: 60px;
                margin-bottom: 0.5rem;
            }

            .student-name {
                font-size: 0.9rem;
            }

            .toggle-button {
                padding: 0.8rem 1.5rem;
                font-size: 1rem;
            }

            form {
                padding: 1.5rem;
            }

            form label {
                font-size: 0.9rem;
                margin-bottom: 0.3rem;
            }

            form input[type="text"],
            form input[type="email"],
            form input[type="tel"],
            form input[type="password"],
            form select,
            form input[type="file"] {
                padding: 0.6rem;
                margin-bottom: 0.8rem;
                font-size: 0.9rem;
            }

            form button[name="regester_1"] {
                padding: 0.8rem 1.5rem;
                font-size: 1rem;
            }

            .why-join {
                padding: 2rem 1rem;
            }

            .why-join-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .why-join-item i {
                font-size: 1.5rem;
                margin-bottom: 0.8rem;
            }

            .certificates {
                padding: 2rem 1rem;
            }

            .certificates-grid {
                gap: 1rem;
            }

            .certificate-card {
                min-width: 200px;
                padding: 0.8rem;
            }

            .certificate-card h4 {
                font-size: 0.9rem;
            }
        }


        /* تصميم سايبر لقسم معلومات الأكاديمية */
        .cyber-academy-info {
            background-color: #000;
            /* خلفية سوداء */
            padding: 4rem 2rem;
            margin-bottom: 3rem;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 255, 0, 0.2);
            /* ظل أخضر سايبر */
            color: #fff;
            /* نص أبيض */
        }

        .cyber-info-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            /* تقسيم إلى عمودين متساويين */
            gap: 3rem;
            align-items: center;
        }

        .cyber-info-text {
            text-align: right;
        }

        .cyber-title {
            color: #00ff00;
            /* عنوان أخضر سايبر */
            font-size: 2rem;
            margin-bottom: 1.5rem;
            text-shadow: 0 0 10px #00ff00;
            /* تأثير توهج العنوان */
        }

        .cyber-paragraph {
            line-height: 1.8;
            margin-bottom: 1rem;
            color: #ddd;
        }

        .call-to-action {
            color: #00ff00;
            font-weight: bold;
            font-size: 1.1rem;
            text-shadow: 0 0 5px #00ff00;
        }

        .cyber-info-visual {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .glowing-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(0, 255, 0, 0.1), rgba(0, 0, 0, 0.8), rgba(0, 255, 0, 0.1));
            border-radius: 10px;
            z-index: 1;
            opacity: 0.8;
        }

        .glowing-icon {
            color: #00ff00;
            text-shadow: 0 0 20px #00ff00;
            z-index: 2;
        }

        .circuit-pattern {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 150px;
            height: 150px;
            background-image: url('img/circuit_pattern.png');
            /* استبدل بهذا بمسار صورة لنمط دائرة كهربائية */
            background-size: cover;
            opacity: 0.3;
            border-radius: 50%;
            z-index: 0;
        }

        /* تصميم الهاتف لقسم سايبر */
        /* تصميم سايبر متناسق ومصغر لقسم معلومات الأكاديمية */
        .cyber-academy-info {
            background-color: var(--dark-color);
            /* استخدام الخلفية الداكنة للموقع */
            padding: 2rem;
            /* تقليل الحجم الرأسي والأفقي */
            margin-bottom: 2rem;
            /* تقليل الهامش السفلي */
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.4);
            /* ظل أخضر متناسق */
            color: var(--light-color);
            border-left: 5px solid var(--primary-color);
            /* خط جانبي أخضر للتأكيد */
        }

        .cyber-info-container {
            display: flex;
            /* استخدام فليكس لتوزيع العناصر */
            align-items: center;
            gap: 1.5rem;
            /* تقليل المسافة بين العناصر */
            flex-direction: row-reverse;
            /* وضع النص على اليمين */
        }

        .cyber-info-text {
            flex: 2;
            /* إعطاء مساحة أكبر للنص */
            text-align: right;
        }

        .cyber-title {
            color: var(--primary-color);
            /* استخدام الأخضر كلون سايبر */
            font-size: 1.4rem;
            /* تصغير حجم العنوان */
            margin-bottom: 0.5rem;
            /* تقليل الهامش السفلي للعنوان */
            text-shadow: 0 0 6px rgba(var(--primary-color-rgb), 0.7);
            /* توهج أخضر */
        }

        .cyber-paragraph {
            line-height: 1.6;
            margin-bottom: 0.6rem;
            /* تقليل الهامش السفلي للفقرات */
            color: var(--text-color);
            font-size: 0.85rem;
            /* تصغير حجم الفقرات */
        }

        .call-to-action {
            color: var(--primary-color);
            font-weight: bold;
            font-size: 0.95rem;
            text-shadow: 0 0 3px rgba(var(--primary-color-rgb), 0.7);
        }

        .cyber-info-visual {
            flex: 1;
            /* تقليل مساحة العنصر المرئي */
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0.7;
            /* تقليل قوة الظهور */
        }

        .glowing-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--dark-color-rgb), 0.6), rgba(var(--primary-color-rgb), 0.1));
            border-radius: 8px;
            z-index: 1;
            opacity: 0.6;
        }

        .glowing-icon {
            color: var(--primary-color);
            font-size: 2.5rem;
            /* تصغير حجم الأيقونة */
            text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.8);
            z-index: 2;
        }

        .circuit-pattern {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            /* تصغير حجم النمط */
            height: 80px;
            /* تصغير حجم النمط */
            background-image: url('img/circuit_pattern_light.png');
            /* استخدام نسخة أفتح */
            background-size: cover;
            opacity: 0.15;
            /* تقليل قوة الظهور */
            border-radius: 50%;
            z-index: 0;
        }

        /* تصميم الهاتف لقسم سايبر المتناسق والمصغر */
        /* تصميم جانبي مصغر لقسم معلومات الأكاديمية */
        .side-academy-info {
            color: var(--light-color);
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            margin-bottom: 2rem;
            overflow: hidden;
            position: relative;
            /* ضروري لتراكب العنصر الزائف */
            background-image: url("img/academy.png");
            /* إضافة الصورة كخلفية */
            background-size: cover;
            /* لضمان تغطية الصورة للمساحة */
            background-position: center;
            /* توسيط الصورة */
        }

        .side-academy-info::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            /* إضافة تدرج أسود شبه شفاف */
            background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
            /* تدرج من الأعلى إلى شفاف */
            z-index: 1;
            /* وضع التدرج فوق الخلفية */
        }

        .side-info-container {
            display: flex;
            flex-direction: row;
            align-items: center;
            padding: 1.5rem;
            gap: 1.5rem;
            position: relative;
            /* لضمان ظهور المحتوى فوق التدرج */
            z-index: 2;
            /* وضع المحتوى فوق التدرج */
        }

        /* باقي الأنماط كما هي */
        .side-info-text {
            flex: 1;
            text-align: right;
        }

        .side-title {
            color: var(--primary-color);
            font-size: 1.2rem;
            margin-bottom: 0.3rem;
        }

        .side-paragraph {
            font-size: 0.8rem;
            line-height: 1.4;
            margin-bottom: 0.4rem;
        }
 .side-rul {
            font-size: 0.8rem;
            line-height: 1.4;
            margin-bottom: 0.4rem;
            color: #9c9d9d;
        }

        .call-to-action {
            color: var(--accent-color);
            font-weight: bold;
            text-decoration: none;


        }

        .team-logo-cards {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
            position: relative;
            transform: translateX(20px);
            opacity: 0;
            animation: slideIn 0.8s ease-out forwards;
            animation-delay: 0.3s;
        }

        @keyframes slideIn {
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .logo-card {
            width: 70px;
            height: 70px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
            transform: rotate(-10deg);
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
            position: relative;
        }

        .logo-card:hover {
            transform: rotate(0deg) scale(1.05);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        }

        .logo-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        @media (min-width: 769px) {
            .side-info-container {
                align-items: stretch;
                /* لجعل النص والبطاقات بنفس الارتفاع */
            }

            .team-logo-cards {
                flex-direction: row;
                /* عرض أفقي للبطاقات */
                justify-content: flex-start;
                /* محاذاة البطاقات إلى اليسار */
                align-items: center;
                /* توسيط البطاقات عموديًا */
                gap: 1rem;
                /* مسافة بين البطاقات */
                transform: translateX(0);
                /* إزالة الإزاحة الأفقية */
                opacity: 1;
                /* جعل البطاقات مرئية افتراضيًا */
                animation: none;
                /* إزالة تأثير الدخول */
                flex-wrap: wrap;
                /* السماح للبطاقات بالانتقال إلى سطر جديد إذا لزم الأمر */
                padding: 0;
                /* إزالة الحشو */
                margin-left: 1.5rem;
                /* محاذاة مع بداية النص */
            }

            .logo-card {
                width: auto;
                /* السماح بعرض البطاقات حسب المحتوى */
                height: 50px;
                /* تحديد ارتفاع ثابت للبطاقات */
                flex-shrink: 0;
                /* عدم السماح للبطاقات بالانكماش */
                transform: rotate(0deg);
                /* إزالة الميلان */
                margin-bottom: 0;
                /* إزالة الهامش السفلي */
            }

            .logo-card img {
                height: 100%;
                /* جعل ارتفاع الصورة يملأ البطاقة */
                width: auto;
                /* الحفاظ على نسبة العرض إلى الارتفاع */
            }

            .side-info-text {
                flex-basis: 60%;
                /* إعطاء مساحة أكبر للنص */
                padding-left: 0;
                /* إزالة الحشو الأيسر */
            }

            .team-logo-cards {
                flex-basis: 40%;
                /* إعطاء المساحة المتبقية للبطاقات */
                overflow-x: auto;
                /* السماح بالتمرير الأفقي إذا لم تتسع جميع البطاقات */
            }
        }

        /* أنماط الهاتف (أقل من أو يساوي 768 بكسل) - تبقى كما هي */
        @media (max-width: 768px) {
            .side-info-container {
                flex-direction: column;
                align-items: center;
            }

            .side-info-text {
                text-align: center;
            }

            .team-logo-cards {
                flex-direction: row;
                justify-content: center;
                align-items: center;
                gap: 0.5rem;
                transform: translateY(20px);
                opacity: 0;
                animation: slideIn 0.8s ease-out forwards;
                animation-delay: 0.3s;
                margin-left: 0;
            }

            .logo-card {
                width: 50px;
                height: 50px;
                transform: rotate(-5deg);
            }
        }

        /* تعديل تصميم الهاتف */
        @media (max-width: 768px) {
            .side-academy-info {
                margin-bottom: 1.5rem;
            }

            .side-info-container {
                flex-direction: column;
                /* ترتيب عمودي على الهاتف */
                text-align: center;
                background-color: none;
            }

            .side-info-text {
                text-align: center;
                margin-bottom: 1rem;
            }

            .team-logo-cards {
                flex-direction: row;
                /* عرض أفقي للبطاقات على الهاتف */
                justify-content: center;
                /* توسيط البطاقات أفقيًا */
                align-items: center;
                gap: 0.8rem;
                transform: translateY(20px);
                /* تغيير اتجاه الانزلاق على الهاتف */
            }

            @keyframes slideIn {
                to {
                    transform: translateY(0);
                    opacity: 1;
                }
            }

            .logo-card {
                width: 50px;
                height: 50px;
                transform: rotate(-5deg);
                /* تقليل الميلان على الهاتف */
            }
        }

        .side-nav {
            position: fixed;
            top: 0;
            right: -320px;
            /* زيادة العرض قليلاً */
            width: 320px;
            height: 100%;
            background-color: #1e272e;
            /* لون خلفية داكن أكثر احترافية */
            color: #f5f6fa;
            /* لون نص فاتح */
            padding: 2rem;
            transition: right 0.3s ease-in-out;
            z-index: 101;
            box-shadow: -8px 0 20px rgba(0, 0, 0, 0.4);
            /* ظل أعمق */
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            /* محاذاة العناصر إلى اليسار */
        }

        .side-nav.open {
            right: 0;
        }

        .side-nav .close-btn {
            position: absolute;
            top: 1.5rem;
            left: 1.5rem;
            font-size: 2.2rem;
            /* حجم أكبر لزر الإغلاق */
            cursor: pointer;
            color: #dcdde1;
            /* لون أفتح لزر الإغلاق */
            transition: color 0.2s ease;
        }

        .side-nav .close-btn:hover {
            color: var(--primary-color);
            /* لون العلامة التجارية عند التمرير */
        }

        .side-nav .user-info.mobile-version {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 2.5rem;
            /* مساحة أكبر أسفل معلومات المستخدم */
            padding-bottom: 1.5rem;
            border-bottom: 1px solid #34495e;
            /* فاصل أنيق */
            width: 100%;
        }

        .side-nav .user-avatar {
            width: 90px;
            /* حجم أكبر للصورة الرمزية */
            height: 90px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--primary-color);
            /* حد بلون العلامة التجارية */
            margin-bottom: 1rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            /* ظل خفيف للصورة */
        }

        .side-nav .user-name {
            font-size: 1.1rem;
            font-weight: bold;
            color: #fff;
            margin-bottom: 0.5rem;
            text-align: center;
            width: 100%;
        }

        .side-nav a {
            display: block;
            padding: 1rem 0;
            /* زيادة الحشو الرأسي */
            color: #dcdde1;
            text-decoration: none;
            border-bottom: 1px solid #34495e;
            /* فاصل أنيق */
            width: 100%;
            text-align: right;
            transition: color 0.3s ease, padding-left 0.3s ease;
            /* تأثير عند التمرير */
            font-size: 1rem;
        }

        .side-nav a:last-child {
            border-bottom: none;
            /* إزالة الحد السفلي للعنصر الأخير */
        }

        .side-nav a:hover {
            color: var(--primary-color);
            /* لون العلامة التجارية عند التمرير */
            padding-left: 1rem;
            /* إضافة مسافة عند التمرير */
        }

        .side-nav i {
            margin-left: 1rem;
            /* مسافة بين الأيقونة والنص */
            color: var(--accent-color);
            /* لون الأيقونات */
        }

        /* آراء الطلاب */

        /* آراء الطلاب - بطاقات صغيرة مع أنيميشن وتمرير للتعليق الكبير */
        .student-opinions.mini-cards {
            background-color: rgba(30, 39, 46, 0.7);
            padding: 30px 20px;
            text-align: center;
            border-radius: 8px;
            margin-bottom: 30px;
        }

        .student-opinions.mini-cards h2 {
            color: var(--primary-color);
            margin-bottom: 20px;
            font-size: 1.8rem;
        }

        .opinions-slider {
            display: flex;
            overflow-x: auto;
            gap: 15px;
            padding: 10px 0;
        }

        .opinion-card {
            background-color: #2c3e50;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
            color: var(--light-color);
            width: 150px;
            /* عرض أصغر للبطاقة */
            padding: 15px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
            /* إضافة انتقال */
        }

        .opinion-card:hover {
            transform: translateY(-5px) scale(1.05);
            /* تأثير ارتفاع وتكبير عند التمرير */
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
        }

        .profile-image {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            overflow: hidden;
            border: 2px solid var(--accent-color);
            margin-bottom: 10px;
        }

        .profile-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .opinion-text h3 {
            font-size: 1rem;
            font-weight: bold;
            margin-bottom: 5px;
            overflow: hidden;
            /* إخفاء النص الطويل */
            text-overflow: ellipsis;
            /* إضافة ثلاث نقاط للنص المخفي */
            white-space: nowrap;
            /* منع التفاف النص */
        }

        .opinion-text p {
            font-size: 0.8rem;
            line-height: 1.4;
            margin-bottom: 0;
            overflow-y: auto;
            /* إضافة تمرير عمودي إذا تجاوز المحتوى الارتفاع */
            max-height: 50px;
            /* تحديد أقصى ارتفاع للتعليق قبل ظهور شريط التمرير */
            padding-right: 5px;
            /* إضافة مساحة لشريط التمرير */
        }

        /* تخصيص شكل شريط التمرير (اختياري) */
        .opinion-text p::-webkit-scrollbar {
            width: 5px;
        }

        .opinion-text p::-webkit-scrollbar-thumb {
            background-color: #555;
            border-radius: 2px;
        }

        .opinion-text p::-webkit-scrollbar-track {
            background-color: #333;
            border-radius: 2px;
        }

        /* أنيميشن ظهور البطاقات عند التحميل */
        .opinions-slider .opinion-card {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeSlideUp 0.5s ease-out forwards var(--animation-delay, 0s);
        }

        @keyframes fadeSlideUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* تأخير ظهور كل بطاقة */
        .opinions-slider .opinion-card:nth-child(1) {
            --animation-delay: 0.2s;
        }

        .opinions-slider .opinion-card:nth-child(2) {
            --animation-delay: 0.4s;
        }

        .opinions-slider .opinion-card:nth-child(3) {
            --animation-delay: 0.6s;
        }

        .opinions-slider .opinion-card:nth-child(4) {
            --animation-delay: 0.8s;
        }

        /* تصميم الهاتف للبطاقات الصغيرة */
        @media (max-width: 768px) {
            .student-opinions.mini-cards {
                padding: 20px 15px;
            }

            .student-opinions.mini-cards h2 {
                font-size: 1.6rem;
                margin-bottom: 15px;
            }

            .opinions-slider {
                gap: 10px;
                padding: 5px 0;
            }

            .opinion-card {
                width: 120px;
                padding: 10px;
            }

            .profile-image {
                width: 40px;
                height: 40px;
                margin-bottom: 8px;
            }

            .opinion-text h3 {
                font-size: 0.9rem;
                margin-bottom: 3px;
            }

            .opinion-text p {
                font-size: 0.7rem;
                max-height: 40px;
                /* تقليل الارتفاع الأقصى على الهاتف */
            }
        }

        /* ... باقي أكواد CSS لقسم .student-opinions.mini-cards ... */

        /* قسم اكتب رأيك */
        .write-opinion {
            background-color: rgba(30, 39, 46, 0.7);
            padding: 30px 20px;
            text-align: center;
            border-radius: 8px;
            margin-bottom: 30px;
        }

        .write-opinion h2 {
            color: var(--primary-color);
            margin-bottom: 20px;
            font-size: 1.8rem;
        }

        .write-opinion textarea {
            width: 100%;
            min-height: 100px;
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #555;
            border-radius: 4px;
            background-color: #2c3e50;
            color: var(--light-color);
            font-size: 1rem;
        }

        .write-opinion button {
            background-color: var(--accent-color);
            color: var(--dark-color);
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
            transition: background-color 0.3s ease;
        }

        .write-opinion button:hover {
            background-color: var(--primary-color);
        }

        /* تصميم الهاتف لقسم اكتب رأيك */
        @media (max-width: 768px) {
            .write-opinion {
                padding: 20px 15px;
            }

            .write-opinion h2 {
                font-size: 1.6rem;
                margin-bottom: 15px;
            }

            .write-opinion textarea {
                min-height: 80px;
                font-size: 0.9rem;
            }

            .write-opinion button {
                font-size: 0.9rem;
                padding: 8px 15px;
            }
        }

        /* قسم دوراتنا - بطاقات مصغرة بتخطيط Grid */
        .our-courses.mini-grid {
            background-color: rgba(30, 39, 46, 0.7);
            padding: 30px 20px;
            text-align: center;
            border-radius: 8px;
            margin-bottom: 30px;
        }

        .our-courses.mini-grid h2 {
            color: var(--primary-color);
            margin-bottom: 25px;
            font-size: 1.8rem;
        }

        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            /* عرض أصغر للبطاقات */
            gap: 10px;
            /* مساحة أصغر بين البطاقات */
            padding: 0 15px;
        }

        .course-card {
            background-color: rgba(23, 25, 27, 0.2);
            border-radius: 6px;
            /* حواف أكثر حدة قليلاً */
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            /* ظل أخف */
            color: var(--light-color);
            padding: 10px;
            /* مساحة داخلية أصغر */
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .course-card img {
            width: 90%;
            /* تقليل حجم الصورة */
            max-height: 200px;
            /* ارتفاع أقصى أصغر */
            object-fit: contain;
            /* احتواء الصورة داخل المساحة */
            border-radius: 4px;
            margin-bottom: 8px;
            transition: transform 0.3s ease-in-out;
            /* إضافة انتقال لتأثير التكبير */

        }

        .course-card img:hover {
            transform: scale(1.8);
        }

        .course-card h3 {
            font-size: 0.9rem;
            /* حجم خط أصغر للعنوان */
            font-weight: bold;
            margin-bottom: 3px;
            overflow: hidden;
            /* إخفاء النص الطويل */
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .course-card p {
            font-size: 0.7rem;
            /* حجم خط أصغر للوصف */
            line-height: 1.2;
            margin-bottom: 8px;
            overflow: hidden;
            /* إخفاء الوصف الطويل */
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            /* عرض سطرين فقط */
            -webkit-box-orient: vertical;
        }

        .course-card a {
            background-color: var(--accent-color);
            color: var(--dark-color);
            padding: 6px 10px;
            /* مساحة أصغر للزر */
            border-radius: 3px;
            text-decoration: none;
            font-size: 0.8rem;
            transition: background-color 0.3s ease;
            margin-top: auto;
            /* دفع الزر إلى الأسفل */
        }

        .course-card a:hover {
            background-color: var(--primary-color);
        }

        .view-all-courses {
            margin-top: 20px;
        }

        .view-all-courses a {
            background-color: transparent;
            color: var(--primary-color);
            padding: 8px 15px;
            border: 1px solid var(--primary-color);
            /* حد أنحف */
            border-radius: 3px;
            text-decoration: none;
            font-size: 0.8rem;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .view-all-courses a:hover {
            background-color: var(--primary-color);
            color: var(--dark-color);
        }

        /* تصميم الهاتف لبطاقات الدورات المصغرة */
        @media (max-width: 768px) {
            .our-courses.mini-grid {
                padding: 20px 15px;
            }

            .our-courses.mini-grid h2 {
                font-size: 1.6rem;
                margin-bottom: 20px;
            }

            .courses-grid {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                /* عرض أصغر على الهاتف */
                gap: 8px;
                padding: 0 10px;
            }

            .course-card {
                padding: 8px;
            }

            .course-card img {
                max-height: 60px;
                margin-bottom: 5px;
            }

            .course-card h3 {
                font-size: 0.75rem;
                margin-bottom: 2px;
            }

            .course-card p {
                font-size: 0.6rem;
                margin-bottom: 6px;
                -webkit-line-clamp: 1;
            }

            .course-card a {
                font-size: 0.7rem;
                padding: 5px 8px;
            }

            .view-all-courses a {
                font-size: 0.7rem;
                padding: 6px 10px;
            }
        }
      .share-opinion-minimal {
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 10px;
        background-color: rgba(22, 22, 22, 0.3); /* خلفية شفافة قليلاً */
        border-radius: 5px;
        margin-bottom: 15px;
        border: 1px solid rgba(200, 200, 200, 0.3);
    }

    .share-opinion-minimal label {
        color: #555;
        font-size: 0.9em;
        white-space: nowrap; 
    }

    .share-opinion-minimal textarea {
        flex-grow: 1;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        direction: rtl;
        color: #fff;
        font-size: 0.9em;
        background-color: #000;
        resize: none;  
        height: auto; 
    }

    .share-opinion-minimal button {
        background-color:#2ecc71;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 8px 12px;
        font-size: 0.9em;
        cursor: pointer;
        height: auto; /* مطابقة ارتفاع حقل النص تقريبًا */
    }

    .share-opinion-minimal button:hover {
        background-color: #2ecc71;
    }
    .student-opinions-section-fully-transparent {
        padding: 30px;
        margin-bottom: 30px;
    }

    .student-opinions-section-fully-transparent h2 {
        color: #fff;
        text-align: center;
        margin-bottom: 25px;
        font-size: 1.8em;
    }

    .opinions-list-fully-transparent {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .opinion-item-fully-transparent {
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 15px;
        /* خلفية شفافة تمامًا */
        background-color: transparent;
        border: none; /* إزالة الحدود */
    }

    .student-image-fully-transparent {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
     }

   .opinion-content-fully-transparent {
    flex-grow: 1;
    max-width: 400px;   /* الحد الأقصى لعرض نص الرأي */
    overflow-wrap: break-word;  /* لكسر الكلمات الطويلة */
    word-wrap: break-word;
    word-break: break-word;
}


    .opinion-content-fully-transparent h3 {
        color: #2ecc71;
        margin-top: 0;
        margin-bottom: 5px;
        font-size: 1.1em;
    }

    .opinion-content-fully-transparent p {
        color: #fff;
        font-size: 0.95em;
        line-height: 1.6;
        margin-bottom: 0;
    }

 /* تصميم متطور مع تأثيرات */
.login-button-container {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
}

.beautiful-login-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    overflow: hidden;
    transition: all 0.5s ease;
}

.button-text {
    margin-left: 10px;
    transition: all 0.3s ease;
}

.button-icon {
    font-size: 18px;
    transition: all 0.3s ease;
}

.button-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.beautiful-login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

.beautiful-login-button:hover .button-text {
    transform: translateX(5px);
}

.beautiful-login-button:hover .button-icon {
    transform: translateX(-5px);
}

.beautiful-login-button:hover .button-border {
    border-color: white;
}

/* تأثير النبض */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}