/* أنماط محسنة لصفحة الدورات التدريبية */

/* تنسيق العام للصفحة */
body {
    background-color: #f8f9fa;
}

/* تنسيق قسم العنوان الرئيسي */
.courses-hero {
    background: linear-gradient(-180deg, rgba(6, 0, 51, 1) 0%, rgba(6, 0, 51, 0.95) 100%) !important;
    padding: 5rem 0 0 !important;
    margin-bottom: 0;
    position: relative;
    color: white;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

}

.courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: radial-gradient(circle at top right, rgba(3, 167, 211, 0.1) 0%, transparent 50%); */
    z-index: 1;
}

.courses-hero .container {
    position: relative;
    z-index: 2;
}

.courses-hero h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.courses-hero h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: #03a7d3;
    border-radius: 2px;
}

.courses-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.courses-wave {
    position: relative;
    height: 150px;
    margin-top: -50px;
}

.courses-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 -5px 5px rgba(0, 0, 0, 0.05));
}

.bg-primary-light {
    background-color: #03a7d3;
}

.text-primary {
    color: #060033 !important;
}

/* تنسيق صورة العنوان الرئيسي */
.courses-header-image {
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    padding: 0 15px;
}

.courses-header-image img {
    border-radius: 10px;
    border: 2px solid #03a7d3;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.courses-header-image:hover img {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(3, 167, 211, 0.2);
}

/* تنسيق الشارة */
.courses-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    white-space: nowrap;
}

.courses-header {
    position: relative;
    margin-bottom: 2.5rem;
}

/* تنسيق إحصائيات الهيرو */
.hero-stats {
    margin-top: 2rem;
}

.hero-stat-item {
    position: relative;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background-color:#03a7d3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #03a7d3;
    font-size: 1.2rem;
    
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.courses-header h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.courses-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 80px;
    height: 4px;
    background-color: #03a7d3;
    border-radius: 4px;
}

/* تنسيق قسم التصفية */
.courses-filter {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rounded-pill-start {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

.rounded-pill-end {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(3, 167, 211, 0.1);
    color: #03a7d3;
}

.dropdown-item.active {
    background-color: #060033;
    color: white;
}

/* تنسيق بطاقات الدورات */
.course-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border-radius: 12px !important;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(3, 167, 211, 0.2) !important;
    border-color: #03a7d3;
}

.course-image-container {
    overflow: hidden;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
}

.course-image-container img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.course-card:hover .course-image-container img {
    transform: scale(1.08);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

/* تنسيق الشريط الجانبي للبطاقة */
.ribbon-wrapper {
    width: 150px;
    height: 150px;
    position: absolute;
    top: -10px;
    right: -10px;
    overflow: hidden;
    z-index: 10;
}

.ribbon {
    width: 225px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    transform: rotate(45deg);
    position: relative;
    padding: 5px 0;
    right: -45px;
    top: 35px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
}

.ribbon-primary {
    background: #060033;
}

.ribbon-success {
    background: #03a7d3;
}

/* تنسيق التقييم والبيانات الوصفية */
.course-rating {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.course-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* تنسيق المدرب */
.avatar-sm {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, rgba(6, 0, 51, 0.9) 0%, rgba(12, 0, 102, 0.75) 100%);
}

/* تنسيق محتوى البطاقة */
.card-body {
    padding: 1.5rem !important;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
}

.card-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* تنسيق الشارات */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 50px !important;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.badge.bg-primary {
    background-color: #03a7d3 !important;
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
}

/* تنسيق أيقونات البطاقة */
.card-body .fas, .card-footer .fas {
    color: #060033;
    transition: all 0.3s ease;
}

.course-card:hover .card-body .fas,
.course-card:hover .card-footer .fas {
    color: #03a7d3;
}

/* تنسيق تذييل البطاقة */
.card-footer {
    padding: 1.25rem 1.5rem !important;
    background-color: #fff !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
}

/* تنسيق أزرار العرض */
.btn-primary {
    background-color: #060033;
    border-color: #060033;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #03a7d3;
    border-color: #03a7d3;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(3, 167, 211, 0.3);
}

/* تنسيق الترقيم الصفحي */
.pagination {
    margin-top: 2rem;
    justify-content: center;
}

.pagination .page-item .page-link {
    border-radius: 50px;
    margin: 0 3px;
    color: #060033;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
    background-color: #03a7d3;
    border-color: #03a7d3;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #060033;
    border-color: #060033;
}

/* تنسيق رسالة عدم وجود دورات */
.alert-info {
    background-color: #e3f2fd;
    border-color: #b3e5fc;
    color: #0288d1;
    border-radius: 10px;
    padding: 1.5rem;
}

/* تنسيق متجاوب */
@media (max-width: 992px) {
    .course-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .card-title {
        font-size: 1.1rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .bg-light.py-5 {
        padding: 2rem 0 !important;
    }
    
    .card-body, .card-footer {
        padding: 1rem !important;
    }
}
