#footer {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 70px 0;
  background: transparent;
  direction: rtl;
  font-family: "Vazirmat", sans-serif;
}

#footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to right, transparent, #333333, transparent);
}

/* Grid layout */

.footer-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  align-items: flex-start;
  max-width: 1200px;
  margin-left: calc(100% - 98%);
}

.footer-section {
  position: relative;
  padding: 0 40px;
}

.footer-section:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 55%;
  transform: translateY(-50%);
  background: linear-gradient(to bottom, transparent, #333333, transparent);
}

/* Brand section */

.footer-logo img {
  width: 140px;
  margin-right: 60%;
  opacity: 0.9;
}

.footer-description {
  margin-top: 15px;
  font-size: 14px;
  line-height: 2;
  color: #5c6370;
}

.brand-info .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.social-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 10px;
  transition: 0.25s;
}

.social-box img {
  width: 50px;
  height: auto;
  object-fit: contain;
}

.social-box:hover {
  transform: translateY(-4px);
}

.linkedin-box img {
  width: 50px;
}

.footer-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
  color: #3c6eff;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-list a {
  font-size: 14px;
  color: #8b93a3;
  text-decoration: none;
  transition: 0.3s;
}

.footer-list a:hover {
  color: #f49507;
}

.trust-badges {
  text-align: center;
}

.trust-badges-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: transparent;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.trust-badge img {
  display: block;
  height: 100px;
  width: auto;
  object-fit: contain;
}

/* Responsive */

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-section::after {
    display: none;
  }

  .brand-info .social-icons {
    justify-content: center;
  }

  .trust-badges-row {
    justify-content: center;
  }
}
