
* {
    box-sizing: border-box;
  }
  
  /*fonts*/
  @font-face {font-family: 'yekanbakh2';src: url('fonts/yekanbakh/Regular.ttf') format('truetype');}
  @font-face {font-family: 'yekanbakh4';src: url('fonts/yekanbakh/Bold.ttf') format('truetype');}
  @font-face {font-family: 'vazir3';
  src: url('fonts/vazir/Regular.eot');
  src: url('fonts/vazir/Regular.eot?#iefix') format('embedded-opentype'),
  url('fonts/vazir/Regular.woff2') format('woff2'),
  url('fonts/vazir/Regular.woff') format('woff'),
  url('fonts/vazir/Regular.ttf') format('truetype');}
  
  
  /*nav*/
  .nav {
    height: 4rem;
    display: flex;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
    align-items: center;
    height: calc(3rem + 1.5rem);
  }
  
  .nav__item {
    margin-bottom: 1.5rem;
  }
  
  .nav__logo,
  .nav__toggle {
    color: #8E24AA;
    font-weight: bold;
    font-size: 18px;
  }
  
  .nav-icon {
    width: 28px;
    height: 28px;
    background-image: url('../images/menupurple.svg');
    background-size: cover;
    cursor: pointer;
  
  }
  
  .nav__link {
    color: #8E24AA;
  }
  
  .nav__logo:hover {
    color: #8e24aaa6;
  }
  
  .nav__link {
    transition: .3s;
  }
  
  .nav__link:hover {
    color: #8e24aaa6;
  }
  
  .nav__toggle {
    font-size: 1.3rem;
    cursor: pointer;
  }
  
  /*accordion*/
  .accordion {
    list-style-type: none;
    padding: 0;
  }
  .section-wrapper {
    width: 100%;
    position: relative;
    max-width: 100%;
    background: #fdf3ff;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0px 3px 0px rgb(0 0 0 / 8%);
    font-size: 14px;
    color: #9C27B0;
    padding: 10px;
  }
  .decorative-line {
    position: absolute;
    content: "";
    width: 4px;
    height: 65%;
    background:rgb(156 39 176 / 60%);
    border-radius: 20px;
    top: 50%;
    right: 2px;
    transform: translate(-50%, -50%);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}
  .icon {
    font-size: 36px;
    color: #fff; 
  }
  .accordion-toggle {
    cursor: pointer;
  }
  .accordion-content {
    display: none;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    transition: height 0.5s ease;
    font-family: 'yekanbakh2';
      color:#7d7d7d;
      text-align: right;
  }
  .accordion-content.active {
    display: block;
  }
  .accordion {
    display: inline-flex;
    text-align: center;
    flex-direction: column;
    width: 90%;
    margin-top: 30px;
  }
  
  /*main*/
  body {
    background-color: #ffffff;
      min-height: 100vh;
      font-family: "yekanbakh2", sans-serif;
      display: flex;
      text-align: center;
      background-image: linear-gradient(to bottom, hsl(263deg 28.86% 97.6%), hsl(263deg 100% 84.09%));
      flex-direction: column;
  }
  
  p, span, div {
    font-family: 'yekanbakh2', sans-serif;
    line-height: 2;
    font-weight: 400;
    color: #565656;
  }
  
  footer {
    font-family:'yekanbakh2';
    background-color: transparent;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: auto;
  }
  
  ul {
    padding: 0;
    list-style: none;
  }
  
  a {
    text-decoration: none;
  }
  
  /*class*/
  
  .l-header {
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: #ffffff54;
    position: absolute;
    font-family: 'yekanbakh2';
  }
  
  .p-text {
    direction: rtl;
      text-align: center;
      width: 85%;
      margin: auto;
  }
  
  .active-link {
    position: relative;
  }
  
  .text {
    text-transform: uppercase;
    background:linear-gradient(-20deg, #be23d8 0%, #673AB7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'yekanbakh4';
  }
  
  /*blog-slider*/
  
  .blog-slider__button {
    display: inline-flex;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 500;
    justify-content: center;
    text-align: center;
    font-family: 'yekanbakh4';
    margin: 10px;
    border-radius: 15px;
    position: relative;
    line-height: 24px;
    color: #ffffff;
    width: 85%;
      justify-content: center;
    box-shadow: inset 1px 1px 1px 0px rgba(255, 255, 255, .5), 6px 6px 20px 0px rgba(0, 0, 0, .1), 0px 0px 0px 0px rgba(0, 0, 0, .1);
    background-image: linear-gradient(45deg, hsl(261.6deg 78.61% 52.19%) 25%, hsl(291.24deg 100% 69.26%));
  }
  .blog-slider__button:hover {
    background-image: linear-gradient(70deg, hsl(261.6deg 78.61% 52.19%) 25%, hsl(291.24deg 100% 69.26%));
  }
  
  .blog-slider__button2 {
    display: inline-flex;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 500;
    justify-content: center;
    text-align: center;
    font-family: 'yekanbakh4';
    margin: 10px;
    border-radius: 15px;
    position: relative;
    line-height: 24px;
    color: #ffffff;
    width: 85%;
      justify-content: center;
    box-shadow: inset 1px 1px 1px 0px rgba(255, 255, 255, .5), 6px 6px 20px 0px rgba(0, 0, 0, .1), 0px 0px 0px 0px rgba(0, 0, 0, .1);
    background-image: linear-gradient(45deg, hsl(230.85deg 100% 58.99%) 25%, hsl(198.67deg 96.99% 55.09%));
  }
  .blog-slider__button2:hover {
    background-image: linear-gradient(70deg, hsl(230.85deg 100% 58.99%) 25%, hsl(198.67deg 96.99% 55.09%));
  }
  
  .blog-slider {
    width: 95%;
    position: relative;
    max-width: 1000px;
    margin: auto;
    background: #fff;
    box-shadow: 0px 14px 80px rgb(34 35 58 / 9%);
    padding: 25px;
    border-radius: 20px;
    height: 100%;
    transition: all 0.3s;
    margin-top: 100px;
      margin-bottom: 25px;
  }
  
  .blog-slider.blurred {
    filter: blur(5px);
  }
  
  .blog-slider__item {
    display: flex;
    align-items: center;
  }
  
  .blog-slider__img {
    width: 320px;
    flex-shrink: 0;
   
    overflow: hidden;
    transform: translateX(0px);
  }
  
  .blog-slider__img:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   
    border-radius: 20px;
    opacity: 0.8;
  }
  
  .blog-slider__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: all 0.3s;
  }
  
  .blog-slider__content {
    padding-right: 5px;
    width: 100%;
    direction: rtl;
  }
  
  /*responsive*/
  
  @media screen and (max-width: 768px) {
    .blog-slider {
      min-height: 500px;
      height: auto;
      margin-top: 220px;
    }
    .blog-slider__button, .blog-slider__button2 {width: 90%;}
    .p-text {width: 100%;}
    .text {font-size: 28px;}
    .blog-slider__item {flex-direction: column;}
    .blog-slider__img {transform: translateY(-50%);}
    .blog-slider__content {
      margin-top: -140px;
      text-align: center;
      padding: 0 30px;
    }
  
    .accordion {
      width: 90%;
  }
  
  
  }
  
  @media screen and (max-width: 576px) {
    .nav__menu {
      position: fixed;
      top: -100%;
      right: 7%;
      width: 190px;
      margin: 0 auto;
      padding: 0.5rem 0 0;
      text-align: center;
      background: #ffffff;
      transition: .4s;
      box-shadow: 0 0 4px rgba(0, 0, 0, .1);
      border-radius: 10px;
      z-index: 100;
    }
    .blog-slider__content {padding: 0;}
  }
  
  @media screen and (min-width: 576px) {
    .nav {
      height: calc(3rem + 1.5rem);
      margin-left: auto;
      margin-right: auto;
      max-width: 950px;
      width: 80%;
      display: flex;
      flex-direction: row-reverse;
    }
    .nav__list {display: flex; align-items: center;}
    .nav__item {margin-right: 2.5rem; margin-bottom: 0;}
    .nav__toggle {display: none;}
  }
  



  /*openmenu*/
  .show-menu {
    top: calc(4rem + 1rem);
    font-family: 'yekanbakh2';
  }
  














  input[type="text"],
  input[type="password"],
  input[type="number"] {
    width: 100%;
    padding: 10px;
    border-radius: 15px;
    border: 2px solid #9c27b033;
    box-sizing: border-box;
    font-family: "yekanbakh2", sans-serif;
    margin-bottom: 15px;
  }
  
  input[type="text"]:focus,
  input[type="password"]:focus,
  input[type="number"]:focus {
      border: 2px solid #9b27b0bc; 
      outline: none;
  }
  
  input[type="submit"] {
    width: 100%;
      padding: 10px;
      background-color: #9C27B0;
      color: white;
      border: none;
      border-radius: 15px;
      cursor: pointer;
      font-size: 16px;
      font-family: "yekanbakh2", sans-serif;
      box-shadow: inset 1px 1px 1px 0px rgba(255, 255, 255, .5), 6px 6px 20px 0px rgba(0, 0, 0, .1), 0px 0px 0px 0px rgba(0, 0, 0, .1);
      background-image: linear-gradient(45deg, hsl(261.6deg 78.61% 52.19%) 25%, hsl(291.24deg 100% 69.26%));
      font-weight: bold;
  }
  
  input[type="submit"]:hover {
      background-color: #c25dd3;
  }
  
  
 



 form {
  text-align: center;
  width: 90%;
  margin: auto;
}






