/**
 * ==========================================================================
 * MultiPress Politics Section v2
 * ==========================================================================
 */

.mp-category-grid{
    margin:70px 0;
}

.mp-category-grid__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:30px;
}

.mp-category-grid__title{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:165px;
    height:52px;
    padding:0 34px;
    background:linear-gradient(135deg,#d61d4b,#c81e3a);
    color:#fff;
    font-size:28px;
    font-weight:700;
    letter-spacing:.2px;
    line-height:1;
    clip-path:polygon(0 0,88% 0,100% 100%,0 100%);
    box-shadow:0 8px 20px rgba(200,30,58,.22);
}

.mp-category-grid__posts{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:28px;
}

.mp-category-card{
    display:flex;
    flex-direction:column;
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 3px 18px rgba(0,0,0,.08);
    transition:all .28s ease;
}

.mp-category-card:hover{
    transform:translateY(-6px);
    box-shadow:0 16px 36px rgba(0,0,0,.14);
}

.mp-category-card__image{
    display:block;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#ececec;
}

.mp-category-card__image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .4s ease;
}

.mp-category-card:hover .mp-category-card__image img{
    transform:scale(1.08);
}

.mp-category-card__content{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:18px;
}

.mp-category-card h3{
    margin:0 0 14px;
    font-size:25px;
    font-weight:700;
    line-height:1.45;
}

.mp-category-card h3 a{
    color:#111;
    text-decoration:none;
    transition:.2s;
}

.mp-category-card h3 a:hover{
    color:#c81e3a;
}

.mp-category-card__author{
    margin-bottom:14px;
    color:#8b8b8b;
    font-size:14px;
    font-weight:500;
}

.mp-category-card__stats{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:18px;
    margin-top:auto;
    padding-top:12px;
    border-top:1px solid #f2f2f2;
    font-size:13px;
    color:#666;
}

.mp-category-card__stats span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-weight:500;
}

.mp-category-grid__footer{
    margin-top:45px;
    text-align:center;
}

.mp-category-grid__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    min-width:240px;
    height:54px;
    padding:0 28px;
    border:2px solid #c81e3a;
    border-radius:999px;
    background:#fff;
    color:#c81e3a;
    font-size:17px;
    font-weight:700;
    text-decoration:none;
    transition:all .25s ease;
}

.mp-category-grid__button:hover{
    background:#c81e3a;
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(200,30,58,.25);
}

/* ==========================================================================
   RESPONSIVE
========================================================================== */

@media (max-width:1200px){

    .mp-category-grid__posts{
        grid-template-columns:repeat(3,1fr);
        gap:24px;
    }

    .mp-category-card h3{
        font-size:22px;
    }

}

@media (max-width:900px){

    .mp-category-grid{
        margin:50px 0;
    }

    .mp-category-grid__posts{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

    .mp-category-grid__title{
        font-size:24px;
        height:48px;
        min-width:145px;
    }

    .mp-category-card h3{
        font-size:20px;
    }

}

@media (max-width:640px){

    .mp-category-grid__posts{
        grid-template-columns:1fr;
        gap:18px;
    }

    .mp-category-grid__header{
        margin-bottom:20px;
    }

    .mp-category-grid__title{
        font-size:20px;
        min-width:120px;
        height:42px;
        padding:0 22px;
    }

    .mp-category-card__content{
        padding:16px;
    }

    .mp-category-card h3{
        font-size:18px;
    }

    .mp-category-grid__button{
        width:100%;
        min-width:0;
    }

}
