body {
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.navbar {
  background-color: #1d1f44;
  opacity: 0.95;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: relative;
  z-index: 1000;
  border-radius: 8px;
  margin: 10px 20px;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  color: #696cff;
  font-weight: bold;
}

  .navbar-brand img {
    height: 60px;
    width: auto;
  }

.navbar-nav {
  display: flex;
  align-items: center;
}

  .navbar-nav .nav-link {
    color: #6c757d;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
  }

    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link:hover {
      color: #696cff;
      transform: translateY(-2px);
    }

.auth-links {
  flex-direction: row;
  align-items: center;
}

  .auth-links .nav-link {
    color: #696cff;
    border: 1px solid #696cff;
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 10px;
    transition: all 0.3s ease;
  }

    .auth-links .nav-link:hover {
      background-color: #696cff;
      color: #ffffff;
      transform: translateY(-2px);
    }

.navbar-toggler {
  border: none;
  padding: 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(105,108,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.footer {
  background-color: #1d1f44;
  opacity: 0.95;
  box-shadow: 0 -2px 25px rgba(0, 0, 0, 10);
  padding: 40px 0;
  margin-top: auto;
  padding-bottom: 0;
  margin-bottom: 0;
  -moz-border-radius-topleft: 20px;
  -moz-border-radius-topright: 20px;
}

.footer-logo img {
  max-width: -webkit-fill-available;
  margin-bottom: 20px;
  text-shadow: 0 -2px 25px rgba(0, 0, 0, 10);
}

.footer h5 {
  font-size: 1.1rem;
  color: #696cff;
  margin-bottom: 20px;
}

.footer p, .footer a {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.8;
}

  .footer a:hover {
    color: #696cff;
  }

.footer .quick-links, .footer .useful-links {
  list-style: none;
  padding: 0;
}

  .footer .quick-links li, .footer .useful-links li {
    margin-bottom: 10px;
  }

.footer .symbols img {
  max-width: 100px;
  margin: 10px;
}

.designer-line {
  background-color: #141428;
  padding: 8px 0;
  font-size: 0.8rem;
  color: #6c757d;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

  .designer-line .copyright {
    margin-right: 20px;
  }

  .designer-line .designer {
    margin-left: 20px;
  }

  .designer-line a {
    color: #696cff;
    text-decoration: none;
  }

    .designer-line a:hover {
      text-decoration: underline;
    }



.misc-wrapper2 {
  display: block;
  align-items: center;
  text-align: start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(240, 248, 255, 0.5));
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px; /* فاصله پیش‌فرض */
}
.misc-wrapper3 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(240, 248, 255, 0.5));
  border-radius: 20px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px; /* فاصله پیش‌فرض */
}
.misc-wrapper:hover, .misc-wrapper2:hover, .misc-wrapper3:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.bx {
  font-size: 1.2rem;
}

.app-brand-text {
  font-size: 2.5rem;
}

.company-card, .news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  align-items: center;
}

  .company-card:hover, .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .company-card img {
    margin-top: 25px;
    margin-bottom: 25px;
    margin-right: 25px;
    margin-left: 25px; /* مربعی بودن */
  }

.company-card-body {
  width: 100%;
}

.news-card {
  display: flex;
  align-items: baseline;
}

  .news-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-left: 30px; /* افزایش فاصله از متن */
  }

  .news-card a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
  }

    .news-card a:hover {
      color: #0056b3;
    }
.news-card-body {
  align-content: revert;
  align-items: revert;
  text-align: justify;
  text-align-last: right;
}
card-body {
  background: linear-gradient(135deg, #f8f9fa, #ffffff); /* گرادیان به سفید */
}
/* تنظیمات ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .misc-wrapper, .misc-wrapper2, .misc-wrapper3 {
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px; /* فاصله کمتر در موبایل */
  }

  .company-card img {
    height: 150px;
    width: 150px; /* مربعی در موبایل */
  }


  .app-brand-text {
    font-size: 2rem;
  }

  .news-card {
    flex-direction: column;
    align-items: baseline;
    text-align: right;
  }

    .news-card img {
      margin-left: 15px;
      margin-right: -15px;
      vertical-align: top;
    }
  .company-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

    .company-card img {
      height: auto;
      margin-top: 25px;
      margin-bottom: 25px;
    }
  .navbar-nav {
    flex-direction: column;
    background-color: #f5f5f5;
    opacity: 0.95;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    align-items: revert;
  }

    .navbar-nav .nav-link {
      margin: 5px 0;
      margin-right: 20px;
      font-size: 1rem;
    }

  .nav-item {
    padding: 5px 0;
  }

  .footer .row {
    flex-direction: column;
    padding-right: 25px;
  }

  .footer .col-md-3 {
    width: 100%;
    margin-bottom: 30px;
  }

  .designer-line {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .auth-links {
    flex-direction: row;
    align-items: baseline;
  }

    .auth-links .nav-link {
      margin: 0px 0;
      width: max-content;
      text-align: center;
    }
  nav-link {
    margin-left: 20px;
  }

  .footer-logo img {
    max-width: -webkit-fill-available;
  }

  .footer h5 {
    margin-top: 20px;
    font-size: 1.2rem;
  }

  .footer .symbols img {
    max-width: 80px;
  }
}
/* تنظیمات دسکتاپ برای فوتر */

.container-xxl, .container-sm {
  margin-bottom: 30px; /* فاصله بین container ها */
}
i.bx.bx-news.icon-120px {
  vertical-align: -25px;
}
i.bx.bxs-factory.icon-120px
{
  vertical-align: -25px;
}
