/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ============================================
      === لوحة الألوان الجديدة (من الصورة) ===
      ============================================
    */
    --primary-blue: #3A589B;  /* الأزرق الأساسي (للتنقل والعناوين) */
    --primary-gold: #B89B5E;  /* الذهبي (للأزرار والفوتر) */
    --primary-red: #D9534F;   /* الأحمر (لأزرار التسجيل) */
    --light-bg: #EAF1FB;    /* لون الخلفية الأزرق الفاتح */
    --text-dark: #333333;    /* لون النصوص الغامق */
    --text-light: #FFFFFF;   /* لون النصوص الفاتح (الأبيض) */
    --text-grey: #888888;    /* لون النصوص الفرعية */
    
    /* ============================================
      === ربط الألوان الجديدة بالمتغيرات القديمة ===
      ============================================
    */
    --primary-color: var(--primary-blue); /* كان #f0f2f7 */
    --primary-dark: #2F4E86; /* هذا قريب من الأزرق، سأبقيه */
    --secondary-color: #6c757d; /* Gray */
    --accent-color: var(--primary-gold); /* Gold/Ochre */
    --success-color: #28a745; /* Green */
    --warning-color: #ffc107; /* Yellow */
    --danger-color: var(--primary-red); /* Red Accent */
    
    --light-text: var(--text-dark); /* تغيير النص الأساسي للأسود */
    --light-card-bg: #ffffff;
    --light-border: #dee2e6;
    --white: #ffffff;
    
    /* (باقي المتغيرات المساعدة كما هي) */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    --font-primary: 'Cairo', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    --transition: all 0.3s ease;
}

/* ============================================
  === تم إلغاء الوضع المظلم بالكامل ===
  ============================================
*/

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--light-bg); /* تطبيق الخلفية الفاتحة من الصورة */
    overflow-x: hidden;
}

/* Headings use dark text color globally */
h1, h2, h3 {
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Enrollment Requests Styles */
.enrollments-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.enrollments-card .card-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Enrollment Stats */
.enrollment-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--gray-100); /* تعديل طفيف ليناسب الثيم الجديد */
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: var(--primary-blue); /* استخدام الأزرق الجديد */
    color: var(--text-light); /* استخدام الأبيض */
    border-radius: var(--border-radius);
}

.stat-item .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.enrollment-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.enrollment-filters input,
.enrollment-filters select {
    padding: 10px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 14px;
    min-width: 200px;
}

.status-tabs {
    display: flex;
    gap: 5px;
    background: var(--gray-100);
    padding: 5px;
    border-radius: var(--border-radius);
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary-blue); /* استخدام الأزرق الجديد */
    color: var(--text-light);
}

.tab-btn:hover:not(.active) {
    background: var(--gray-200);
}

.enrollments-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.enrollment-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.enrollment-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.enrollment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.enrollment-info h4 {
    color: var(--gray-800);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.enrollment-info p {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 3px;
}

.enrollment-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.enrollment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
}

.detail-value {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
}

.enrollment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger-color); /* استخدام الأحمر الجديد */
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-500);
    color: white;
}

.btn-secondary:hover {
    background: var(--gray-600);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-100);
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: 20px;
    font-weight: 600;
}

.close {
    color: var(--gray-400);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--gray-600);
}

