/* استيراد الخط من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

/* إعدادات عامة */
body {
    font-family: 'Cairo', sans-serif; /* الخط الأساسي */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9; /* خلفية الموقع */
    color: #333;
    animation: fadeIn 0.5s ease-in-out; /* تأثير تحميل */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
}

/* تصميم الشريط العلوي (Navigation Bar) */
nav {
    background-color: #0069d9; /* لون مميز */
}

.navbar {
    padding: 15px 0;
    font-size: 18px;
}

.navbar .nav-link {
    color: #000 !important;
    margin-right: 20px;
}

.navbar .nav-link:hover {
    color: #ddd !important;
    text-decoration: underline;
}

/* التفاعل مع الأزرار */
button, .cta {
    background-color: #0069d9; /* اللون الأساسي للأزرار */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .cta:hover {
    background-color: #0056b3;
}

/* تخصيص الألوان */
h1 {
    color: #dee2e6;
    font-size: 40px;
    margin-bottom: 20px;
}

h2, h3 {
    color: #0069d9; /* اللون الأساسي للعناوين */
}

/* تحسين العناوين */
.programs h2, .reviews h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
}

.programs h2::after, .reviews h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #0069d9;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* تخصيص الصور */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.05); /* تكبير الصورة */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* ظل */
}

/* السلايدر (Slider Section) */
#home {
    background-image: url('images/photo1.png');
	background-size: cover; /* لجعل الصورة تغطي كامل الخلفية */
    background-position: center; /* لتوسيط الصورة */
    background-repeat: no-repeat; /* منع تكرار الصورة */
    text-align: center;
    padding: 120px 20px;
    position: relative;
}

#home h1, #home p {
    position: relative;
    z-index: 2; /* لضمان أن النصوص تظهر فوق الخلفية */
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* الشفافية */
    z-index: 1; /* وضع الخلفية أسفل النصوص */
}

#home a {
    background-color: rgba(0, 105, 217, 0.8); /* زر بخلفية شفافة */
    color: #fff;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

#home a:hover {
    background-color: rgba(0, 86, 179, 0.8); /* تأثير عند التمرير */
}


/* قسم "لماذا تختارنا؟" */
.features {
    background-color: #fff; /* خلفية بيضاء */
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* ظل خفيف للقسم */
    margin-bottom: 40px;
    border-radius: 8px; /* زوايا ناعمة */
    transition: box-shadow 0.3s ease;
}

.features:hover {
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.2); /* زيادة الظل عند التمرير */
}

.features h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #0069d9; /* اللون الأساسي للعناوين */
    font-weight: bold;
}

.features .row {
    display: flex;
    justify-content: space-around; /* توزيع العناصر بالتساوي */
    flex-wrap: wrap; /* السماح بالالتفاف */
    gap: 20px;
}

.features .col-md-4 {
    flex: 1 1 30%;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.features .col-md-4:hover {
    transform: translateY(-10px); /* تحريك العنصر للأعلى عند التمرير */
}

.features .col-md-4 i {
    font-size: 50px; /* أيقونات كبيرة */
    color: #0069d9;
    transition: color 0.3s ease;
}

.features .col-md-4:hover i {
    color: #0056b3; /* تغيير لون الأيقونة عند التمرير */
}

.features .col-md-4 h3 {
    font-size: 22px;
    margin-top: 15px;
    color: #333;
}


/* قسم البرامج */
.programs {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f0f8ff, #e6e6fa);
    text-align: center;
    direction: rtl;
}

.pricing-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-height: 450px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #0069d9;
}

.pricing-card h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.pricing-card .price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
}

.pricing-card .price .old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.pricing-card .price .new-price {
    font-size: 24px;
    color: #0069d9;
    font-weight: bold;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.pricing-card ul li {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.pricing-card ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #0069d9;
}

.pricing-card .cta {
    background: #0069d9;
    color: #fff;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.pricing-card .cta:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* قسم آراء العملاء */
.reviews {
    position: relative;
    padding: 60px 0;
    background-color: #fff;
}

.reviews .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
}

.review-card {
    flex: 1 1 calc(30% - 20px);
    max-width: calc(30% - 20px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.review-card img.progress-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* إعدادات الاستجابة */
@media (max-width: 768px) {
    .pricing-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .review-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .pricing-card, .review-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
