@media screen and (max-width:975px) {
    .grid-post{
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        flex-wrap: wrap;
        margin: 0px auto;
        gap: 20px 8px;
    }
   
    
}
@media screen and (max-width:540px){
    .grid-post{
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        align-items: stretch;
        flex-wrap: wrap;
        margin: 0px auto;
        gap: 20px 8px;
    }
    .card::before{
        top: 400px;
        right: 702px;
    }
    .card:hover::before{
        width: 840px;
        height: 730px;
    }
    .card {
        flex-direction: row;
        flex-direction: row-reverse;
    
    }
    .card .content{
        justify-content: space-between;
        margin: 0px auto;
        padding-top: 20px;
        height: 90%;
    }
    .card .img {
        height: 100%;
    
    }
    .img img {
        width: 350px;
        height: 100%;
        /* height: 170px; */
        object-fit: cover;
    }
    .head{
        position: relative;
    }
    .head .menu-home-container{
        display: flex;
        
    }
    .head .menu-home-container .menu{
        position: absolute;
        right: 0px;
        left: 0px;
        height: 0;
        top: 60px;
        gap: 1px;
        margin: 0 auto;
        flex-wrap: nowrap;
        flex-direction: column;
        background-color: rgb(61, 61, 61);
        box-shadow: 0px 0px 0.25px #212121;
        transition: all .3s ease-in-out;
        z-index: 999;
        overflow: hidden;

        
    }

    .menu .menu-item .sub-menu {
        width: 100%;
        display: none;
        position:static;
        top: 45px;
        left: -25px;
        padding: 24px;
        opacity: 0;
        transform: translateY(5px);
        border-radius: 4px;
        z-index: 999;
        background: #4c4c4c;
        box-shadow: 0 4px 10px rgba(39, 57, 101, .1);
        border-radius: 10px; 
        overflow: hidden;
        transition: all .3s;

    }
    .menu-item-has-children > a:hover{
        background-color: #4c4c4c;
    }

    .head .menu-home-container .link{
            transition: all .4s ease-in-out;
            display: flex;
            height: 100vh;
            z-index: 100;
            
       

    }
    .head .menu-home-container .menu a{
        display: inline-block;
        padding: 4px 0px;
        margin: 5px 0;
        font-weight: 700;
        color: white;
        width: 100%;
        z-index: 1;
        transition: all .3s;
    }
    .head .menu-home-container .menu > li > a {
        position: relative;
        font-weight: 700;
        font-size: 1.1rem;
        color: white;
        transition: all .3s;
    }
    .head .menu-home-container .menu a::before{
        top: 0px;
        left: 0;
        right: 0;
        width: 0%;
        border-radius: 0px;
        height: 0px; 
        background-color: transparent;
        border-bottom: 0px solid red;
        border-top: 0px solid red;
       
    }
    .head .menu-home-container .menu a:hover{
        color: rgb(255, 255, 255);
        background-color: #ffffff21;
        border-radius: 50px;
    }
    .hamburger-menu{
        display: flex;
        cursor: pointer;
        
    }
    .hamburger-menu:hover{
        background-color: #2121211e;
    }
    .herosection{
        height: auto;
        justify-content: space-between;
        gap: 25px;

    }
    .herosection .content{
        width: 100%;
    }
    .card {
        max-width: 650px;
    
    }
    .card .content .info {
        justify-content: space-between;
    }
    .date{
        transform: translateX(-32px) translateY(12px) rotate(90deg);;
    }
    .content-article {
        line-height: 2;
        font-family: "cairo", sans-serif;
        font-size: 0.8rem;
    }
    .info-article {
        display: flex;
        gap: 13px;
        font-size: 10px;
        padding: 0px;
        color: grey;
    }
    .depth-1 {
        display: block;
        padding: 14px 4px;
        margin: 10px 0px;
        border-radius: 12px
       
    }
    ul.children {
        margin: 10px 0px;
        width: 100%;
    }
    a.page-numbers {
        background-color: gainsboro;
        color: midnightblue;
        width: 30px;
        /* height: 33px; */
        padding: 0;
        margin: 5px 0;
        border-radius: 6px;
        text-align: center;
        transition: all 0.3s;
    }
    a.prev.page-numbers {
        width: auto;
        padding: 0px 4px;
        font-size: 12px;
        height: 25px;        
        border-radius: 6px;
    }
    a.next.page-numbers {
        width: auto;
        height: 25px;
        font-size: 12px;
        padding: 0px 4px;
        border-radius: 6px;
    }
}