/* Style.css */
:root {
  --main-color: #ad9551;
  --secondary-color: #e6dec6;
  --text-color: #333;
  --transition: 0.3s;
  --section-padding: 100px;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Cairo", sans-serif !important;
  margin: 0;
  padding: 0;
  direction: rtl;
  background-color: #fff;

}


html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  
}


canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100dvw !important;
  height: 100dvh !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}


.container {
  padding-left: 15px;
  padding-right: 15px;
  /* padding-top: 50px;
  padding-bottom: 50px; */
  margin-left: auto;
  margin-right: auto;
  max-width: 94%;
}
.container-header {
  position: fixed !important;
  top: 17px;
  left: 0;
  right: 0;
  max-width: 80%; /* تحديد العرض الأقصى للهيدر */
  margin: 0 auto 0 auto; /* توسيط الهيدر تلقائيًا */
  background-color: white;
  border-radius: 43px;
padding: 0 50px;
  display: flex;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 5px;
  box-shadow: 0px 0px 5px 0px;
  z-index: 999;
}
a {
  text-decoration: none !important;
  color: #ad9551 ;
}
ul {
  list-style: none ;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

 /* Start Components */
 .main-heading {
  text-align: center;
}
.main-heading h2 {
  font-weight: bold;
  font-size: 40px;
  position: relative;
  padding-top: 45px;
  margin-bottom: 45px;
  text-transform: uppercase;
}

.main-heading span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* مسافة بين الخط والنص */
  font-size: 18px;
  color: #444;
  font-weight: normal;
  margin-top: 15px;
  margin-bottom: 30px;
}

.main-heading span::before,
.main-heading span::after {
  content: "";
  display: block;
  height: 1px;
  background-color: #ccc;
  width: 34%; /* ✨ العرض الثابت للخطان */
}

/* End Components */
.header {
  background-color: #aa9353;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0 0;
  z-index: 999;
}
.header .container {
  display: flex;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  position: sticky;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 25px;
  color: #ad9551;
  font-size: 15px;
}
.header .logo-img {
  height: 70px;
    width: auto;
  max-width: 100%;
}
/* ========== Responsive Header ========== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--main-color);
  cursor: pointer;
}

/* Dropdown Menu */
.nav-item {
  position: relative;
}
#otherLinksDropdown {
  position: absolute;
  top: 86px;
  right: -50px;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 200px;
  padding: 10px 0;
  border-radius: 5px;
  z-index: 1000;
}
#otherLinksDropdown a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background var(--transition);
  align-items: center;
}
#otherLinksDropdown a i {
  margin-right: 8px;
  margin-left: 10px;
  font-size: 1rem;
  color: var(--text-color);
}
#otherLinksDropdown a:hover {
  background-color: var(--main-color);
  color: white;
}
.hidden {
  display: none;
}
.main-nav  li  a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 72px;
  position: relative;
  color: black;
  padding: 0 30px;
  overflow: hidden;
  font-size: 17px;
  transition: var(--main-transition);
}
.nav-item .spc {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 72px;
  position: relative;
  color: black;
  padding: 0 30px;
  overflow: hidden;
  font-size: 17px;
  transition: var(--main-transition);
}
.main-nav a:hover {
  color: var(--main-color);
  transition: var(--transition);
  background-color: #fafafa;
}
.main-nav .spc::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: var(--main-color);
  top: 0;
  left: -100%;
  transition: var(--transition);
}

.main-nav a:hover::before {
  left: 0;
}

.user-account {
  display: flex;
  align-items: center;
}
.user-img {
  width: 45px;
  border-radius: 50%;
  cursor: pointer;
}

/* Landing Page */
#particles-js {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}
.landing-page {
  position: relative;
  background: linear-gradient(to bottom, #ad9551 0%, #ffffff 15%);
  overflow: hidden;
  text-align: center;
  padding: 145px 20px 0 20px;
  color: var(--text-color);
  /* min-height: 88vh; */
  height: 100vh;
}
.cta {
  padding: 5%;
  z-index: 2;
}
.cta-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
}
.cta-subtext {
  font-size: 1.2rem;
  color: #666;
  margin: 3rem;
}
.main-btn {
  background: var(--main-color);
  color: white;
  padding: 14px 180px;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: background var(--transition);
}
.main-btn:hover {
  background: var(--secondary-color);
  color: var(--text-color);
}
.secondary-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.secondary-btn {
  background: var(--main-color);
  color: white;
  border: 2px solid var(--main-color);
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition);
}
.secondary-btn:hover {
  background: var(--secondary-color);
  color: var(--text-color);
}