.modal-body {
    padding: 25px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Student Details Modal Styles */
.student-details {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.student-details h3 {
    margin: 0 0 15px 0;
    color: var(--primary-blue); /* استخدام الأزرق الجديد */
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--gray-700);
    min-width: 120px;
}

.detail-value {
    color: var(--gray-800);
    text-align: left;
    flex: 1;
}

.receipt-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.receipt-section h3 {
    margin: 0 0 15px 0;
    color: var(--success-color);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.receipt-image-container {
    text-align: center;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 2px dashed var(--gray-300);
}

.receipt-image-container img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

.receipt-image-container img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.payment-details {
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.payment-details h3 {
    margin: 0 0 15px 0;
    color: var(--warning-color);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue); /* استخدام الأزرق الجديد */
    box-shadow: 0 0 0 3px rgba(58, 88, 155, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .enrollment-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .enrollment-filters input,
    .enrollment-filters select {
        min-width: auto;
        width: 100%;
    }
    
    .status-tabs {
        justify-content: center;
    }
    
    .enrollment-details {
        grid-template-columns: 1fr;
    }
    
    .enrollment-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
}

.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-btn {
    background: var(--primary-blue); /* استخدام الأزرق الجديد */
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.lang-btn:hover {
    background: var(--primary-dark); /* استخدام الأزرق الأغمق */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Header */
.header {
    background: var(--primary-blue); /* استخدام الأزرق الجديد */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(58, 88, 155, 0.25);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden; 
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.navbar {
    padding: 1rem 0;
    position: relative;
    z-index: 2;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(184, 155, 94, 0.4) 0%, transparent 70%); /* استخدام الذهبي */
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.logo:hover .logo-img {
    transform: scale(1.05);
    border-color: rgba(184, 155, 94, 0.8); /* استخدام الذهبي */
}

.logo-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-link span {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover i {
    transform: scale(1.1);
    color: var(--primary-gold); /* استخدام الذهبي */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem; /* Space between search and other actions */
}

/* تم حذف أزرار الثيم */
.theme-btn { display: none; }
#theme-toggle { display: none; }


.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(184, 155, 94, 0.5); /* استخدام الذهبي */
    box-shadow: 0 0 20px rgba(184, 155, 94, 0.3); /* استخدام الذهبي */
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 0.9rem;
    width: 200px;
    padding: 5px 10px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--primary-gold); /* استخدام الذهبي */
    transform: scale(1.1);
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-login, .btn-register {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f97316 100%); /* استخدام الذهبي */
    color: var(--white);
    border-color: var(--primary-gold);
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.btn-register:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(184, 155, 94, 0.4); /* استخدام الذهبي */
}

.btn-register:hover::before {
    left: 100%;
}

/* Profile Section Styles */
.profile-section {
    position: relative;
}

.profile-dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    font-weight: 500;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.profile-btn i:first-child {
    font-size: 1.2rem;
}

.profile-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.profile-dropdown.active .profile-btn i:last-child {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--gray-200);
}

.profile-dropdown.active .profile-btn i:last-child {
    transform: rotate(180deg);
}

.profile-dropdown.active .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    margin: 4px 8px;
}

.profile-menu-item:hover {
    background: var(--gray-100);
    color: var(--primary-blue); /* استخدام الأزرق الجديد */
    transform: translateX(5px);
}

.profile-menu-item i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.profile-menu-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 8px 16px;
}

.profile-menu-item:last-child {
    color: var(--danger-color);
}

.profile-menu-item:last-child:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.notifications {
    position: relative;
}

.notification-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.notification-btn i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(184, 155, 94, 0.5); /* استخدام الذهبي */
    transform: scale(1.05);
}

.notification-btn:hover i {
    color: var(--primary-gold); /* استخدام الذهبي */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger:hover span {
    color: var(--primary-gold); /* استخدام الذهبي */
}

/* Hero Section */
/* تم تعديل القسم ليلائم الثيم الأزرق الجديد */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white); /* التأكد أن العناوين هنا بيضاء */
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(184, 155, 94, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: #a6884f; /* slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 155, 94, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue); /* استخدام الأزرق الجديد */
}

/* Floating Cards Animation */
.floating-cards {
    position: relative;
    height: 400px;
}

.card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.card i {
    font-size: 2rem;
    color: var(--primary-gold); /* استخدام الذهبي */
}

.card span {
    font-weight: 600;
    text-align: center;
}

.card-1 {
    top: 20px;
    right: 50px;
    animation-delay: 0s;
}

.card-2 {
    top: 150px;
    right: 20px;
    animation-delay: 2s;
}

.card-3 {
    top: 280px;
    right: 80px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--light-bg);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--gray-800);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)); /* استخدام الأزرق */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Courses Section */
.courses {
    padding: 80px 0;
    background: var(--light-bg);
}

.courses h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Course Categories */
.course-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--white);
    color: var(--gray-600);
    border: 2px solid var(--gray-200);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.category-btn:hover {
    background: var(--primary-blue); /* استخدام الأزرق */
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-btn.active {
    background: var(--primary-blue); /* استخدام الأزرق */
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Categories Section Styles */
.categories-section {
    margin-bottom: 60px;
    padding: 80px 0;
    background: var(--white); /* تغيير الخلفية للأبيض لتناسب الثيم الفاتح */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-gold)); /* استخدام الأزرق والذهبي */
    border-radius: 2px;
}

.section-header p {
    color: var(--text-grey);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-gold)); /* استخدام الأزرق والذهبي */
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.category-card:hover .category-title {
    color: var(--primary-blue);
}

.category-description {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.courses-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #059669;
    font-weight: 500;
    background: #ecfdf5;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
}

.courses-count i {
    font-size: 0.8rem;
}

/* Loading States */
#loadingCategories {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-grey);
}

