* {
  margin: 0;
  padding: 0;
  font-family: "Yekan";
  direction: rtl;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  outline: none;

}

body {
  /* background-color: #3D365C; */
  background-color: #F7AEF8;
}

.main__header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1;
  text-decoration: none;
  height: auto;
  background-color: #B8B8FF;
  /* padding: 28px 2.5% 23px 2.5%; */
  align-items: center;
  justify-content: center;

}

.top_header {

  display: flex;

  /* background-color: #C77DFF; */


  /*border-bottom: 2px solid #0a0a0c;*/
  justify-content: center;
  box-shadow: 10px 10px 5px lightblue;

}



.icone-menu {
  font-size: 25px;
  margin-right: 20px;
  display: block;
  margin-top: 20px;
  display: none;


}

.top_header span {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.top_header img {
  
  text-align: center;
  margin-top: 15px;
}

.wwq{
  width: 100%;
  text-align: center;
 
}

/* .main__header img {


  width: 230px;
  height: 131px;

} */


.side_menu {
  width: 100%;
  background: #B8B8FF;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
  /* اضافه شده برای مرکز کردن */
}

/* Hide scrollbar */
.side_menu::-webkit-scrollbar {
  display: none;
}

/* Slider Menu */
.slider_menu {
  display: inline-flex;
  gap: 35px;
  padding: 0 20px;
  margin: 0 auto;
  /* اضافه شده برای مرکز کردن */
  position: relative;
  right: 50%;
  /* حرکت به وسط */
  transform: translateX(50%);
  /* تنظیم دقیق موقعیت */
}

/* Menu Items */
.menu-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* border-color: #d4a762; */
}

.menu-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.menu-item p {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5a3e2b;
  text-align: center;
  white-space: nowrap;
}

/* Active Item Style */
.menu-item.active {
  /* background: #f5ebe0; */
  background-color: #F7AEF8;
  /* border: 1px solid #d4a762; */
  /* box-shadow: 0 0 0 2px rgba(212, 167, 98, 0.3); */
}




.container {
  display: flex;
}

.main_menu {
  width: 100%;

}


/* #content7,#content8,#content9,#content10,#content11,#content12,#content13 */


#content2,
#content3,
#content4,
#content5,
#content6,
#content7,
#content8,
#content9,
#content10,
#content11,
#content12,
#content13,#content14 {
  scroll-margin-top: 350px;
  /* تنظیم ارتفاع هدر */
}

.border-with-text {
  display: flex;
  border-bottom: 10px solid #B8B8FF;
  margin: 20px;
  justify-content: center;
  align-items: center;
}

.border-with-text>span {
  padding: 5px 10px;

  margin-bottom: -17px;
  background-color: #F7AEF8;
  color: rgb(10, 10, 10);
  font-size: 20px;
  font-weight: 600;
  display: inline-block;
}



/* .box__menu>div>img {
    width: 50px;
    height: 86px;
    border-radius: 12px;
    object-fit: cover;
direction: ltr;
}





.box__menu {
    display: flex;
    padding: 18px;
    flex-flow: wrap;
    gap: 50px;
    width: 100%;
    margin-top: 40px;

}

.box__menu>div {
    display: flex;

    background-color: #B8B8FF;
    
    width: 356px;
    height: 200px;
    border-radius: 17px;
    padding-bottom: 20px;
    flex-direction: row;
    
    position: relative;
   
}

.box__menu p {
    text-align: center;
    border-bottom: 1px solid;

}



th,
td {
    padding: 5px;
} */


/* استایل اصلی برای باکس‌های منو */
.box__menu {
  display: flex;
  /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
  gap: 20px;
  padding: 15px;
  direction: rtl;
  /* برای متن فارسی */
  flex-flow: wrap;
  gap: 50px;
  width: 100%;
}

.box__menu>div {
  display: flex;
  align-items: center;
  /* وسط چین عمودی */
  background: #B8B8FF;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  gap: 15px;
  width: 300px;
  
}

