/* ---------- BLOG ---------- */

/* ---------- page -> BLOG --- section -> MAIN -> header --- start ---------- */

.section-blog-header{
    display: flex;
    justify-content: space-between;
    margin-top: 36px;
}

.blog-page {
    height: 30vh;
}

.blog-page > h1 {
    color: var(--color-accent-2);
}

.section-blog-header-search {
    width: 30%;
}

.section-blog-header-tags{
    display: flex;
    align-items: center;
}

.section-blog-header-tags a{
    padding: 8px 12px;
    margin: 0 10px 0 0;
    background-color: #DCE0E3;
    border-radius: 16px;
    color: #7E8081;
    text-decoration: none;
}

.section-blog-header-tags a:hover{
    color: #FFFFFF;
    background-color: var(--color-accent-1);
}

.section-blog-header input[type=search]{
    width: 100%;
    height: 40px;
    font-size: 16px;
    padding: 0px 20px 0px 40px;
    border-radius: 5px;
    outline: none;
    opacity: 20%;
    border: solid gray 2px;
    background: url("../images/search/magnifying-glass.png") 7px center no-repeat;
}

.cursor-pointer{
    cursor: pointer;
}

/* ---------- page -> BLOG --- section -> MAIN -> header --- end ---------- */

/* ---------- page -> BLOG --- section -> MAIN -> middle --- start ---------- */

.section-blog-middle{
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-around; */
    margin-top: 32px;
}

.section-blog-middle article{
    width: 30%;
    height: 20%;
    margin-bottom: 56px;
    margin-right: 35px;
}

.section-blog-middle article div{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
}

.section-blog-middle article div a{
    color: var(--color-accent-1);
}

.section-blog-middle article div span{
    display: flex;
    opacity: 30%;
    align-items: baseline;
}

.section-blog-middle article div span i{
    margin: 0 8px 0 24px;
}

.section-blog-middle article img{
    width: 90%;
    border-radius: 5px;
}

.section-blog-middle article h2{
    margin: 16px 0;
    font-size: 18px;
    height: 70px;
    overflow: hidden;
}

.section-blog-middle article p{
    margin-bottom: 16px;
    opacity: 50%;
}

/* ---------- page -> BLOG --- section -> MAIN -> middle --- end ---------- */

/* ---------- page -> BLOG --- section -> MAIN -> footer --- start ---------- */

.section-blog-footer{
    justify-content: center;
    display: flex;
    align-items: center;
}

.section-blog-footer i{
    padding: 12px 16px;
}

.section-blog-footer ul{
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
}

.section-blog-footer-pagination{
    margin-left: 150px;
}

.section-blog-footer-pagination a {
    padding: 12px 16px;
    border: 1px solid #979797;
    border-radius: 5px;
    text-decoration: none;
}

.section-blog-footer-button a{
    background-color: var(--color-accent-1);
    padding: 12px 16px;
    color: #FFFFFF;
    text-decoration: none;

}

/* NEW */

.section-blog-middle-card{
    max-width: 30%;
}

.section-blog-middle-card img:hover,
.section-blog-middle-card h2:hover{
    cursor: pointer;
}

.section-blog-middle-card-media{
    position: relative;
    overflow: hidden;
}

.section-blog-middle-card-media::after{
    display: block;
    content: "";
    padding-top: 56.25%;
}

.section-blog-middle-card-media img{
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
}

/* ---------- page -> BLOG - section -> MAIN -> footer - end ---------- */

/* ---------- page -> BLOG - Media Query - start ---------- */


@media only screen and (max-width: 960px) {

    .section-blog-header {
        display: block;
    }
    .section-blog-header-tags a {
        padding: 8px 20px;
    }

    .section-blog-header-tags{
        justify-content: space-between;
    }

    .section-blog-header-search {
        width: 100%;
        margin-top: 20px;
    }

    .section-blog-middle article {
        width: 100%;
    }
    .section-blog-middle-card {
        max-width: 100%;
    }

    .section-blog-middle article h2{
        height: auto;
    }

    .section-blog-footer ul{
        flex-direction: column;
    }

    .section-blog-footer li{
        margin-bottom: 30px;
    }

    .section-blog-footer-pagination {
        margin-left: 0;
    }
}
/* ---------- page -> BLOG - Media Query - end ---------- */

/* ---------- BLOG ---------- */
