@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;
}
.p-text-align {
  text-align: justify;
}
.card-text-align {
  text-align: start;
}
p,
h1,
h2,
h3,
h4,
h5 {
  font-weight: bold;
  color: #495b72;
}
a {
    color: #002854 !important;
}
body {
  font-family: "Samim-FD";
  margin: 0;
}

main#content {
  background-color: #85a8c5;
  font-family: "Samim-FD";
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.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;
  cursor: pointer;
}

.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: #000000;
}

#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;
}

.bio-box {
  padding: 0;
  position: relative;
  background-color: transparent;
  height: 400px;
}

.filter {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 400px;
  top: 0;
}

.filter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
}

.welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background-color: transparent;
  width: 100%;
  height: 100%;
  z-index: 5;
  background-color: #00000093;
  color: #ffffff;
}

.welcome h1 {
  color: #ffffff;
}

.welcome p {
  text-align: center;
  color: #ffffff;
}
.article {
  width: 50rem;
  max-width: 100%;
  text-align: right;
  margin: 1rem auto;
}

.article h2 {
  border-right: 4px solid #85a8c5;
  padding-right: 1rem;
  text-align: right;
}

.ways {
  text-align: center;
}

.article-list {
  list-style: none;
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.article-list li {
  display: block;
  background-color: #ededed;
  padding: 0.5rem;
  margin: 0.17rem 0;
  width: 250px;
  max-width: 100%;
  color: #002854;
  border-bottom: 3px solid #85a8c5;
}

.warning {
  color: red;
}

#main-container {
  background-color: #ffffff;
  padding: 1rem 1.6rem;
  border-radius: 10px;
  margin: 1.5rem auto;
}

.regions {
  width: 60rem;
  max-width: 95%;
  display: grid;
  margin: 1rem auto;
  grid-template-columns: auto;
}

.main-list {
  list-style-type: none;
  padding: 0;
  width: 100%;
  border-radius: 15px;
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 7px;
  direction: rtl;
}



.main-list li {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0.15rem 0;
  width: 100%;
  text-align: right;
  justify-content: flex-end;
}

.main-list li span {
  background-color: #F87711;
  width: 40px;
  height: 40px;
  margin-left: 0.25rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  color: #000000;
}

.main-list li p {
  background-color: #f5f5f5;
  height: 40px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-right: 0.5rem;
  border-radius: 10px;
  position: relative;
}

.main-list-tel-a {
  position: absolute;
  left: 10px;
  text-decoration: none;
  color: #000000;
  background-color: #F87711;
  padding: 0.25rem 0.85rem;
  border-radius: 10px;
  transition: 0.3s;
  outline: none;
}

.main-list-tel-a:focus, .main-list-tel-a:hover, .main-list-link:active {
  background-color: #d25d04;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  text-decoration: none;
  color: #ffffff;
}

h4,
h1 {
  text-align: center;
}

.main-h2 {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 25px;
}

.bio-box p {
  text-align: right;
}

.logo {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.logo img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
}

#explains-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.explains-card {
  width: calc(33.33% - 2rem);
  text-align: center;
  margin: 1rem;
}

.explains-card img {
  width: 100px;
  height: 100px;
}

.explains-card p {
  margin-top: 0.5rem;
  font-size: 16px;
}


.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.services-card {
  width: 225px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.13);
  border-radius: 10px;
  margin: 1rem;
  max-height: 460px;
  min-height: 225px;
  justify-content: space-between;
}

.services-card-display {
  width: 100%;
  padding: 0.35rem;
}

.services-card-display img {
  border-radius: 15px;
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.services-card-text {
  text-align: center;
  line-height: 1.5;
  padding: 1rem;
}


.services-card h2 {
  font-size: 19px;
  font-weight: bold;
}

.services-card p {
  font-size: 14px;
  font-weight: bold;
}

.services-card-link {
  display: flex;
  flex-direction:row;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.services-card-link a {
  left: 10px;
  text-decoration: none;
  color: #000000;
  background-color: #F87711;
  padding: 0.25rem 0.85rem;
  border-radius: 10px;
  transition: 0.3s;
  outline: none;
}

.services-card-link a:hover, .services-card-link a:focus , .services-card-link a:active {
  background-color: #d25d04;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  text-decoration: none;
  color: #ffffff;
}


#cardh4 {
  text-align: center;
  font-size: 16px;
  color: #ffffff;
}

#card {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 1.5rem 0.5rem;
}

.card-item {
  display: flex;
  flex-direction: column;
  text-align: right;
  align-items: center;
  width: 250px;
  border-radius: 15px;
  padding: 0.5rem;
  margin: 1rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  animation-name: shaking;
  position: relative;
  background-color: #ffffff;
  text-align: center;
}

.card-item img {
  border-radius: 15px;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-item p {
  font-size: 17px;
}

.card-item:hover {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

#contact-card {
  background-color: transparent;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 1.5rem 0.5rem;
}

.card-icon {
  background-image: radial-gradient(circle, #5c0067 0%, #00d4ff 100%);
  border-radius: 15px 15px 90% 0px;
  height: 190px;
  color: #ffffff;
  font-size: 80px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card-item:hover .card-icon i {
  animation: shaking infinite 0.4s;
  animation-iteration-count: 2;
}

.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: 576px) {

  #main-container {
    border-radius: 0;
    margin: 0 auto;
  }
  .services-card {
    width: 100%;
  }
  .explains-card {
    width: 100%;
  }
}

@media (max-width: 625px) {
  .footer-description ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .services {
    justify-content: flex-start;
  }

  /* .services-card {
    width: calc(50% - 2rem);
  }
  .explains-card {
    width: calc(50% - 2rem);
  } */

  .main-list {
    grid-template-columns: auto;
  }
}

@keyframes shaking {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(0eg);
  }
  75% {
    transform: rotate(-15deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
