@media (max-width: 768px) {
  .header-logo {
    display: flex;
    align-items: center;
  }
  .header-button {
    background: #6e2664;
    border-radius: 25px;
    padding: 0px 5px;
  }
  .header-buttons .wallet,
  .header-buttons a:not(:last-child)::after {
    display: none !important;
  }
  .header-menu {
    display: none; 
    flex-direction: column;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 60px;
    left: 0;
  }
  .header-menu .wallet {
    display: unset !important;
  }
  .menu-icon {
    display: block; 
  }

  .header-menu.active {
    display: flex; 
    z-index: 1;
    border-radius: 15px;
  }
  .header-menu ul {
    display: flex;
    list-style-type: none;
    flex-flow: column;
    z-index: 1;
    text-align: justify;
    line-height: 2.5;
  }
  .header-menu ul li a {
    color: #161616;
  }
  .close-icon {
    display: block;
    position: absolute;
    top: -305px;
    left: 19px;
    font-size: 23px;
  }
  .box-body {
    width: unset;
    margin: unset;
  }
  .mobile-only {
    display: inline;
  }
  .desktop-only {
    display: none;
  }
  h1 {
    font-size: 1.5rem;
  }
  
  .issues {
    font-size: 1.1rem;
  }
  
  .dynamic-text {
    font-size: 1.5rem;
  }
  
  .search-box input {
    width: 90%;
    padding: 15px 45px 15px 20px;
    font-size: 0.9rem;
  }
  
  .search-icon {
    font-size: 1.3rem;
    padding: 8px;
    left: 75px;
  }
  .slider-moshaverin {
    background: #ffffff;
    padding: 5px;
    width: 65%;
    border-radius: 15px;
    position: absolute;
    top: 239px;
    right: 31px;
  }
  .slider-image img {
    object-fit: unset;
  }
  .moshavreh-free {
    position: absolute;
    border: 2px solid #eeeeee;
    border-radius: 15px;
    background-color: #ff9800;
    top: 196px;
    right: 53px;
    font-size: 14px;
    padding: 5px;
    display: unset;
    z-index:100;
  }
  .moshavreh-free a {
    text-decoration: none;
    color: #ffffff;
  }
  .goals {
    flex-direction: column;
    align-items: center;
  }

  .goals-item {
    width: 80%;
  }

  .goals-item img {
    max-width: 70px;
  }

  .services-title h2 {
    font-size: 1.8rem;
  }
  .info p {
    font-size: 17px;
  }
  .info span {
    font-size: 19px;
  }
  .baner-text-large {
    font-size: 1rem;
    font-weight: bolder;
    margin: 0;
    line-height: 2.5;
  }
  .baner{
    width: 94%;
    right:6px;
  }
  .top-consultants-profile {
    display: flex;
    justify-content: space-around;
    flex-flow: column;
    text-align: center;
  }
  .top-consultants-all {
    background: #159aaf;
    border-radius: 20px;
    color: #fff;
    padding: 45px;
    margin: 20px;
    width: unset;
  }
  .top-consultants-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 20px;
    box-shadow: 3px 3px 3px #eeeeee;
    width: unset;
  }
  .comment-all {
    display: flex;
    flex-flow: column;
  }
  .comment-item {
    margin: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    width: unset;
  }
  .article-all {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-flow: column;
  }
  .article-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin: 20px;
    box-shadow: 3px 3px 3px #eeeeee;
    width: unset;
  }
  .article-item h2 {
    margin-bottom: 52px;
  }
  .article-item p {
    display: none;
  }
  .icon-box {
    display: block;
  }
  .icon-item {
    width: unset;
    margin-bottom: 20px;
  }
  .services-category {
    text-align: center;
  }
  .categories {
    width: 26%;
    background: #ffffff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 3px 3px 3px #eeeeee;
  }
  .categories h3 {
    line-height: 1.5;
  }
  .info-time {
    margin: 10px;
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    width: 24%;
    box-shadow: 3px 3px 3px #eeeeee;
  }
  .slider-image {
    height: calc(710px - 30px);
    margin: 15px 0px;
    margin-bottom: -284px;
    position: relative;
    overflow: hidden;
  }
  .footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-container {
    display: block;
  }
  .footer-logo {
    width: unset;
  }
  /*profile.css*/
  .posts-list{
      flex-direction: column;
  }
  .post-item{
      width:unset;
  }
  .post-title {
    font-size: 12px;
  }
     .visit-method{
      display: none;
    }
    .visit{
      display: unset;
      background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    padding: 0px 20px 20px 20px;
    }
    .visit h3 {
      margin-bottom: 7px;
      font-size: 18px;
      color: #333;
      text-align: center;
  }
  .profile-card{
    width: 90%;
    margin-right: unset;
  }
  .video-box{
    width: 90%;
    margin-right: unset;
  }
  .related-posts{
    width: 90%;
    margin-right: unset;
  }
  .review-card{
    width: 90%;
    margin-right: unset;
  }
  .popup-content{
      margin: 33% auto;
  }
  .share{
          top: 115px!important;
  }
