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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--main-color);
  cursor: pointer;
}
  .container-header {
    position: absolute !important; /* لجعل الهيدر عائمًا */
    top: 17px;
    left: 0;
    right: 0;
    max-width: 80%; /* تحديد العرض الأقصى للهيدر */
    margin: 0 auto 0 auto !important; /* توسيط الهيدر تلقائيًا */
    background-color: white;
    border-radius: 43px;
padding: 0 50px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    box-shadow: 0px 0px 5px 0px;
  }
  a {
    text-decoration: none !important;
    color: #ad9551 ;
  }
  ul {
    list-style: none !important;
    /* padding: 0; */
    margin: 0 !important;
    display: flex;
    gap: 20px;
  }
  .header {
    background-color: #aa9353;
    /* position: relative; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0 0;
  }
  /* .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    position: sticky;
  }
  .header .main-nav {
    display: flex;
    justify-content: flex-end;
  } */
  .header .logo {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #ad9551;
    font-size: 15px;
  }
  .header .logo-img {
    height: 70px;
  }
  /* 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 !important;
    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;
  }
/* 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;
  }
    
.text-center {
    margin-top: 115px;
}
.btn-primary {
    background-color: #ad9551 !important;
    border-color: #ad9551 !important;
    color: white !important;
    transition: background var(--transition);
}
.custom-hover:hover {
    background-color: #aa9353 !important;
}
/* 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: 300px;
    margin-top: 28px;
  }
  .main-heading h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    margin-top: -78px;
  }
  .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;
    z-index: 999999999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

  }
  .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;
  }
  .courses-container {
    height: 100%;
    overflow-x: hidden;
    
  }
}