/* Course Bundle Page Styles - RTL */

html[dir="rtl"] .course-bundle-page {
    padding: 50px 0;
    min-height: 70vh;
}

html[dir="rtl"] .coming-soon-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

html[dir="rtl"] .coming-soon-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

html[dir="rtl"] .coming-soon-icon {
    margin-bottom: 30px;
}

html[dir="rtl"] .coming-soon-content h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .coming-soon-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .coming-soon-features {
    margin-top: 50px;
}

html[dir="rtl"] .feature-item {
    padding: 30px 20px;
    text-align: center;
    background: var(--card-secondary-bg);
    border-radius: 15px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
}

html[dir="rtl"] .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

html[dir="rtl"] .feature-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

html[dir="rtl"] .feature-item h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .feature-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: none;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: var(--primary-hover);
}

html[dir="rtl"] .bundle-search-section {
    margin-bottom: 40px;
}

html[dir="rtl"] .search-result-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .s_search {
    position: relative;
    max-width: 350px;
}

html[dir="rtl"] .s_search .form-control {
    padding-left: 45px;
    padding-right: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 45px;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    text-align: right;
}

html[dir="rtl"] .s_search span {
    position: absolute;
    left: 12px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

html[dir="rtl"] .s_search span img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

html[dir="rtl"] .sbundle-items {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

html[dir="rtl"] .sbundle-items:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

html[dir="rtl"] .bundle-head {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-header-bg);
}

html[dir="rtl"] .bundle-head .title {
    margin-bottom: 0;
}

html[dir="rtl"] .bundle-head .name {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    margin-bottom: 5px;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .bundle-head .info {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .bundle-head .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .bundle-body {
    padding: 15px 20px;
}

html[dir="rtl"] .bundle-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

html[dir="rtl"] .bundle-body li {
    margin-bottom: 12px;
}

html[dir="rtl"] .bundle-body li:last-child {
    margin-bottom: 0;
}

html[dir="rtl"] .sbundle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    direction: rtl;
}

html[dir="rtl"] .sbundle-item .content {
    display: flex;
    align-items: center;
    flex: 1;
    direction: rtl;
}

html[dir="rtl"] .sbundle-item .img {
    width: 40px;
    height: 30px;
    margin-left: 12px;
    margin-right: 0;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

html[dir="rtl"] .sbundle-item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html[dir="rtl"] .sbundle-item .title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .sbundle-item .price {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 10px;
    margin-left: 0;
    flex-shrink: 0;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .bundle-foot {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    margin-top: auto;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .bundle-foot:hover {
    background: var(--primary-hover);
    color: #fff;
    text-decoration: none;
}

html[dir="rtl"] .no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .no-results i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

html[dir="rtl"] .pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

html[dir="rtl"] .pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    margin: 0 2px;
    border-radius: 6px;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] .pagination .page-link:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

html[dir="rtl"] .pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Mobile Header RTL Styles */
html[dir="rtl"] .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

html[dir="rtl"] .mobile-header .container-fluid {
    padding: 0 15px;
}

html[dir="rtl"] .mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

html[dir="rtl"] .mobile-logo img {
    height: 40px;
    width: auto;
}

html[dir="rtl"] .mobile-nav-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 5px;
    cursor: pointer;
}

html[dir="rtl"] .mobile-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 70px);
    background: var(--card-bg);
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
}

html[dir="rtl"] .mobile-menu.active {
    right: 0;
}

html[dir="rtl"] .mobile-menu-item {
    border-bottom: 1px solid var(--border-color);
}

html[dir="rtl"] .mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    transition: background-color 0.3s ease;
}

html[dir="rtl"] .mobile-menu-link:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
    text-decoration: none;
}

html[dir="rtl"] .mobile-menu-link i {
    margin-left: 12px;
    margin-right: 0;
    width: 20px;
    text-align: center;
}

html[dir="rtl"] .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

html[dir="rtl"] .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    html[dir="rtl"] .course-bundle-page {
        padding: 30px 0;
        margin-top: 70px;
    }
    
    html[dir="rtl"] .bundle-search-section {
        margin-bottom: 30px;
    }
    
    html[dir="rtl"] .d-flex.justify-content-between {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    html[dir="rtl"] .s_search {
        max-width: 100%;
        width: 100%;
    }
    
    html[dir="rtl"] .bundle-head .name {
        font-size: 1.1rem;
    }
    
    html[dir="rtl"] .sbundle-item .title {
        font-size: 0.85rem;
    }
    
    html[dir="rtl"] .sbundle-item .img {
        width: 35px;
        height: 25px;
        margin-left: 10px;
    }
}

@media (max-width: 576px) {
    html[dir="rtl"] .bundle-head {
        padding: 15px;
    }
    
    html[dir="rtl"] .bundle-body {
        padding: 12px 15px;
    }
    
    html[dir="rtl"] .bundle-foot {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}