/* changes to hero-section  */


/* end changes to hero-section */


/* begin constant blog base container */

.blog-base-container {
    display: flex;
}

.blog-base-container .division-1 {
    flex: 3
}

.blog-base-container .division-2 {
    flex: 1
}

.blog-base-container h4 {
   
}

.blog-base-container p {
    padding: .25em 0;
    margin: 0;
}


/* end constant blog base container */


/* blog list begin here */


/* begin blog list sub-header */

.sub-header {
    color: rgb(71, 8, 129);
    display: flex;
    justify-content: space-between;
}

.sub-header a {
    border-radius: 5px;
    padding: .15em .25em;
    margin-bottom: 0;
    font-weight: lighter;
    font-size: medium;
}

.sub-header a:hover {
    border-radius: 5px;
    font-weight: lighter;
    font-size: medium;
    background-image: linear-gradient(to left, #971ADE, #de1aad);
    color: white;
}


/* end blog list sub-header */

.blog-container {
    display: flex;
    flex-flow: wrap;
}

.blog-container .division-1 {
    flex: 3;
}

.blog-container .division-2 {
    flex: 1;
}


/* begin featured posts */

.section-post {
    width: 90%;
    margin: 0 auto;
}

.featured-posts {
    max-width: 52em;
    max-height: 18em;
    margin: auto;
    margin-bottom: 2em;
    overflow: hidden;
}

.featured-posts .couroser {
    display: flex !important;
    flex-flow: row !important;
    justify-content: left !important;
    margin: auto;
    /* height: 18em; */
    overflow-y: hidden;
    overflow-x: scroll!important;
}

.featured-posts .couroser .article {
    width: 15em;
    min-width: 15em;
    /* width: 12.5em; */
    margin: .15em;
    padding-bottom: .5em;
}

.featured-posts .couroser .img-container {
    height: 8em;
}

.featured-posts .couroser .img-container img {
    width: 100%;
    height: auto;
}


/* end featured posts */


/* ----------------begin couroser blog--------------------- */

.couroser {
    display: flex;
    flex-flow: wrap;
    width: 100%;
    padding: 2%;
}

.couroser .article {
    position: relative;
    box-shadow: 0 0 2px var(--secondary-color-lighter);
    border-radius: 15px;
    width: 31%;
    margin: .5%;
    padding: 0;
    padding-bottom: 0;
}

.couroser ul {
    margin: 0;
    padding: 0;
}

.absolute-bg {
    width: 100%;
    height: 0%;
    position: absolute;
    border-radius: 15px 15px 0 0;
    background-color: var(--secondary-color-light);
    transition: ease-out .5s;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border-radius: 10px;
}

.absolute-bg .profile-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin: .25em;
    color: var(--color-lighter);
}

.absolute-bg .profile-pics {
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    padding-right: .25em;
}

.absolute-bg .profile-container span {
    display: flex;
    align-items: center;
    padding-right: .5em;
    margin-right: auto;
}

.absolute-bg .stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: var(--color-light);
    margin-top: 4em;
    padding: .25em;
    border-radius: 2px;
}

.absolute-bg .stats-container .article-stats {
    margin: .25em;
    display: flex;
    align-items: center;
}
.stats-container svg {
    transform: scale(.5);
    fill: var(--color-light);
    stroke: var(--color-light); 
}

.stats-container svg:first-of-type {
    display: none;
    transition: linear .5s;
}



.couroser .article:hover .absolute-bg {
    height: 100%;
    background-color: var(--secondary-color-light);
    transition: ease-out .5s;
}

.couroser .img-container {
    background-position: center;
    background-size: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    width: 100%;
    height: 10em;
    padding: 0;
    overflow: hidden;
    background-color: var(--secondary-color-lighter);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: ease-out .5s;
}

.couroser .img-container:hover {
    background-color: var(--secondary-color-light);
    transition: ease-out .5s;
}

.couroser .img-container img {
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: ease-out .5s;
}

.couroser .article:hover .img-container img {
    transform: scale(1.25);
    transition: ease-out .5s;
}

.couroser .article-content {
    padding: .5em;
}
.couroser .article-content .content{
   color: var(--color-dark);
}

.couroser .article-cat{
    color: var(--secondary-color-light);
    border-radius: 10px;
    box-shadow: 0 0 1px var(--secondary-color-light);
    background-color: var(--secondary-color-lighter);
    padding: .1em .5em;
    font-size: 12px;
    margin: .5em 0;
    }


/* -------------------end couroser blog------------------------- */


/* -------------begin aside----------------------  */

.aside-container {
    overflow-y: scroll;
    min-width: 15em;
    position: relative;
}

.aside-container div:first-child {
    /* position: absolute; */
}

.section-3 .trending-post-conatainer {
    display flex;
    justify-content space-between;
}

.aside-container h4 {
    padding 0;
    margin 0;
}

.aside-container .trending-post {
    color: black!important;
}

.aside-container .trending-post-conatainer {
    padding: .5em;
}

.aside-container .trending-post-conatainer:hover {
    color: black!important;
    background-color: rgb(138, 43, 226, .5);
}

.author-container {
    display: flex;
    justify-content: space-between;
}

.author-container small:first-of-type {
    display: flex;
    align-content: center;
}

.author-img {
    width: 1em;
    height: auto;
    margin-right: .25em;
}

.content-container {
    display: flex;
    justify-content space-between;
    align-items: center;
}

.article-img-conatainer {
    width: 5em;
    height: 5em;
    padding-right: .5em;
}

.article-img-conatainer img {
    width: 100%;
    height: 100%;
}


/*---------------- end aside--------------------- */

@media screen and (max-width: 992px) {
    /* begin blog-base-container */
    .blog-base-container {
        display: flex;
        flex-direction: column;
    }
    /* end blog-base-container */
    /* begin blog list */
    .blog-container {
        display: flex;
        flex-flow: wrap;
        flex-direction: column;
    }
    .featured-posts {
        max-width: 40em;
    }
    /* for horizontal scroll categirize posts */
    .couroser .article {
        width: 22.5em;
        min-width: 19.5em;
        margin-bottom: 1em !important;
        box-shadow: 0 0 2px var(--secondary-color-lighter);
    }
    /* end for horizontal scroll categirize posts */
    /* begin couroser section */
    .couroser-section .couroser .article {
        width: 48%;
    }
    .couroser .img-container img {
        width: 100%;
    }
    /* end couroser section */
}

@media screen and (max-width: 600px) {
    section {
        max-width: 100%!important;
    }
    .hero-section {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    .category-container {
        max-width: 100%;
        overflow: scroll;
    }
  
    .featured-posts {
        max-width: 25em;
        max-height: 21em;
    }
    .couroser .article {
        width: 95%;
        min-width: 19.5em;
        margin: auto;
        margin-bottom: 1em !important;
    }
    
}

@media screen and (max-width: 350px) {
    .hero-section {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    .featured-posts {
        max-width: 18.5em;
        margin: 0!important;
    }
    .couroser .article {
        width: 95%;
        min-width: 19.5em;
        margin: auto;
        margin-bottom: 1em !important;
    }
}