* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:'Vazirmatn', sans-serif;
  background: #fff;
  

  flex-direction: column;
  align-items: center;
}


/* header */


@media (max-width: 649px){
    .nav-menu {
      display: none !important;
    }
    .navbar0 {
        grid-template-columns: repeat(2, auto) !important;
    }
    .main_change_language {
        display: none;
    }
    #menu_icon {
        display: block;
    }
    .main_change_language {
        display: none;
    }
}
@media (min-width: 649px) {
  #menu_icon {
    display: none !important;
  }
}

a{
  text-decoration: none;
  color: #ffffff;
}

ul{
    list-style: none;
}

.header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100000;
  width: 100%;
  padding: -20px 30px 10px 20px;
  height: 100px;
}

#menu_icon {
  width: 46px;
  height: 46px;
  margin-bottom: 2rem;
  margin-right: 1.3rem;
  display: block;
}

#close_icon {
  width: 46px;
  height: 46px;
  margin-bottom: 2rem;
  margin-right: 16px;
  display: none;
  z-index: 1000;
}

.close_icon_active {
  display: block !important;
}

.menu_icon_active {
  display: none !important;
}

.navbar0 {
    display: grid;
    grid-template-columns: repeat(3,auto);
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
 
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 15px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  margin-right: -10px;
}

.nav-menu a:hover {
  color: #0078ff;
  transition: 0.3s;
}



.main_change_language {
  background-color: #0078ff;
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 1.4rem;
}

.btn-primary:not(.main_change_language) {
  background-color: #0078ff;
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}


.btn-primary:hover {
  background-color: #005fcc;
  transition: 0.3s;
}

.img_header{
  width: 100px;
  margin-right: 50px;
  margin-left: 30px;
  margin-top: -.5rem;
}

.side_bar {
  background-color: #ffffffec;
  position: fixed;
  z-index: 100;
  width: 200px;
  height: 100svh;
  right: 0;
  top: 0;
  border-left: 2px solid #494949;
  transform: translateX(300px);
  -webkit-transform: translateX(300px);
  -moz-transform: translateX(300px);
  -ms-transform: translateX(300px);
  -o-transform: translateX(300px);
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
}

.side_bar > ul li a {
  color: #323232;
}

.side_bar ul {
    position: absolute;
    right: 1.5rem;
    top: 95px;
    font-weight: 600;
    line-height: 40px;
    font-size: 18px;
    padding: 0;
}



.side_bar_language {
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 17px;
}

.menu1_active {
  transform: translateX(0);
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
}



.change_language > a {
  margin-right: 1.5rem;
  position: absolute;
  bottom: 20px;
}

#close_icon {
  position: relative;
}



/* header */


/*||||||||||||||||||||||||*/
a{
  text-decoration: none;
  color: #ffffff;
}

/*||||||||||||||||||||||||*/

/*||||||||||||||*/

.custom-slider-wrapper {
  display: flex;
  justify-content: center;
}

.custom-slider-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 800px;              /* کمی بزرگ‌تر */
  height: 500px;             /* ارتفاع بیشتر از عرض */
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px 30px;
  gap: 30px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

.custom-text-side {
  flex: 1;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
  transition: opacity 0.8s ease;
  position: sticky;
  z-index: 1000;
}

.custom-image-side {
  flex-shrink: 0;
  max-width: 100%;
  height: 420px;            /* ارتفاع بلندتر برای پرتره */
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-image-slide {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: opacity 0.8s ease;
  
}

@media (max-width: 768px) {
  .custom-slider-box {
    flex-direction: column-reverse;
    width: 100%;
    height: auto;
  }

  .custom-image-slide {
    object-fit: contain;
  }


}
/*||||||||||||||*/
    .custom-footer {
      background-color: #00489b;
      color: #fff;
      padding: 30px 15px;
    }
    footer{
      max-width: 100%;
    }
    
    .wrapper {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: flex-start;
    }
    
    .footer-box {
      flex: 1 1 30%; 
      margin: 10px;
      min-width: 250px;
      max-width: 1300px;
    }
  
    .footer-box h3 {
      font-size: 1.2em;
      margin-bottom: 15px;
      color: #ffffff;
    }
    
    .footer-box p,
    .footer-box ul,
    .footer-box li {
      font-size: 0.95em;
      line-height: 1.8;
      margin: 0;
      padding: 0;
      color: #ffffff;
    }
    
    .footer-box ul {
      list-style: none;
    }
    
    .footer-box ul li {
      margin-bottom: 10px;
    }
    
    .footer-box ul li a {
      color: #ffffff;
      text-decoration: none;
      transition: color 0.3s ease;
    }
    
    .footer-box ul li a:hover {
      color: #f1f1f1;
    }
    
    .footer-box .contact-links a {
      color: #ffffff;
      text-decoration: none;
    }
    
    .footer-box .contact-links a:hover {
      text-decoration: underline;
    }
    
    .footer-copy {
      text-align: center;
      margin-top: 20px;
      padding-top: 15px;
      border-top: 1px solid #444;
      color: #aaa;
      font-size: 0.85em;
    }
    
    .social-media {
      display: flex;
      gap: 10px;
      margin-top: 15px;
    }
    
    .social-media a {
      width: 35px;
      height: 35px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      color: #fff;
      font-size: 1.2em;
      text-decoration: none;
      transition: background-color 0.3s ease;
    }
    
    .social-media a:hover {
      background-color: #0078ff;
    }
    .contact-info p a{
      color: #ffffff;
    }
  
    
   
    
    .slide {
      flex: 0 0 35vw;
      /* flex: 0 0 35%; */
      opacity: 0.4;
      max-width: 100%;
      transform: scale(0.6);
      transition: all 1s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .slide img {
      width: 100%;
      border-radius: 15px;
    }
    
    .slide .caption {
      display: none;
      margin-top: 10px;
      font-size: 23px;
      text-align: center;
      font-weight: 500;
    }
    
    .active {
      /* flex: 0 0 33.33%; */
      opacity: 1;
      transform: scale(1);
      z-index: 2;
    }
    
    .active img {
      width: 100%;
      height: auto;
    }
    
    .active .caption {
      display: block;
    }