* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Almarai";
  color: #000;
  direction: rtl;       /* Set direction to RTL */
  text-align: center;    /* Align text to the right */
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;     /* Prevent scrolling on the entire body */
}

main {
  height: 100%;
  width: 100%;
  direction: ltr;       /* Trick: Set direction back to LTR to keep the scrollbar on the right */
  overflow-y: scroll;   /* Enable vertical scrolling */
   /* Adjust padding on the left since we swapped direction */
}

main * {
  direction: rtl;       /* Ensure inner content stays RTL */
  text-align: right;    /* Ensure inner content stays aligned to the right */
}

/* Customizing the scrollbar appearance */
main::-webkit-scrollbar {
  width: 5px;  /* Width of the scrollbar */
}

main::-webkit-scrollbar-thumb {
  background-color: #888;  /* Scrollbar thumb color */
  border-radius: 6px;
}

main::-webkit-scrollbar-thumb:hover {
  background-color: #555;  /* Scrollbar color on hover */
}

main::-webkit-scrollbar-track {
  background: #f1f1f1;   /* Background of scrollbar track */
}

/* navbar */
main nav {
  height: 7vh;
  width: 100vw;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2em;
 padding: 2em 1em; 
  position: fixed;
  z-index: 9999;
  top: 0;
right: 0;
background-color:#023233 ;
}


nav ul,
.nav-icons {
  display: none;     
  align-items: center;
  justify-content: flex-start;
  gap: 2em;
  
}

nav ul li {
  list-style: none;
}
/* area of nav css */

nav ul li a i {
  font-size: 12px;
  font-weight: 900;
  color: #84bc47;
  transition: color 0.4s ease; /* Smooth transition for icon */
}

/* Correct hover targeting */
nav ul li a:hover {
  color: #95c11e !important; /* Change the color on hover */
}

nav ul li a i:hover {
  color: #95c11e; /* Change the icon color on hover */
}

/* Nav icons styling */
.nav-icons a {
  text-decoration: none;
  font-size: 15px; /* Added 'px' unit for font-size */
  font-weight: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: 0.4s all ease; /* Smooth transition for hover */
}

.nav-icons a i {
  color: white;
  font-size: 20px;
  transition: color 0.4s ease; /* Smooth transition for icon */
}

.nav-icons a:hover,
.nav-icons a:hover  i {
  color: #95c11e; /* Change both the icon and text color on hover */
}

.sidebar{
  position: absolute;
  top: 9%;
  left: 0%;
  width: 380px;
  /*min-height: 100vh;*/
  background:#fff;
  flex-direction: column;
  display:none;
  align-items: flex-start;
  padding:0 1em !important;
  box-shadow: 7px 7px 10px rgba(0, 0, 0, 0.3);
}
.sidebar li a, .sidebar #close{
  color: #012730 !important;
}
#open, #close{
  font-size: 2em;
}
#open{
  display: none;
}
.sidedown{
  width: 100%;
  display: flex;
  height: 100%;
}
.dropdown{
  background-color: #00000069;
  width: 100%;

  position: fixed;
  top: 0;
  right: 0;
  z-index: 98;
  display: none;

}

.dropdown ul li:hover a, .dropdown  p:hover {
  color: #618305;
  scale: (1.05);
  cursor: pointer;
}
.sidedown #drop-box{

  width: 100%;
  height: 100%;
  display: flex;
flex-wrap: wrap;
gap: 2em;

}
.dropdown #drop-box {
  position: relative;
  background-color: #fff;
  width: 100%;
  padding-top: 18vh;
  padding-right: 4em;
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); /* Large shadow */
}

.dropdown #drop-box::before {
  content: '';
  background: 
  url(https://balady.gov.sa/themes/custom/balady/assets/images/backgrounds/hero-bg-2.svg),linear-gradient(to right,#0c4c4d 40%, rgba(0, 0, 0, 0));

  background-size:contain;
  background-repeat: no-repeat;
  background-position:center ;
  position: absolute;
  display: flex;
  margin-bottom: 0%;
  margin-top: 2%;
  justify-content: center;
  align-items: flex-start;
  left: -40%; /* Yahan adjust karein */
  top:0;
  width:100%;
height:100%;
}

