@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html[dir="rtl"] .swiper-button-next {
  right: auto;
  left: 10px;
  transform: rotate(180deg);
}

html[dir="rtl"] .swiper-button-prev {
  left: auto;
  right: 10px;
  transform: rotate(180deg);
}

html[dir="rtl"] .swiper-pagination {
  direction: ltr; 
  text-align: center;
}

html[dir="rtl"] body {
  font-family: "Cairo", sans-serif !important;
}

::-webkit-scrollbar {
  width: 8px;             
  height: 8px;           
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #3a6493;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #003f86;
}

.form button {
  border: none;
  background: none;
  color: #8b8ba7;
}

.form {
  --timing: 0.3s;
  --width-of-input: 200px;
  --height-of-input: 40px;
  --border-height: 2px;
  --input-bg: #fff;
  --border-color: #4d7cb1 ;
  --border-radius: 30px;
  --after-border-radius: 1px;
  position: relative;
  width: var(--width-of-input);
  height: var(--height-of-input);
  display: flex;
  align-items: center;
  padding-inline: 0.8em;
  border-radius: var(--border-radius);
  transition: border-radius 0.5s ease;
  background: var(--input-bg,#fff);
}
/* styling of Input */
.input {
  font-size: 0.9rem;
  background-color: transparent;
  width: 100%;
  height: 100%;
  padding-inline: 0.5em;
  padding-block: 0.7em;
  border: none;
}
/* styling of animated border */
.form:before {
  content: "";
  position: absolute;
  background: var(--border-color);
  transform: scaleX(0);
  transform-origin: center;
  width: 100%;
  height: var(--border-height);
  left: 0;
  bottom: 0;
  border-radius: 1px;
  transition: transform var(--timing) ease;
}
/* Hover on Input */
.form:focus-within {
  border-radius: var(--after-border-radius);
}

input:focus {
  outline: none;
}
/* here is code of animated border */
.form:focus-within:before {
  transform: scale(1);
}

.reset {
  border: none;
  background: none;
  opacity: 0;
  visibility: hidden;
}

input:not(:placeholder-shown) ~ .reset {
  opacity: 1;
  visibility: visible;
}

.form svg {
  width: 17px;
  margin-top: 3px;
}


body {
   font-family: "Jost", sans-serif;
  color:#4d7cb1 ;
  scrollbar-width: thin;              
  scrollbar-color: #3a6493 #f1f1f1;
}

/* Navbar */
.navbar {
  background: #ffffff; 
  padding: 15px 40px;
  border-bottom: 1px solid #ebebeb;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.container img{
    width: 50px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  font-size: 18px;
  color:#2c3e50;
  font-weight: bold;
}

.nav-links a:hover {
  color: #4d7cb1;
}

.nav-links .active{
  color: #4d7cb1;
}

.search-box {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
}

.login-btn {
  background: linear-gradient(to right, #4d7cb1, #649bd6); 
  color: #ffffff;
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1);
}

.login-btn:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* .nav-actions input {
    padding: 15px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
}

.nav-actions input:focus {
  outline: none;
  box-shadow: 0 0 0 1px #95c6fd;
  border-color: #4d7cb1;
} */

.nav-actions{
  display: flex;
  gap: 10px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 15px;
  background: #ffffff;
  padding: 15px 20px;
  border-top: 1px solid #ebebeb;
}

.mobile-menu .nav-links2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu .nav-links2 a {
  text-decoration: none;
  font-size: 16px;
  color: #4d7cb1;
  font-weight: bold;
}

.mobile-menu .search-box2 {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ebebeb;
  font-size: 14px;
}

.nav-links2 a:hover {
  color: #4d7cb1;
}

.nav-links2 .active{
  color: #4d7cb1;
}


/* Optional styling for dropdown */
.custom-lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: linear-gradient(to right, #4d7cb1, #649bd6);
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.lang-btn i {
  font-size: 18px;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 5px;
  list-style: none;
  padding: 0;
  z-index: 1000;
  min-width: 120px;
}

.lang-menu li {
  padding: 10px;
  cursor: pointer;
  color: #333;
}

.lang-menu li:hover {
  background-color: #f0f0f0;
}


/* RTL helper */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .nav-links,
[dir="rtl"] .nav-links2 {
  flex-direction: row-reverse;
}



/* Footer */
.footer {
  color: #451519;
  padding-top: 30px ;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  align-items: start;
  padding: 30px 30px;
}
.footer-brand img{
  width: 30%;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  margin: 8px 0;
}
.footer-links ul li a {
  color: #000;
  text-decoration: none;
  transition: 0.3s;
}
.footer-links ul li a:hover {
  color: #4d7cb1;
  text-decoration: underline;
}
.footer-social a {
  margin-right: 10px;
  color: #3a6493;
  font-size: 1.6rem;
  transition: transform 0.3s, color 0.3s;
}
.footer-social a:hover {
  color: #451519;
  transform: scale(1.2);
}
.footer-bottom {
  text-align: center;
  padding: 20px;
  background-color: #ebebeb;
  font-size: 0.9rem;
}
.footer-links h4{
  border-bottom: 3px solid #4d7cb1;
  font-size: 18px;
  font-weight: 600;
}

.footer-social h4{
   border-bottom: 3px solid #4d7cb1;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
    text-align: center;
  }
  .cta-text,
  .cta-image {
    flex: 1 1 100%;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-actions .form {
    display: none;
  }

  #login-button {
    display: none;
  }

  .hamburger {
    display: block;
    font-size: 24px;
    color: #4d7cb1;
  }

  .mobile-menu.active {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 32px;
    color: #3a6493;
  }

  [dir="rtl"] .nav-links, [dir="rtl"] .nav-links2{
    flex-direction: column;
  }
}