#short-link-popup{
    top: -63px!important;
    left: 46px!important;
    }
    .top-consultants-slide.active{
        flex-direction: column;
    }
    .slide-indicators{
    left: 40%;
    top: 477%;
    }
}

/* استایل‌ها برای موبایل */
@media (max-width: 480px) {
    .top-consultants-slide.active{
        flex-direction: column;
    }
    .slide-indicators{
    left: 40%;
    top: 477%;
    }
  .header-logo {
    display: flex;
    align-items: center;
  }
  .header-button {
    background: #6e2664;
    border-radius: 25px;
    padding: 0px 5px;
  }
  .header-buttons .wallet,
  .header-buttons a:not(:last-child)::after {
    display: none !important;
  }
  .header-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 60px;
    left: 0;
  }
  .header-menu .wallet {
    display: unset !important;
  }
  .menu-icon {
    display: block; 
  }
  .header-menu.active {
    display: flex; 
    z-index: 1;
    border-radius: 15px;
  }
  .header-menu ul {
    display: flex;
    list-style-type: none;
    flex-flow: column;
    z-index: 1;
    text-align: justify;
    line-height: 2.5;
  }
  .header-menu ul li a {
    color: #161616;
  }
  .close-icon {
    display: block;
    position: absolute;
    top: -305px;
    left: 19px;
    font-size: 23px;
  }
  .box-body {
    width: unset;
    margin: unset;
  }
  .icon-item {
    width: unset;
    margin-bottom: 20px;
  }
  .mobile-only {
    display: inline;
  }
  .desktop-only {
    display: none;
  }
  h1 {
    font-size: 1rem;
  }
  
  .issues {
    font-size: 1rem;
  }
  
  .dynamic-text {
    font-size: 1.3rem;
  }
  
  .search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 0.8rem;
  }
  
  .search-icon {
    font-size: 1.2rem;
    padding: 6px;
    left: 10px;
  }
  .slider-moshaverin {
    background: #ffffff;
    padding: 5px;
        width: 85%;
        border-radius: 15px;
        position: absolute;
        top: 226px;
        right: 20px;
  }
  .slider-image img {
    object-fit: unset;
    height: 30%;
  }
  .goals {
    flex-direction: column;
    align-items: center;
  }

  .goals-item {
    width: 80%;
  }

  .goals-item img {
    max-width: 70px;
  }

  .services-title h2 {
    font-size: 1.8rem;
  }
  .consultant {
    margin-right: -17px;
  }
  .top-consultants-profile {
    display: flex;
    justify-content: space-around;
    flex-flow: column;
    text-align: center;
  }
  .top-consultants-all {
    background: #159aaf;
    border-radius: 20px;
    color: #fff;
    padding: 45px;
    margin: 20px;
    width: unset;
  }
  .top-consultants-item {
    flex-flow: column;
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 20px;
    box-shadow: 3px 3px 3px #eeeeee;
    width: unset;
  }
  .consultants-call {
    margin-bottom: 15px;
  }
  .baner-text-large {
    font-size: 1rem;
    font-weight: bolder;
    margin: 0;
    line-height: 2.5;
  }
    .baner{
    width: 94%;
    right:6px;
  }
  .comment-all {
    display: flex;
    flex-flow: column;
  }
  .comment-item {
    margin: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    width: unset;
  }
  .article-all {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-flow: column;
  }
  .article-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin: 20px;
    box-shadow: 3px 3px 3px #eeeeee;
    width: unset;
  }
  .article-item h2 {
    margin-bottom: 52px;
  }
  .article-item p {
    display: none;
  }
  .icon-box {
    display: block;
  }
  .services-category {
    text-align: center;
  }
  .categories {
    width: 26%;
    background: #ffffff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 3px 3px 3px #eeeeee;
  }
  .categories h3 {
    line-height: 1.5;
  }
  .info-time {
    margin: 10px;
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    width: 24%;
    box-shadow: 3px 3px 3px #eeeeee;
  }
  .slider-image {
    height: calc(710px - 30px);
    margin: 15px 0px;
    margin-bottom: -284px;
    position: relative;
    overflow: hidden;
  }
  .footer-container {
    display: block;
  }
  .footer-logo {
    width: unset;
  }
    /*profile.css*/
  .posts-list{
      flex-direction: column;
  }
  .post-item{
      width:unset;
  }
  .post-title {
    font-size: 12px;
  }
     .visit-method{
      display: none;
    }
    .visit{
      display: unset;
      background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    padding: 0px 20px 20px 20px;
    }
    .visit h3 {
      margin-bottom: 7px;
      font-size: 18px;
      color: #333;
      text-align: center;
  }
  .profile-card{
    width: 90%;
    margin-right: unset;
  }
  .video-box{
    width: 90%;
    margin-right: unset;
  }
  .related-posts{
    width: 90%;
    margin-right: unset;
  }
  .review-card{
    width: 90%;
    margin-right: unset;
  }
    .popup-content{
      margin: 33% auto;
  }
    .share{
          top: 115px!important;
  }
#short-link-popup{
    top: -63px!important;
    left: 46px!important;
    }
}
@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  .desktop-only {
    display: inline;
  }
}