﻿/*===========================================================
  August - Professional Stylesheet by Gemini
  Version: 1.0
  Date: July 10, 2025
===========================================================*/

/* --- 1. Global Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;700&family=Tajawal:wght@400;700&display=swap');

:root {
    /* Palette */
    --color-primary-dark: #1e293b; /* أزرق داكن للخلفيات والأقسام */
    --color-primary-light: #334155; /* أزرق أفتح للتمييز والتأثيرات */
    --color-gradient-start: #2a3a8a; /* بداية التدرج اللوني الرئيسي */
    --color-gradient-end: #f0745b; /* نهاية التدرج اللوني الرئيسي */
    --color-accent-gold: #ffd700; /* ذهبي للمسات البارزة والروابط */
    --color-text-light: #e2e8f0; /* لون النصوص الفاتح الرئيسي */
    --color-text-muted: #94a3b8; /* لون النصوص الخافتة والثانوية */
    --color-surface-white: #ffffff; /* أبيض للبطاقات والخلفيات الفاتحة */
    --color-text-dark: #2c3e50; /* لون النصوص الداكن الرئيسي */
    /* Typography */
    --font-headings: 'El Messiri', sans-serif; /* خط العناوين الفخم */
    --font-body: 'Tajawal', sans-serif; /* خط النصوص الأنيق */
    /* Effects & Layout */
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition-fast: all 0.2s ease-in-out;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(110deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--color-text-light);
    direction: rtl;
    line-height: 1.8;
    overflow-x: hidden;
    text-align: right;
}

/* --- 2. Layout & Containers --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* لتوسيط محتوى الصفحة على الموبايل كما طلبته سابقًا */
form {
    margin: 0 auto;
}

/* --- 3. Navbar --- */
.navbar {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-surface-white);
    text-decoration: none;
}

    .navbar-brand .highlight {
        color: var(--color-accent-gold);
    }

.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin: 0 10px;
}

.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

    .nav-link:hover, .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--color-surface-white);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: var(--color-accent-gold);
        transition: var(--transition-smooth);
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 40%;
    }

.login-btn .nav-link {
    background: var(--color-accent-gold);
    color: var(--color-text-dark);
}

    .login-btn .nav-link:hover {
        background: var(--color-surface-white);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }

    .login-btn .nav-link::after {
        content: none;
    }

.navbar-toggler {
    display: none; /* يظهر فقط في الموبايل */
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* --- 4. Hero Section --- */
.hero-section {
    text-align: center;
    padding: 60px 20px 80px 20px;
}

.hero-logo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 30px 5px rgba(255, 215, 0, 0.4);
    transition: var(--transition-smooth);
}

.hero-logo:hover img {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 45px 10px rgba(255, 215, 0, 0.6);
}

.hero-title {
    font-family: var(--font-headings);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-surface-white);
    margin: 20px 0 10px 0;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

    .hero-title .highlight {
        color: var(--color-accent-gold);
    }

/* --- 5. Courses Section --- */
.courses-section {
    padding: 120px 0;
    background: var(--color-primary-dark);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.section-title {
    font-family: var(--font-headings);
    font-size: 3rem;
    color: var(--color-surface-white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--color-accent-gold);
        border-radius: 2px;
    }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.course-card {
    background: var(--color-surface-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    overflow: hidden;
}

    .course-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-large);
    }

.course-image-container {
    height: 200px;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image {
    transform: scale(1.1);
}

.course-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-name {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin: 0 0 10px;
    min-height: 50px;
}

.course-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.course-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .course-date i {
        color: var(--color-gradient-end);
    }

.course-price {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- 6. Footer --- */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

    .site-footer .highlight {
        font-weight: bold;
        color: var(--color-accent-gold);
    }

/* --- 7. Responsive Design --- */
@media (max-width: 992px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--color-primary-dark);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 15px 0;
    }

        .navbar-collapse.active {
            display: flex;
        }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }
}
.lang-item-mobile {
    display: none;
}

/* 2. داخل الميديا كويري الخاصة بالموبايل، قم بإظهاره */
@media (max-width: 992px) {
    .site-header .lang-toggle-btn {
        display: none;
    }

    /* اجعل زر اللغة في قائمة الموبايل يظهر */
    .lang-item-mobile {
        display: list-item; /* أو block */
    }

    /* ... باقي الأنماط ... */
}