@import '../_variables';
@import '../_mixins';

.related-post-wrapper {
  max-width: 852px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  background-color: var(--related-post);
  border: 2px solid gray;
  box-shadow: 0px 2px 0 gray;
  border-radius: 0.375rem
}

.hr1 {
  color: #797979 !important;
  font-weight: 500 !important;
  border: 0!important;
  border-top: 2px solid !important;
}

.related-header {
  color: var(--c-brand);
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  // margin-right: 5px;
}

.related-post-wrapper section {
  margin-top: 20px;

  .item {
    position: relative;
    margin-left: 20px;

    > a {
      color: var(--c-text);

      &:hover, &:focus {
        text-decoration: none;
        color: var(--c-text-accent);
      }
    }

    .title {
      font-size: 20px;
      font-weight: 600;
      line-height: 1.3;
      margin-top: 20px;
      margin-bottom: 10px;
    }
    .subtitle {
      font-size: 16px;
      line-height: 1.3;
      margin: 0;
      font-weight: 450;
      margin-bottom: 10px;
    }
  }
}

@media (max-width: $MQMobile) {
  .related-post-wrapper {
    padding: 3rem 1rem;

    section .item {
      margin-left: 0;

      .title {
        font-size: 16px;
      }
      .subtitle {
        font-size: 13px;
      }
    }
  }
}
