nav{
  position: fixed;
  z-index: 1000;
  width: 100%;
  background: #000000;
}
nav.scrolled{
  background: #000000;
  /* backdrop-filter: blur(10px); */
}
section.carousel{
  position: relative;
}
nav .wrapper{
  position: relative;
  max-width: 1200px;
  padding: 0px 32px;
  height: 70px;
  line-height: 70px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wrapper .logo img{
  height: 40px;
  display: block;
}
.wrapper .nav-links{
  display: inline-flex;
}
.nav-links li{
  list-style: none;
}
.nav-links li a{
  color: #f2f2f2;
  text-decoration: none;
  font-weight: 400;
  padding: 9px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.nav-links li a:hover{
  color: #FF7518;
}
.nav-links li a.active{
  color: #FF7518;
  font-weight: 600;
}
.drp a.active{
  color: #FF7518 !important;
}
a.desktop-item .active{
  color: #FF7518 !important;
}
.nav-links .mobile-item{
  display: none;
}
.nav-links li:hover .mega-box{
  opacity: 1;
  visibility: visible;
}
.drop-menu li a{
  width: 100%;
  display: block;
  padding: 0 0 0 15px;
  font-weight: 400;
  border-radius: 0px;
}
.mega-box{
  position: absolute;
  left: 0;
  width: calc(100% - 64px);
  padding: 0 32px;
  top: 70px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.mega-box .content{
  background: rgba(0,0,0,1);
  display: flex;
  padding: 32px;
  width: 100%;
  justify-content: space-between;
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
  border-radius: 0 0 16px 16px;
}
.mega-box .content .row{
  width: calc(25% - 30px);
  line-height: 45px;
}
.content .row img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content .row header{
  color: #f2f2f2;
  font-weight: 500;
}
.row .mega-links li a{
  padding: 0 0 0 8px;
  display: block;
}
.row .mega-links li a:hover{
  color: #FF7518;
  background: #ffffff18;
}
.wrapper .btn{
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
}
.wrapper .btn.close-btn{
  position: absolute;
  right: 30px;
  top: 10px;
}

@media screen and (max-width: 970px) {
  /* Lang item becomes a drawer section at the bottom */
  .lang-item {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 8px 12px;
    margin-top: 8px;
  }
  .lang-switcher {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 10px;
    width: 100%;
  }
  .lang-switcher .lang-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lang-switcher .lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
  }
  .lang-switcher .lang-btn.active {
    background: #FF7518;
    border-color: #FF7518;
    color: #fff;
  }
  .wrapper .btn{
    display: block;
  }
  .wrapper .nav-links{
    position: fixed;
    height: 100vh;
    width: 100%;
    max-width: 350px;
    top: 0;
    left: -100%;
    background: #000000;
    display: block;
    padding: 50px 10px;
    line-height: 50px;
    overflow-y: auto;
    box-shadow: 0px 15px 15px rgba(0,0,0,0.18);
    transition: all 0.3s ease;
  }
  /* custom scroll bar */
  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #202020;
  }
  ::-webkit-scrollbar-thumb {
    background: #FF7518;
  }
  #menu-btn:checked ~ .nav-links{
    left: 0%;
  }
  #menu-btn:checked ~ .btn.menu-btn{
    display: none;
  }
  #close-btn:checked ~ .btn.menu-btn{
    display: block;
  }
  .nav-links li a{
    padding: 0 0 0 8px;
    display: block;
  }
  .nav-links .drop-menu{
    position: static;
    opacity: 1;
    top: 65px;
    visibility: visible;
    width: 100%;
    max-height: 0px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
  }
  #showDrop:checked ~ .drop-menu,
  #showMega:checked ~ .mega-box{
    max-height: 100%;
  }
  .nav-links .desktop-item{
    display: none;
  }
  .nav-links .mobile-item{
    display: block;
    color: #f2f2f2;
    font-weight: 500;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    padding: 0 0 0 8px;
  }
  .drop-menu li{
    margin: 0;
  }
  .drop-menu li a{
    border-radius: 5px;
    font-size: 18px;
  }
  .mega-box{
    position: static;
    top: 65px;
    opacity: 1;
    visibility: visible;
    padding: 0 0 0 16px;
    max-height: 0px;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .mega-box .content{
    box-shadow: none;
    flex-direction: column;
    padding: 8px 8px 0 8px;
  }
  .mega-box .content .row{
    width: 100%;
    margin-bottom: 15px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .mega-box .content .row:nth-child(1),
  .mega-box .content .row:nth-child(2){
    border-top: 0px;
  }
  .content .row .mega-links{
    border-left: 0px;
    padding-left: 15px;
  }
  .row .mega-links li{
    margin: 0;
  }
}
nav input{
  display: none;
}

.body-text{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  padding: 0 30px;
}
.body-text div{
  font-size: 45px;
  font-weight: 600;
}

@media screen and (max-width: 970px) {
  .swiper-button-prev, .swiper-button-next{
    display: none;
  }
}
@media screen and (max-width: 520px) {
  nav .wrapper{
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
  }
  .wrapper .logo img{
    height: 32px;
  }
}

/* ========================================
   RTL Arabic Font — Nav
   ======================================== */
[dir="rtl"] nav,
[dir="rtl"] .nav-links li a,
[dir="rtl"] .nav-links .mobile-item,
[dir="rtl"] .content .row header,
[dir="rtl"] .row .mega-links li a,
[dir="rtl"] .drop-menu li a {
    font-family: "Almarai", sans-serif;
    letter-spacing: 0;
}

/* ========================================
   Language Switcher — Desktop (pill inside nav)
   ======================================== */
.lang-item {
  display: flex;
  align-items: center;
  margin-inline-start: 8px;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 4px;
}
.lang-switcher .lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 50px;
  transition: all 0.25s ease;
  line-height: 1;
  white-space: nowrap;
  font-family: "Almarai", "Montserrat", sans-serif;
}
.lang-switcher .lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.lang-switcher .lang-btn.active {
  background: #FF7518;
  color: #fff;
  font-weight: 700;
}

/* ========================================
   RTL (Arabic) Nav Overrides
   ======================================== */

/* Mobile nav panel slides from right in RTL */
[dir="rtl"] .wrapper .nav-links {
  left: auto;
  right: -100%;
}
[dir="rtl"] #menu-btn:checked ~ .nav-links {
  right: 0%;
  left: auto;
}

/* Close button flipped in RTL */
[dir="rtl"] .wrapper .btn.close-btn {
  right: auto;
  left: 30px;
}

/* Nav link padding direction in RTL */
@media screen and (max-width: 970px) {
  [dir="rtl"] .nav-links li a {
    padding: 0 8px 0 0;
  }
  [dir="rtl"] .nav-links .mobile-item {
    padding: 0 8px 0 0;
  }
  [dir="rtl"] .mega-box {
    padding: 0 16px 0 0;
  }
  [dir="rtl"] .content .row .mega-links {
    border-left: 0;
    border-right: 0;
    padding-left: 0;
    padding-right: 15px;
  }
  [dir="rtl"] .drop-menu li a {
    padding: 0 15px 0 0;
  }
  [dir="rtl"] .row .mega-links li a {
    padding: 0 8px 0 0;
  }
}

/* Desktop mega-menu in RTL */
@media screen and (min-width: 971px) {
  [dir="rtl"] .drop-menu li a {
    padding: 0 15px 0 0;
  }
  [dir="rtl"] .row .mega-links li a {
    padding: 0 8px 0 0;
  }
}