/* Responsive */
@media (max-width: 992px) {

  .main-nav ul {
      flex-direction: column;
      gap: 10px;
  }
  .cta-text {
      font-size: 2rem;
  }
  .main-btn, .secondary-btn {
      width: 100%;
      padding: 10px 22px;
  }

  .about-description {
    font-size: 1rem !important;
  }

}

/* Dropdown Menu */
.dropdown {
  position: absolute;
  top: 93px;
  left: 10px;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 200px;
  padding: 15px;
  border-radius: 5px;
  z-index: 1000;
}
.dropdown p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: var(--text-color);
}
.dropdown hr {
  margin: 10px 0;
  border: 0;
  border-top: 1px solid #eee;
}
.settings-btn {
  background-color: var(--main-color);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.settings-btn:hover {
  background-color: var(--secondary-color);
}
.hidden {
  display: none;
}

.about-page {
  max-width: 800px;
  margin: 100px auto;
  /* padding-top: var(--section-padding);
  padding-bottom: var(--section-padding); */
  text-align: center;
  background-color: #fff;
  border-radius: 25px;
  box-shadow: 6px 6px 20px 0px #ad9551;
  padding-bottom: 15px;
  padding-right: 20px;
  padding-left: 20px;
  /* display: flex; */
}
@media (max-width: 992px) {
  .about-description {
    font-size: 1.1rem;
    padding: 0 20px;
  }
  .about-page {
    width: 73%;
  }

}
.about-title {
  font-size: 2.5rem;
  color: #333;
  font-weight: bold;
  margin-bottom: 45px;
}

.about-description {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.8;
  font-weight: bold;
  padding-bottom: 30px;
}
.features-section {
  text-align: center;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  background-color: #fff;
  /* border-radius: 25px;
  box-shadow: 6px 6px 20px 0px #ad9551; */
}

.features-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 60px;
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.feature-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 250px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card i {
  font-size: 2.5rem;
  color: #ad9551;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.hadith-section {
  text-align: center;
  /* padding-top: var(--section-padding);
  padding-bottom: var(--section-padding); */
  padding: 0 20px;
  background-color: #f8f9fa;
  border-radius: 25px;
  box-shadow: 6px 6px 20px 0px #ad9551;
  margin: 100px auto;
  width: 80%;
  max-width: 800px;
}

.hadith-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.hadith-content {
  font-size: 1.25rem;
  color: #555;
  line-height: 1.8;
  font-style: italic;
  padding: 20px;
}

.hadith-text {
  margin-bottom: 10px;
  color: #444;
}

@media (max-width: 992px) {
  .hadith-section {
    width: 73%;
  }
}

.highlight {
  color: #ad9551;
  font-weight: bold;
}

.hadith-reference {
  color: #888;
  font-size: 1rem;
  margin-top: 15px;
  font-style: normal;
}
.courses-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  text-align: center;
  background-color: #fff;
}

.section-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 60px;
}

.courses-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px 95px;
  justify-content: center;
}

.course-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 300px;
  text-align: left;
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-info {
  padding: 20px;
}

.course-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;

  text-align: right;
}

.course-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
  text-align: right;
}

.course-instructor {
  font-size: 0.9rem;
  color: #888;
  display: block;
  margin-bottom: 20px;
  text-align: right;
}

.enroll-button {
  background-color: #ad9551;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
  display: flex;
}

.enroll-button:hover {
  background-color: #e6dec6;
}
/* مسارات برمجية */
/* تنسيق القسم الرئيسي */
.tracks-section {
  text-align: center;
  margin: 0 auto;
  padding: 20px;
  max-width: 1200px;
}

.tracks-section h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.tracks-section p {
  color: #555;
  font-size: 1.1em;
}

/* تنسيق الفلاتر */
.filters {
  margin: 50px 0;
}

.filters button {
  padding: 8px 15px;
  margin: 5px;
  border: none;
  border-radius: 6px;
  background-color: var(--main-color);
  color: #fff;
  cursor: pointer;
}

.filters button:hover {
  background-color: #897540;
  transition: var(--transition);
}

