@font-face {
  font-family: "Samim-FD";
  src: local("Samim-FD"),
    url("../../samim-font-v2.0.1/Farsi-Digits/Samim-FD.ttf");
}
* {
  box-sizing: border-box;
  font-family: "Samim-FD";
}

body {
  font-family: "Samim-FD";
  margin: 0;
}

p,
h1,
h2,
h3,
h4,
h5 {
  font-weight: bold;
  color: #495b72;
}

.header {
  background-color: #85a8c5;
  margin: 0;
  padding: 2px;
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.header nav {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
  padding: 2px;
  width: 100%;
}

.header nav .nav-menu {
  list-style-type: none;
  margin: 1px;
  display: flex;
  flex-direction: row;
  padding: 10px;
  direction: rtl;
}

.header nav .nav-menu .nav-menu-item {
  display: inline;
  font-size: 17px;
  padding: 0 0.75rem;
}

.nav-menu-item a {
  padding: 0.5rem;
  text-decoration: none;
  color: #ffffff;
}

.nav-menu-item a:hover {
  color: #ccc;
  text-decoration: none;
}

li#dropdown {
  cursor: default;
  color: #000000;
  display: inline;
  font-family: "Samim-FD";
}

li#dropdown p {
  color: #ffffff;
}

#dropdown-content {
  display: none;
  width: 520px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  grid-template-columns: auto;
  position: absolute;
  right: 20%;
  top: 36px;
}

#dropdown-content .dropdown-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0.95rem;
}

.dropdown-menu-item {
  list-style-type: none;
}

.dropdown-menu .dropdown-menu-item a {
  display: block;
  text-decoration: none;
  color: #333;
  border-right: 3px solid #85a8c5;
  cursor: pointer;
  padding: 0.4rem;
  text-align: right;
  transition: 0.3s;
  font-size: 15px;
}

.dropdown-menu .dropdown-menu-item a:hover {
  background-color: #e4e4e4;
}

#dropdown:hover #dropdown-content {
  display: grid;
}
.number-box {
  background-color: transparent;
  display: flex;
  flex-direction: row;
}

.number-box p {
  border-style: none solid none none;
  border-width: 3px;
  border-color: #ffffff;
  padding-right: 0.5rem;
  margin: 10px;
  color: #000000;
  font-size: 18px;
}

#bar-btn {
  width: 45px;
  height: 45px;
  outline: none;
  background-color: transparent;
  color: #ffffff;
  font-size: 25px;
  border: none;
  display: none;
}

.nav-item a {
  color: #ffffff;
}

.nav-item a:hover {
  color: #ffffff;
  text-decoration: none;
}

.regions-btn, .regions-btn:focus {
  background-color: transparent;
  color: #ffffff;
  border: none;
  outline: none;
}

.regions-list-item {
  display: block;
  padding: 0.35rem 0;
}

.phone-dropdown ul {
  list-style: none;
}

.regions-list-item a {
  color: #ffffff;
}

.regions-list-item a:hover, #bar-btn:hover, .nav-item a:hover {
  color: #ccc;
  text-decoration: none;
}

.regions-list-item a:focus {
  text-decoration: underline;
  color: blue;
}

@media (max-width: 650px) {
  .header nav .nav-menu {
    display: none;
  }
  .header nav {
    justify-content: space-between;
  }
  #bar-btn {
    display: inline;
  }
}

@media (min-width: 650px) {
  #phone-dropdown-content {
    display: none;
  }
}

#phone-dropdown-content {
  z-index: 10;
  width: 100%;
  direction: rtl;
}

#phone-dropdown ul {
  list-style: none;
  color: #ffffff;
  text-align: right;
}

main.content {
  font-family: "Samim-FD";
  background-color: #85a8c5;
  padding: 3rem 0;
}

main p {
  font-size: 17px;
}

.description {
  text-align: center;
  padding: 2rem;
}

.description h1 {
  font-size: 30px;
}

.description a {
  text-decoration: none;
  color: #ffffff;
  background-color: #f87711;
  padding: 0.25rem 1.5rem;
  border-radius: 10px;
  transition: 0.3s;
  outline: none;
}

.description a:hover,
.description a:focus,
.description a:active {
  background-color: #d25d04;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  text-decoration: none;
  color: #ffffff;
  padding: 0.25rem 3rem;
}

main.content #article-container {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1rem;
}

.article {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.article-header {
  text-align: right;
  border-right: 4px solid #85a8c5;
  padding-right: 1rem;
}

.article-img img {
  width: 270px;
  height: auto;
  object-fit: cover;
}

.article-text {
  text-align: right;
  padding: 1rem;
}

.content ul {
  list-style-type: circle;
}

.content ul li {
  color: #495b72;
  font-weight: bold;
}

.description-list {
  list-style-type: disc;
}

.description-list li {
  text-align: justify;
  direction: rtl;
}

.regions ul {
  list-style-type: none;
  padding: 0;
  display: grid;
  grid-template-columns: auto auto auto;
}

.regions li {
  display: block;
  margin: 10px;
}

.regions ul li a {
  display: block;
  text-align: right;
  padding: 10px;
  background-color: #f2f2f2;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
  transition: 0.3s ease;
}

.regions ul li a:hover {
  background-color: #ccc;
}

.phone-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 67px;
  height: 67px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: #000000;
  font-size: 37px;
  border-radius: 50%;
  text-decoration: none;
  background-color: #f87711;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
  animation: shaking infinite 0.4s;
  animation-iteration-count: 4;
  animation-delay: 2.5s;
  transition: 0.3s;
}

.phone-link:hover {
  text-decoration: none;
  color: #ffffff;
  background-color: #d25d04;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.footer {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
  background-color: #02010e;
  color: #ffffff;
  align-items: center;
  padding: 1rem 0;
}

.footer-address {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.footer-address ul li {
  margin: 0.25rem 0;
}

.footer-address ul li span {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.footer-address ul li span i {
  background-color: #ffffff5e;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 30px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-right: 0.5rem;
}

.footer-description {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.footer-description h2 {
  text-align: right;
  border-right: 4px solid #85a8c5;
  padding-right: 1rem;
  color: #ffffff;
}
.footer-description p {
  text-align: right;
  color: #ffffff;
}

@media (max-width:950px) {
  .regions ul {
    grid-template-columns: auto;
  }
}

@media (max-width: 576px) {
  main.content #article-container {
    border-radius: 0;
  }
}
@media (max-width: 625px) {
  .footer-description ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .article {
    flex-wrap: wrap;
  }
  .container .article-img {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .article-img img {
    width: 100%;
    height: 100%;
  }
}

@keyframes shaking {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(0eg);
  }
  75% {
    transform: rotate(-15deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
