/* ==============================================
   منصة كود الإبداع - التنسيقات الرئيسية (style.css)
   الألوان: #8722C5 (أساسي), #7325AB (Hover)
            #4B158A (داكن), #B29CCE (ناعم),
            #FDFDFE (فاتح), #1F1030 (داكن للفوتر)
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #FDFDFE;
    color: #1a1a2e;
    line-height: 1.5;
}

:root {
    --primary: #8722C5;
    --primary-hover: #7325AB;
    --dark: #4B158A;
    --soft: #B29CCE;
    --light: #FDFDFE;
    --shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.05);
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* ========== الحاويات العامة ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== الأزرار ========== */
.btn-primary, .btn-outline, .btn-signup, .btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--dark);
    color: white;
    box-shadow: 0 4px 12px rgba(75, 21, 138, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-signup {
    background: var(--dark);
    color: white;
}

.btn-login {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
}

/* ========== الهيدر (الصفحة الرئيسية) ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 48px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

/* ========== القائمة الجانبية (الهامبرغر) ========== */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: white;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    text-align: center;
    overflow-y: auto;
}

.sidebar-menu.open {
    transform: translateX(0);
}

.sidebar-menu .close-sidebar {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.sidebar-menu ul {
    list-style: none;
    margin-top: 50px;
}

.sidebar-menu ul li {
    margin: 20px 0;
}

.sidebar-menu ul li a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    display: block;
    padding: 8px;
    border-radius: 40px;
    transition: 0.2s;
}

.sidebar-menu ul li a:hover {
    background: var(--soft);
    color: var(--dark);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    display: none;
    backdrop-filter: blur(2px);
}

.overlay.active {
    display: block;
}

/* ========== القسم الرئيسي (Hero) ========== */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #fff0fc 0%, #ffffff 100%);
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 25px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    border-radius: 60px;
    padding: 12px 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    width: 380px;
}

/* ========== العناوين ========== */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin: 60px 0 40px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary);
    display: block;
    margin: 12px auto 0;
    border-radius: 4px;
}

/* ========== بطاقات "لماذا نحن" ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.why-card {
    background: white;
    border-radius: 40px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -12px rgba(135, 34, 197, 0.2);
}

.why-card i {
    font-size: 2.5rem;
    background: rgba(135, 34, 197, 0.1);
    padding: 15px;
    border-radius: 60px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: 0.2s;
}

.why-card:hover i {
    background: var(--primary);
    color: white;
}

/* ========== شبكة الكورسات ========== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.course-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
}

.course-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.course-info {
    padding: 20px;
}

.course-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.course-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

.btn-details {
    background: var(--soft);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: 0.2s;
}

.btn-details:hover {
    background: var(--primary);
    color: white;
}

/* ========== CTA ========== */
.cta-section {
    background: linear-gradient(135deg, var(--soft), #f0e5fc);
    border-radius: 60px;
    padding: 50px 30px;
    text-align: center;
    margin: 60px 0;
}

/* ========== أيقونة الواتساب العائمة ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background: #128C7E;
}

/* ========== الفوتر ========== */
.main-footer {
    background: #1F1030;
    color: #cdc2e6;
    padding: 50px 0 20px;
    margin-top: 60px;
    border-radius: 48px 48px 0 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 48px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #B29CCE);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.2s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    color: #cdc2e6;
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== لوحة التحكم (القائمة الجانبية والمحتوى) ========== */
.dashboard {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: white;
    border-left: 1px solid rgba(135, 34, 197, 0.1);
    padding: 30px 0 20px;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    will-change: transform;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.logo-sidebar {
    text-align: center;
    margin-bottom: 35px;
}

.logo-sidebar img {
    width: 55px;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin: 8px 15px;
    border-radius: 40px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: #3c3c4a;
    text-decoration: none;
    font-weight: 500;
    border-radius: 40px;
    transition: 0.2s;
}

.nav-item a i {
    width: 24px;
    color: var(--primary);
}

.nav-item.active {
    background: var(--soft);
}

.nav-item.active a {
    color: var(--dark);
    font-weight: 700;
}

.nav-item:not(.active):hover {
    background: #f3edfc;
}

.main-content {
    flex: 1;
    padding: 20px 24px;
    width: 100%;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.menu-icon {
    background: var(--soft);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1.3rem;
    color: var(--dark);
}

.menu-icon:hover {
    background: var(--primary);
    color: white;
}

.welcome-box {
    background: linear-gradient(120deg, #f9f3ff, white);
    border-radius: 28px;
    padding: 12px 24px;
    box-shadow: var(--shadow);
    border-right: 6px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.welcome-box h2 {
    font-size: 1.4rem;
    color: var(--dark);
}

/* ========== الإحصائيات الصغيرة ========== */
.stats-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
    justify-content: center;
}

.stat-mini-card {
    background: linear-gradient(145deg, #ffffff, #f8f4ff);
    border-radius: 32px;
    padding: 20px 18px;
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 12px 25px -8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(135, 34, 197, 0.15);
    position: relative;
    overflow: hidden;
}

.stat-mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--dark));
    border-radius: 32px 0 0 32px;
}

.stat-mini-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(135, 34, 197, 0.25);
    border-color: rgba(135, 34, 197, 0.3);
}

.stat-mini-card i {
    font-size: 2.3rem;
    background: linear-gradient(135deg, rgba(135, 34, 197, 0.12), rgba(75, 21, 138, 0.08));
    padding: 14px;
    border-radius: 28px;
    color: var(--primary);
    transition: 0.2s;
}

.stat-mini-card:hover i {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.stat-mini-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.stat-mini-info p {
    font-size: 0.85rem;
    color: #5a5a6e;
}

/* ========== الرسم البياني ========== */
.chart-wrapper {
    background: white;
    border-radius: 32px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--card-shadow);
}

canvas {
    max-height: 260px;
    width: 100%;
}

/* ========== الحالة الفارغة ========== */
.empty-state {
    background: #f9f6fe;
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    color: #5a5a6e;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* ========== إعدادات المستخدم ========== */
.settings-card {
    background: white;
    border-radius: 32px;
    padding: 28px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
}

.info-row {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ede6f6;
}

.info-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.input-field {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #ddd0eb;
    border-radius: 60px;
    margin: 12px 0;
    font-family: inherit;
}

/* ========== نموذج تسجيل الدخول / إنشاء حساب ========== */
.login-card, .register-card {
    max-width: 450px;
    margin: 50px auto;
    background: white;
    border-radius: 48px;
    padding: 40px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
}

/* ========== المجتمعات (منشورات وتعليقات) ========== */
.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.community-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: 0.2s;
}

.community-card:hover {
    transform: translateY(-5px);
}

.post-form {
    background: white;
    border-radius: 32px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
}

.post-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 28px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    resize: vertical;
    font-family: inherit;
}

.post-card {
    background: white;
    border-radius: 28px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.post-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.post-user-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-user-name {
    font-weight: 700;
}

.post-time {
    font-size: 0.7rem;
    color: #888;
}

.post-content {
    margin: 12px 0;
    white-space: pre-wrap;
}

.post-media img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 16px;
}

.post-actions {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #ede6f6;
}

.like-btn.liked {
    color: var(--primary);
}

/* ========== المودال (التعليقات) ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 32px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

.comment-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.comment-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-text {
    flex: 1;
}

.comment-name {
    font-weight: 700;
    font-size: 0.85rem;
}

.comment-foot {
    font-size: 0.7rem;
    color: #888;
    margin-top: 4px;
}

.add-comment {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.add-comment input[type="text"] {
    flex: 1;
    padding: 10px;
    border-radius: 40px;
    border: 1px solid #ddd;
}

/* ========== الإشعارات ========== */
.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-bell i {
    font-size: 1.4rem;
    color: var(--dark);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    min-width: 18px;
    text-align: center;
}

.notification-dropdown {
    position: absolute;
    top: 45px;
    left: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 300px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1200;
    display: none;
}

/* ========== الدعم الفني (تذاكر) ========== */
.support-container {
    max-width: 900px;
    margin: 0 auto;
}

.ticket-item {
    border-bottom: 1px solid #ede6f6;
    padding: 15px 0;
}

.ticket-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 10px;
}

