.blog-listing-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin-left: -40px;
  margin-right: -40px;
  margin-bottom: 20px;
}
.blog-card {
  width: calc(50% - 80px);
  margin: 0 40px 40px;
  & .blog-image {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    -webkit-transition: all 0.3s ease-out 0s;
    transition: all 0.3s ease-out 0s;
    > img {
      -webkit-transition: all 0.3s ease-out 0s;
      transition: all 0.3s ease-out 0s;
    }
    &:hover {
      border-color: var(--dark-blue);
    }
  }
  & .blog-content {
    padding: 30px 0;
    position: relative;
    border-bottom: 1px solid #dfdfdf;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    & .blog-title {
      margin-bottom: 15px;
      font-size: 26px;
      color: var(--dark-blue);
    }
  }
  & .date-wrap-more {
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    & .date {
      font-size: 16px;
      font-weight: bold;
      color: var(--dark-blue);
    }
    & .more-link {
      color: var(--dark-blue);
      font-weight: bold;
      padding-bottom: 5px;
      border-bottom: 2px solid var(--dark-blue);
      &::before {
        bottom: 4px;
        content: "";
        display: block;
        height: 2px;
        left: 0;
        position: absolute;
        background: var(--dark-blue);

        transition:
          width 0.3s ease 0s,
          opacity 0.3s ease 0s;
        width: 0;
      }
    }
  }
  &:hover {
    & .more-link::before {
      width: 100%;
    }
  }
}
.date-wrap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 40px 0;
  & .date {
    padding-right: 16px;
    border-right: 1px solid #dfdfdf;
    font-size: 20px;
    color: var(--theme);
    font-weight: 500;
  }
  & .blog-tag {
    display: inline-flex;
    width: auto;
    font-weight: 500;
    font-size: 20px;
  }
}

.blog-tag {
  display: block;
  width: 100%;
  font-size: 18px;
  color: var(--theme);
}
.sidebar-blog {
  width: 301px;
  position: sticky;
  -webkit-position: -webkit-yesterday;
  top: 100px;
  align-self: flex-start;
}
.form-search {
  position: relative;
  margin-bottom: 30px;
  & .search-control {
    background-color: #eafbff;
    border: 1px solid var(--theme);
    border-radius: 10px;
    width: 100%;
    padding: 16px 20px;
    line-height: 1.2;
  }
  & .button-search {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    background: url(../images/svg/search-sm.svg) no-repeat center;
    border: 0;
    outline: none;
    padding: 0;
  }
}
.flat-blog-detail {
  width: calc(100% - 301px);
  padding-right: 110px;
  & .heading-46 {
    margin-bottom: 20px;
  }
  & .search-blog-wrapper {
    display: none;
  }
}
.sidebar-header {
  background-color: var(--theme);
  padding: 15px 30px;
  border-radius: 10px 10px 0 0;
  font-size: 26px;
  color: var(--white);
  font-weight: bold;
  font-family: "Roboto Condensed";
}
ol {
  list-style-type: none;
  margin-left: 0;
  & li {
    margin-bottom: 50px;
    > strong {
      font-size: 30px;
      font-weight: bold;
      color: var(--dark-blue);
      font-family: "Roboto Condensed";
      margin-bottom: 20px;
      display: block;
    }
  }
}
.sidebar-post {
  border: 1px solid var(--theme);
  border-radius: 10px;
}
.recent-post-list {
  padding: 20px 25px;
  & a {
    font-size: 16px;
    font-weight: 500;
    color: #2e2e2e;
    padding: 10px 0 15px;
    display: block;
    &:not(:last-of-type) {
      border-bottom: 1px solid #dfdfdf;
      margin-bottom: 5px;
    }
    &:hover {
      color: var(--dark-blue);
    }
  }
}
@media (max-width: 1439.98px) {
  .blog-listing-wrapper {
    margin-left: -20px;
    margin-right: -20px;
  }
  .blog-card {
    width: calc(50% - 40px);
    margin: 0 20px 20px;
    & .blog-content {
      padding: 20px 0;
      & .blog-title {
        font-size: 24px;
        margin-bottom: 10px;
      }
    }
  }
  .flat-blog-detail {
    padding-right: 60px;
  }
  .date-wrap {
    margin-bottom: 30px;
  }
  ol {
    & li {
      > strong {
        font-size: 28px;
      }
    }
  }
}

@media (max-width: 1199.98px) {
  .blog-listing-wrapper {
    margin-left: -10px;
    margin-right: -10px;
  }
  .blog-card {
    width: calc(50% - 20px);
    margin: 0 10px 20px;
    & .blog-content {
      padding: 20px 0;
      & .blog-title {
        font-size: 22px;
      }
    }
  }
  .flat-blog-detail {
    padding-right: 40px;
  }
  ol {
    & li {
      margin-bottom: 40px;
      > strong {
        font-size: 26px;
      }
    }
  }
}

@media (max-width: 991.98px) {
  .blog-card {
    & .date-wrap-more {
      padding-top: 10px;
    }
  }
  .flat-blog-detail {
    padding-right: 0;
    width: 100%;
    & .search-blog-wrapper {
      display: block;
    }
  }
  .sidebar-blog {
    position: relative;
    top: inherit;
    width: 100%;
    & .blog-search-wrapper {
      display: none;
    }
  }
  ol {
    & li {
      margin-bottom: 30px;
      > strong {
        font-size: 24px;
      }
    }
  }
}

@media (max-width: 767.98px) {
  .blog-listing-wrapper {
    margin-left: 0;
    margin-right: 0;
  }
  .blog-card {
    width: 100%;
    margin: 0 0 20px 0;
    & .date-wrap-more {
      padding-top: 10px;
    }
    & .blog-content {
      padding: 15px 0;
    }
  }
  ol {
    & li {
      margin-bottom: 20px;
      > strong {
        font-size: 22px;
      }
    }
  }
}
