@import "common.css";

/**********
*** SECTION BLOG START ***
**********/
.wrapper {
  background: var(--white-400) url(../img/blog/blog.jpg) center top no-repeat;
  background-size: cover;
}

.blog {
  padding: 109px 0 120px;
  text-align: center;
}

@media screen and (max-width: 992px) {
  .blog {
    padding: 92px 0 50px;
    text-align: center;
  }
}

.blog__tag {
  display: inline-flex;
  color: var(--white);
  background-color: var(--black-200);
  padding: 0 14px;
  margin: 0 auto 50px;
  height: 45px;
  line-height: 45px;
  font-weight: 400;
}

@media screen and (max-width: 992px) {
  .blog__tag {
      font-size: 14px;
      height: 35px;
      line-height: 35px;
      margin-bottom: 30px;
  }
}

.blog__title {
  font-weight: 500;
  font-size: 80px;
  line-height: 96px;
  color: var(--black-100);
  max-width: 822px;
  margin: 0 auto 140px;
  text-transform: capitalize;
  position: relative;
}

@media screen and (max-width: 992px) {
  .blog__title {
      font-size: 30px;
      line-height: 36px;
      margin: 0 auto 50px;
  }
}

.blog__pic {
  width: 360px;
  height: 220px;
  object-fit: cover;
}

@media screen and (max-width: 992px) {
  .blog__pic {
    height: 204px;
    width: 100%;
  }
}

.blog__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr auto;
  grid-gap: 30px;
  margin-bottom: 20px;
}

@media screen and (max-width: 992px) {
  .blog__row {
      display: block;
  }
}

.blog__item {
  background: var(--white-100);
  text-align: left;
}

@media screen and (max-width: 992px) {
  .blog__item {
      max-width: 375px;
      margin: 0 auto 20px;
  }
}

.blog__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 220px);
}

@media screen and (max-width: 992px) {
  .blog__content {
      height: auto;
  }
}

.blog__labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.blog__label {
  font-weight: 500;
  font-size: 12px;
  line-height: 12px;
  color: var(--grey-200);
  padding: 9px 10px 7px;
  border: 1px solid var(--grey-900);
  margin: 0 10px 10px 0;
}

.blog__caption,
.blog__caption a {
  color: var(--black);
  font-weight: 500;
  font-size: 30px;
  line-height: 36px;
  margin: 0 0 10px;
}

.blog__preview {
  color: var(--grey-200);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  margin: 0 0 12px;
}

.blog__setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.blog__date {
  font-weight: 500;
  font-size: 12px;
  line-height: 12px;
  color: var(--grey-400);
}

.blog__link {
  font-weight: 500;
  color: var(--black);
  font-size: 14px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
}

.blog__link:hover {
  text-decoration: underline;
}

.blog__link::after {
  content: url(../img/blog/arr.svg);
  display: block;
  margin: 0 0 0 10px;
  line-height: 0; 
}

.blog__paginator {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog__paginator li:not(:last-child) {
  margin-right: 10px;
}

.blog__paginator a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--white-200);
  border-radius: 10px;
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  color: var(--grey-200);
}

.blog__paginator a:hover,
.blog__paginator a.active {
  color: var(--black);
  border-color: var(--black);
}

.blog__paginator img.back {
  transform: rotate(180deg);
}
.hidden{display: none;}
/**********
*** SECTION BLOG END ***
**********/