/*
 Theme Name:   PRIORISE
 Theme URI:    https://priorise.com
 Description:  Thème PRIORISE
 Author:       STUDIO WBM
 Author URI:   https://priorise.com
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light
 Text Domain:  priorise_theme
*/

/**************************
        ARCHIVE BLOG
***************************/
div.site main.site-main.archive-blog-main{
    padding-bottom: clamp(180px, 25vh, 250px)
}
.container-custom, .container-custom .row, .container-custom .row article, .container-custom .row article img{
    -webkit-transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -ms-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
}
.container-custom .row article:hover .container-custom .row article img{
    transform: scale(1.1);
}
.container-custom .row{
    margin-left: auto;
    width: 100%;
    margin-right: 0;
}
.row-blog-filter {
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 50px;
    margin-bottom: 50px;
    border-bottom: solid 1px rgba(99, 53, 241, 0.20);
}
.row-blog-filter .search-filter-post {
    display: flex;
    gap: 10px;
    align-items: center;
}
.row-blog-filter .search-filter-post button.search-submit {
    padding: 5px;
}
.row-blog-filter .search-filter-post form label {
    margin-bottom: 0;
}
.row-blog-filter .search-filter-post form.search-form {
    gap: 0px;
}
.row-blog-filter .search-filter-post form.search-form .input-row input {
    padding: 0px 5px 0px 45px;
    width: 150px;
}
.row-blog-filter h1{
    margin: 0.5rem 0 0 0;
    color: var(--themeMarine);
    text-align: center;
    font-family: Lexend;
    font-size: 52px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}
.row.row-blog-content {
    grid-gap: 80px 30px;
}
.row.row-blog-content, .row.row-blog-forward {

    -webkit-transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -ms-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
}
.sidebar-blog-loop-cat{
    display: flex;
    flex-wrap: wrap;
}
aside.sidebar-blog {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: clamp(180px, 25vh, 250px);
    padding-bottom: 60px;
    padding-left: 60px;
    padding-right: 60px;
    height: 100%;
    width: auto;
    min-width: 300px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: solid 1px rgba(99, 53, 241, 0.20);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    transform: translateX(-200%);
    -webkit-transition: all 400ms ease;
    -moz-transition: all 400ms ease;
    -ms-transition: all 400ms ease;
    -o-transition: all 400ms ease;
    transition: all 400ms ease;
}
.button-sidebar.active{
    background-color: rgb(99, 53, 241, 0.2);
    border: solid 1px var(--themeBluePurple);
    color: var(--themeMarinePurple);
}
.button-sidebar.active span.material-symbols-outlined{
    font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}
aside.sidebar-blog.sidebar-open {
    transform: translateX(0);
    overflow: scroll;
    height: 100%;
}
aside.sidebar-blog .post-blog-cat-filter-row {
    display: flex;
    flex-direction: column;
    height: 100%;
}
aside.sidebar-blog h4{
    margin-bottom: 40px;
    color: var(--themeMarine);
}
aside.sidebar-blog ul{
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px 10px;
    list-style-type: none;
}
aside.sidebar-blog ul li a{
    color: #FFFFFF;
}   
aside.sidebar-blog button.post-blog-cat-all.btn-primary-filled {
    width: 100%;
    margin-top: auto;
}
aside button.post-blog-cat-all{
    margin-top: auto;
}

.row-blog-last-posts{
    margin: 60px 0 0;
    padding-top: 50px;
    border-top: solid 1px rgba(99, 53, 241, 0.20);
}
.row-blog-last-posts h2{
    margin: 0.5rem 0 30px;
    color: var(--themeMarine);
}
.close-sidebar {
    cursor: pointer;
    position: absolute;
    top: 10vh;
    left: 80px;
    display: flex;
    align-items: center;
    line-height: 1;
    gap: 8px;
}
body.archive.category .row-blog-last-posts {
    margin: 20px 0 0 auto;
    border: none;
    padding-top: 0px;
}

/**************************
        CONTENT BLOG
***************************/
article.post-blog .post-blog-content{
    padding: 0px 5px;
}
article.post-blog{
    width: calc((100% - 60px) / 3);
}
article.post-blog .entry-content > div:first-of-type{
    overflow: hidden;
    border-radius: 10px;
    box-shadow: -30px -30px 94px 80px rgba(1, 108, 82, 0.05), 0px 3px 7px 0px rgba(33, 26, 29, 0.05);
    max-height: 200px;
}
article.post-blog:hover img{
    transform: scale(1.05);
}

