.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 {
  font-family: 'Montserrat', sans-serif;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 5px;
  background-color: #ebebeb;

  &:focus {
      outline: none;
  }
}


.blog {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 3rem;
  width: var(--width);
}
.blog>.blog__content {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  gap: 1rem;
  border: 5px dotted #FFC13E;
  border-radius: 20px;
  width: 100%;
}
.blog>.blog__content>.blog__image {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  width: 40%;
  height: 300px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 10px;
  /* border-right: 5px dotted #FFC13E; */
  border-radius: 20px 0 0 20px;
}
.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 {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  /* align-items: center; */
  width: 60%;
  /* height: 280px; */
  & .blog__title {
    line-height: 2.2rem;
    margin: 2rem 0 1rem 0;
    max-height: 120px;
    overflow-y: clip;
  }
  & hr {
    width: 100%;
    border-top: 1px solid #ccc;
  }
  & p {
    margin: 0;
  }
  & button {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: white;
    text-transform: uppercase;
    background-color: #407D96;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    padding-top: 1rem;
    margin-bottom: 1rem;
  }
  & button:hover {
    background-color: #9cbeba;
  }
}

.blog__section>.pagination {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 50px 0;

  & .pagination-item {
    font-family: 'Montserrat', 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: auto;
  aspect-ratio: 16/9;
  padding: 20px;
  /* background-attachment: fixed; */
  background-repeat: no-repeat;
  background-position: center;
  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;
    width: 100%;
    height: auto;
  }
}

.article__content>.sidebar {
  position: relative;
  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: 768px) {
  .blog__section>.blog__header {
    flex-direction: row;
    & h2 {
      margin: unset;
    }
    & a {
      margin: unset;
    }
  }
  .blog {
    gap: 1rem;
    justify-content: start;
  }
  .blog>.blog__content {
    flex-direction: row;
  }
  .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%;
  }
}

@media screen and (min-width: 1024px) {
  .article__content>.sidebar>.blog__content {
    flex-wrap: nowrap;
  }
  .article__content>.sidebar>.blog__content .blog__image,
  .article__content>.sidebar>.blog__content .blog__text {
    width: 50%;
  }
}
