/* assets/css/style.css */
/* تطوير شامل مع الاحتفاظ بأسماء الكلاسات الأصلية */

/* تعريف الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* متغيرات CSS */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #e9ecef;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --section-padding: 80px 0;
    --card-border-radius: 8px;
}

/* إعادة ضبط عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fcfcfc;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* تنسيقات النص */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.text-primary {
    color: var(--primary-color) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.text-muted {
    color: var(--secondary-color) !important;
}

/* القائمة العلوية */
.navbar {
    padding: 15px 0;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
    max-height: 35px !important;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1.2rem !important;
    color: var(--dark-color) !important;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    height: 24px;
    width: 24px;
}

/* قسم الترويج الرئيسي */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3QgaWQ9InBhdHRlcm4tYmFja2dyb3VuZCIgd2lkdGg9IjQwMCUiIGhlaWdodD0iNDAwJSIgZmlsbD0icmdiYSgwLCAwLCAwLCAwKSI+PC9yZWN0PiA8Y2lyY2xlIGZpbGw9InJnYmEoMjU1LCAyNTUsIDI1NSwgMC4wNSkiIGN4PSIyMCIgY3k9IjIwIiByPSIxIj48L2NpcmNsZT4gPGNpcmNsZSBmaWxsPSJyZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMDMpIiBjeD0iMCIgY3k9IjAiIHI9IjEuNSI+PC9jaXJjbGU+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCBmaWxsPSJ1cmwoI3BhdHRlcm4pIiBoZWlnaHQ9IjEwMCUiIHdpZHRoPSIxMDAlIj48L3JlY3Q+PC9zdmc+');
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero-section .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.hero-section img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* البطاقات */
.card {
    transition: var(--transition);
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.card-text {
    color: #6c757d;
    margin-bottom: 1rem;
}

.course-card .card-img-top, .program-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .card-img-top, .program-card:hover .card-img-top {
    transform: scale(1.05);
}

.badge {
    padding: 0.5em 0.75em;
    font-weight: 600;
    border-radius: 50px;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

/* العناوين */
.section-header {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 800;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* أقسام الصفحة */
.courses-section, .programs-section {
    padding: var(--section-padding);
    position: relative;
}

.courses-section {
    background-color: var(--light-color);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDApIj48cmVjdCBpZD0icGF0dGVybi1iYWNrZ3JvdW5kIiB3aWR0aD0iNDAwJSIgaGVpZ2h0PSI0MDAlIiBmaWxsPSJyZ2JhKDI0OCwgMjQ5LCAyNTAsIDEpIj48L3JlY3Q+IDxyZWN0IGZpbGw9InJnYmEoMTMsIDExMCwgMjUzLCAwLjAyKSIgY3g9IjIwIiBjeT0iMjAiIHg9IjAiIHk9IjAiIHdpZHRoPSIyIiBoZWlnaHQ9IjIiPjwvcmVjdD48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IGZpbGw9InVybCgjcGF0dGVybikiIGhlaWdodD0iMTAwJSIgd2lkdGg9IjEwMCUiPjwvcmVjdD48L3N2Zz4=');
}

/* ميزات */
.feature-item {
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    background-color: white;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
    border-color: transparent;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-item p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* تذييل الصفحة */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a, .contact-info a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover, .contact-info a:hover {
    color: white !important;
    padding-right: 5px;
}

.contact-info {
    margin: 0;
    padding: 0;
}

.contact-info li {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-left: 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 5px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    margin-left: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* صفحات العرض التفصيلية */
.course-header, .program-header {
    padding-bottom: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.course-image, .program-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.program-details {
    margin-bottom: 40px;
    background-color: white;
    padding: 30px;
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
}

.program-price {
    font-size: 1.5rem;
    margin: 20px 0;
    font-weight: 700;
    color: var(--primary-color);
}

.text-decoration-line-through {
    text-decoration: line-through;
    margin-right: 10px;
}

.program-features {
    margin: 25px 0;
}

.program-features ul {
    padding-right: 20px;
}

.program-features li {
    margin-bottom: 15px;
    position: relative;
    padding-right: 30px;
}

.program-features li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    margin-left: 10px;
    position: absolute;
    right: 0;
    top: 2px;
}

/* نموذج التسجيل */
.registration-form {
    background-color: white;
    border-radius: var(--card-border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.registration-form h3 {
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* الأنيميشن والتأثيرات */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* التوافق مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .courses-section, .programs-section {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p.lead {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .course-header, .program-header {
        flex-direction: column;
        text-align: center;
    }
    
    .course-image, .program-image {
        margin-bottom: 20px;
    }
    
    .social-links a {
        margin-bottom: 10px;
    }
    
    .footer-widget h3 {
        font-size: 1.2rem;
    }
}

/* إضافات لتحسين تجربة المستخدم */
.btn {
    border-radius: 5px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.btn:focus {
    box-shadow: none;
}

.program-card .program-price {
    font-size: 1.1rem;
    margin: 10px 0;
}

.program-course {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.program-course i {
    color: var(--primary-color);
    margin-left: 6px;
}

.program-course a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
}

.program-course a:hover {
    color: var(--primary-color);
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* إضافة سكريبت لتفعيل زر العودة للأعلى والقائمة اللزجة */
/* سيتم إضافة هذا السكريبت إلى ملف main.js */