/* custom.css - الملف الكامل مع جميع التعديلات */
@import url("../fonts/OMNES-ARABIC-REGULAR.ttf");
@import url("../fonts/OMNES-ARABIC-BOLD.ttf");
/* المتغيرات العامة */
:root {
  /* --primary-color: #61D2B4;
  --secondary-color: #33b391; */
  --primary-color: #3a7565;
  --secondary-color: #346357;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --white: #fff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}
@font-face {
  font-family: "OMNES-ARABIC-REGULAR";
  src: url("../fonts/OMNES-ARABIC-REGULAR.ttf");
  font-family: "OMNES-ARABIC-BOLD";
  src: url("../fonts/OMNES-ARABIC-BOLD.ttf");
}
/* التنسيقات الأساسية */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "OMNES-ARABIC-REGULAR", "Tajawal", sans-serif;
  direction: rtl;
  color: var(--text-color);
  background-color: var(--light-bg);
  min-height: 100vh;
  display: flex;
  font-size: 16px;
  flex-direction: column;
  font-display: swap;
  /* padding-top: 70px; */
  line-height: 1.6;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: "OMNES-ARABIC-REGULAR", "Tajawal", sans-serif;
}
#content {
  width: 100%;

  border: 1px solid #ccc;
  margin-top: 0;
}
.form-check {
  padding-right: 1.25rem;
}
.content-expanded {
  /* 100vh - header (70px) - footer (52px) */
  height: calc(100vh - 152px);
}
.content-collapsed {
  height: calc(100vh - 52px);
}

/* Add this if you have a footer element */
footer {
  height: 52px; /* Adjust this value to match your footer's actual height */
  /* Add other footer styles as needed */
}
/* شريط التنقل */
.navbar {
  /* position: fixed; */
  position: relative;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgb(0 0 0 / 80%);
  padding: 10px 15px;
  transition: var(--transition);
  height: 70px;
}
.navbar-expand-lg .navbar-nav .nav-link {
  color: var(--text-color);
}
.slicknav_btn {
  margin: 12px 0;
}
.slicknav_menu ul {
  background-color: #e8e8e8;
}
/* الشعار على اليسار */
.navbar-brand {
  position: fixed;
  left: 15px;
  top: 15px;
  margin: 0;
  z-index: 1050;
}

.navbar-brand img {
  height: 80px;
  width: auto;
  transition: var(--transition);
}

/* زر البرجر على اليمين */
.navbar-toggler {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1040;
  border: none;
  background: none;
  font-size: 1.8rem;
  color: var(--text-color);
  padding: 5px 10px;
  cursor: pointer;
  transition: var(--transition);
}

.navbar-toggler:hover {
  color: var(--primary-color);
}

.navbar-toggler:focus {
  outline: none;
}
.nav-item {
  font-family: "OMNES-ARABIC-BOLD", "tajawal", sans-serif;
  /* font-weight: bold; */
  font-size: 14px;
}
.navbar-expand-lg .navbar-nav .nav-link {
  margin-bottom: 0;
}
.header-toggle-arrow {
  position: absolute;
  top: 90px;
  left: 35px;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--primary-color);

  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}
.header-toggle-arrow.header-expanded {
  top: 90px;
  left: 35px;
  transition: down 0.3s ease-in-out;
}
.header-toggle-arrow.header-collapsed {
  top: -10px;
  left: 35px;
  transition: top 0.3s ease-in-out;
}

.header-toggle-arrow.rotated i {
  transform: rotate(180deg);
}

.header-toggle-arrow i {
  line-height: 30px;
  color: var(--white);
}

.header-toggle-arrow:hover {
  background: var(--secondary-color);
  color: var(--white);
}
/* القائمة الطافية للجوال */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--white);
  z-index: 1050;
  padding: 80px 20px 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.show {
  right: 0;
}

.mobile-menu .navbar-nav {
  margin-top: 30px;
}

.mobile-menu .nav-item {
  margin: 0;
}

.mobile-menu .nav-link {
  padding: 12px 0;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  display: block;
  transition: var(--transition);
}

.mobile-menu .nav-link:hover {
  color: var(--primary-color);
  padding-right: 15px;
}
.mobile-menu .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: bold;
}

/* طبقة التعتيم الخلفية */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.menu-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* حالة فتح القائمة */
body.menu-open {
  overflow: hidden;
}

