.blog__section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 50px auto 100px auto;
  overflow: hidden;
  --width: min(90vw, 848px);
}
.blog__section.padded {
  padding: 100px 0;
}
.grey__bg {
  background-color: #F8F8F8;
}
.blog__section>.blog__header {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  width: var(--width);
  margin: 20px 0;
  & h2 {
    margin: auto;
    margin-left: 0;
  }
  & a {
    font-weight: bold;
    color: #073431;
    margin: auto;
    margin-right: 0;
  }
  & a:hover {
    color: #B59155;
  }
}
.blog__section>.blog__header>.filter {
  display: flex;
  flex-direction: row;
  /* flex-wrap: wrap; */
  gap: 1rem;
  margin: auto;
  margin-right: 0;
}

.blog__section>.blog__header>.filter>.categories-dropdown>select,
.blog__section>.blog__header>.filter>.sort-dropdown>select {
  background-color: #B59155;
  color: white;
  font-family: 'Work Sans', sans-serif;
  padding: 0.3rem;
  border: none;
}




.blog {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: start;
  gap: 3rem;
  width: var(--width);
}
.blog>.blog__content {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  gap: 1rem;
}
.blog>.blog__content>.blog__image {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  width: 80vw;
  height: 300px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 10px;
}
.blog>.blog__content>.blog__image>.blog__category {
  font-size: 0.8rem;
  color: white;
  background-color: #073431;
  padding:  0.2rem 0.5rem;
  margin: 0;
  width: fit-content;
}
.blog>.blog__content>.blog__text {
  align-self: center;
  width: 80vw;
  max-height: 300px;
  & .blog__title {
    line-height: 2.2rem;
    margin: 0;
    max-height: 120px;
    overflow-y: clip;
  }
  & .blog__description {
    max-height: 100px;
    overflow-y: clip;
  }

  & button {
    background-color: #073431;
    color: white;
    padding: 0.5rem 1.2rem;
    cursor: pointer;

  }
  & button:hover {
    background-color: #B59155;
  }
}

.blog__section>.pagination {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 50px 0;

  & .pagination-item {
    font-family: 'DM Serif Display', sans-serif;
    color: #073431;
  }
  & .pagination-item:hover {
    color: #B59155;
  }

  & .pagination-item.disabled {
    color: lightgrey;
    cursor: default;
  }
}


.article__section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  width: min(90vw, 1200px);
}
.article__section>.article__header {
  width: 100%;
  height: 600px;
  padding: 20px;
  /* background-attachment: fixed; */
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
}

.article__category {
  font-size: 0.8rem;
  color: white;
  background-color: #073431;
  padding:  0.2rem 0.5rem;
  width: fit-content;

  &:hover {
    background-color: #B59155;
    color: white;
  }
}

.article__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  width: 100%;
}
.article__content>.main__content {
  width: min(90vw, 500px);

  & img {
    display: block;
    object-fit: contain;
    justify-self: center;
    /* width: 100%; */
    /* height: auto; */
  }
}

.article__content>.sidebar {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  /* align-items: center; */
  gap: 2rem;
  width: 80vw;
  margin-bottom: 100px;
}
.article__content>.sidebar>.blog__content {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
}
.article__content>.sidebar>.blog__content .blog__image {
  width: 50%;
  aspect-ratio: 1/1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.article__content>.sidebar>.blog__content .blog__text {
  width: 50%;
  & .blog__title {
    font-size: 1.2rem;
    margin: 0.8rem 0;
  }
  & .blog__description {
    font-size: 0.8rem;
    line-height: 1rem;
    margin: 0.8rem 0;
  }
  & a {
    font-size: 0.8rem;
    font-weight: bold;
    color: #B59155;
  }
  & a:hover {
    color: #073431;
  }
}
@media screen and (min-width: 600px) {
  .blog>.blog__content>.blog__image,
  .blog>.blog__content>.blog__text {
    width: 40vw;
  }
}
@media screen and (min-width: 768px) {
  .blog__section>.blog__header {
    flex-direction: row;
    & h2 {
      margin: unset;
    }
    & a {
      margin: unset;
    }
  }
  .blog {
    gap: 1rem;
  }
  .blog>.blog__content {
    flex-direction: row;
    width: calc(50% - 0.5rem);
  }
  .blog__section>.pagination {
    flex-wrap: nowrap;
    gap: 2rem;
  }
  .article__content {
    flex-direction: row;
    align-items: start;
    gap: 5rem;
  }
  .article__content>.main__content {
    width: 70%;
  }
  .article__content>.sidebar {
    width: 30%;
  }
  .article__content>.sidebar>.blog__content {
    flex-wrap: wrap;
  }
  .article__content>.sidebar>.blog__content .blog__image,
  .article__content>.sidebar>.blog__content .blog__text {
    width: 100%;
  }

  .blog>.blog__content>.blog__image,
  .blog>.blog__content>.blog__text {
    width: 50%;
  }

}

@media screen and (min-width: 1024px) {
  .blog {
    justify-content: start;
  }
  .article__content>.sidebar>.blog__content {
    flex-wrap: nowrap;
  }
  .article__content>.sidebar>.blog__content .blog__image,
  .article__content>.sidebar>.blog__content .blog__text {
    width: 50%;
  }
}
