/* Article Grid
====================================================================== */

.ec-article__grid {
    display: grid;
    grid-template-columns: 50% 1fr 1fr;
    grid-gap: 16px;
    margin: 0;
    padding: 0;
}

.ec-article__grid>.ec-article__grid-item {
    display: block;
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.ec-article__grid>.ec-article__grid-item:first-child {
    grid-column: 1;
    grid-row: 1/span 2;
    height: 556px;
}

.ec-article__grid>.ec-article__grid-item:not(:first-child) {
    height: 270px;
}

.ec-article__grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border-radius: 10px;
}

img.ec-article__grid-image {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: all 0.3s ease;
    transform: scale(1);
    display: block;
}

.ec-article__grid>.ec-article__grid-item:hover img.ec-article__grid-image {
    transform: scale(1.1);
}

.ec-article__grid>.ec-article__grid-item:hover .ec-article__grid-overlay{
    background-color: rgba(0, 0, 0, 0.4);
}

.ec-article__grid-content {
    width: 100%;
    padding: 0 15px;
    position: absolute;
    bottom: 15px;
    left: 0;
    z-index: 9;
    color: #ffffff;
}

.ec-article__grid-title {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 20px;
}

.ec-article__grid-date {
    margin: 0;
}

@media only screen and (max-width: 992px) {
    .ec-article__grid {
        grid-gap: 10px;
    }

    .ec-article__grid-title {
        font-size: 17px;
    }
}

@media only screen and (max-width: 767px) {
    .ec-article__grid>.ec-article__grid-item:first-child{
        height: auto;
    }
}

.row{
    row-gap: 30px;
}

.post-inner{
    margin-bottom: 0;
    height: 100%;
}

body:not(.single-post) .entry-header .entry-title{
    font-size: 20px;
}

.ec-post__paginations{
    margin-top: 40px;
    text-align: right;
}

@media only screen and (max-width: 767px) {
    .ec-article__grid {
        display: block;
    }

    .ec-article__grid>.ec-article__grid-item{
        margin-bottom: 15px;
        height: 250px !important;
    }

    .ec-article__grid>.ec-article__grid-item img.ec-article__grid-image{
        height: 250px;
    }

    .ec-post__paginations{
        text-align: center;
    }
}


/* Article Filter
========================================== */

/* Nav Tab */
.ec-article-category-filter__navs-wrapper{
    position: relative;
}
.ec-article-category-filter__navs {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 0 0 40px;
    border-bottom: 1px solid #ddd;
}

.ec-article-category-filter__navs .nav-item {
    margin-right: 10px;
}

.ec-article-category-filter__navs .nav-link {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--e-global-color-primary);
    border-radius: 4px;
}

.ec-article-category-filter__navs .nav-item.ec-active .nav-link,
.ec-article-category-filter__navs .nav-link:hover{
    color: #ffffff;
    background-color: var(--e-global-color-primary);
}

.ec-article-category-filter__navs-button{
    width: 100%;
    padding: 10px 15px;
    border-radius: 4px;
    display: none;
    background-color: var(--e-global-color-primary);
    color: #ffffff;
    border: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-chevron-down'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-size: auto;
    background-position: right 15px center;
    background-repeat: no-repeat;
    text-align: left;
}

.ec-article-category-filter__navs-button.ec-active{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-chevron-up'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
}

@media only screen and (max-width: 767px) {
    .ec-article-category-filter__navs-button{
        display: block;
        margin-bottom: 15px;
    }

    .ec-article-category-filter__navs{
        width: 100%;
        display: none;
        flex-direction: column;
        position: absolute;
        z-index: 9;
        background: #fff;
        margin-bottom: 0;
        max-height: 250px;
        overflow-y: auto;
        top: 110%;
    }

    .ec-article-category-filter__navs .nav-item{
        margin-right: 0;
    }

    .ec-article-category-filter__navs .nav-link{
        border-radius: 0;
    }
}

/* Archive Category Page */
#primary.ec-content-area-category{
    background-color: #ffffff;
    padding: 30px !important;
    border-radius: 5px;
}

.ec-content-area-category .navigation.pagination{
    padding-bottom: 0;
}

.ec-content-area-category .navigation.pagination .nav-links{
    justify-content: flex-end;
    align-items: center;
}

.entry-footer .pbr-social-share{
    text-align: left;
}

@media only screen and (max-width: 992px) {
    #primary.ec-content-area-category{
        margin: 0 15px 40px;
    }
}

@media only screen and (max-width: 767px) {
    #primary.ec-content-area-category{
        margin: 0 15px 30px;
    }
}