/* قسم الهيرو */
#hero-area {
  background: none;
  color: var(--white);
  background-color: var(--white) !important;
  position: relative;
  overflow: unset;
  /* margin-top: -70px;
  padding-top: 70px; */
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.profile .dropdown-menu {
  right: inherit;
  min-width: 20rem;
  left: 0;
  text-align: right;
}
.profile img {
  cursor: pointer;
}
/* الأزرار */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: none;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.navbar .nav-link.active {
  background-color: var(--primary-color);
}
.btn-common {
  background-color: var(--primary-color);
}
.btn-common:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}
.controls .active {
  color: var(--primary-color) !important;
}
.video-promo {
  background: var(--primary-color);
}
.copyright p a {
  color: #33b290;
}
footer {
  padding: 0;
}

/* التعديلات للشاشات الصغيرة */
@media (max-width: 992px) {
  /* إخفاء القائمة الأصلية */
  .navbar-collapse {
    display: none !important;
  }
  .slicknav_menu {
    display: block;
  }
  .navbar-header {
    width: 100%;
  }
  /* تعديلات الشعار */
  .navbar-brand img {
    height: 35px;
  }
  .navbar-toggler i {
    transition: all 0.3s ease;
  }

  /* تأكد من أن زر البرجر لا يحتوي على حدود أو خلفية */
  .navbar-toggler {
    border: none;
    background: transparent;
    outline: none;
    font-size: 1.5rem;
  }

  /* تعديلات الهيرو */
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* التعديلات للشاشات الكبيرة */
@media (min-width: 992px) {
  /* إخفاء عناصر الجوال */
  .navbar-toggler,
  .mobile-menu,
  .menu-backdrop,
  .slicknav_menu {
    display: none !important;
  }

  /* إعادة ضبط الشريط العلوي */
  .navbar {
    /* position: static; */
    /* padding: 15px; */
    height: auto;
  }

  /* إعادة ضبط الشعار */
  .navbar-brand {
    position: static;
    transform: none;
    margin-right: auto;
  }

  /* إظهار القائمة الأصلية */
  .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  /* تعديلات الهيرو */
  #hero-area {
    margin-top: 0;
  }
}
@media (max-width: 767px) {
  .copyright {
    float: none;
  }
}
@media (min-width: 576px) {
  #login .container,
  #login .container-sm {
    max-width: 100%;
  }
}
/* بقية التنسيقات... */

/* Login Section Styling */
.login-container {
  position: relative;
  background: url("../img/bg.jpg") no-repeat center center;
  background-size: cover;
  margin: 0 10%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  padding: 40px 0;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(
    244,
    243,
    243,
    0.551
  ); /* Adjust the opacity (0.4) for desired fade effect */
  z-index: 1;
}

/* Ensure content stays above the faded background */
.login-form,
.login-right {
  position: relative;
  z-index: 2;
}

.login-form {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 20px;
}
.login-right img {
  width: 200px;
}
.login-right h3 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 2rem;
}
.form-control {
  border-radius: 0;
  color: var(--text-color);
  border-radius: 10px;
  border: 1px solid #606a74;
}
.form-control input,
.form-control:focus {
  color: var(--text-color);
}
/* counter section */

/* Responsive adjustments */
@media (max-width: 767px) {
  .login-form,
  .login-right {
    padding: 30px;
    margin: 10px;
  }
}
@media (max-width: 992px) {
  .navbar-brand {
    display: none; /* Hide the logo */
  }
  .profile {
    display: block !important; /* Show the profile image */
    position: fixed;
    left: 15px;
    top: 15px;
    z-index: 1050;
  }
}
.nav-item.dropdown .dropdown-toggle::after {
  display: inline-block;
  margin-right: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}
.nav-item.dropdown {
  position: relative;
  position: relative;
  position: relative;
  z-index: 9999 !important; /* Maximum priority for dropdown parent */
  font-family: "OMNES-ARABIC-BOLD", "tajawal", sans-serif;
  /* font-weight: bold; */
  font-size: 14px;
}

.dropdown-menu {
  padding: 0;
  margin: 0;
  min-width: 25rem;
  background-color: var(--white);
  color: var(--text-color);
  border-radius: 10px;
  position: absolute;
  z-index: 9999 !important; /* Force highest priority */
  box-shadow: var(--shadow);
}
.dropdown-item.active,
.dropdown-item:active {
  background-color: #61a795;
  color: var(--white);
}

.dropdown-item {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0; /* Add divider between items */
}

.dropdown-item:last-child {
  border-bottom: none; /* Remove divider from the last item */
}

/* Style for visited links */
.nav-link:visited {
  color: var(--primary-color);
  font-weight: bold;
}
