html,
body {
  width: 100%;
  margin: 0px;
  padding: 0px;
  overflow-x: hidden;
  font-family: archivo;
}

.body {
  margin: 0;
  padding: 0;
}

/* NAVBAR */
.navbar {
  width: 100%;
  background-color: rgb(10, 6, 67);
  z-index: 1000;
  position: fixed;
  display: flex;
  height: 80px;
  cursor: pointer;
  margin-top: -15px;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  margin-left: 15px;
  margin-top: 26px;
}

.navbar ul li {
  list-style-type: none;
  display: inline-block;
  text-decoration: none;
  font-size: 18px;
}

.navbar li a {
  text-decoration: none;
  color: white;
  position: relative;
  margin-top: -10px;
}
.center li{
  padding: 0px 27px;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 55px;
  left: 0;
  background: white;
  list-style: none;
  padding: 10px 0;
  width: 150px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: 0.3s ease;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

.dropdown-menu li:hover a {
  color: #0548d7;
}

.dropdown-menu li {
  padding: 10px 15px;
  padding-left: 10px;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-menu li a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  display: block;
  width: 100%;
}
.dropdown-menu li a.active{
  color: black;
  font-weight: 700;
}

/* PROFILE ICON */
.profile {
  padding-top: 11px;
  margin-left: 20px;
  position: relative;
}

.profile i {
  padding: 8px 13px;
  font-size: 30px;
  border-radius: 50%;
  color: white;
  background-color: #0548d7;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.profile:hover {
  transform: translateY(-2px);
}

.navbar a {
  text-decoration: none;
  position: relative;
  overflow: visible;
  display: inline-block;
  vertical-align: middle;
  border-radius: 10px;
  text-align: center;
  width: auto;              
}

.center>li>a {
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.menu {
  position: absolute;
  top: 55px;
  right: 0;
  width: 260px;
  background: white;
  padding: 10px 0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
}

.menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
}

.menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.menu-row:last-child {
  border-bottom: none;
}

.que {
  font-size: 15px;
  color: #333;
}

.btn {
  padding: 5px 12px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background: #0548d7;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #003ea6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-5px);
  }
}

/* DARK THEME ICON */
#theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 70px;
}

#theme-toggle i,
.bi-moon-fill,
.bi-sun-fill {
  color: #ffffff !important;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover i {
  transform: rotate(20deg) scale(1.1);
}

#theme-toggle:active i {
  transform: scale(0.9);
}

.toggle-btn {
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(5, 72, 215, 0.3);
  margin-left: 10px;
}

.toggle-btn:hover {
  background-color: #0336a6;
  transform: scale(1.1);
}

.toggle-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(5, 72, 215, 0.3);
}
/* nav link active */


.center > li > a {
  position: relative;
  overflow: visible;   
}

.center > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 45px;
  bottom: 0;           
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 5px;
}

.center > li > a:hover::after,
.center > li > a.active::after {
  transform: scaleX(1);
}

/* RTL */
.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .navbar {
  direction: rtl;
}

body.rtl .logo {
  margin-left: 0 !important;
  margin-right: 20px !important;
}

body:not(.rtl) .logo {
  margin-left: 20px !important;
  margin-right: 0 !important;
}

.rtl .logo {
  margin-left: 0;
  margin-right: 15px;
}


.rtl .dropdown-menu {
  left: auto;
  right: 0;
}

.rtl .profile {
  margin-right: 5px;
}

.rtl .menu {
  right: auto;
  left: 0;
}

.rtl .menu-row {
  flex-direction: row-reverse;
}

.rtl .btn {
  margin-left: 0;
  margin-right: 10px;
}

.rtl #theme-toggle {
  margin-right: 20px;
  margin-left:10px !important;
}

.rtl .center>li>a::before {
  transform-origin: right;
}

.rtl .center>li>a::after {
  transform-origin: left;
}

