/* التنسيقات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

:root{
    --bg:#f4f7fb;
    --card-bg:#ffffff;
    --muted:#556070;
    --accent:#0ea5a3;
    --accent-2:#7c3aed;
    --shadow: 0 10px 30px rgba(16,24,40,0.08);
    font-family: 'Cairo', sans-serif;
}
*{box-sizing:border-box}

.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.card{background:var(--card-bg);border-radius:14px;padding:20px;box-shadow:var(--shadow);border:1px solid rgba(11,18,32,0.04)}
.card .head{display:flex;align-items:center;gap:12px}
.badge{width:56px;height:56px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:800}
.badge.primary{background:linear-gradient(135deg,var(--accent),var(--accent-2))}
.badge.secondary{background:linear-gradient(135deg,#ffb86b,#ff6b6b)}
.card h3{margin:0;font-size:18px}
.card p.desc{color:var(--muted);margin:8px 0 14px}

.features{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:6px}
.feature{background:linear-gradient(180deg,rgba(14,165,163,0.04),rgba(124,58,237,0.02));padding:10px;border-radius:10px;border:1px solid rgba(11,18,32,0.03);color:var(--muted);font-weight:600}

.cta{display:flex;gap:12px;align-items:center;margin-top:16px}
.outline{padding:10px 14px;border-radius:10px;border:1px dashed rgba(11,18,32,0.06);color:var(--muted);background:#fbfdff}
.note{margin-top:10px;color:var(--muted);font-size:14px}

@media (max-width:900px){
    .cards{grid-template-columns:1fr}
    .features{grid-template-columns:1fr}
}

.radio-chose{
    text-align: center;
    margin-bottom:25px;
    padding: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.radio-full{
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.radio-chose label{
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#WhatsApp-Link{
    text-decoration: none;
    cursor: pointer;
}

#level_pay_lbl{
    color: gold;
}

#card-element {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
    background-color: white;
}



#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of other elements */
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #333;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


input[type="radio"] {
    width: 25px;
    height: 25px;
    accent-color: #4f46e5; 
    cursor: pointer;
}

input[type="radio"]:hover {
    transform: scale(1.1);
}

input[type="radio"]:disabled {
    accent-color: #ccc;
    cursor: not-allowed;
}


/* شريط التنقل */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

/* القسم الرئيسي */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff10" points="0,1000 1000,0 1000,1000"/><polygon fill="%23ffffff10" points="0,0 1000,0 0,1000"/></svg>');
    background-size: cover;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.feature-item i {
    margin-left: 0.5rem;
}

.hero-image {
    text-align: center;
    position: relative;
    z-index: 2;
}

.ai-icon {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* أيقونات القسم الرئيسي */
.hero-content .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}


#feature-item span{
    color: #fff;
}

.feature-item i{
    color: #ee5a24;
}

.hero-content .btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* عناوين الأقسام */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
}

/* بطاقات الدورة */
.course-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.course-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.course-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    text-align: right;
}

.card-features li {
    padding: 0.5rem 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.card-features li:last-child {
    border-bottom: none;
}

/* قسم المدرب */
.instructor-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.instructor-name {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.instructor-title {
    font-size: 1.2rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.instructor-bio p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

.instructor-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* فيديو المدرب */
.instructor-video .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.instructor-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* قسم الآراء */
.testimonial-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-video .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.testimonial-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.testimonial-content {
    padding: 1.5rem;
}

.testimonial-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.testimonial-role {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.rating {
    color: #ffc107;
    font-size: 1rem;
}

/* قسم الدفع */
.payment-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.pricing-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 400px;
    margin: 0 auto;
}

.pricing-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    text-align: center;
}

.pricing-header-full{
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 2rem;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 1rem;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price .amount {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.price .period {
    font-size: 1.2rem;
}

.price-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

.pricing-features {
    padding: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #555;
}

.feature-item:last-child {
    margin-bottom: 2rem;
}

.pricing-card .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.pricing-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* الفوتر */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.footer-brand h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #bdc3c7;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    transform: translateY(-2px);
}

/* رابط واتساب خاص */
.whatsapp-link {
    background: #25d366 !important;
}

/* معلومات التواصل في الفوتر */
.contact-info {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.contact-item i {
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

/* نافذة تسجيل الدخول */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .ai-icon {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .instructor-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pricing-card {
        margin: 0 1rem;
    }
    
    .price .amount {
        font-size: 3rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .course-card {
        margin: 0 0.5rem;
    }
    
    .testimonial-card {
        margin: 0 0.5rem;
    }
}

/* تحسينات إضافية */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: #667eea;
}

/* تأثيرات التمرير */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* زر Call to Action */
.cta-section {
    margin: 2rem 0;
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5);
}

.cta-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffc107;
    color: #333;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 15px;
    font-weight: 700;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* نموذج التسجيل */
.registration-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.registration-card .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 1rem;
}

.registration-card .form-control:focus {
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* معلومات التواصل */
.contact-info {
    padding: 1rem;
}

.whatsapp-contact {
    background: #25d366;
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    color: white;
    transform: scale(1.05);
}

.whatsapp-link i {
    font-size: 2rem;
    margin-left: 1rem;
}

.contact-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-times {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
}

/* عداد الوقت */
.price-countdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffc107;
}

.countdown-timer span {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 5px;
    min-width: 40px;
    text-align: center;
}

/* تحسينات الدفع */
.pricing-card .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.pricing-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* تحميل الصفحة */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.faq-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.faq-item {
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.faq-item.active {
    border-color: #667eea;
}

.faq-question {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #f8f9fa;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 25px;
}

.faq-answer p {
    color: #333;
    line-height: 1.8;
    font-size: 1rem;
}

.icon-check {
    color: #28a745;
    margin-left: 5px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .faq-container {
        padding: 25px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }
}

@media (max-width: 500px) {
    .hero-section{
        height: 900px;
    }
}

.cta-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}