article.post-blog .entry-content{
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    margin: 0;
}
article.post-blog .entry-content > div:first-of-type > div:last-of-type{
    margin-top: auto;
}
article.post-blog img{
    height: 200px;
    object-fit: cover;
    object-position: center;
    width: 100%;
}
article.post-blog h2{
    color: var(--themeMarinePurple);
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
}
article.post-blog .post-blog-excerpt{
    font-style: normal;
    font-weight: 300;
    font-size: 15px;
    line-height: 150%;
    color: var(--themeFontColor);
    margin: 20px 0 30px 0;
}
article.post-blog .post-blog-excerpt p{
    color: var(--themeFontColor);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

article.post-blog .post-blog-meta-infos{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    margin: 0.5rem 0;
    color: var(--themePurple);
    text-align: center;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 105%;
}
ul.post-blog-loop-cat {
    margin: 0 20px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 5px;
    list-style-type: none;
    max-width: 70%;
}
.post-blog-read-more{
    color: var(--themeGreyColor);
    gap: 0 5px;
}
.post-blog-read-more span.material-symbols-outlined{
    font-size: 28px;
    color: var(--themeBluePurple);
}

/* Content forward */
.row.row-blog-forward {
    justify-content: space-between;
    margin-bottom: 40px;
}
.col-forward{
    flex: 0 0 auto;
    width: 58.33333333%;
}
article.post-blog.forward {
    display: flex;
    height: 100%;
    width: 100%;
}
article.post-blog.forward .col-forward-content{
    padding: 0px 10px;
}
article.post-blog.forward a{
    display: flex;
    width: 100%;
}
article.post-blog.forward .entry-content{
    flex-direction: column;
    gap: 20px;
}
article.post-blog.forward img{
    height: 100%;
}
article.post-blog.forward .entry-content > div:first-of-type{
    width: 100%;
    height: 100%;
    min-height: 250px;
    max-height: 280px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: -30px -30px 94px 80px rgba(1, 108, 82, 0.05), 0px 3px 7px 0px rgba(33, 26, 29, 0.05);
}
article.post-blog.forward:hover img{
    transform: scale(1.05);
}
article.post-blog.forward h2 {
    color: var(--themeMarinePurple);
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    margin-top: 10px;
}
article.post-blog.forward .post-blog-excerpt p{
    color: var(--themeFontColor);
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
/* Content side */
.col-posts-side{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;
    width: 33.33333333%;
    gap: 30px;
    padding-top: 15px;
}
article.post-blog-side h3{
    color: var(--themeMarinePurple);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    margin-bottom: 0;
}
article.post-blog-side .entry-content{
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}
article.post-blog-side .entry-content > div:first-of-type{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
article.post-blog-side .entry-content > div .post-blog-meta-infos{
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: var(--themePurple);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 105%; 
}

@-webkit-keyframes slide {
    0% {
        transform: translateX(150%);
        display: none;

    }
    20% {
        transform: translateX(0%);
        display: block;
    }
    80% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(150%);
        display: none !important;
    }
}
/* Pagination  */
.row.blog-pagination{
    padding: 30px 0;
}
.row.blog-pagination nav.pagination{
    display: flex;
    justify-content: center;
    width: 100%;
    height: fit-content;
}
.row.blog-pagination nav.pagination .nav-links{
    display: flex;
    gap: 5px;
    padding: 6px;
    width: fit-content;
    border-radius: 50px;
    height: fit-content;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: solid 1px rgb(180 180 180 / 19%);
}
.row.blog-pagination nav.pagination span.page-numbers, .row.blog-pagination nav.pagination a.page-numbers{
    padding: 10px 20px;
    border-radius: 50px;
    background: #FFFFFF;
    color: var(--themeFontColor);
}
.row.blog-pagination nav.pagination a.page-numbers.next, .row.blog-pagination nav.pagination a.page-numbers.prev{
    background: var(--themeMarinePurple);
    color: #FFFFFF;
}
.row.blog-pagination nav.pagination span.page-numbers.current{
    background: var(--themeMarinePurple);
    color: #FFFFFF;   
}





/*****************
    RESPONSIVE
******************/

@media only screen and (max-width: 1280px) {
    aside.sidebar-blog {
        min-width: 280px;
        max-width: 320px;
        padding-top: clamp(150px, 25vh, 201px);
        padding-bottom: 40px;
        padding-left: 40px;
        padding-right: 40px;
    }
    .close-sidebar {
        left: 30px;
    }
    .row-blog-filter h1{
        font-size: 42px;
    }
    article.post-blog.forward .entry-content > div:first-of-type{
        max-height: 250px;
    }
    .row-blog-filter > div:last-of-type{
        margin-top: 20px;
    }
}
@media only screen and (max-width: 1200px) {
    .row-blog-filter {
        padding-bottom: 30px;
        margin-bottom: 40px;
    }
    article.post-blog h2 {
        font-size: 21px;
        margin-top: 15px;
    }
    .col-posts-side{
        width: 45%;  
    }
    .col-forward{
        width: 50%;  
    }
    article.post-blog.forward .entry-content > div:first-of-type {
        min-height: 0;
        max-height: 200px;
    }
    article.post-blog.forward h2 {
        font-size: 28px;
    }
    article.post-blog.forward .post-blog-excerpt p{
        font-size: 15px;
    }
    article.post-blog.forward .entry-content {
        gap: 10px;
    }
    article.post-blog .post-blog-excerpt {
        margin: 15px 0 20px 0;
    }
    .row.row-blog-content {
        grid-gap: 60px 30px;
    }
    article.post-blog {
        width: calc((100% - 30px) / 2);
    }
    .row-blog-last-posts {
        margin: 50px 0 0;
        padding-top: 40px;
    }
    article.post-blog img {
        height: 180px;
    }
}
@media only screen and (max-width: 1024px) {
    div.site main.site-main.archive-blog-main {
        padding-top: clamp(150px, 15vh, 200px);
        padding-bottom: clamp(150px, 15vh, 200px);
    }
}
@media only screen and (max-width: 992px) {
    div.site main.site-main.archive-blog-main {
        padding-top: clamp(100px, 10vh, 180px);
    }
    .row-blog-filter{
        padding-top: 30px;
        position: relative;
    }
    .row-blog-filter > div:last-of-type{
        margin-top: 20px;
    }
    .col-forward, .col-posts-side{
        width: 100%;
    }
    article.post-blog.forward .col-forward-content{
        padding: 0;
    }
    article.post-blog.forward h2 {
        font-size: 24px;
    }
    .row-blog-filter h1 {
        margin: 0.5rem 0 0 0;
        font-size: 36px;
    }
    article.post-blog.forward .post-blog-excerpt p {
        font-size: 15px;
        line-height: 150%;
        max-width: 100%;
    }
    article.post-blog.forward .entry-content {
        flex-direction: row;
        align-items: center;
        gap: 25px;
    }
    article.post-blog .post-blog-excerpt {
        margin: 10px 0 15px 0;
    }
    article.post-blog-side .entry-content > div:first-of-type{
        gap: 5px;
    }
    .row-blog-last-posts h2 {
        margin: 0.5rem 0 20px;
        font-size: 28px;
    }
    .row.row-blog-content {
        grid-gap: 40px 10px;
    }
    article.post-blog {
        width: calc((100% - 10px) / 2);
    }
    /* Pagination */
    .row.blog-pagination{
        padding: 60px 0 0px;
    }
}
@media only screen and (max-width: 768px) {
}
@media only screen and (max-width: 575px) {
    .close-sidebar {
        left: 30px;
        top: 50px;
    }
    .row-blog-last-posts > div:first-of-type{
        padding: 0;
    }
    aside.sidebar-blog {
        padding-top: clamp(120px, 15vh, 150px);
    }
    div.site main.site-main.archive-blog-main {
        padding-top: clamp(120px, 15vh, 180px);
    }
    article.post-blog{
        padding: 0;
    }
    article.post-blog.forward{
        padding-bottom: 30px;
        border-bottom: solid 1px rgba(99, 53, 241, 0.20);
    }
    .row-blog-filter {
        padding-top: 40px;
        padding-bottom: 25px;
        margin-bottom: 25px;
    }
    .row-blog-filter h1 {
        font-size: 32px;
    }
    article.post-blog img {
        height: 150px;
    }
    article.post-blog h2 {
        font-size: 17px;
        margin-top: 5px;
    }
    article.post-blog .post-blog-excerpt p{
        font-size: 14px;
        line-height: 150%;
    } 
    article.post-blog.forward .entry-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .row-blog-last-posts h2 {
        font-size: 24px;
    }
    .row.blog-pagination nav.pagination span.page-numbers, .row.blog-pagination nav.pagination a.page-numbers{
        padding: 8px 16px;
        font-size: 14px;
    }
}
@media only screen and (max-width: 420px) {
    div.site main.site-main.archive-blog-main {
        padding-top: clamp(100px, 10vh, 150px);
    }
    aside.sidebar-blog {
        padding-bottom: 120px;
    }
    .search-filter-post {
        flex-direction: column;
        gap: 10px;
    }
    .row.row-blog-content {
        gap: 40px 0px;
    }
    .row-blog-filter h1 {
        font-size: 32px;
        line-height: 120%;
    }
    .row-blog-filter > div:first-of-type{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .row-blog-filter .tag-small{
        text-align: center;
    }
    .row-blog-filter {
        justify-content: center;
        margin-bottom: 20px;
        gap: 15px;
    }
    article.post-blog.forward .entry-content > div:first-of-type {
        max-height: 180px;
    }
    article.post-blog-side .entry-content {
        gap: 10px;
    }
    article.post-blog h2 {
        font-size: 21px;
    }
    .row-blog-filter > div:last-of-type{
        position: relative;
    }
    article.post-blog {
        width: 100%;
    }
    article.post-blog .post-blog-excerpt {
        margin: 0 0 20px 0;
    }
    article.post-blog.forward h2 {
        font-size: 24px;
        margin: 10px 0 10px;
    }
    .row-blog-filter h1 {
        font-size: 32px;
    }
    .row-blog-last-posts, article.post-blog {
        padding-left: 10px;
        padding-right: 10px;
    }
    article.post-blog.forward{
        padding-left: 0px;
        padding-right: 0px;
    }
    article.post-blog img {
        height: 160px;
    }

}