#loadingCategories i {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* View All Button */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)); /* استخدام الأزرق */
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 88, 155, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 88, 155, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        padding: 25px 20px;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .categories-section {
        padding: 60px 0;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .category-description {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Featured Courses Section */
.featured-courses-section {
    padding: 80px 0;
    background: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-grid .card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dashboard-grid .card-header {
    padding: 30px;
    text-align: center;
    color: white;
    font-size: 48px;
}

.dashboard-grid .card-header i {
    opacity: 0.9;
}

.dashboard-grid .card-body {
    padding: 30px;
}

.dashboard-grid .card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.dashboard-grid .card-body p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.dashboard-grid .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #718096;
}

.dashboard-grid .card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dashboard-grid .card-footer {
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.dashboard-grid .card-footer .btn {
    width: 100%;
}

.course-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-card .course-image {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)); /* استخدام الأزرق */
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-card .course-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
}

.course-card .course-image i {
    font-size: 3rem;
    color: var(--white);
    z-index: 2;
    position: relative;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gold); /* استخدام الذهبي */
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
    box-shadow: var(--shadow-md);
}

.course-badge.new {
    background: var(--success-color);
}

.course-badge.featured {
    background: var(--warning-color);
}

.course-badge.diploma {
    background: var(--danger-color);
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
}

.course-content p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.course-meta span {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-meta .duration {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.course-meta .level {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #7b1fa2;
}

.course-meta .price {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #2e7d32;
    font-weight: 600;
}

.course-dates {
    margin-bottom: 20px;
}

.course-dates small {
    color: var(--gray-500);
    font-size: 13px;
    display: block;
    margin-top: 5px;
}

.btn-enroll {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)); /* استخدام الأزرق */
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-enroll::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-enroll:hover::before {
    left: 100%;
}

.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Course Card Animations */
.course-card[data-category]:not([data-category="all"]) {
    transition: all 0.3s ease;
}

.course-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--primary-blue); /* استخدام الأزرق */
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-gold); /* استخدام الذهبي */
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--primary-gold); /* استخدام الذهبي */
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--light-bg);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-dark); /* استخدام الأزرق الأغمق */
    transform: translateY(-3px);
}

/* Optional aliases to match provided class names */
.button-primary {
    background: var(--primary-gold);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
}

.button-enroll-now {
    background: var(--primary-red);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* تعديل لون الخط */
    padding-top: 2rem;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
}

.close:hover {
    color: var(--gray-800);
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue); /* استخدام الأزرق */
    box-shadow: 0 0 0 3px rgba(58, 88, 155, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--primary-blue); /* استخدام الأزرق */
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark); /* استخدام الأزرق الأغمق */
    transform: translateY(-2px);
}

/* Social Login Styles */
.social-login {
    margin-top: 1.5rem;
}

.divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-300);
}

.divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.g_id_signin {
    margin-top: 1rem;
    width: 100% !important;
}

.g_id_signin > div {
    width: 100% !important;
}

.g_id_signin iframe {
    width: 100% !important;
}

/* Search Results Styles */
.search-stats {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    display: none;
}

.search-results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.results-count {
    background: var(--primary-blue); /* استخدام الأزرق */
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-clear-search {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-clear-search:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-clear-search i {
    margin-left: 5px;
}

/* No Results Message */
.no-results-message {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
    grid-column: 1 / -1;
}

.no-results-content i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.no-results-content h3 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-results-content p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Search Hidden Animation */
.course-card.search-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Enhanced Search Box */
.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue); /* استخدام الأزرق */
    box-shadow: 0 0 0 3px rgba(58, 88, 155, 0.1);
}

.search-box .search-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue); /* استخدام الأزرق */
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box .search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .floating-cards {
        height: 200px;
    }
    
    .card {
        position: relative;
        display: inline-flex;
        margin: 10px;
    }
    
    .features-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.hidden { display: none; }
.visible { display: block; }

/* Course Video Preview */
.course-video {
    margin-bottom: 15px;
}

.btn-preview {
    width: 100%;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.btn-preview:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-preview i {
    font-size: 12px;
}

/* View Students Button */
.btn-view-students {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.btn-view-students:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-view-students i {
    font-size: 0.9rem;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.video-modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)); /* استخدام الأزرق */
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--white); /* التأكد أن النص أبيض */
}

.video-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.video-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
    background: var(--gray-50);
}

.video-info h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.video-info p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 15px;
}

.video-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.video-feature {
    background: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-feature i {
    color: var(--primary-blue); /* استخدام الأزرق */
}