/* إعدادات أساسية */

* {
  font-family: 'Almarai', sans-serif;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    direction: rtl; /* دعم الاتجاه من اليمين إلى اليسار */
    text-align: right; /* محاذاة النص إلى اليمين */
	margin:0;
	padding:0;
}
a {
  text-decoration: none;
  transition: 0.3s;
}



/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 80vh;
  position: relative;
  padding: 120px 0 60px 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #010034, #003d60);
}

.hero h1 {

  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
}

.hero p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 5px 0 30px 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 28px 12px 28px;
  border-radius: 50px;
  transition: 0.5s;
}

.hero .btn-get-started:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.hero .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  color: var(--default-color);
  font-weight: 600;
}

.hero .btn-watch-video i {
  color: var(--contrast-color);
  font-size: 32px;
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}

.hero .btn-watch-video:hover {
  color: var(--accent-color);
}

.hero .btn-watch-video:hover i {
  color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.hero .animated {
  animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .hero p {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }

  .hero .btn-get-started,
  .hero .btn-watch-video {
    font-size: 13px;
  }
}

@keyframes up-down {
  0% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(-10px);
  }
}


/*--------------------------------------------------------------
# Counts Section
--------------------------------------------------------------*/
.counts {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
  margin : 40px 0 ;
  padding: 10px 0;
  border-radius: 20px;
}

.counts .stats-item {
  padding: 30px;
  width: 100%;
}

.counts .stats-item span {
  font-size: 60px;
  display: block;
  color:#00ffff;
  font-weight: 700;
}

.counts .stats-item p {
  color: #00ffff;
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 30px;
  font-weight: 600;
}

/*--------------------------------------------------------------
# Courses Section
--------------------------------------------------------------*/

.courses{
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
  margin : 40px 0 ;
  padding: 10px 0;
  border-radius: 20px;
}
.courses .course-item {
  background-color: var(--surface-color);
  border: 3px solid #000;
  border-radius: 20px;
}

.courses .course-content {
  padding: 15px;
}

.courses .course-content h3 {
  font-weight: 700;
  font-size: 20px;
}

.courses .course-content h3 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.courses .course-content h3 a:hover {
  color: var(--accent-color);
}

.courses .course-content .category {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-size: 14px;
  padding: 6px 14px;
  margin: 0;
  border-radius: 5px;
}

.courses .course-content .price {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.courses .course-content .description {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.courses .trainer {
  padding-top: 15px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.courses .trainer .trainer-profile img {
  max-width: 50px;
  border-radius: 50px;
}

.courses .trainer .trainer-profile .trainer-link {
  padding-left: 10px;
  font-weight: 600;
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.courses .trainer .trainer-profile .trainer-link:hover {
  color: var(--accent-color);
}

.courses .trainer .trainer-rank {
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.courses .trainer .trainer-rank .user-icon {
  font-size: 22px;
}


/*--------------------------------------------------------------
# navbar Section
--------------------------------------------------------------*/

.navbar {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background-color: #007bff;
	margin:0 0 30 0 ;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}


.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000 ;
    margin-bottom: 10px; /* لإضافة مساحة بين الشعار والعناصر الأخرى */
}

.nav-link {
    font-size: 1rem;
    color: #000 ;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ddd;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
	color:#6751a5;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' linecap='round' linejoin='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-nav {
    margin-top: 10px; /* لإضافة مساحة بين الشعار والعناصر */
    text-align: center;
}

.nav-item {
    margin: 0 10px; /* لإضافة بعض المساحة بين عناصر القائمة */
}

/* قائمة منسدلة */
.navbar .dropdown-menu {
    background-color: #2c2244 !important;
    border: none;
    text-align: right; /* محاذاة النصوص داخل القائمة المنسدلة إلى اليمين */
}

.navbar .dropdown-item {
    color: #000;
}

.navbar .dropdown-item:hover {
    background-color: #007bff;
    color: #000;
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
  margin :40px 0 ;
  padding: 10px 0;
  border-radius: 20px;

}

.features .features-item {
  background-color:#ffffff;
  display: flex;
  align-items: center;
  padding: 20px;
  transition: 0.3s;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  position: relative;
}

.features .features-item i {
  font-size: 32px;
  
  padding-right: 10px;
  line-height: 0;
}

.features .features-item h3 {
  font-weight: 700;
  margin: 0;
  padding: 0;

  line-height: 1;
  font-size: 16px;
}

.features .features-item h3 a {
  color: #272356;
  text-decoration: none;

  transition: 0.3s;
}

.features .features-item:hover {
  border-color: var(--accent-color);
}

.features .features-item:hover h3 a {
  color: var(--accent-color);
}


/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about{
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
  margin : 40px 0 ;
  padding: 10px 0;
  border-radius: 20px;
  color:#ffffff;
}
.about ul {
  list-style: none;
  padding: 0;
}

.about ul li {
  padding-bottom: 5px;
  display: flex;
  align-items: center;
}

.about ul i {
  font-size: 20px;
  padding-right: 4px;
  color: #00ffff;
}

.about .read-more {
  color: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 8px 28px;
  border-radius: 5px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-color);
}

.about .read-more i {
  font-size: 18px;
  margin-left: 5px;
  line-height: 0;
  transition: 0.3s;
}

.about .read-more:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.about .read-more:hover i {
  transform: translate(5px, 0);
}


/*--------------------------------------------------------------
# Why Us Section
--------------------------------------------------------------*/
.why-us {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
  margin : 40px 0 ;
  padding: 30px 0;
  border-radius: 20px;
}

.why-us .content h3 {
  font-weight: 400;
  font-size: 34px;
}

.why-us .content p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.why-us .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.why-us .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.why-us .faq-container .faq-item h3 {
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
}

.why-us .faq-container .faq-item h3 span {
  color: var(--accent-color);
  padding-right: 5px;
  font-weight: 600;
}

.why-us .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.why-us .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.why-us .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.why-us .faq-container .faq-item .faq-icon {
  position: absolute;
  top: 22px;
  left: 20px;
  font-size: 22px;
  line-height: 0;
  transition: 0.3s;
  color: var(--accent-color);
}

.why-us .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.why-us .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.why-us .faq-container .faq-active h3 {
  color: var(--accent-color);
}

.why-us .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.why-us .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

.why-us .why-us-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-us .why-us-img img {
  max-height: 70%;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: 0px 5px 90px 0px rgba(0, 0, 0, 0.1);
  padding: 50px 30px;
  transition: all ease-in-out 0.4s;
  height: 100%;
}

.services .service-item .icon {
  margin-bottom: 10px;
}

.services .service-item .icon i {
  color: var(--accent-color);
  font-size: 36px;
  transition: 0.3s;
}

.services .service-item h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.services .service-item h4 a {
  color: var(--heading-color);
  transition: ease-in-out 0.3s;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item:hover {
  transform: translateY(-10px);
}

.services .service-item:hover h4 a {
  color: var(--accent-color);
}



/* محتوى الصفحة الرئيسي */
main {
    margin :40px 0 ;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    border-radius: 20px;
}

/* الأزرار */
.btn-primary {
    background: #007bff;
    border: none;
    transition: background 0.3s, transform 0.3s;
    padding: 10px 20px;
    border-radius: 50px;
}

.btn-primary:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* تذييل الموقع */
footer {
    background: #333;
    color: #fff;
    padding: 15px 0;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    color: #ddd;
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    main {
        padding: 15px;
    }

    .btn-primary {
        padding: 8px 16px;
    }
}