.status-open { background: #e74c3c20; color: #e74c3c; }
.status-replied { background: #f39c1220; color: #f39c12; }
.status-closed { background: #27ae6020; color: #27ae60; }

.admin-reply {
    background: #e8f8ef;
    border-right: 3px solid #27ae60;
    padding: 10px;
    border-radius: 20px;
    margin-top: 10px;
}

/* ========== الدردشة ========== */
.chat-box {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.chat-messages {
    height: 460px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.message.me {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.other {
    background: #f0e9fa;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-sender {
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.message-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.message:hover .message-actions {
    opacity: 1;
}

.reactions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.reaction-badge {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
    cursor: pointer;
}

.reply-indicator {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 6px;
    cursor: pointer;
}

.chat-input-area {
    display: flex;
    gap: 12px;
    border-top: 1px solid #ede6f6;
    padding: 12px 16px;
    flex-wrap: wrap;
    align-items: center;
}

.chat-input-area input[type="text"] {
    flex: 1;
    border: 1px solid #ddd0eb;
    border-radius: 40px;
    padding: 10px 18px;
}

/* ========== متفرقات ========== */
a {
    text-decoration: none;
}

hr {
    margin: 20px 0;
    border-color: #ede6f6;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== التجاوب (Responsive) ========== */
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
        position: sticky;
        width: 260px;
    }
    .menu-icon {
        display: none;
    }
    .overlay {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .sidebar {
        width: 70%;
        max-width: 300px;
    }
    .main-content {
        padding: 16px;
    }
    .stats-mini {
        gap: 15px;
    }
    .stat-mini-card {
        min-width: 130px;
    }
    .message {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-image img {
        width: 250px;
    }
    .sidebar-menu {
        width: 75%;
    }
    .footer-grid {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    .footer-links li {
        justify-content: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .courses-grid {
        gap: 20px;
    }
}

@media (max-width: 550px) {
    .container {
        padding: 0 16px;
    }
    .hero {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.6rem;
        margin: 40px 0 30px;
    }
    .welcome-box h2 {
        font-size: 1.2rem;
    }
    .stat-mini-card {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .stat-mini-card i {
        margin-bottom: 5px;
    }
    .comment-item {
        flex-wrap: wrap;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* تحسين التمرير */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #B29CCE;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8722C5;
}