.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;
  border: 5px dotted #FFC13E;
  border-radius: 20px;
  width: 100%;
}
.blog>.blog__content>.blog__image.mobile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 10px;
  /* border-right: 5px dotted #FFC13E; */
  border-radius: 20px 20px 0 0;
}
.blog>.blog__content>.blog__image.desktop {
  display: none;
}


.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: stretch;
  /* align-items: center; */
  /* width: 100%; */
  /* height: 280px; */
  margin: 1rem;
  & .indent {
    padding-top: 10px;
    padding-left: 10px;
  }
  & hr {
    width: 100%;
    border-top: 1px solid #ccc;
  }
  & p {
    font-size: 1rem;
    line-height: 1.2em;
    margin: 0;
  }
  & .blog__link {
    display: flex;
    justify-content: end;
  }
  & 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: auto;
    margin-top: 1rem;
    margin-right: 0;
  }
  & button:hover {
    background-color: #9cbeba;
  }
}
.blog>.blog__content>.blog__text>.blog__title {
  & h4 {
    line-height: 2.2rem;
    margin: 0;
    max-height: 120px;
    overflow-y: clip;
  }
}
.blog>.blog__content>.blog__text>.indent>p {
  font-size: 0.8rem;
  line-height: 1rem;
}
.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 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  width: min(90vw, 1200px);
}
.article__section>.article__header.desktop {
  display: none;
}

.article__section>.article__header.mobile {
  width: 80vw;
  height: auto;
  aspect-ratio: 4/5;
  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: #407D96;
  padding:  0.2rem 0.8rem;
  width: fit-content;
  border-radius: 20px;
  &:hover {
    background-color: #7FA6A1;
    color: white;
  }
}

.article__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  width: 100%;
}
.article__content>.main__content {
  width: min(90vw, 500px);

  & h2 {
    font-size: 1.2rem;
    margin-bottom: 0;
  }
   & .indent {
     padding-left: 10px;
     margin-bottom: 2rem;
   }

  & img {
    display: block;
    object-fit: contain;
    width: fit-content;
    max-width: 100%;
    height: auto;
    justify-self: center;
  }
}

.article__content>.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 25px;
  /* justify-content: center; */
  /* align-items: center; */
  gap: 1rem;
  width: min(90vw, 500px);
  /* margin-bottom: 100px; */
  & .sold-out {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 0 20px 0 0;
    background-color: #FFC13E;
    font-size: 0.8rem;
    color: #444444;
    padding: 3px 15px;
  }

  &>h3 {
    margin: 0
  }
  &>p {
    font-size: 1rem;
    margin: 0;
  }
  & select {
    font-family: 'Montserrat', sans-serif;
    padding: 0.5rem 0.8rem;
    border: none;
    border-radius: 5px;
    border: 1px solid #999;
    width: 80px;
  }
  & select:focus {
      outline: none;
  }
  & button {
    align-self: start;
    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;
    width: 100%;
  }
  & button:hover {
    background-color: #9cbeba;
  }
  & button:disabled {
    background-color: #F8F8F8;
    color: #444444;
    cursor: default;
  }
}
.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: 3rem;
    justify-content: start;
  }
  .blog>.blog__content {
    flex-direction: row;
    gap: 2rem;
  }
  .blog>.blog__content>.blog__image.mobile {
    display: none;
  }
  .blog>.blog__content>.blog__image.desktop {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    width: 40%;
    aspect-ratio: 4/5;
    height: auto;
    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__text {
    display: flex;
    margin: unset;
    margin: 1rem;
    margin-left: 0;
    width: 60%;
    /* gap: 0.5rem; */
    justify-content: space-between;
    & button {
      margin-top: 0;
    }
  }
  .blog__section>.pagination {
    flex-wrap: nowrap;
    gap: 2rem;
  }
  .article__section>.article__header.desktop {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    padding: 20px;
    /* background-attachment: fixed; */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }
  .article__section>.article__header.mobile {
    display: none;
  }

  .article__content {
    flex-direction: row;
    align-items: start;
    gap: 1rem;
  }
  .article__content>.main__content {
    width: 70%;
  }
  .article__content>.sidebar {
    margin: 100px 0;
    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 {
    flex-direction: row;
    align-items: start;
    gap: 5rem;
  }
  .article__content>.sidebar>.blog__content {
    flex-wrap: nowrap;
  }
  .article__content>.sidebar>.blog__content .blog__image,
  .article__content>.sidebar>.blog__content .blog__text {
    width: 50%;
  }
}
