/* ------------------------- footer -------------------------- */
footer {
  width: 100%;
  padding: 0 8%;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}
.nav-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-content: center;
  margin: 30px 10px;
}
.nav-footer ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.nav-footer ul li {
  display: inline-block;
}
.nav-footer ul li a {
  text-decoration: none;
  color: var(--text-color);
}
.nav-footer ul li a:hover {
  text-decoration: underline;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.nav-footer ul li a:active,
.nav-footer ul li a.active {
  text-decoration: underline;
  color: #3e52e8;
  font-weight: bold;
}
/* -- for logo --- */
.nav-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}
.footer-copyright p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 17px;
}
.footer-copyright p[dir="rtl"] {
  font-size: 17px;
}
footer hr {
  display: block;
}

footer h3,
footer .social-media {
  display: none;
}

@media only screen and (max-width: 767px) {
  footer h3,
  footer .social-media {
    display: block;
  }
  footer h3 {
    text-align: start;
    font-weight: 600;
    padding-bottom: 10px;
    color: var(--text-color);
  }
  footer h3[dir="rtl"] {
    font-size: 25px;
  }
  footer .social-media {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
  }
  footer {
    height: auto;
  }
  .nav-footer {
    grid-template-columns: 1fr;
    padding: 0px 0px 0px 0px;
    margin: 20px 0;
  }

  .nav-footer ul {
    padding: 20px 0px 40px 0px;
    display: block;
    float: left;
  }

  .nav-footer ul li {
    padding-right: 5px;
    margin-right: 5px;
    line-height: 16px;
  }
  .nav-footer[dir="rtl"] ul li {
    padding-left: 5px;
  }
  .nav-footer ul li:not(:last-child) {
    border-right: 1px solid var(--text-color);
  }
  .nav-footer[dir="rtl"] ul li:not(:last-child) {
    border-right: none;
    border-left: 1px solid var(--text-color);
  }
  .footer-copyright {
    padding: 30px 0px 20px 0px;
    text-align: center;
    margin-right: 0px;
  }
}
