:root {
  

 --surface-color: #ffffff;
    /* Card Background */ 

 --border-color: #e0e0e0;
    --font-main: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    
            --primary-color-dark: #3a65d1;
    --text-color: #6c757d;
    
            --white-color: #ffffff;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    --card-radius: 16px;
    
    --text-primary: #121212;
    --surface-color: #ffffff;
    --border-color: #e0e0e0;
}

/* ==============================================
        Modern CSS inspired by Flutter/Material Design
        ==============================================
        */

 .text-secondary {
    color: #FFFFFF;
}

        body {
            background-color: #F8F9FA;
            font-family: var(--font-main);
            color: var(--text-primary);
        }

        /* --- 2. Animations --- */
        .fade-in-up {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 0.6s ease-out forwards;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Apply staggered animation to cards */
        .webinar-card, .category-card {
            animation-delay: calc(0.1s * var(--i));
        }

        /* --- 3. Header/Banner Section --- */
        .site-top-banner {
            background-image: linear-gradient(135deg, var(--primary) 10%, var(--secondary) 100%);
            background-size: cover;
            background-position: center;
            border-bottom-left-radius: var(--border-radius-lg);
            border-bottom-right-radius: var(--border-radius-lg);
            padding: 80px 0;
            text-align: center;
        }
        
        .site-top-banner:after {
            display: none;
        }
        
        .course-cover-container .cover-content:after

 {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.6;
   background-image: linear-gradient(135deg, var(--primary) 10%, var(--secondary) 100%);
 }
 

 .welcome-banner-icon {
    position: absolute;
    right: 107px;
    top: 80%;
    transform: translateY(-50%);
    font-size: 141px;
    opacity: 0.1;
    color: var(--white-color);
    scale: 10;
}

.welcome-banner .btn-primary {
    background-color: var(--white-color);
    color: #4f4f4f;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.account-balance-card {
   background-image: linear-gradient(135deg, var(--primary) 10%, var(--secondary) 100%);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    overflow: hidden;
    padding: 0;
}

.account-balance-card__top {
    background-color: #7d7d7d00;
    color: var(--white-color);
    padding: 20px;
}

.account-balance-card .btn-charge {
    background-color: #ffffff;
    border-color: #a3a3a3;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    color: #383838;
    box-shadow: 0 2px 6px rgb(0 0 0 / 60%);
}

.account-balance-card .btn-charge:hover {
    background-color: #ffffff;
}

        .top-search-categories-form h1 {
            font-size: 2.5rem;
            font-weight: 700;
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        
        .welcome-banner {
    background-image: linear-gradient(135deg, var(--primary) 10%, var(--secondary) 100%);
    border-radius: var(--card-radius);
    padding: 30px;
    color: var(--white-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

        .course-count-badge {
            background-color: rgba(255, 255, 255, 0.2);
            color: white;
            font-weight: 500;
            border-radius: 50px;
            padding: 8px 16px;
            display: inline-block;
            margin-top: 15px;
        }

        .search-input {
            margin-top: 30px;
            background: var(--surface-color);
            border-radius: 50px;
            padding: 8px;
            box-shadow: var(--shadow-md);
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .search-input .form-control {
            border: none;
            background: transparent;
            padding-left: 20px;
            font-weight: 500;
            height: 48px;
        }
        .search-input .form-control:focus {
            box-shadow: none;
        }

        .search-input .btn-primary {
            background-color: var(--primary-color);
            border: none;
            border-radius: 50px;
            padding: 0 25px;
            font-weight: 600;
            height: 48px;
            transition: background-color 0.3s ease;
        }

        .search-input .btn-primary:hover {
            background-color: var(--secondary-color);
        }

        /* --- 4. Categories Section --- */
        .categories-section {
            padding: 50px 0;
        }
        
        /* 1. الحاوية الرئيسية للبطاقات */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* المسافة بين البطاقات */
}

/* 2. تصميم البطاقة الافتراضي (للشاشات الصغيرة والمتوسطة) */
.category-card {
    /* --- الخصائص الأساسية للبطاقة --- */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background: var(--surface-color);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* --- التحكم في عدد البطاقات (3 في الصف) --- */
    /* flex: flex-grow, flex-shrink, flex-basis */
    flex: 0 1 calc(33.333% - 20px); 
    box-sizing: border-box; /* لضمان حساب الحجم بشكل صحيح */
}

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

/* ... باقي خصائص البطاقة مثل .category-icon و h3 تبقى كما هي ... */
.category-card .category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    border: 3px solid var(--surface-color);
    box-shadow: 0 0 0 4px var(--primary);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}


/* 3. للشاشات الكبيرة (6 بطاقات في الصف) */
@media (min-width: 1200px) {
    .category-card {
        flex-basis: calc(16.666% - 20px);
    }
}

/* أضف هذا الكود في نهاية ملف CSS */

/* للشاشات المتوسطة (3 بطاقات) */
@media (min-width: 768px) {
    .category-card {
        flex-basis: calc(33.333% - 20px);
    }
}

/* للشاشات الصغيرة (بطاقتين) */
@media (max-width: 767px) {
    .category-card {
        flex-basis: calc(50% - 20px);
    }
}
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 600;
            margin-bottom: 8px;
            text-align: center;
            color: var(--text-primary);
        }
        
        .section-hint {
            font-size: 1rem;
            color: var(--text-secondary);
            text-align: center;
            margin-bottom: 40px;
        }

        

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

        .category-card .category-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            margin-bottom: 15px;
            border: 3px solid var(--surface-color);
            box-shadow: 0 0 0 4px var(--primary);
        }

        .category-card h3 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
        }
        
        /* For mobile scrolling */
        .trend-categories-swiper {
             padding-bottom: 30px; /* Space for pagination */
        }
        
        /* --- 5. Courses Grid Section --- */
        .courses-section {
            margin-top: 30px;
        }
        
        .courses-section h1 {
            font-size: 1.8rem;
            font-weight: 600;
            color: var(--text-primary) !important;
            margin-bottom: 30px;
        }
        
        /* This is the card you need to create in 'web.default.includes.webinar.grid-card' */
        .webinar-card {
            background-color: var(--surface-color);
            border-radius: var(--border-radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
            text-decoration: none;
        }

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

        .webinar-card__image {
            width: 100%;
            padding-top: 56.25%; /* 16:9 Aspect Ratio */
            background-size: cover;
            background-position: center;
        }

        .webinar-card__content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .webinar-card__title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 10px;
            line-height: 1.4;
            flex-grow: 1;
        }
        
        .webinar-card__info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }
        
        .webinar-card__price {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        /* Swiper Pagination */
        .swiper-pagination-bullet {
            background: var(--primary-light);
            opacity: 1;
        }
        .swiper-pagination-bullet-active {
            background: var(--primary-color);
        }

            --border-radius-lg: 16px;/
        }

     
    
       
        .site-top-banner.search-top-banner {
           background-image: linear-gradient(135deg, var(--primary) 10%, var(--secondary) 100%);
            background-size: cover;
            background-position: center;
            border-bottom-left-radius: var(--border-radius-lg, 16px);
            border-bottom-right-radius: var(--border-radius-lg, 16px);
            padding: 80px 0;
            opacity: 1 !important;
        }
        .site-top-banner.search-top-banner .img-cover {
            display: none;
        }
        .site-top-banner .top-search-categories-form h1 {
            font-size: 2.5rem;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        .site-top-banner .course-count-badge {
            background-color: rgba(255, 255, 255, 0.2);
            font-weight: 500;
            border-radius: 50px;
        }
        .site-top-banner .search-input {
            border-radius: 50px;
            box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
            margin-top: 30px;
        }
        .site-top-banner .search-input .form-control {
            background: transparent;
            height: 48px;
        }
        .site-top-banner .search-input .btn-primary {
            background-image: linear-gradient(135deg, var(--primary) 10%, var(--secondary) 100%);
            height: 48px;
            padding: 0 25px;
            font-weight: 600;
        }

        /* 2. Ã˜ÂªÃ˜ÂµÃ™â€¦Ã™Å Ã™â€¦ Ã˜ÂµÃ™â€ Ã˜Â¯Ã™Ë†Ã™â€š Ã˜Â§Ã™â€žÃ™ÂÃ™â€žÃ˜Â§Ã˜ÂªÃ˜Â± */
        .filters-container {
            background-color: var(--surface-color, #ffffff);
            border-radius: var(--border-radius-lg, 16px);
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
            padding: 25px;
            margin-top: 50px;
            position: relative;
            z-index: 2;
        }
        
        /* 3. Ã˜ÂªÃ˜ÂµÃ™â€¦Ã™Å Ã™â€¦ Ã˜Â¨Ã˜Â·Ã˜Â§Ã™â€šÃ˜Â© Ã˜Â§Ã™â€žÃ™Æ’Ã™Ë†Ã˜Â±Ã˜Â³ (Ã™â€¦Ã™â€  Ã˜Â§Ã™â€žÃ™Æ’Ã™Ë†Ã˜Â¯ Ã˜Â§Ã™â€žÃ™â€¦Ã˜Â±Ã˜Â¬Ã˜Â¹Ã™Å  Ã™â€žÃ™â€žÃ˜Â¨Ã˜Â·Ã˜Â§Ã™â€šÃ˜Â§Ã˜Âª) */
        .webinar-card {
            background-color: var(--surface-color);
            border-radius: var(--border-radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .webinar-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
        }
        .webinar-card__image {
            width: 100%;
            padding-top: 56.25%; /* 16:9 Aspect Ratio */
            background-size: cover;
            background-position: center;
            position: relative;
        }
        .webinar-card__content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .webinar-card__title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 10px;
            line-height: 1.4;
        }
        .webinar-card__info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
        }
        .webinar-card__price {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        /* 4. CSS Ã˜Â§Ã™â€žÃ˜Â®Ã˜Â§Ã˜Âµ Ã˜Â¨Ã˜Â§Ã™â€žÃ˜Â¨Ã˜Â·Ã˜Â§Ã™â€šÃ˜Â© Ã˜Â§Ã™â€žÃ™â€¦Ã™ÂÃ˜ÂµÃ™â€žÃ˜Â© (Ã™â€¦Ã™â€  Ã™Æ’Ã™Ë†Ã˜Â¯ Ã˜Â§Ã™â€žÃ˜Â¨Ã˜Â·Ã˜Â§Ã™â€šÃ˜Â© Ã˜Â§Ã™â€žÃ™â€¦Ã˜Â¹Ã˜ÂªÃ™â€¦Ã˜Â¯) */
        .webinar-card__image-badges {
            position: absolute;
            top: 15px;
            left: 15px;
            z-index: 1;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .webinar-card__notify-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 1;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            transition: all 0.3s ease;
        }
        .webinar-card__notify-btn:hover {
            background-color: white;
            transform: scale(1.1);
        }
        .webinar-card__progress {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background-color: rgba(255, 255, 255, 0.5);
        }
        .webinar-card__progress .progress-bar {
            background-color: var(--secondary-color);
            height: 100%;
            display: block;
            border-radius: 0;
        }
        .webinar-card__category-badge a {
            font-size: 0.8rem;
            color: var(--text-secondary);
            background-color: var(--bg-color);
            padding: 3px 8px;
            border-radius: 8px;
            text-decoration: none;
        }
        .webinar-card__info .btn {
            border-radius: 8px;
            font-weight: 600;
        }
        
             /* 5. Ã˜ÂªÃ˜ÂµÃ™â€¦Ã™Å Ã™â€¦ Ã™â€šÃ˜Â§Ã˜Â¦Ã™â€¦Ã˜Â© Ã˜Â§Ã™â€žÃ™ÂÃ˜Â¦Ã˜Â§Ã˜Âª Ã˜Â§Ã™â€žÃ™ÂÃ˜Â±Ã˜Â¹Ã™Å Ã˜Â© Ã˜Â§Ã™â€žÃ™â€¦Ã™â€ Ã˜Â³Ã˜Â¯Ã™â€žÃ˜Â© (top_filters) */
.dropdowncat {
    position: relative;
    display: inline-block;
    width: 100%; /* Ã™â€žÃ˜Â¬Ã˜Â¹Ã™â€ž Ã˜Â§Ã™â€žÃ™â€šÃ˜Â§Ã˜Â¦Ã™â€¦Ã˜Â© Ã˜ÂªÃ˜Â£Ã˜Â®Ã˜Â° Ã˜Â¹Ã˜Â±Ã˜Â¶ Ã˜Â§Ã™â€žÃ˜Â­Ã˜Â§Ã™Ë†Ã™Å Ã˜Â© */
}

.dropdowncat-btn {
    width: 100%;
    background-color: var(--bg-color, #f4f6f8);
    color: var(--text-secondary, #555);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-main, 'Poppins', sans-serif);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: var(--border-radius-md, 12px);
    cursor: pointer;
    text-align: right; /* Ã™â€¦Ã˜Â­Ã˜Â§Ã˜Â°Ã˜Â§Ã˜Â© Ã˜Â§Ã™â€žÃ™â€ Ã˜Âµ Ã™â€žÃ™â€žÃ™Å Ã™â€¦Ã™Å Ã™â€  */
    position: relative;
    padding-left: 40px; /* Ã™â€¦Ã˜Â³Ã˜Â§Ã˜Â­Ã˜Â© Ã™â€žÃ˜Â£Ã™Å Ã™â€šÃ™Ë†Ã™â€ Ã˜Â© Ã˜Â§Ã™â€žÃ˜Â³Ã™â€¡Ã™â€¦ */
}

/* Ã˜Â¥Ã˜Â¶Ã˜Â§Ã™ÂÃ˜Â© Ã˜Â£Ã™Å Ã™â€šÃ™Ë†Ã™â€ Ã˜Â© Ã˜Â§Ã™â€žÃ˜Â³Ã™â€¡Ã™â€¦ Ã™â€žÃ˜Â£Ã˜Â³Ã™ÂÃ™â€ž */
.dropdowncat-btn::after {
    content: '\25BC'; /* Ã˜Â±Ã™â€¦Ã˜Â² Ã˜Â§Ã™â€žÃ˜Â³Ã™â€¡Ã™â€¦ Ã™â€žÃ˜Â£Ã˜Â³Ã™ÂÃ™â€ž */
    font-size: 12px;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary, #555);
}

.dropdowncat-content {
    display: none;
    position: absolute;
    background-color: var(--surface-color, #ffffff);
    min-width: 100%;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
    border-radius: var(--border-radius-md, 12px);
    z-index: 10;
    margin-top: 5px;
    max-height: 250px; /* Ã™â€žÃ˜ÂªÃ˜Â­Ã˜Â¯Ã™Å Ã˜Â¯ Ã˜Â£Ã™â€šÃ˜ÂµÃ™â€° Ã˜Â§Ã˜Â±Ã˜ÂªÃ™ÂÃ˜Â§Ã˜Â¹ Ã™ÂÃ™Å  Ã˜Â­Ã˜Â§Ã™â€žÃ˜Â© Ã™Ë†Ã˜Â¬Ã™Ë†Ã˜Â¯ Ã˜Â¹Ã™â€ Ã˜Â§Ã˜ÂµÃ˜Â± Ã™Æ’Ã˜Â«Ã™Å Ã˜Â±Ã˜Â© */
    overflow-y: auto; /* Ã˜Â¥Ã˜Â¶Ã˜Â§Ã™ÂÃ˜Â© Ã˜Â´Ã˜Â±Ã™Å Ã˜Â· Ã˜ÂªÃ™â€¦Ã˜Â±Ã™Å Ã˜Â± Ã˜Â¹Ã™â€ Ã˜Â¯ Ã˜Â§Ã™â€žÃ˜Â­Ã˜Â§Ã˜Â¬Ã˜Â© */
}

.dropdowncat-content a {
    color: var(--text-primary, #121212);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.dropdowncat-content a:hover {
    background-color: var(--bg-color, #f4f6f8);
}

/* Ã˜Â¥Ã˜Â¸Ã™â€¡Ã˜Â§Ã˜Â± Ã˜Â§Ã™â€žÃ™â€šÃ˜Â§Ã˜Â¦Ã™â€¦Ã˜Â© Ã˜Â¹Ã™â€ Ã˜Â¯ Ã™â€¦Ã˜Â±Ã™Ë†Ã˜Â± Ã˜Â§Ã™â€žÃ™â€¦Ã˜Â§Ã™Ë†Ã˜Â³ Ã˜Â¹Ã™â€žÃ™â€° Ã˜Â§Ã™â€žÃ˜Â­Ã˜Â§Ã™Ë†Ã™Å Ã˜Â© Ã˜Â§Ã™â€žÃ˜Â±Ã˜Â¦Ã™Å Ã˜Â³Ã™Å Ã˜Â© */
.dropdowncat:hover .dropdowncat-content {
    display: block;
}

    body {
        padding-top: var(--navbar-height);
        /* margin-top: 50px; */
    }

    .app-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background-color: #F7FAFD;
    box-shadow: var(--card-shadow);
    display: flex
;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1020;
        border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
    .app-navbar__right-group, .app-navbar__left-group {
        display: flex; align-items: center; gap: 15px;
    }
    .app-navbar__logo img { height: 40px; object-fit: contain; }
    .app-navbar .drawer-toggler { background: transparent; border: none; padding: 5px; }

    .app-drawer {
        position: fixed; top: 0; right: 0; left: auto;
        width: var(--drawer-width); height: 100%;
        background-color: var(--white-color);
        box-shadow: 0 0 25px rgba(0,0,0,0.1);
        z-index: 1030;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex; flex-direction: column;
    }
    .app-drawer.show { transform: translateX(0); }
    [dir="ltr"] .app-drawer { right: auto; left: 0; transform: translateX(-100%); }
    [dir="ltr"] .app-drawer.show { transform: translateX(0); }

    .drawer-overlay {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1025;
        opacity: 0; visibility: hidden;
        transition: opacity 0.3s ease-in-out;
    }
    .drawer-overlay.show { opacity: 1; visibility: visible; }

    .drawer-header { padding: 20px; text-align: center; border-bottom: 1px solid #f1f1f1; background: var(--bg-color); }
    .drawer-header .user-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .drawer-header .user-name { font-size: 18px; font-weight: 700; color: var(--secondary-color); }
    .drawer-header .user-group { font-size: 14px; color: var(--text-color); }
    .sidebar-user-stats { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 15px; }
    .sidebar-user-stat-item { text-align: center; }
    .sidebar-user-stat-item strong { font-size: 16px; color: var(--secondary-color); }
    .sidebar-user-stat-item span { font-size: 12px; color: var(--text-color); }

    .drawer-menu { flex-grow: 1; overflow-y: auto;}
    .drawer-menu ul { list-style: none; padding: 0; margin: 0; }
    .drawer-menu .sidenav-item a { display: flex; align-items: center; padding: 12px 15px; border-radius: 8px; margin-bottom: 5px; color: var(--secondary-color); font-weight: 500; transition: all 0.2s ease; }
    .drawer-menu .sidenav-item a:hover { background-color: var(--bg-color); color: var(--primary-color); }
    .drawer-menu .sidenav-item.sidenav-item-active > a { background-color: var(--primary-color); color: var(--white-color) !important; box-shadow: 0 4px 12px rgba(70, 117, 244, 0.3); }
    .drawer-menu .sidenav-item.sidenav-item-active > a .sidenav-item-icon,
    .drawer-menu .sidenav-item.sidenav-item-active > a span { color: var(--white-color) !important; }
    .drawer-menu .sidenav-item-icon { width: 20px; height: 20px; margin-left: 15px; }
    [dir="ltr"] .drawer-menu .sidenav-item-icon { margin-left: 15px; margin-right: 0; }

    .sidenav-item-collapse { padding-left: 30px; margin-top: 5px; margin-bottom: 10px; }
    [dir="ltr"] .sidenav-item-collapse { padding-right: 30px; padding-left: 0; }
    .sidenav-item-collapse a { font-size: 14px; padding: 8px 15px !important; color: var(--text-color) !important; }
    .sidenav-item-collapse li.active > a { color: var(--primary-color) !important; font-weight: bold; }

    .sidebar-create-class img { max-width: 100%; border-radius: 10px; }

    
  

        /* Main card container style */
        .modern-card {
            background-color: var(--surface-color);
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-sm);
            padding: 25px;
            height: 100%;
        }
        
        /* Styling for the top activity stats */
        .activity-stat-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 20px;
            background-color: #f9f9f9; /* A slightly different background */
            border-radius: var(--border-radius-lg);
            transition: all 0.3s ease;
        }
        .activity-stat-card:hover {
            transform: translateY(-5px);
            background-color: var(--primary-light);
        }
        .activity-stat-card .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .activity-stat-card .stat-title {
            font-size: 1rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* Styling for the purchase list items */
        .webinar-card-list {
            display: flex;
            flex-direction: column; /* Stack vertically on small screens */
            background: var(--surface-color);
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            transition: box-shadow 0.3s ease;
        }
        @media (min-width: 768px) {
            .webinar-card-list {
                flex-direction: row; /* Horizontal on larger screens */
            }
        }
        .webinar-card-list:hover {
            box-shadow: var(--shadow-md);
        }

        .webinar-card-list .image-box {
            flex-shrink: 0;
            width: 100%; /* Full width on mobile */
            height: 200px; /* Fixed height for mobile */
        }
        @media (min-width: 768px) {
            .webinar-card-list .image-box {
                width: 250px; /* Fixed width on desktop */
                height: auto;
            }
        }
        .webinar-card-list .image-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .webinar-card-list .content-box {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        .webinar-card-list .webinar-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--text-primary);
        }
        .webinar-card-list .webinar-price-box {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .webinar-card-list .webinar-price-box .off {
            font-size: 0.9rem;
            color: var(--text-secondary);
            text-decoration: line-through;
        }
        .webinar-card-list .info-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin: 15px 0;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        .webinar-card-list .actions-row {
            margin-top: auto; /* Push actions to the bottom */
            padding-top: 15px;
            border-top: 1px solid #f1f1f1;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .webinar-card-list .btn-primary {
             background-image: linear-gradient(135deg, var(--primary) 10%, var(--secondary) 100%);
             
        }    
        


    .app-navbar {
        position: fixed; top: 0; left: 0; right: 0;
        height: var(--navbar-height);
        background-color: var(--white-color);
        box-shadow: var(--card-shadow);
        display: flex; align-items: center; justify-content: space-between;
        padding: 10px 20px;
        z-index: 1020;
    }
    .app-navbar__right-group, .app-navbar__left-group {
        display: flex; align-items: center; gap: 15px;
    }
    .app-navbar__logo img { height: 40px; object-fit: contain; }
    .app-navbar .drawer-toggler { background: transparent; border: none; padding: 5px; }

    .app-drawer {
        position: fixed; top: 0; right: 0; left: auto;
        width: var(--drawer-width); height: 100%;
        background-color: var(--white-color);
        box-shadow: 0 0 25px rgba(0,0,0,0.1);
        z-index: 1030;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex; flex-direction: column;
    }
    .app-drawer.show { transform: translateX(0); }
    [dir="ltr"] .app-drawer { right: auto; left: 0; transform: translateX(-100%); }
    [dir="ltr"] .app-drawer.show { transform: translateX(0); }

    .drawer-overlay {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1025;
        opacity: 0; visibility: hidden;
        transition: opacity 0.3s ease-in-out;
    }
    .drawer-overlay.show { opacity: 1; visibility: visible; }

    .drawer-header { padding: 20px; text-align: center; border-bottom: 1px solid #f1f1f1; background: var(--bg-color); }
    .drawer-header .user-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .drawer-header .user-name { font-size: 18px; font-weight: 700; color: var(--secondary-color); }
    .drawer-header .user-group { font-size: 14px; color: var(--text-color); }
    .sidebar-user-stats { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 15px; }
    .sidebar-user-stat-item { text-align: center; }
    .sidebar-user-stat-item strong { font-size: 16px; color: var(--secondary-color); }
    .sidebar-user-stat-item span { font-size: 12px; color: var(--text-color); }

    .drawer-menu { flex-grow: 1; overflow-y: auto;}
    .drawer-menu ul { list-style: none; padding: 0; margin: 0; }
    .drawer-menu .sidenav-item a { display: flex; align-items: center; padding: 12px 15px; border-radius: 8px; margin-bottom: 5px; color: var(--secondary-color); font-weight: 500; transition: all 0.2s ease; }
    .drawer-menu .sidenav-item a:hover { background-color: var(--bg-color); color: var(--primary-color); }
    .drawer-menu .sidenav-item.sidenav-item-active > a { background-color: var(--primary-color); color: var(--white-color) !important; box-shadow: 0 4px 12px rgba(70, 117, 244, 0.3); }
    .drawer-menu .sidenav-item.sidenav-item-active > a .sidenav-item-icon,
    .drawer-menu .sidenav-item.sidenav-item-active > a span { color: var(--white-color) !important; }
    .drawer-menu .sidenav-item-icon { width: 20px; height: 20px; margin-right: 15px; }
    [dir="ltr"] .drawer-menu .sidenav-item-icon { margin-left: 15px; margin-right: 0; }

    .sidenav-item-collapse { padding-left: 30px; margin-top: 5px; margin-bottom: 10px; }
    [dir="ltr"] .sidenav-item-collapse { padding-right: 30px; padding-left: 0; }
    .sidenav-item-collapse a { font-size: 14px; padding: 8px 15px !important; color: var(--text-color) !important; }
    .sidenav-item-collapse li.active > a { color: var(--primary-color) !important; font-weight: bold; }

    .sidebar-create-class img { max-width: 100%; border-radius: 10px; }

    
 

        /* Main card container style */
        .modern-card {
            background-color: var(--surface-color);
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-sm);
            padding: 25px;
            height: 100%;
        }
        
        /* Styling for the top activity stats */
        .activity-stat-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 20px;
            background-color: #f9f9f9; /* A slightly different background */
            border-radius: var(--border-radius-lg);
            transition: all 0.3s ease;
        }
        .activity-stat-card:hover {
            transform: translateY(-5px);
            background-color: var(--primary-light);
        }
        .activity-stat-card .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .activity-stat-card .stat-title {
            font-size: 1rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* Styling for the purchase list items */
        .webinar-card-list {
            display: flex;
            flex-direction: column; /* Stack vertically on small screens */
            background: var(--surface-color);
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            transition: box-shadow 0.3s ease;
        }
        @media (min-width: 768px) {
            .webinar-card-list {
                flex-direction: row; /* Horizontal on larger screens */
            }
        }
        .webinar-card-list:hover {
            box-shadow: var(--shadow-md);
        }

        .webinar-card-list .image-box {
            flex-shrink: 0;
            width: 100%; /* Full width on mobile */
            height: 200px; /* Fixed height for mobile */
        }
        @media (min-width: 768px) {
            .webinar-card-list .image-box {
                width: 250px; /* Fixed width on desktop */
                height: auto;
            }
        }
        .webinar-card-list .image-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .webinar-card-list .content-box {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        .webinar-card-list .webinar-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--text-primary);
        }
        .webinar-card-list .webinar-price-box {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .webinar-card-list .webinar-price-box .off {
            font-size: 0.9rem;
            color: var(--text-secondary);
            text-decoration: line-through;
        }
        .webinar-card-list .info-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin: 15px 0;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        .webinar-card-list .actions-row {
            margin-top: auto; /* Push actions to the bottom */
            padding-top: 15px;
            border-top: 1px solid #f1f1f1;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .webinar-card-list .btn-primary {
             background-color: var(--primary-color);
             border-color: var(--primary-color);
        }  
        
         

        /* Main card container style */
        .modern-card {
            background-color: var(--surface-color);
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-sm);
            padding: 25px;
            height: 100%;
        }
        
        /* Styling for the top activity stats */
        .activity-stat-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 20px;
            background-color: #f9f9f9; /* A slightly different background */
            border-radius: var(--border-radius-lg);
            transition: all 0.3s ease;
        }
        .activity-stat-card:hover {
            transform: translateY(-5px);
            background-color: var(--primary-light);
        }
        .activity-stat-card .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .activity-stat-card .stat-title {
            font-size: 1rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* Styling for the purchase list items */
        .webinar-card-list {
            display: flex;
            flex-direction: column; /* Stack vertically on small screens */
            background: var(--surface-color);
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            transition: box-shadow 0.3s ease;
        }
        @media (min-width: 768px) {
            .webinar-card-list {
                flex-direction: row; /* Horizontal on larger screens */
            }
        }
        .webinar-card-list:hover {
            box-shadow: var(--shadow-md);
        }

        .webinar-card-list .image-box {
            flex-shrink: 0;
            width: 100%; /* Full width on mobile */
            height: 200px; /* Fixed height for mobile */
        }
        @media (min-width: 768px) {
            .webinar-card-list .image-box {
                width: 250px; /* Fixed width on desktop */
                height: auto;
            }
        }
        .webinar-card-list .image-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .webinar-card-list .content-box {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        .webinar-card-list .webinar-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--text-primary);
        }
        .webinar-card-list .webinar-price-box {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .webinar-card-list .webinar-price-box .off {
            font-size: 0.9rem;
            color: var(--text-secondary);
            text-decoration: line-through;
        }
        .webinar-card-list .info-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin: 15px 0;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        .webinar-card-list .actions-row {
            margin-top: auto; /* Push actions to the bottom */
            padding-top: 15px;
            border-top: 1px solid #f1f1f1;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .webinar-card-list .btn-primary {
             background-color: var(--primary-color);
             border-color: var(--primary-color);
        }
        
         

    .app-navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--navbar-height);
        background-color: #F7FAFD;
        box-shadow: var(--card-shadow);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        z-index: 1020;
    }
    .app-navbar__right-group, .app-navbar__left-group {
        display: flex; align-items: center; gap: 15px;
    }
    .app-navbar__logo img { height: 40px; object-fit: contain; }
    .app-navbar .drawer-toggler {background: #ffffff00;border: none;padding: 5px;border-radius: 5px;color: #000000;}

    .app-drawer {
        position: fixed; top: 0; right: 0; left: auto;
        width: var(--drawer-width); height: 100%;
        background-color: var(--white-color);
        box-shadow: 0 0 25px rgba(0,0,0,0.1);
        z-index: 1030;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex; flex-direction: column;
    }
    .app-drawer.show { transform: translateX(0); }
    [dir="ltr"] .app-drawer { right: auto; left: 0; transform: translateX(-100%); }
    [dir="ltr"] .app-drawer.show { transform: translateX(0); }

    .drawer-overlay {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1025;
        opacity: 0; visibility: hidden;
        transition: opacity 0.3s ease-in-out;
    }
    .drawer-overlay.show { opacity: 1; visibility: visible; }

    .drawer-header { padding: 20px; text-align: center; border-bottom: 1px solid #f1f1f1; background: var(--bg-color); }
    .drawer-header .user-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .drawer-header .user-name { font-size: 18px; font-weight: 700; color: var(--secondary-color); }
    .drawer-header .user-group { font-size: 14px; color: var(--text-color); }
    .sidebar-user-stats { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 15px; }
    .sidebar-user-stat-item { text-align: center; }
    .sidebar-user-stat-item strong { font-size: 16px; color: var(--secondary-color); }
    .sidebar-user-stat-item span { font-size: 12px; color: var(--text-color); }

    .drawer-menu { flex-grow: 1; overflow-y: auto;}
    .drawer-menu ul { list-style: none; padding: 0; margin: 0; }
    .drawer-menu .sidenav-item a { display: flex; align-items: center; padding: 12px 15px; border-radius: 8px; margin-bottom: 5px; color: var(--secondary-color); font-weight: 500; transition: all 0.2s ease; }
    .drawer-menu .sidenav-item a:hover { background-color: var(--bg-color); color: var(--primary-color); }
    .drawer-menu .sidenav-item.sidenav-item-active > a {background-color: var(--primary);color: var(--white-color) !important;box-shadow: 0 4px 12px rgba(70, 117, 244, 0.3);}
    .drawer-menu .sidenav-item.sidenav-item-active > a .sidenav-item-icon,
    .drawer-menu .sidenav-item.sidenav-item-active > a span { color: var(--white-color) !important; }
    .drawer-menu .sidenav-item-icon {width: 20px;height: 20px;margin-right: 15px;stroke: #c3c3c3;}
    [dir="ltr"] .drawer-menu .sidenav-item-icon { margin-left: 15px; margin-right: 0; }

    .sidenav-item-collapse { padding-left: 30px; margin-top: 5px; margin-bottom: 10px; }
    [dir="ltr"] .sidenav-item-collapse { padding-right: 30px; padding-left: 0; }
    .sidenav-item-collapse a { font-size: 14px; padding: 8px 15px !important; color: var(--text-color) !important; }
    .sidenav-item-collapse li.active > a { color: var(--primary-color) !important; font-weight: bold; }

    .sidebar-create-class img { max-width: 100%; border-radius: 10px; }

    
    
 /* =================================================== */
/* THIS IS THE MODIFIED AND CORRECTED CODE */
/* =================================================== */

/* Main container styling for the navigation bar */
.navbar-b {
    position: fixed;
    bottom: 15px; /* Margin from bottom */
    left: 15px; /* Margin from left */
    right: 15px; /* Margin from right */
    width: auto;
    height: 70px;
    background-color: #f7fafd;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
    border-radius: var(--border-radius-lg, 16px);
    display: flex;
    align-items: center;
    justify-content: space-around; /* Distributes space evenly */
    z-index: 1;
    padding: 0 5px; /* Reduced horizontal padding to create more space */
}

/* Styling for each navigation item (link) */
.navbar-b a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary, #555);
    transition: color 0.3s ease;
    text-align: center; /* Ensures text is centered */
    
    /* --- Key Fixes --- */
    flex: 1; /* Allows items to grow and shrink equally (replaces flex-grow) */
    min-width: 0; /* Allows items to shrink below their default content size */
    padding: 5px 2px; /* Adjusted padding for better spacing */
}

/* Remove default background for buttons */
.navbar-b a button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit; /* Inherits color from the parent link */
}

/* Icon styling */
.navbar-b a i {
    font-size: 24px; /* Slightly reduced icon size for more space */
    margin-bottom: 3px;
}

/* Text styling under the icon */
.navbar-b a .text {
    font-family: 'Cairo', sans-serif;
    font-size: 10px; /* Slightly reduced font size */
    font-weight: bold;
    margin: 0;
    line-height: 1.2; /* Improved line height for small text */
}
    
     /* --- Stat Cards --- */
        .stat-card {
            background: var(--white-color);
            padding: 20px 15px;
            border-radius: var(--card-radius);
            box-shadow: var(--card-shadow);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            transition: all 0.3s ease;
            text-decoration: none !important;
            height: 100%;
        }
        .stat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1); }
        .stat-card__icon { width: 50px; height: 50px; background-color: rgba(70, 117, 244, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
        
        .stat-card__title { font-size: 14px; font-weight: 600; color: var(--secondary-color); line-height: 1.3; }

        /* --- ØªØ¹Ø¯ÙŠÙ„: ØªØµÙ…ÙŠÙ… Ø¬Ø¯ÙŠØ¯ Ù„Ø¨Ø·Ø§Ù‚Ø© Ø±ØµÙŠØ¯ Ø§Ù„Ø­Ø³Ø§Ø¨ --- */
        .account-balance-card {
            /* background: var(--white-color); */
            border-radius: var(--card-radius);
            box-shadow: var(--card-shadow);
            text-align: center;
            overflow: hidden; /* Ù„Ø¥Ø®ÙØ§Ø¡ Ø£ÙŠ ØªØ¬Ø§ÙˆØ² Ù„Ù„Ø­ÙˆØ§Ù */
            padding: 0; /* Ø¥Ø²Ø§Ù„Ø© Ø§Ù„Ø­Ø´Ùˆ Ø§Ù„Ø¯Ø§Ø®Ù„ÙŠ Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠ */
        }
        .account-balance-card__top {
            background-color: var(--primary-color);
            color: var(--white-color);
            padding: 20px;
        }
        .account-balance-card__top h3 {
            font-size: 16px;
            font-weight: 500;
            opacity: 0.8;
            color: var(--white-color);
            margin: 0;
        }
        .account-balance-card__top .balance-amount {
            font-size: 38px;
            font-weight: 700;
            margin: 5px 0 0;
            line-height: 1.2;
        }
        .account-balance-card__bottom {
            padding: 20px;
        }
        .account-balance-card .btn-charge {
            background-color: #fffffe;
            border-color: var(--primary-color);
            width: 100%;
            padding: 12px;
            font-size: 16px;
            font-weight: 600;
            transition: background-color 0.3s ease;
        }
        .account-balance-card .btn-charge:hover {
            background-color: #FFFFFF;
        }
        .account-balance-card .drawable-section {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }
        .account-balance-card .drawable-section h3 {
            font-size: 14px;
            color: #FFFFFF;
            margin-bottom: 5px;
        }
        .account-balance-card .drawable-section .drawable-amount {
            font-size: 22px;
            font-weight: 600;
            color: #F7FAFD;
        }
        .btn-outline-primary {
    color: #ffffff;
    border-color: var(--primary);
    background-color: var(--primary);
}
        /* -------------------------------------- */
        
        .panel-card {
            background: var(--white-color);
            padding: 25px;
            border-radius: var(--card-radius);
            box-shadow: var(--card-shadow);
        }

        .panel-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; }
        .panel-card-header h3 { font-size: 18px; font-weight: 700; color: var(--secondary-color); margin: 0; }
        
        /* --- ØªØ¹Ø¯ÙŠÙ„: Ø¥ØµÙ„Ø§Ø­ Ø¬Ø°Ø±ÙŠ Ù„Ù„ÙˆØ­Ø© Ø§Ù„Ø¥Ø´Ø¹Ø§Ø±Ø§Øª --- */
        .noticeboard-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px; /* Ù…Ø³Ø§ÙØ© Ø¨ÙŠÙ† Ø§Ù„Ù†Øµ ÙˆØ§Ù„Ø²Ø± */
            padding: 15px 5px; /* ØªÙ‚Ù„ÙŠÙ„ Ø§Ù„Ø­Ø´Ùˆ Ù„ÙŠØªÙ†Ø§Ø³Ø¨ Ù…Ø¹ Ø§Ù„Ø¨Ø·Ø§Ù‚Ø© */
            border-bottom: 1px solid #f5f5f5;
        }
        .noticeboard-item:last-child { border-bottom: none; }
        .noticeboard-item__content { flex: 1; min-width: 0; /* Ù…Ù‡Ù… Ù„Ù„Ø³Ù…Ø§Ø­ Ù„Ù„Ù†Øµ Ø¨Ø§Ù„Ø§Ù„ØªÙØ§Ù */ }
        .noticeboard-item__content .js-noticeboard-title {
            font-weight: 600;
            color: var(--secondary-color);
            margin-bottom: 4px;
            display: block;
            white-space: normal; /* Ø§Ù„Ø³Ù…Ø§Ø­ Ø¨Ø§Ù„Ø§Ù„ØªÙØ§Ù */
        }
        .noticeboard-item__content .font-12 { font-size: 12px; color: var(--text-color); }
        .noticeboard-item__action { flex-shrink: 0; /* Ù…Ù†Ø¹ Ø§Ù„Ø²Ø± Ù…Ù† Ø§Ù„Ø§Ù†Ø¶ØºØ§Ø· */ }
        /* ----------------------------------- */

        .icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
    
    /* ØªÙ†Ø³ÙŠÙ‚ Ø§Ù„Ø²Ø± Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠ "Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠØ©" */
    .navbar-b a button.plus {
        background-image: linear-gradient(135deg, var(--primary) 10%, var(--secondary) 100%);
        color: white;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-20px); /* ÙŠØ±ÙØ¹ Ø§Ù„Ø²Ø± Ù„Ù„Ø£Ø¹Ù„Ù‰ */
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        border: 4px solid var(--surface-color, #ffffff);
    }
    
    .navbar-b a button.plus i {
        font-size: 30px;
        margin: 0;
    }
    
    /* عند مرور الماوس أو عندما يكون الرابط نشطًا */
.navbar-b a:hover .text,
.navbar-b a.active .text {
    /* تغيير لون النص أسفل الزر */
    color: var(--primary); /* استخدم اللون الأساسي أو اللون الذي تفضله */
}

.navbar-b a:hover button,
.navbar-b a.active button {
    /* تغيير لون خلفية الزر */
    
}

.navbar-b a:hover button i,
.navbar-b a.active button i {
    /* تغيير لون الأيقونة داخل الزر لتتناسق مع الخلفية الجديدة */
    color: var(--primary); /* استخدم اللون الأساسي أو اللون الذي تفضله */
}

    /* Ù„Ø§ Ù†ØºÙŠØ± Ù„ÙˆÙ† Ø§Ù„Ø²Ø± Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠ Ø¹Ù†Ø¯ Ø§Ù„Ø­Ø§Ù„Ø© Ø§Ù„Ù†Ø´Ø·Ø© */
    .navbar-b a.active button.plus {
        color: white;
    }
    
    .stat-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 2;
}

.panel-content{margin-bottom: 100px;}



.img-home{
    position: absolute;
    display: flex
    width: 50%;
    height: 50%;
    overflow: hidden;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: 50% 50%;
    object-position: 50% 50%;
    left: 8px;
    /* float: left; */
    top: 30px;
    /* z-index: 2; */
    /* opacity: 0.3; */
}


 /* 1. تصميم شريط التقدم (الخطوات) */
        .settings-stepper {
            background-color: var(--surface-color, #ffffff);
            border-radius: var(--border-radius-lg, 16px);
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
            padding: 20px 25px;
        }
        .settings-stepper .stepper-item {
            display: flex;
            align-items: center;
            color: var(--text-secondary, #555);
            opacity: 0.6;
            transition: opacity 0.3s ease;
        }
        .settings-stepper .stepper-item.active {
            color: var(--primary-color, #4675F4);
            opacity: 1;
            font-weight: 600;
        }
        .settings-stepper .stepper-item .stepper-item-counter {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: var(--bg-color, #f4f6f8);
            color: var(--text-secondary, #555);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px; /* Use margin-left for LTR */
        }
        .settings-stepper .stepper-item.active .stepper-item-counter {
            background-color: var(--primary-color, #4675F4);
            color: white;
        }

        /* 2. تصميم بطاقة الإعدادات الرئيسية */
        .setting-form-container {
            background-color: var(--surface-color, #ffffff);
            border-radius: var(--border-radius-lg, 16px);
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
            padding: 30px;
        }

        /* 3. تصميم حقول الإدخال */
        .setting-form-container .form-control {
            background-color: var(--bg-color, #f4f6f8);
            border-radius: var(--border-radius-md, 12px);
            border: 1px solid var(--border-color, #e0e0e0);
            height: 48px;
        }
         .setting-form-container .form-control:focus {
            background-color: var(--surface-color);
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px var(--primary-light);
        }
        .setting-form-container .input-label {
            font-weight: 500;
            color: var(--text-primary);
        }
        
        /* 4. تصميم أزرار التنقل السفلية */
        .create-webinar-footer {
             background-color: var(--surface-color, #ffffff);
             border-radius: var(--border-radius-lg, 16px);
             box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
             padding: 15px 25px;
        }
        .create-webinar-footer .btn {
            height: 40px;
            min-width: 120px;
        }
        .create-webinar-footer .btn-danger {
            background-color: #dc3545;
            border-color: #dc3545;
        }
        
         /* 1. البانر العلوي */
        .cart-banner {
            padding: 40px 0;
           background: var(--primary, #4675F4);
            border-bottom-left-radius: var(--border-radius-lg, 16px);
            border-bottom-right-radius: var(--border-radius-lg, 16px);
        }
        .cart-banner .payment-hint {
            font-weight: 700;
            font-size: 2rem !important;
        }

        /* 2. تصميم بطاقة كل عنصر في السلة */
        .cart-item-card {
            background: var(--surface-color, #fff);
            border-radius: var(--border-radius-lg, 16px);
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
            padding: 20px;
            display: flex;
            align-items: center;
        }
        .cart-item-card .image-box {
            width: 90px;
            height: 90px;
            flex-shrink: 0;
            border-radius: var(--border-radius-md, 12px);
            overflow: hidden;
        }
        .cart-item-card .item-info {
            flex-grow: 1;
            margin: 0 15px;
        }
        .cart-item-card .item-info h3 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary, #121212);
        }
        .cart-item-card .item-info .item-author {
            font-size: 0.875rem;
            color: var(--text-secondary, #555);
        }
        .cart-item-card .item-price {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--primary-color, #4675F4);
        }
        .cart-item-card .item-remove .delete-action {
            width: 40px;
            height: 40px;
            background-color: var(--bg-color, #f4f6f8);
            color: var(--text-secondary, #555);
            border-radius: 50%;
        }
        .cart-item-card .item-remove .delete-action:hover {
            background-color: #ef5350;
            color: white;
        }

        /* 3. تصميم صندوق ملخص الطلب الجانبي */
        .cart-summary-card {
            background: var(--surface-color, #fff);
            border-radius: var(--border-radius-lg, 16px);
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
            padding: 25px;
            position: sticky;
            top: 25px; /* لجعل الصندوق عائمًا */
        }
        .cart-summary-card .summary-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .cart-summary-card .summary-item .item-label {
            color: var(--text-secondary, #555);
        }
        .cart-summary-card .summary-item .item-value {
            font-weight: 600;
            color: var(--text-primary, #121212);
        }
        .cart-summary-card .total-price .item-value {
            color: var(--primary-color, #4675F4);
            font-size: 1.5rem;
            font-weight: 700;
        }
        .cart-summary-card .btn-checkout {
            width: 100%;
            padding: 12px;
            font-size: 1rem;
        }
        
        /* 4. تصميم صندوق الكوبون */
        .coupon-card {
             background: var(--surface-color, #fff);
            border-radius: var(--border-radius-lg, 16px);
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
            padding: 25px;
        }
        
                /* 1. البانر العلوي */
        .cart-banner {
            padding: 40px 0;
            background: var(--primary-color, #4675F4);
            border-bottom-left-radius: var(--border-radius-lg, 16px);
            border-bottom-right-radius: var(--border-radius-lg, 16px);
        }
        .cart-banner h1 {
            font-weight: 700;
        }

        /* 2. تصميم بطاقات بوابات الدفع */
        .charge-account-radio label {
            background-color: var(--surface-color, #ffffff);
            border: 2px solid var(--border-color, #e0e0e0);
            border-radius: var(--border-radius-lg, 16px);
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
            transition: all 0.3s ease;
            cursor: pointer;
            text-align: center;
        }
        .charge-account-radio label:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
        }
        .charge-account-radio input[type="radio"] {
            display: none; /* إخفاء الراديو الأصلي */
        }
        /* تمييز البطاقة عند اختيارها */
        .charge-account-radio input[type="radio"]:checked + label {
            border-color: var(--primary-color, #4675F4);
            box-shadow: 0 0 0 3px var(--primary-light, #dbe4fd);
        }
        .charge-account-radio p {
            font-size: 1rem;
        }
        
        /* تصميم البطاقة المعطلة (للمحفظة) */
        .disabled-card label {
            opacity: 0.6;
            filter: grayscale(80%);
            cursor: not-allowed;
            border-style: dashed;
        }
        .disabled-card label:hover {
            transform: none;
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
        }

        /* 3. تصميم صندوق ملخص الدفع */
        .payment-summary-container {
            background-color: var(--surface-color, #ffffff);
            border-radius: var(--border-radius-lg, 16px);
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
            padding: 25px;
            margin-top: 45px;
            border: 1px solid var(--border-color, #e0e0e0);
        }
        .payment-alert-box {
            display: flex;
            align-items: center;
            background-color: rgba(245, 124, 0, 0.1); /* لون برتقالي شفاف */
            border-right: 4px solid var(--secondary-color, #F57C00);
            padding: 15px;
            border-radius: 8px;
            color: #b05800;
        }
        .payment-alert-box i {
            margin-left: 15px;
        }
        .total-amount-section .total-label {
            color: var(--text-secondary, #555);
            font-size: 1rem;
        }
        .total-amount-section .total-value {
            color: var(--primary, #4675F4);
            font-size: 2rem;
            font-weight: 700;
        }
        .btn-payment-submit {
            padding: 12px 30px;
            font-size: 1rem;
            font-weight: 600;
        }

        /* 4. تصميم تنبيه الكاش باك */
        .success-transparent-alert {
            background-color: var(--primary-light, #dbe4fd);
            border: 1px solid var(--primary-color, #4675F4);
            border-radius: var(--border-radius-md, 12px);
        }
        .success-transparent-alert__icon {
            background-color: var(--primary-color, #4675F4);
            color: white;
            border-radius: 50%;
            width: 40px;
            height: 40px;
        }
        
        /* 1. تصميم الغلاف العلوي */
        .course-cover-container {
            height: 280px;
            position: relative;
        }
        .course-cover-img {
            height: 100%;
            object-fit: cover;
        }
        .cover-content {
            background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
        }

        /* 2. تصميم ترويسة معلومات الكورس الجديدة */
        .course-details-header {
            background-color: var(--surface-color, #ffffff);
            border-radius: var(--border-radius-lg, 16px);
            box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
            padding: 25px 30px;
            margin-top: 100px; /* لرفع الصندوق فوق الغلاف */
            position: relative;
            z-index: 2;
        }
        .course-details-header .course-title {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-primary);
        }
        .course-details-header .course-info-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 15px;
            color: var(--text-secondary);
        }

        /* 3. تصميم البطاقات الرئيسية */
        .card-container {
            background-color: var(--surface-color, #ffffff);
            border-radius: var(--border-radius-lg, 16px) !important;
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
            overflow: hidden;
            border: 1px solid var(--border-color, #e0e0e0);
        }
        .card-container .course-img {
            position: relative; /* ضروري لتوسيط أيقونة الفيديو */
            border-bottom: 1px solid var(--border-color, #e0e0e0);
        }
        :root {
            --primary-color-rgb: 70, 117, 244;
        }
        
        /* 4. تعديل أيقونة الفيديو الترويجي */
        .course-video-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 64px;
            height: 64px;
            background-color: rgba(var(--primary-color-rgb), 0.7);
            border-radius: 50%;
           
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }
        .course-video-icon:hover {
            transform: translate(-50%, -50%) scale(1.1);
            background-color: rgba(var(--primary-color-rgb), 1);
        }
        .course-video-icon i {
            width: 32px;
            height: 32px;
        }

        /* 5. تصميم التابات (Tabs) */
        .tabs-card {
            padding: 25px;
        }
        .tabs-card .nav-tabs {
            background-color: var(--bg-color, #f4f6f8);
            border-radius: var(--border-radius-lg, 16px) !important;
            padding: 8px !important;
            border-bottom: none;
        }
        .tabs-card .nav-tabs .nav-item { flex-grow: 1; text-align: center; }
        .tabs-card .nav-tabs .nav-link {
            border: none !important;
            color: var(--text-secondary, #555);
            font-weight: 600;
            border-radius: var(--border-radius-md, 12px) !important;
            background: none !important;
            margin: 0 4px;
        }
        .tabs-card .nav-tabs .nav-link.active {
             background-color: var(--primary-color, #4675F4) !important;
             color: white !important;
        }
        
         /* 1. البانر العلوي */
        .cart-banner {
            padding: 40px 0;
            background: var(--primary, #4675F4);
            border-bottom-left-radius: var(--border-radius-lg, 16px);
            border-bottom-right-radius: var(--border-radius-lg, 16px);
        }
        .cart-banner .payment-hint {
            font-weight: 700;
            font-size: 2rem !important;
        }

        /* 2. تصميم بطاقة كل عنصر في السلة */
        .cart-item-card {
            background: var(--surface-color, #fff);
            border-radius: var(--border-radius-lg, 16px);
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
            padding: 20px;
            display: flex;
            align-items: center;
        }
        .cart-item-card .image-box {
            width: 90px;
            height: 90px;
            flex-shrink: 0;
            border-radius: var(--border-radius-md, 12px);
            overflow: hidden;
        }
        .cart-item-card .item-info {
            flex-grow: 1;
            margin: 0 15px;
        }
        .cart-item-card .item-info h3 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary, #121212);
        }
        .cart-item-card .item-info .item-author {
            font-size: 0.875rem;
            color: var(--text-secondary, #555);
        }
        .cart-item-card .item-price {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--primary, #4675F4);
        }
        .cart-item-card .item-remove .delete-action {
            width: 40px;
            height: 40px;
            background-color: var(--bg-color, #f4f6f8);
            color: var(--text-secondary, #555);
            border-radius: 50%;
        }
        .cart-item-card .item-remove .delete-action:hover {
            background-color: #ef5350;
            color: white;
        }

        /* 3. تصميم صندوق ملخص الطلب الجانبي */
        .cart-summary-card {
            background: var(--surface-color, #fff);
            border-radius: var(--border-radius-lg, 16px);
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
            padding: 25px;
            position: sticky;
            top: 25px; /* لجعل الصندوق عائمًا */
        }
        .cart-summary-card .summary-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .cart-summary-card .summary-item .item-label {
            color: var(--text-secondary, #555);
        }
        .cart-summary-card .summary-item .item-value {
            font-weight: 600;
            color: var(--text-primary, #121212);
        }
        .cart-summary-card .total-price .item-value {
            color: var(--primary-color, #4675F4);
            font-size: 1.5rem;
            font-weight: 700;
        }
        .cart-summary-card .btn-checkout {
            width: 100%;
            padding: 12px;
            font-size: 1rem;
        }
        
        /* 4. تصميم صندوق الكوبون */
        .coupon-card {
            background: var(--surface-color, #fff);
            border-radius: var(--border-radius-lg, 16px);
            box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.07));
            padding: 25px;
        }
         .coupon-card .form-control {
            background-color: var(--bg-color, #f4f6f8);
            border-radius: var(--border-radius-md, 12px);
            border: 1px solid var(--border-color, #e0e0e0);
            height: 48px;
        }
        .coupon-card .btn-primary {
            height: 48px;
        }
        
          /* تلميح بصري (تأثير التلاشي) لسلايدر الفئات */
            .trend-categories-swiper {
                position: relative;
            }

            .trend-categories-swiper::after {
                content: '';
                position: absolute;
                top: 0;
                right: 0; 
                width: 60px;
                height: 100%;
                background: linear-gradient(to left, var(--bg-color, #f4f6f8), transparent);
                pointer-events: none;
                z-index: 2;
            }

            /* إصلاح لمشكلة ظهور عناصر السلايدر تحت بعضها على الهواتف */
            .trend-categories-swiper .swiper-wrapper {
                display: flex;
                align-items: stretch; 
            }
            .trend-categories-swiper .swiper-slide {
                height: auto; 
                flex-shrink: 0;
            }
            .trend-categories-swiper .swiper-slide .category-card {
                height: 100%;
            }
            
            /* تصميم نقاط التنقل الافتراضي */
            .trend-categories-swiper-pagination .swiper-pagination-bullet {
                background: #aeaeae;
            }
            .trend-categories-swiper-pagination .swiper-pagination-bullet-active {
                background: var(--primary-color, #4675F4);
            }
