@import "common.css";

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

.category {
  padding: 109px 0 100px;
}

@media screen and (max-width: 768px) {
  .category {
    padding: 70px 0;
  }
}

.category__row {
  display: grid;
  grid-template-columns: auto 360px;
  grid-gap: 30px;
}

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

.category__title {
  color: var(--black-100);
  font-size: 26px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  margin: 0 0 10px;
}

@media screen and (max-width: 768px) {
  .category__title {
    margin-bottom: 20px;
  }
}

.category__aside-title {
  font-size: 26px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  margin: 0 0 15px;
  color: var(--black-100);
}

.category__aside-top {
  display: block;
  background: url(../img/category_1.png) center top no-repeat;
  background-size: cover;
  padding: 30px;
  margin-bottom: 30px;
}

.category__aside-top-info {
  color: var(--grey-200);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 145%;
  margin-bottom: 15px;
}

.category__aside-subtitle {
  color: var(--black-100);
  font-size: 38px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  margin: 0 0 121px;
}

@media screen and (max-width: 768px) {
  .category__aside-subtitle  {
    margin-bottom: 50px;
  }
}

.category__aside-link {
  color: var(--grey-200);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 145%;
  text-transform: capitalize;
  margin: 0;
  display: flex;
  align-items: center;
}

.category__aside-posts {
  margin-bottom: 30px;
}

.category__aside-post {
  display: block;
  padding: 30px;
  color: var(--black-100);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 145%;
  text-transform: capitalize;
  background: var(--white-100);
  margin-bottom: 10px;
  text-decoration: none;
}

.category__aside-post:hover {
  text-decoration: underline;
}

.category__aside-link::after {
  content: url(../img/icon_right_outline.svg);
  display: block;
  margin: 0 0 0 4px;
  line-height: 0;
}

.tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.tag {
  color: var(--grey-200);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 145%;
  padding: 4px 10px;
  border: 1px solid var(--white-200);
  background: var(--white-100);
  margin: 0 10px 10px 0;
}

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

@media screen and (max-width: 768px) {
  .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__pic img {
  width: 100%;
}

.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; 
}
/**********
*** SECTION CATEGORY END ***
**********/