/* تنسيق بطاقات المسارات */
.tracks {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.track-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 300px;
  margin: 15px;
  padding: 20px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.track-card .icon {
  font-size: 2.5em;
}

.track-card h2 {
  font-size: 1.5em;
  margin-top: 10px;
}

.track-card .level {
  font-weight: bold;
  color: var(--main-color);
}

.track-card .duration {
  color: #888;
  font-size: 0.9em;
}

.track-card p {
  font-size: 1em;
  color: #666;
}

.track-card .start-button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.track-card .start-button:hover {
  background-color: #897540;
  transition: var(--transition);
}
/* تنسيق الزر النشط */
.active-filter {
  position: relative;
  background-color: #0056b3; /* تغيير لون الخلفية */
  color: #fff; /* تغيير لون النص */
}

/* إضافة علامة (مثل دائرة) بجانب الزر النشط */
.active-filter::after {
  content: ' ';
  position: absolute;
  top: 117%;
  right: 0px;
  width: 100%;
  height: 3px;
  transform: translateY(-50%);
  font-size: 1.5em;
  background-color: var(--secondary-color); /* لون العلامة */
}

/* testimonials */
.testimonials-section {
  text-align: center;
  padding: 40px;
  /* background-color: #f9f9f9; */
  position: relative; /* لضمان تمركز العناصر */
  overflow: visible; /* مهم للسماح بخروج المحتوى */

}

.swiper {
  width: 80%; /* عرض الشريط */
  margin: auto;
  position: relative; 
  overflow: visible; /* السماح بعرض الأسهم خارج الحواف */
}

.swiper-wrapper {
  display: flex;
  align-items: center;
  overflow: visible;
}

.swiper-slide {
  display: flex;
  justify-content: center; /* لجعل الصورة في المنتصف */
  align-items: center;
}

.swiper-slide img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5); /* خلفية شفافة */
  border-radius: 50%; /* دائري الشكل */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%; /* منتصف الحاوية عموديًا */
  transform: translateY(-50%);
  z-index: 10; /* فوق الصور */
}

.swiper-button-next {
  right: -50px; /* يخرج السهم الأيمن خارج الصورة */
}

.swiper-button-prev {
  left: -50px; /* يخرج السهم الأيسر خارج الصورة */
}

.swiper-slide img {
  width: 100%; /* الصورة تملأ العرض */
  max-height: 300px; /* ارتفاع ثابت */
  object-fit: cover; /* لقص الأجزاء الزائدة مع الحفاظ على النسب */
}



/* Articles */
/* تصميم القسم */
#latest-articles {
  padding: 20px;
  /* background-color: #f4f4f4; */
  border-radius: 8px;
  margin: 100px 0;
}

/* تصميم حاوية المقالات */
.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* تصميم كروت المقالات */
.article-card {
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.article-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: #333;
}

.article-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.article-card a {
  text-decoration: none;
  font-weight: bold;
  color: #ad9551;
  transition: color 0.2s;
}

.article-card a:hover {
  color: #897540;
}
/* footer */
/* تصميم الفوتر */
#site-footer {
  background-color: #222;
  color: #fff;
  padding: 20px 0;
  margin-top: 200px;
  /* font-family: Arial, sans-serif; */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-container > div {
  flex: 1 1 300px;
}

.footer-container h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #f4f4f4;
}

.footer-container p,
.footer-container a {
  font-size: 14px;
  color: #ddd;
  line-height: 1.6;
}

.footer-container a:hover {
  color: var(--main-color);
  transition: var(--transition);
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links li a {
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-links a img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease-in-out;
}

.social-links a img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  border-top: 1px solid #444;
  padding-top: 10px;
}


@media (min-width:993px) {
  .header .main-nav {
  display: flex;
  justify-content: flex-end;
}
}
@media (max-width: 992px) {
  .container{
    max-width: 83%;
  }
  .main-heading h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  .up {
    font-size: 45px;
  }
  .container-header {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
    max-width: 100%;
    border-radius: 0;
    top: 0;
    margin-top: 0px;
  }
  .logo {
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .logo-img {
    height: 50px !important; /* ✅ تصغير الشعار */
    width: auto;
  }

  .logo span {
    font-size: 9px; /* ✅ تصغير حجم الآية */
    color: #333;
    display: block;
    max-width: 90%;
    line-height: 1.6;
  }


  .header {
    top: 0;
  }
  .menu-toggle {
    display: block;
  }

  .main-nav {
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-top: 1px solid #ccc;
    padding: 10px 0;
    display: none;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav li a {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 89%;
    color: #444;
    border-bottom: 1px solid #eee;
  }

  .main-nav li a:hover {
    background-color: #f9f9f9;
  }

  .main-nav.show {
    display: flex;
  }

  .dropdown {
    position: static;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 10px 15px;
    margin-right: 38%;
    margin-top: -13px;
  }

  #otherLinksDropdown a {
    padding: 10px;
  }

  .feature-card h3 {
    font-size: 1.2rem;
  }
  .hadith-content {
    font-size: 1rem;
    padding: 12px;
  }
  .swiper-button-next, .swiper-button-prev {
    display: none !important;
  }
  .swiper {
    width: 100%;
  }
  .hadith-text {
    margin-bottom: -22px;}
    body {
      overflow-x: hidden !important;
    }
}
