.blog,
.tmpl_type_category,
.tmpl_type_archive {
  h1 {
    border-bottom: 1px solid rgb(112 112 112 / 0.38);
    padding-bottom: 20px;
  }

  h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);

    @media (min-width: 1060px) {
      font-size: 50px;
      line-height: 1.2em;
    }

    a {
      text-decoration: none;
    }
  }

  .post-snippet {
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
    border-bottom: 1px solid rgb(112 112 112 / 0.38);
    margin-bottom: 60px;

    @media (min-width: 768px) {
      flex-direction: row;
    }

    .thumb {
      display: none;
      margin-right: 20px;

      @media (min-width: 768px) {
        display: block;
      }
    }

    .excerpt {
      @media (min-width: 768px) {
        width: calc(100% - 150px);
      }

      p {
        margin-top: 0;
      }
    }
  }

  .date {
    font-size: 21px;
    text-transform: uppercase;
    color: var(--primary-color);
    text-align: right;
    margin-bottom: 16px;
  }

  .meta-data {
    font-size: 13px;
    margin-bottom: 10px;
    font-style: italic;
    color: var(--tertiary-alt);

    @media (min-width: 1060px) {
      font-size: 18px;
      margin-bottom: 20px;
    }

    a {
      color: var(--tertiary-alt);
    }
  }

  .button {
    text-decoration: none;
  }
}

.tmpl_type_single {
  .button {
    text-decoration: none;
  }

  .meta-data {
    font-size: 13px;
    margin-bottom: 10px;
    font-style: italic;
    color: var(--tertiary-alt);

    @media (min-width: 1060px) {
      font-size: 18px;
      margin-bottom: 20px;
    }

    a {
      color: var(--tertiary-alt);
    }
  }
}

.search-bar {
  @media (min-width: 768px) {
    display: flex;
    justify-content: space-between;
  }

  form {
    display: flex;
  }

  .search-input {
    height: 60px;
    border: 1px solid #dfdfdf;
  }
}

.cat-select {
  position: relative;

  .cat-options {
    background: var(--primary-color);
    height: 60px;
    color: var(--light-color);
    padding: 17px 24px;
    text-transform: uppercase;
    margin-bottom: 10px;
    
    /* Expanded iconafter mixin */
    position: relative;
    padding-right: 90px;

    @media (min-width: 768px) {
      margin-bottom: 0;
    }

    &::after {
      content: '';
      background: url('/wp-content/themes/rm-basetheme/images/svg/arrow.svg');
      background-size: 19px 30px;
      width: 19px;
      height: 30px;
      position: absolute;
      bottom: 14px;
      right: 30px;
      transform: rotate(90deg); /* Merged with the existing &:after from the original file */
    }
  }

  .cats {
    position: absolute;
    display: none;
    width: 210px;
    z-index: 100;
    background: color-mix(in srgb, var(--primary-color), white 42%);
    margin: 0;
    list-style: none;
    padding: 20px 0;
    margin-top: -10px;
    text-align: left;

    @media (min-width: 768px) {
      margin-top: 0;
    }

    li {
      padding: 5px 20px;

      a {
        text-transform: uppercase;
        text-decoration: none;
      }
    }
  }
}

.nav-links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  clear: both;

  .button {
    font-size: 12px;
    min-width: 100px;

    @media (min-width: 768px) {
      font-size: 16px;
      min-width: 170px;
    }
  }
}