/* blog post style */

.blogpost-container {
    margin-bottom: 30px;
}

.blogpost-container section {
    position: relative;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 1px 3px 10px rgba(0, 0, 0, .2);
    overflow: hidden;
}

.blogpost-container .category-container {
    display: flex;
    width: 100%;
    min-height: 3rem;
}

.category-container .blogpost-category {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: #407fc5;
    padding: 1px 12px;
    border-radius: 5px;
    margin-right: 8px;
    height: 30px;
}

.category-container .blogpost-category a {
    color: #fff;
    font-weight: 400;
    text-align: center;
    font-size: 11px;
    line-height: 110%;
    margin: 0;
}

.blogpost-container .image-container {
    height: 16rem;
    width: 100%;
    background-color: #efefef;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
}

.blogpost-container .title-container {
    padding: .2rem 5px;
    margin: 0;
}

.blogpost-container .title-container h4 {
    height: 3.1rem;
}

.blogpost-container .title-container h4 a {
    color: #407fc5;
    font-weight: 600;
    font-size: 14px;
}

.blogpost-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding-left: unset;
}

.blogpost-pagination .page-numbers li {
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding: 2px 4px; */
    border: solid 1px #407fc5;
    background-color: #fff;
    color: #407fc5;
    margin-left: 3px;
    margin-right: 3px;
    margin-bottom: 6px;
    min-width: 2.2rem;
    min-height: 2.2rem;
    transition: 0.8s;
}

.blogpost-pagination .page-numbers li a {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: .8s;
}

.blogpost-pagination .page-numbers li:hover {
    background-color: #407fc5;
}

.blogpost-pagination .page-numbers li:hover a {
    color: #fff;
}

.blogpost-container-2 {
    display: flex;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
    flex-wrap: wrap;
}

.my-4 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.blogpost-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.blogpost-text .the-date {
    font-style: italic;
    font-weight: lighter;
    color: #777;
}

.blogpost-title h4 a {
    font-weight: bold;
}

.blogpost-categories {
    width: 100%;
}

.blogpost-container-2 .blogpost-image {
    order: 1;
    width: 100%;
    height: 186px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.blogpost-container-2 .blogpost-text {
    order: 2;
    padding: 1.5rem .8rem;
    position: relative;
}

.blogpost-text::after {
    content: "";
    position: absolute;
    width: 2.5rem;
    height: 1rem;
    background-color: #fff;
    clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
    top: -0.9rem;
    left: 50%;
    transform: translateX(-50%);
}

.blogpost-categories,
.blogpost-date {
    margin-bottom: .8rem;
}

.blogpost-date {
    margin-top: .6rem;
}

.blogpost-categories {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.blogpost-categories .blogpost-category {
  display: flex;
  margin-right: .5rem;
  margin-bottom: .5rem;
  padding: .2rem .5rem;
  background-color: var(--link-color);
  border-radius: 5px;
  align-items: center;
  text-align: center;
}

.blogpost-categories .blogpost-category:last-child {
    margin-right: unset;
}

.blogpost-categories .blogpost-category a {
    color: #fff;
}

@media screen and (min-width: 576px) {
    .blogpost-categories,
    .blogpost-date {
        margin-bottom: unset;
    }
    
    .blogpost-date {
        margin-top: unset;
    }

    .blogpost-text {
      width: 50%;
      box-sizing: border-box;
      padding: .8rem 1rem;
    }
    
    .blogpost-text::after {
        display: none;
    }
    
    .blogpost-container-2 .blogpost-image {
      width: 50%;
      height: 300px;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      position: relative;
    }
    
    .blogpost-container-2.article-odd .blogpost-text {
        order: 2;
    }
    
    .blogpost-container-2.article-odd .blogpost-image {
        order: 1;
    }
    
    .blogpost-container-2.article-even .blogpost-text {
        order: 1;
    }
    
    .blogpost-container-2.article-even .blogpost-image {
        order: 2;
    }
    
    .blogpost-container-2.article-odd .blogpost-image::after {
        content: '';
        position: absolute;
        width: 2rem;
        height: 3.5rem;
        background-color: #fff;
        clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
        right: -2px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .blogpost-container-2.article-even .blogpost-image::before {
        content: '';
        position: absolute;
        width: 2rem;
        height: 3.5rem;
        background-color: #fff;
        clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
        left: -2px;
        top: 50%;
        transform: translateY(-50%);
    }
}