.bar {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-bar {
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

.desktop-profile {
  display: block;
}

.mobile-profile {
  display: none;
}

.dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: 0.3s ease;
}

.dropdown-menu.show-dropdown {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

#closeMenu {
  display: none;
}

/* ACTIVE NAV LINK */
.navbar p.active {
  color: white;
  font-weight: 700;
}
.dropdown-menu li a.active{
  color: black;
}

.center > li > a.active::before,
.center > li > a.active::after {
  transform: scaleX(1);
}

[data-theme="dark"] .dropdown-menu li a {
  color: #000000 !important;
}
@media(max-width:1440px){
  .center li{
  padding: 0px 27px;
}

.rtl #theme-toggle {
  margin-right: 0px;
  margin-left: 0px !important;
}
#theme-toggle {
  margin-left: 0px;
}

}

@media screen and (max-width: 1281px) {
 .center li{
  padding: 0px 17px;
}
}
@media screen and (max-width: 1024px) {
 .center li{
  padding: 0px 5px;
}
.navbar ul li {
  font-size: 16px;
}
body.rtl .center li{
  padding: 0px 4px;
}
}

/* MOBILE NAVBAR */
@media (max-width: 844px) {
  .toggle-btn {
    margin-left: 20px;
  }

  .center {
    margin-left: 0px;
  }

  .mobile-toggle {
    position: absolute;
    right: 20px;
    top: 28px;
    font-size: 32px;
    cursor: pointer;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .navbar ul li {
  font-size: 18px;
}
.dropdown-menu li a{
  font-size: 18px;
}
.center > li > a::after {
  top: 53px;
}

  .mobile-toggle i {
    color: white !important;
  }

  /* Hide close icon first */
  #closeMenu {
    display: none;
  }
  .navbar ul li a p {
    display: inline-flex !important;
    width: fit-content !important;
    padding-left: 0;
  }

  /* NAV MENU (Inside Hamburger) */
  .navbar ul {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: rgb(10, 6, 67);
    display: none;
    flex-direction: column;
    padding: 20px;
    text-align: left;
    gap: 15px;
    z-index: 1500;
    padding-left: 30px;
  }

  /* Show when clicking menu */
  .navbar ul.showmenu {
    display: flex;
  }

  /* Vertical li */
  .navbar ul li {
    width: 100%;
    text-align: left;
  }

  .navbar ul li a p {
    width: 100%;
    display: block;
    padding-left: 5px;
  }

  /* show mobile version */
  .mobile-profile {
    display: flex;
    align-items: center;
    position: absolute;
    right: 70px;
    top: 17px;
    font-size: 10px;
    cursor: pointer;
    z-index: 2000;
  }

  .mobile-profile .menu {
    display: none;
  }

  .mobile-profile .menu.show {
    display: block;
  }

  .desktop-profile i {
    display: none;
  }

  .dropdown-menu.show-dropdown {
    margin-left: -100px;
  }

  .dropdown-menu li a {
    color: white;
  }
  #theme-toggle {
    margin-left: 0px !important;
  }

  body.rtl .mobile-toggle {
    right: auto;
    left: 20px;
  }

  body.rtl .mobile-profile {
    right: auto;
    left: 70px;
  }

  body.rtl .navbar ul {
    left: auto;
    right: 0;
    text-align: right;
  }

  body.rtl .navbar ul li {
    text-align: right;
    margin-right: 20px;
  }

  body.rtl .dropdown-menu {
    left: auto;
    right: 0;
  }

  body.rtl .dropdown-menu.show-dropdown {
    margin-left: 0;
    margin-right: -100px;
  }

  body.rtl .toggle-btn {
    margin-left: 0;
    margin-right: 20px;
  }
  .dropdown-menu li a.active {
    color: white;
}
.menu.show{
 margin-right: 550px;
}
body.rtl .menu.show{
 margin-right: 0px;
 margin-left: 500px;
}
[data-theme="dark"] .dropdown-menu li a.active{
  color: white !important;
  font-weight: 700 !important;
}
[data-theme="dark"] .dropdown-menu li a{
    color: white !important;
}
}
@media (max-width:790px){
  .menu.show{
 margin-right: 500px;
}
}
@media (max-width:426px){
  .menu.show{
 margin-right: 150px;
}
    body.rtl .menu.show {
        margin-left: 100px;
    }
}
@media (max-width:389px){
  .menu.show{
 margin-right: 130px;
}
}
@media (max-width:393px){
  .menu.show{
 margin-right: 100px;
}
}
@media (max-width:412px){
  .logo {
  font-size: 25px;
  margin-top: 30px;
}
}