.dropdown ul , .sidedown ul{
z-index:99;
  width: 300px;
  transition: 0.3s all ease;
}
.dropdown ul p,  .sidedown ul p{

  font-size: 15px;
  font-weight: 700;
color: #072a32;
}
.dropdown ul li,  .sidedown ul li{
display: flex;
justify-content:flex-start;
align-items: center;
gap: 1em;
list-style: none;
  line-height:35px;
  transition: 0.4s all ease;

}
.dropdown ul li a,
.sidedown ul li a {
    text-decoration: none;
    font-size: 13px;   
    color: #064847;
    font-weight: 500;
    
}

.dropdown ul li:hover .one {
    display: none !important; /* Hide the first icon on hover */
}

.dropdown ul li:hover .two {
    display: block !important; /* Show the second icon on hover */
    color: #95c11e !important;
}

.dropdown ul:hover .link ,.dropdown ul p:hover .linkk {
  transform: rotate(45deg) !important;
  color: #95c11e !important;

}
main .home {
  overflow: hidden;
  background: linear-gradient(to bottom, #072a32, #023233 50%, #011e22);
  width: 100%;
height: 100%;
  position: relative;
}
main .home .home-text {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8rem;
  gap: 2em;
}
.home-text h1 {
  font-size: 48px;
  font-weight: 700;
}
.home-text p {
  font-size: 24px;
  font-weight: 700;
  width: 50%;
  margin-bottom: 2em;
}
.home-text button {
  width: 200px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid white;
  color: #0c4c4d;
  font-size: 18px;
  font-weight: 700;
  transition: 0.2s all ease;
}
.home-text button i {
  color: #fff;
  background-color: #84bc47;
  padding: 6px;
  border-radius: 50%;
  margin: 5px;
}
.home-text button:hover {
  color: #84bc47;
}
main .product {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 5em;
  gap: 4em;
}
main .product h2 {
  color: #000;
  font-size: 28px;
  font-weight: 700;
}
.product-slider {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.swiper-wrapper {
  display: flex;
  position: relative;
}

.swiper-slide {
  width: 200px;
  height: 200px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  text-align: center;
  gap: 10px;
  border: 1px solid white;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.5s all ease linear;
  box-shadow: 7px 7px 10px rgba(0, 0, 0, 0.3);
}
.swiper-slide:hover {
  background: #84bc47;
}
.swiper-slide img {
  max-width: 100%;
  height: auto;
}

.swiper-slide p {
  font-size: 15px;
  line-height: 29px;
  font-weight: 700;
  color: #000;
}

.product-slider .swiper-button-next,
.product-slider .swiper-button-prev {
  color: #000;
  position: absolute;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
  font-weight: 900;
  color: #0c4c4d;
}
.product-slider .swiper-button-next {
  right: 55%;
  top: 90%;
}
.product-slider .swiper-button-prev {
  right: 42%;
  top: 90%;
}

.swiper-pagination-bullet {
  background-color: #0c4c4d;
}

/* news */
main .news {
  width: 100%;
  padding: 1em 3em;
  display: flex;
  flex-direction: column;
  gap: 2em;
}
.news h2 {
  font-size: 28px;
  font-weight: 700;
  color: #000;
}
.news .cards {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.card {
  width: 280px;
  height: 450px;
  padding: 1em;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 7px 7px 10px rgba(0, 0, 0, 0.2);
  transition: 0.5s all ease;
}
.card:hover {
  background: #84bc47;
}

.card:hover h3,
.card:hover h4,
.card:hover h4 i,
.card:hover p {
  color: white;
}
.card img {
  width: 100%;
  border-radius: 8px;
}
.card h4 {
  font-size: 15px;
  line-height: 50px;
  color: #000;
  font-weight: 600;
}
.card h4 i {
  color: #000;
  margin-left: 10px;
}
.card h3 {
  font-size: 20px;
  line-height: 30px;
  color: #0c4c4d;
  font-weight: 700;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  white-space: normal;
}
.card p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 24px;
  color: #000;
  font-weight: 400;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
  white-space: normal;
}

/* initiatives */
.initiative {
  width: 100%;

  padding: 2em;
}
.initiative .container {
  width: 100%;
  height: 600px;
  background: linear-gradient(145deg, #012730, #021b20);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  border-radius: 2em;
  padding: 20px;
}
.container h2 {
  font-size: 28px;
  font-weight: 700;
}
.container .boxes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.container .box {
  width: 280px;
  height: 400px;
  display: flex;
  flex-direction: column;
  gap: 2em;
  padding: 10px;
}
.box h3 {
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}
.container .box-img {
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  background: white;
}
.box-img img {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  transition: 0.4s all ease;
}
.box-img:hover img {
  scale: 0.8;
}
.box-img h4 {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 60px;
  background-color: #cae2f2;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  cursor: pointer;
}

/* app */
.app {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 2em;
  gap: 2em;
}
.app h2 {
  font-size: 28px;
  font-weight: 700;
  color: #000;
}
.app .app-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}
.app-box .app-cont {
  width: 50%;
  display: flex;
  
}
.app-cont .app-cont-text {
  margin: 30px;
}
.app-cont-text h3 {
  font-size: 28px;
  font-weight: 500;
  color: #0c4c4d;
  line-height: 34px;
}
.app-cont-text p {
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  margin-top: 3em;
  color: #000;
}
.app-cont-text i {
  font-size: 28px;
  color: #0c4c4d;
  margin: 1em 0%;
  cursor: pointer;
}
.app-cont-text span {
  color: #0c4c4d;
  padding: 10px;
}
.app-cont-text img 
{
  width: 8em;
  margin: 1em;
}
.view-element {
  width: 100%;
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
}
.view-element .elem {
  width: 350px;
  background: #11615f;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em;
  border-radius: 1em;
}
.elem-img {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}
.elem-img .imgs {
  padding: 1em;
}
.imgs img {
  margin: 5px;
}
.imgs p {
  font-size: 12px;
}
.elem h4 {
  font-size: 18px;
  margin: 10px;
}
.elem p {
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
/* platform */
.platform {
  width: 100%;
  padding: 1em 5em;
}
.platform .platform-box {
  width: 100%;
  height: 600px;
  background: linear-gradient(45deg, #000000, #012730);
  border-radius: 2rem;
  padding: 2em;
  display: flex;
  flex-wrap: wrap;
}
.platform .platform-text {
  width: 50%;
}
.platform-text h2 {
  font-size: 36px;
  line-height: 43px;
  font-weight: 700;
  color: #84bc47;
}
.platform-text h3 {
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
  margin: 1em 0;
}
.platform-text p {
  font-size: 16px;
  line-height: 24px;
  padding: 1em 0em;
}
.platform-text a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  color: #166466;
  line-height: 50px;
}

/* statistics
 */
 main .statistics{
    width: 100%;
    background:linear-gradient(to right, #166466, #84bc47);
    display: flex;
    flex-direction: column;
    gap: 2em;
    padding: 3em;
 }
.statistics .stat-box{
    width: 100%;
    display: flex;
 flex-wrap: wrap;
 justify-content: space-evenly;
}
.st-box{
    width: 220px;
    height: 300px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.st-box img{
    width: 100%;
    border-radius: 10px;
}
.st-box p{
font-size: 16px;
line-height: 24px;
font-weight: 400;
}
.st-box span{
    font-size: 32px;
    line-height: 38px;
    font-weight: 700;
}
.comment{
    width: 100%;
 
    display: flex;
    justify-content: center;
 padding: 1em;
    align-items:center ;
}
.comment i{
    font-size: 50px;
    margin: 0 1em;
    color: #000;
}
.comment h3{
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    margin: 0 1em;
    padding-left: 1em;
    border-left: 1px solid black;
    color: #000;
}
.comment p{
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    color: #000;
    padding: 5px;
}
.comment button{
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    padding: 10px;
    border: 1px solid white;
    border-radius: 8px;
    background: #064847;
}
footer {
    background-color:#064847;
    color: white;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

footer .f-box{
    width: 250px;
    display: flex;
    flex-direction: column;
}
.f-box a{
    text-decoration: none;
    font-size: 16px;
    line-height: 50px;
}
.f-box #num, #num i{
    font-size: 24px;
    font-weight: 700;
    padding: 10px;
    color: #84bc47;
}
.f-box i{
  font-size:20px;
  padding: 5px 10px;
}
footer h4{
  font-size: 15px;
  font-weight: 400;
  line-height: 40px;
}
.f-box .btn{
  width: 250px;
  height: 50px;
  display: flex;
  justify-content:center;
  align-items: center;
  background-color:#fff;
  border: 1px solid white;
  border-radius: 8px;
  gap: 1em;
  margin: 1em;
}
.f-box  .btn span{
 font-size: 18px;
 font-weight: 400;
 color: #074c5c;
}.f-box img{
  width: 8em;
  margin: 10px;
}
.f-after{
  background: #072a32;
  width: 100%;
  padding: 4em;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1em;
}
.f-after a{
  padding: 1em;
  text-decoration: none;

}
.f-after h6{
  font-size: 15px;
  font-weight: 400;
}
.form{
  width: 100%;
  background-color:#ECEFF3;
  padding: 3em;
  margin-top: 18vh;
}
.form-container{
  background-color: #fff;
  border-radius: 2em;
}
.form-box{
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2em;
  padding-top: 2em;
}
.form-box h2{
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  color: 
  rgb(72, 78, 86);
}
.form-box img{
  width:180px;
}
form{
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  padding:2em  4em;
}

.form-group{
  width: 500px;
  height: 50px;
  position: relative;

}
.form-group label{
  position: absolute;
  top: -15px;
  right: 10px;
  color: #000;
  background: #fff;
  padding: 0px;
  font-size: 16px;
  font-weight: 600;
  z-index: 5;

}
.form-group input{
  width: 100%;
  height: 100%;
  outline: 1px solid rgb(216, 211, 211);
  background: #F3F6F7;
  color: #000;
  border-radius: 8px;
  padding: 0 1em;
  font-size: 13px;
  font-weight: 400;
  line-height: 50px;
  position: absolute;
}
#submit{
  color: #fff;
  background-color: #11615f;
  width: 150px;
  height: 50px;
  text-align: center;
  margin:0  4em;
  margin-bottom: 2em;
  border: 1px solid  #11615f;
  border-radius: 2em;
  font-size: 18px;
  font-weight: 500;

}
#submit:hover{
  background: #046d85;
}
.footer-content{
  width: 100%;
  list-style:none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 2em 0em;
  padding-right: 2em;
}
.footer-content ul{
width: 20%;
text-decoration:none;
list-style:none;
  display: flex;
  justify-content: space-between;
  align-items: left;
}
.footer-content p, .footer-content  ul li a{
  text-decoration: none;
  list-style:none;
  color: #000;
  font-size: 15px;
  transition: 0.2s all ease;
}
.footer-content  ul li a:hover{
  text-decoration: underline;
}

@media (max-width: 1240px){

  nav{
    justify-content:space-between!important ;
    width: 100%;
    margin: 0 !important;
    padding: 10px;
  }
  nav ul, nav .nav-icons{
    display: none;
  }
  #open{
    display: flex;
  }
  form{
    justify-content: center;
  }
  .home-text h1 {
    font-size: 40px;
    font-weight: 700;
  }
  .home-text p {
    font-size: 24px;
    font-weight: 700;
    width: 100% !important;
    margin-bottom: 2em;
  }

  .initiative .container {
    width: 100%;
 height: 100% !important;
    padding: 20px;
  }
}
@media (max-width: 992px){
  .home-text {

    padding: 2rem !important;
    gap: 2em;
  }
  .home-text h1 {
    font-size: 38px;
    font-weight: 700;
  }
  .home-text p {
    font-size: 20px;
    line-height: 38px;
    font-weight: 500;
    width: 50%;
    margin-bottom: 2em;
  } 
  .home-text button {
    width: 150px;
    height: 60px;
    border-radius: 8px;
    border: 1px solid white;
    color: #0c4c4d;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s all ease;
  }
  .app-box .app-cont {
    width: 100% !important;
    
  }
  .platform .platform-text {
    width: 100%;
  }
  .platform-img img{
    width: 100% !important;
  }
  .platform .platform-box {
    width: 100%;
    height: auto !important;
  }
  .comment{
    width: 100%;
    height:auto !important;

    display: flex;
   flex-wrap: wrap;
}
}
@media (max-width: 576px){
  main .home{
    width: 100%;
    height: 100%;
    background-size: cover;
  }
  nav{
    width: 100%;
  }
  .form-box h2{
    font-size: 20px;
  }
  form{
    padding: 4em 1em ;
  }
  .form-group{
    width: 80%;
  }
  .app-box .app-cont {
    flex-wrap: wrap;
    
  }
}