@font-face {
  font-family: 'Droid Arabic Kufi';
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/DroidKufi-Regular.eot);
  src: url(../fonts/DroidKufi-Regular.eot?#iefix) format('embedded-opentype'),
       url(../fonts/DroidKufi-Regular.woff2) format('woff2'),
       url(../fonts/DroidKufi-Regular.woff) format('woff'),
       url(../fonts/DroidKufi-Regular.ttf) format('truetype');
}

/* General Styles */
body {
    margin: 0;
    font-family: Droid Arabic Kufi;
    background-color: #f4f4f4;
}

a {
text-decoration:none;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004d99;
    color: white;
    padding: 15px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo img{
	border-radius:8px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background-color: white;
    height: 3px;
    width: 25px;
    margin: 3px 0;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: left 0.3s ease;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav nav ul li {
    margin: 15px 0;
}

.mobile-nav nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
}


.hand{
   cursor: pointer;  /* تظهر اليد عند المرور فوق العنصر */
}




/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 55vh;
    width: 100%;
}

.slider {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 100%; /* عرض لكل السلايدز */
    height: 55vh;
	
}

.slide {
    flex: 1 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.content {
    position: relative;
    top:-200px;
    left: 10%;
    color: #fff;
    text-align: left;
    z-index: 2;
}

.content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
	margin-top:310px;
}

.content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.content a {
    padding: 5px 10px;
    font-size: 1rem;
    background-color: #ef7107;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
	margin-top:10px;
}

/* Slider Animation */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* طبقة شفافة فوق السلايد */
    z-index: 1;
}








/* Categories Section */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-top: -60px;
    position: relative; /* إضافة position relative */
    z-index: 2; /* تعيين z-index أعلى من hero */
    background-color: #fff;
	left:5%;
	right:5%;
	width:90%;
	border-radius:10px 10px 0 0 ;
	
}