.box__menu img {
  width: 100px;
  height: 100px;
  object-fit:cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.box__menu>div>div {
  flex: 1;
  text-align: right;
  /* متن فارسی راست چین */
}

.box__menu p {
  font-size: 14px;
  font-weight:bolder;
  margin-bottom: 10px;
  color: #5a3e2b;
}

.item_t {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.item_t th,
.item_t td {
  padding: 6px 8px;
  text-align: right;
  /* border-bottom: 1px solid #eee; */
}

.item_t th {
  font-weight:bold;
  color: #444444;
  font-size: 15px;
}

.item_t td {
  font-weight: bold;
  font-size: 15px;
  color: #5a3e2b;
}

tr{
  border-bottom: 2px solid #8775ef ;
}



@media only screen and (max-width: 768px) {
  .side_menu {
    padding: 8px 0;
    text-align: center;
    /* تضمین اسکرول افقی */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .slider_menu {
    display: inline-flex;
    gap: 15px;
    padding: 0 8px;
    /* فضای خالی برای شروع از وسط */
    justify-content: center;
    /* مرکز کردن محتوا */
    margin: 0 auto;
    right: 0;
    /* حذف transform */
    transform: none;
  }

}

@media only screen and (max-width: 479px) {
  .side_menu {
    padding: 8px 0;
    text-align: center;
    /* تضمین اسکرول افقی */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    height: 132px;
    align-items: center;
  }

  .slider_menu {
    display: inline-flex;
    gap: 15px;
    padding: 0 160px;
    /* فضای خالی برای شروع از وسط */
    justify-content: center;
    /* مرکز کردن محتوا */
    margin: 0 auto;
    right: 0;
    /* حذف transform */
    transform: none;
    
  }

  .menu-item {
    min-width: 70px;
    padding: 6px 8px;
    flex-shrink: 0;
    /* جلوگیری از فشرده شدن */
    align-items: center;
  }

  .menu-item img {
    width: 60px;
    height: 60px;
  }

  .menu-item p {
    font-size: 1rem;
  }
}

/* ================= عمومی ================= */
@media only screen and (max-width: 479px) {
  body {
    font-size: 14px;
  }

  .top_header span {
    font-size: 1.2rem;
  }

  .side_menu {
    padding: 8px 0;
    background: #B8B8FF;
    align-items: center;
  }

  .slider_menu {
    display: inline-flex;
    gap: 12px;
    padding: 0 8px 0 160px;
    /* شروع از وسط */
    justify-content: flex-start;
    margin: 0 auto;
    align-items: center;
  }

  .menu-item {
    min-width: 65px;
    padding: 6px;
    border-radius: 8px;
    align-items: center;
    margin-top: 10px;
  }

  .menu-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 6px;
  }

  .menu-item p {
    font-size: 0.9rem;
  }

  .main_menu {
    padding: 10px;
  }

  .border-with-text {
    margin: 15px 0;
  }

  .border-with-text span {
    font-size: 1rem;
    padding: 0 15px;
  }

  .box__menu {
    grid-template-columns: repeat(1, 1fr);
    /* 1 ستون در موبایل */
    gap: 12px;
    justify-content: center;
  }

  .box__menu>div {
    padding: 10px;
    border-radius: 8px;
  }

  .box__menu img {
    width: 95px;
    height: 95px;
    object-fit: cover;
    image-rendering: auto;
    border-radius: 17px;
  }

  .box__menu p {
    font-size:17px;
    margin: 5px 0;
  }

  .item_t {
    font-size: 0.7rem;
  }

  .item_t th,
  .item_t td {
    padding: 3px 6px;
    text-align: center
  }
}

.title_menu{
  display: flex;
  background-color: #444444;
  width: 200px;
}

.title_menu img{
width: 100px;
height: 100px;
}

.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

    .hamburger-menu .bar {
        height: 4px;
        width: 100%;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

/* استایل منوی سایدبار */
.sidebar {
    height: 100%;
    width: 300px;
    position: fixed;
    top: 0;
    right: -300px;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.5s;
    z-index: 1000;
    padding: 20px;
}

.sidebar-header {
    text-align: left;
    padding: 10px 0;
}

.close-btn {
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.menu-items {
    list-style-type: none;
    margin-top: 30px;
}

    .menu-items li {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

        .menu-items li a {
            text-decoration: none;
            color: #333;
            font-size: 18px;
            transition: color 0.3s;
        }

            .menu-items li a:hover {
                color: #007bff;
            }

.login-btn {
    display: inline-block;
    background-color: #007bff;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
}

    .login-btn:hover {
        background-color: #0056b3;
    }

/* استایل زمانی که منو باز است */
.sidebar-open {
    right: 0 !important;
}

/* انیمیشن برای دکمه همبرگری وقتی منو باز است */
.hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
/* استایل برای دستگاه‌های با عرض کمتر از 480px */
@media (max-width: 479px) {
    .sidebar {
        width: 85%; /* عرض نسبی برای موبایل */
        right: -85%;
    }

    .hamburger-menu {
        top: 15px;
        right: 15px;
    }

    .menu-items li a {
        font-size: 15px;
        padding: 10px;
    }

    .login-btn {
        padding: 10px 15px;
    }



    .sidebar-open ~ .body-overlay {
        display: block;
    }

    /* حرکت محتوا هنگام باز شدن منو */
    .sidebar-open ~ .content {
        transform: translateX(-20px);
    }
}