@font-face {
  font-family: mirath;
  src: url(../../font/فونت\ میراث.ttf);
}

@font-face {
  font-family: estedad;
  src: url(../font/Estedad.ttf);
}

html {
  font-family: vazirmatn;
}

body {
  top: 0;
  margin: 0;
  font-size: 62.5%;
  color: #333;
}

.header-container {
  display: flex;
  justify-content: space-between;
}
.logo-img {
  width: 4.8rem;
  border-radius: 50%;
}
.nav-items {
  display: inline-block;
  padding: 0.8rem 0.8rem;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  transition: all 0.3s;
}
.nav-items:hover {
  color: #6741d9;
}
.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
}
.nav-last-item {
  margin-right: 2.4rem;
  background-color: #6741d9;
  border-radius: 0.8rem;
  color: #fff;
  transition: all 0.3s;
}
.nav-last-item:hover {
  color: #fff;
  background-color: #46327c;
}

.header-section {
  background-color: #f4f1fc;
}

/******** blog section ********/

.blog-tozihat {
  direction: rtl;
  font-size: 1.2rem;
  text-align: justify;
}

.blog-section {
  display: grid;
  grid-template-columns: 25fr 75fr;
  margin: 6.4rem 9.6rem;
  margin-top: 0;
  margin-left: 0;
}

.exept-header-container {
  padding: 3.2rem 6.4rem 6.4rem 6.4rem;
  background-color: #e1d9f7;
}

.blog-section-container {
  line-height: 1.8;
  border: #c0bfbf solid 0.1px;
}
.main-header {
  font-size: 2.8rem;
  text-align: center;
  background-color: #46327c;
  color: #fff;
  margin: 0;
  padding: 2.4rem 0;
}

.third-header {
  font-size: 1.4rem;
  color: #46327c;
  direction: rtl;
}
.blog-header-img-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* column-gap: 1rem; */
  align-items: center;
  padding: 2.4rem 0;
}
.main-img {
  max-width: 80%;
  justify-self: center;
  border-radius: 1rem;
  transition: all 0.3s;
}

.main-img:hover {
  border-radius: 2rem;
  scale: 1.2;
  opacity: 80%;
  box-shadow: 2px 2px 20px #333;
}

/******** side section *********/

.side {
  margin: 0 1.8rem;
}

.side p:nth-child(2) {
  font-family: estedad;
}

.side p:nth-child(3) {
  font-family: estedad;
}

.side p:nth-child(4) {
  font-family: estedad;
}

.side-text {
  display: flex;
  font-size: 1.6rem;
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
  border-bottom: dotted #999 1px;
  align-items: center;
  direction: rtl;
  color: #46327c;
}

.side-icon {
  max-width: 2rem !important;
}

.side-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  color: #333;
  padding: 1rem 0.8rem;
  background: #f4f1fc;
  margin-bottom: 2.4rem;
  border-radius: 1.8rem;
  transition: all 0.3s;
}

.side-link:hover {
  background-color: #6741d9;
  color: #fff;
}

.exept-header-container {
  font-family: estedad;
}

/******** footer section********/

.footer-section {
  font-family: estedad;
}

.footer-section-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 3.2rem;
  background-image: url(../../images/footer/pest.jpg);
  background-size: cover;
}

.footer-image-container {
  padding: 1.2rem;
}

.footer-img {
  max-width: 100%;
}

.footer-about-us {
  line-height: 1.6;
  text-align: right;
  color: #fff;
  font-size: 1rem;
}

.footer-contact-us {
  line-height: 1.6;
  text-align: right;
  color: #fff;
  font-size: 1rem;

  padding-right: 4.8rem;
}

.contact-us-text {
  display: flex;

  align-items: center;
  direction: rtl;
}

.about-us-text {
  display: flex;

  align-items: center;
  direction: rtl;
}

.footer-logo-img {
  max-width: 5%;
  border-radius: 100%;
}

.footer-logo-img-container {
  text-align: center;
  background-color: #444;
  padding: 0.8rem 0 0.8rem 0;
}

.logo-text {
  font-size: 0.6rem;
  color: #fff;
  margin: 0;
}

.logo-text:nth-child(3) {
  padding-top: 0.8rem;
  padding-bottom: 0.4rem;
}

.footer-about-us .flesh-blog {
  max-width: 0.8rem;
  padding: 0 0 0 0.4rem;
}

.flesh-blog {
  max-width: 1.2rem;
  padding: 0.4rem;
}

/******** media queries ********/

@media (max-width: 28.125em) {
  html {
    font-size: 70%;
  }

  .blog-section {
    margin-right: 0;
    margin-bottom: 4.6rem;
  }

  .blog-tozihat {
    font-size: 1.2rem;
  }

  .main-header {
    font-size: 2.2rem;
    padding: 1.6rem 0;
  }

  .side-text {
    font-size: 1.2rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .blog-header-img-container {
    column-gap: 1rem;
  }

  .main-img {
    max-width: 110%;
  }

  .side {
    margin: 0 0.8rem;
  }

  .flesh-blog {
    width: 1rem;
  }

  .exept-header-container {
    padding: 2.4rem 3.2rem;
  }

  .side-link {
    text-align: center;
    font-size: 1.2rem;
  }

  .footer-section-container {
    grid-template-columns: 1fr;
  }

  .footer-contact-us {
    padding-right: 1rem;
  }

  .footer-about-us {
    padding-right: 1rem;
  }

  .nav-last-item {
    margin-right: 1rem;
  }

  .nav-items {
    text-align: center;
    padding: 0.8rem 0.4rem;
    font-size: 1.1rem;
  }

  .logo-container {
    margin-right: 1rem;
  }

  .navigation {
    gap: 1rem;
  }
}
