/* Reset default margin and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body font and background color */
body {
  font-family: "Cairo";
  background-color: #f5f5f5;
max-width: 100%;
}
body [dir="rtl"]{
  font-family: "Cairo";
  background-color: #f5f5f5;
}

/* Header and Language Buttons */
.language-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 5px 0; /* Add padding to adjust header height */
}

.language-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* Add gap between language buttons */
  padding: 10px 0;
}

.language-button {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  color: #333;
  font-size: 14px;
}

.language-button .flag-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  background-size: cover;
}

.language-button.selected {
  border-color: #000;
  color: #fff;
  background-color: #23262a;
}

.language-button:not(.selected) {
  border: none;
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
  .language-header {
    
    max-width: 100%; /* Adjust padding for smaller header height */
  }

  .language-buttons {
    flex-direction: row; /* Stack language buttons vertically */
    padding: 5px 0; /* Adjust padding for smaller gap between buttons */
  }

  .language-button {
    margin: 5px 0; /* Add margin between language buttons */
  }

  .language-button .flag-icon {
    margin: 0; /* Remove margin for icon */
  }
}



/* Navigation and Slider */
.nav,
.slider {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  background-color: #000;
  text-align: center;
  padding: 0 2em;
}

.nav h1,
.slider h1 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 5vw;
  margin: 0;
  padding-bottom: 0.5rem;
  letter-spacing: 0.5rem;
  color: #dbdfde;
  transition: all 0.3s ease;
  z-index: 3;
}

.nav h1:hover,
.slider h1:hover {
  transform: translate3d(0, -10px, 22px);
  color: #e4e4e4;
}

.slider h2 {
  font-size: 2vw;
  letter-spacing: 0.3rem;
  font-family: "ROBOTO", sans-serif;
  font-weight: 300;
  color: #faebd7;
  z-index: 4;
}

.span.loader {
  font-family: 'Cairo';
  font-size: 2vw;
word-spacing: 2vw;
  font-family: "ROBOTO", sans-serif;
  font-weight: 300;
  color: #fff;
  z-index: 4;
  background-color: transparent;
}
.span.loader [dir="rtl"] {
  font-family: 'Cairo';
  font-size: 2vw;
  font-family: "ROBOTO", sans-serif;
  font-weight: 300;
  color: #fff;
  z-index: 4;
  background-color: transparent;
  letter-spacing: 0;
}
:root {
  --image-directory: ../../../images/;
}

span.loader span:hover {
  color: #000000;
  font-weight: 500;
  font-size: 2.2vw;
}

a {
  text-decoration: none;
}

.nav-container {
  display: flex;
  flex-direction: row;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 75px;
  box-shadow: 20px 20px 50px rgba(133, 133, 133, 0.5);
  background: #fff;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-container--top-first {
  position: fixed;
  top: 75px;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-container--top-second {
  position: fixed;
  top: 0;
}

.nav-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  color: #3c045b;
  letter-spacing: 0.1rem;
  transition: all 0.5s ease;
  font-size: 2vw;
  font-family: 'Cairo';
  letter-spacing: 0;
  font-weight: bold;
}

.nav-tab:hover {
  color: #ddd;
  background: #2d0951;
  transition: all 0.5s ease;
}

.nav-tab-slider {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: left 0.3s ease;
}

.background {
  position: absolute;
  height: 100vh;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

/* Loading animation */
.loader span {
  color: #bebebe;
  text-shadow: 0 0 0 #fff;
  animation: loading 1s ease-in-out infinite alternate;
}

@keyframes loading {
  to {
    text-shadow: 20px 0 70px #fff;
    color: #909090;
  }
}

/* Additional styles for logo and other elements can be added below */
.logo {
  padding-bottom: 10%;
  position: relative;
}

/* Floating scroll-to-top button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #3c045b;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: background-color 0.3s ease;
}



/* Center the floating button in small screens */
@media screen and (max-width: 768px) {
  .scroll-to-top {
    right: 10%; /* Center the button on the right side */
    transform: translateX(50%); /* Adjust for centering */
    margin-bottom: 30px;
  }
}
[dir="rtl"] {
  font-family: "Cairo", sans-serif;
}

.swiper_body {
  margin: 0;
  padding: 0;
  font-family: 'Cairo', sans-serif;
}

.widget-container {
  max-width: 800px;
  margin: 20px auto;
  overflow-x: hidden;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.swiper-container {
  width: 100%;
}

.swiper-slide {
  text-align: center;
  padding: 20px;
}

.swiper-slide img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Enforce a max-width to prevent horizontal overflow on small screens */
@media screen and (max-width: 768px) {
  body {
    max-width: 100%; /* Set a maximum width to fit smaller screens */
    overflow-x: hidden; /* Hide horizontal overflow */
  }
}