.message-list {
    list-style-type: none;
    padding: 10px;
    text-align: right;
    max-height: 400px;
    overflow-y: scroll;
    border: 5px solid #f1d8f5;
    border-radius: 15px 0px 0px 15px;
    background-color: #fdf4ff;
}

.message {
    border: 1px solid #ccccccce;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 10px;
    text-align: right;
    word-wrap: break-word;
    background-color: white;
    font-size: 15px;
}

.message-list::-webkit-scrollbar {
    width: 10px;
}

.message-list::-webkit-scrollbar-thumb {
  background-color: #9c27b0c7;
  border-radius: 5px;
}

.message-list::-webkit-scrollbar-thumb:hover {
  background-color: #9c27b0ed;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
  text-decoration: none;
    font-size: 14px;
    margin: 10px;
    background-image: linear-gradient(0deg, rgb(171 64 188) 0%, rgb(199 136 255) 100%);
    padding: 8px;
    border-radius: 10px;
    color: white;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
}

.pagination a:hover {
    text-decoration: underline;
}








.delete-btn {
    color: white;
    background-color: red;
    border: none;
    padding: 10px;
    border-radius: 10px;
    margin-left: 10px;
    text-decoration: none;
    font-size: 14px;
    background-image: linear-gradient(0deg, rgb(188 65 64) 0%, rgb(255 116 116) 100%);
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    font-family: 'yekanbakh2';
}


