.intro {
  width: 100%;
  padding: 45px 0 15px 0;
  text-align: center;
}

section.intro h1 {
  font-size: 3.5rem;
  color: #000;
  font-weight: bold;
  margin: 25px 0;
  cursor: default;
}

section.intro p {
  color: #afafaf;
  font-size: 1.2rem;
  margin: 25px;
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  padding: 0 35px;
  justify-content: center;
}

.feature-box {
  width: calc((100% - 90px) / 3);
  min-width: 400px;
  padding: 25px;
  background: #fff;
  text-align: center;
  cursor: default;
  margin: 15px;
  transition: box-shadow 0.4s;
}

.feature-box i {
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: 22px;
}

.feature-box h1,
.feature-box p {
  margin-top: 12px;
}

.feature-box p {
  color: #a8a8a8;
}

.feature-box:hover {
  box-shadow: 0 4px 18px 4px var(--primary-light-color);
}

.posts-container {
  padding: 25px 95px 25px 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 45px 0;
  position: relative;
}

.posts {
  flex: 1;
  overflow-x: hidden;
}

.posts__list {
  display: flex;
  width: 1000px;
  transition: transform 0.4s;
}

.post {
  background: #fff;
  margin: 0 15px;
  padding: 18px;
  border: 1px solid #c8c8c8;
  border-radius: 12px;
  min-width: 400px;
  text-align: center;
  transition: border-color 200ms linear;
}

.post__picture img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.post .post__heading {
  font-weight: bold;
  color: #000;
  font-size: 1.1rem;
  padding: 14px;
}

.post .post__content {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  color: #ccc;
  text-overflow: ellipsis;
  overflow: hidden;
}

.post .post__ref {
  width: 100%;
  display: inline-block;
  padding: 18px 0 0 25px;
  text-align: left;
  color: var(--primary-color);
}

.post:hover {
  border-color: var(--primary-color);
}

.posts-container__arrow {
  width: 40px;
  height: 40px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dadada;
  color: #000;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.posts-container__arrow.arrow--left {
  left: 25px;
}

.posts-container__arrow.arrow--right {
  right: 25px;
}

.posts__heading {
  position: absolute;
  top: -25px;
  right: 115px;
}

.comments {
  padding: 45px 120px;
  display: flex;
  flex-direction: column;
}

.comment {
  width: 500px;
  height: 130px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #c1c1c1;
  padding: 12px 18px;
  display: flex;
  margin-top: 25px;
  position: relative;
  top: 100px;
  opacity: 0;
}

.comment.fade {
  animation: commentAnimation 600ms ease-in forwards;
}

.comment:nth-of-type(even) {
  align-self: end;
}

.comment:nth-of-type(odd) {
  align-self: start;
}

.comment .comment__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment .comment__avatar img {
  object-fit: cover;
  border-radius: 50%;
}

.comment .comment__text {
  flex: 1;
  text-align: center;
  padding: 17px;
  font-size: 0.9rem;
}

.sub-systems__container {
  display: grid;
  padding: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  align-items: center;
  justify-content: center;
}

.sub-site-box {
  padding: 25px;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-style: solid;
  border-color: #dddddd;
  border-width: 0 1px 1px 0;
  text-align: center;
  position: relative;
}

.sub-site-box:first-child {
  border-width: 0 0 1px 0;
}

.sub-site-box:last-child {
  border-width: 0 !important;
}

.sub-site-box:nth-child(3) ~ a {
  border-width: 0 0 0 1px;
}

.sub-site-box i {
  font-size: 4rem;
  color: var(--primary-color);
  padding-bottom: 0.85rem;
}

.footer {
  border-top: 1px solid #dbdbdb;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
}

.footer .footer__menus {
  padding: 65px 45px 45px 45px;
}

.footer .footer__menus > ul {
  display: flex;
  flex-wrap: wrap;
  max-width: 1366px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.footer .footer__copyright {
  border-top: 1px solid #dbdbdb;
  text-align: center;
  font-size: 0.9rem;
  color: #101010;
  padding: 18px 0;
  background: #fff;
}

.footer .footer__menu {
  min-width: 300px;
  margin: 15px;
  text-align: center;
}

.footer .footer__menu li {
  color: #101010;
  font-size: 0.9rem;
  padding-bottom: 0.45rem;
}

.footer .footer__menu li:first-child {
  color: #000;
  font-size: 1rem;
  padding-bottom: 0.55rem;
}

@media screen and (max-width: 1115px) {
  .sub-site-box {
    border: none !important;
  }
}

@media screen and (max-width: 1100px) {
  section.intro .intro__categories {
    width: 100%;
    max-width: 600px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 120px);
    grid-template-rows: repeat(2, 106px);
    row-gap: 40px;
  }

  .page-content {
    padding: 80px 35px 0 35px;
  }

  .intro {
    padding: 25px 0 15px 0;
  }
}

@media screen and (max-width: 850px) {
  .sub-site-box:nth-child(3) ~ a {
    display: none;
  }

  .sub-site-box:nth-child(3)::before {
    content: "مشاهده بیشتر";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    border: 1px solid #f6f6f6;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (max-width: 680px) {
  body {
    font-size: 0.9rem;
  }

  .posts-container__arrow.arrow--right {
    right: -15px;
  }

  .posts-container__arrow.arrow--left {
    left: -15px;
  }

  .posts-container {
    padding: 20px;
  }

  .post {
    scale: .7;
  }

  .post:first-child {
    margin-right: -30px !important;
  }

  section.intro h1 {
    font-size: 2.25rem;
  }

  section.intro .intro__categories {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
  }

  .intro .intro__categories .intro__category-box:nth-child(6) ~ .intro__category-box {
    display: none;
  }
}

@media screen and (max-width: 825px) {
  .comments {
    padding: 25px;
  }

  .comment {
    width: 100%;
    height: auto;
    padding: 12px;
  }
}

@keyframes commentAnimation {
  from {
    top: 100px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