.category-item {
	background: orange;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


.categories .e-left {
	 background-image: linear-gradient(to right top, #ec75b1, #f083ba, #f591c3, #f99fcb, #fdacd4);
}

.categories .e-center {
	  background-image: linear-gradient(to right top, #4a94e1, #569ce5, #62a4ea, #6dacee, #78b4f2);
}

.categories .e-right {
	 background-image: linear-gradient(to right top, #a181c7, #a98acd, #b092d4, #b89bda, #c0a4e1);
}

.categories .e-bottom {
	 background-image: linear-gradient(to right top, #ff9700, #fcac38, #fcb54d, #febf64, #ffc879);
}


.category-item i {
    color: #333;
    margin-bottom: 15px;
}

.category-item p {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

/* Hover Effect */
.category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    background-color: #f5f5f5;
}




































/* العروض الخاصة */
.special-offers {
	display: flex;
   	width:100%;
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
    flex-wrap: wrap; /* لضمان التنسيق الجيد في الأجهزة الصغيرة */
    background-color: #fff;
	
}

/* بطاقة العرض */
.offer-card {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: calc(33.33% - 20px); /* عرض البطاقات على 3 أعمدة */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



/* تأثير التمرير على البطاقة */
.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* العنوان داخل البطاقة */
.offer-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 15px;
    background-color: #fff;
    padding: 10px;
    position: relative; /* لتطبيق تأثير الترجمة */
    overflow: hidden;  /* لتجنب أي عنصر خارج المستطيل */
    z-index: 1;
}

.offer-card h3::before {
    content: ''; 
    position: absolute;
    top: 0;
    left: -10px; /* تحريك المستطيل قليلاً إلى اليسار */
    right: -10px;
    bottom: 0;
    background-color: #fff;
    transform: rotate(-5deg); /* جعل المستطيل مائل */
    z-index: -1; /* لضمان بقاء النص في المقدمة */
}


/* النص داخل البطاقة */
.offer-card p {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 20px;
}

/* زر الحصول على العرض */
.offer-card .btn {
    background-color: #dc3545; /* لون الزر */
    color: white;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* تأثير التمرير على الزر */
.offer-card .btn:hover {
    background-color: #c82333;
}

/* تخصيص التخطيط للأجهزة الصغيرة */
@media screen and (max-width: 768px) {
    .special-offers {
        flex-direction: column;
        align-items: center;
    }

    .offer-card {
        width: 90%; /* عرض البطاقات 90% من العرض الكامل */
        margin-bottom: 20px; /* مسافة بين البطاقات */
    }
}

/* تخصيص التخطيط للأجهزة المحمولة */
@media screen and (max-width: 480px) {
    .offer-card {
        width: 100%; /* عرض البطاقة بالكامل */
        padding: 15px; /* تقليل التباعد الداخلي */
    }

    .offer-card h3 {
        font-size: 1.3rem; /* تصغير حجم العنوان */
    }

    .offer-card p {
        font-size: 0.9rem; /* تصغير حجم النص */
    }

    .offer-card .btn {
        font-size: 1rem; /* تصغير حجم الزر */
        padding: 8px 16px; /* تقليل حجم الزر */
    }
}


.offer-card {
    background-color: #ff4d4d;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #004d99;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
	z-index:4;
}

.footer a {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
	font-size:12px;
}

.footer a svg {
    font-size:18px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .content h1 {
        font-size: 2rem;
		    left: 1%;
		
		
    }

    .content p {
        font-size: 1rem;
    }

    .categories {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .category-item {
        padding: 15px;
    }

    .courses-section {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 45vh;
    }

    .content h1 {
      font-size: 0.9rem;
		    left: 1%;
	  
    }

    .content p {
        font-size: 0.9rem;
    }

    .category-item {
        padding: 10px;
    }
}




/* تصفح الموبايل */
@media (min-width: 301px) {
    .categories {
        grid-template-columns: repeat(2, 1fr); /* عمودان على الشاشات الصغيرة */
    }
}

/* تصفح الكمبيوتر */
@media (min-width: 608px) {
    .categories {
        grid-template-columns: repeat(3, 1fr); /* 3 أعمدة على الشاشات المتوسطة */
    }
}

@media (min-width: 802px) {
    .categories {
        grid-template-columns: repeat(4, 1fr); /* 4 أعمدة على الشاشات الكبيرة */
    }
}





.countdown {
    font-size: 1.2rem;
    color: #721c24;
    margin: 10px 0;
}

#coupon {
    font-size: 1.2rem;
    margin: 10px 0;
	display: none;
	background-color: #ec4e4e;
	padding: 15px 0 1px 0 ;
	border-radius: 8px;
    font-weight: bold;
    text-align: center;

}
#coupon strong{
    color: #ffd800;
}

/* النص داخل البطاقة */
.offer-card-code{
    
}

.hidden {
    display: none;
}

 
.rtl{
	direction: rtl !important;
	text-align:right;
}

.ltr{
	direction: ltr !important;  
	text-align:left;
}

.language-intro-icon {
    position: absolute; /* تمكين التحكم في الموقع بشكل كامل */
    top: 31px; /* المسافة من الأعلى */
    right: 55px; /* المسافة من اليمين */
    display: flex; /* يجعل العنصر مرنًا */
    justify-content: center; /* توسيط المحتوى أفقياً داخل العنصر */
    align-items: center; /* توسيط المحتوى عموديًا داخل العنصر */
    width: auto; /* الحجم يتغير حسب المحتوى */
    background-color: transparent; /* الخلفية شفافة */
}

.language-intro-icon svg {
    color: #fff; /* لون الأيقونة */
    font-size: 24px; /* حجم الأيقونة */
}

.green {
    color: green; /* اللون الأخضر */
}

 .top-bar {
            background: #4267B2;
            color: #fff;
            padding: 15px;
			border-radius: 5px;
            position: relative;
        }
		
.top-bar .settings {
            position: absolute;
            left: 15px;
            top: 15px;
            font-size: 18px;
            cursor: pointer;
			
        }