.timeip{
  font-size: 12px;
    color: #bc96ff;
    background: #fdeeff;
    padding: 5px;
    border-radius: 5px;
    margin-left: 5px;
}


.message{direction: rtl;}

.blockuser{
  color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    margin-left: 10px;
    text-decoration: none;
    font-size: 14px;
    background-image: linear-gradient(0deg, #008eff 0%, #03A9F4 100%);
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    font-family: 'yekanbakh2';
}


.payamha{
  background-color: #f1d8f5;
  border-radius: 15px 15px 0px 0px;
  margin-bottom: -32px;
  width: fit-content;
  padding: 10px 15px 16px;
}





.custom-btn {
  text-decoration: none;
  font-size: 14px;
  background-image: linear-gradient(0deg, rgb(171 64 188) 0%, rgb(199 136 255) 100%);
  padding: 8px;
  border-radius: 10px;
  color: white;
  box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
  border: 0px solid #ffffff;
  font-family: 'yekanbakh2';
}



.totalmessages{
  font-size: 14px;
  text-align: right;
  margin-right: 5px;
}



.custom-select {
  padding: 5px;
  font-size: 12px;
  border-radius: 5px;
  border: 2px solid #c6b0ca;
  background-color: #fdf3ff;
  transition: border-color 0.3s ease;
  width: 54px;
}

.custom-select:focus {
  border-color: #007bff;
  outline: none;
}

.custom-select option {
  padding: 5px;
}

.maxpage{
  background: #f1d8f5;
  padding: 10px;
  width: max-content;
  margin-bottom: 10px;
  border-radius: 0px 0px 15px 15px;
  font-size: 14px;
  direction: rtl;
  margin-right: 0px;
  text-align: right;
  margin-top: -20px;
}




.ads{
  margin-top: 15px;
  width: 90%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 15px;
}



.screenshot {
  color: white;
  border: none;
  border-radius: 10px;
  margin-left: 10px;
  text-decoration: none;
  font-size: 12px;
  height: 30px;
  background-image: linear-gradient(0deg, #9C27B0 0%, #E91E63 100%);
  box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
  font-family: 'yekanbakh2';
}




















.media-content {
  display: block;
  margin: 10px 0;
  border-radius: 5px;
  max-height: 300px; 
}

.media-content img {
  max-width: 300px;
  max-height: 300px;
  height: auto;
  object-fit: cover;
}

.media-content video {
  max-width: 400px;
  max-height: 300px; 
  height: auto;
}

.media-content audio {
  width: 300px;
  max-height: 300px;
}