/* =========================================
PAGE
========================================= */

.majalah-page{
    padding:60px 0 80px;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #f2f6fb 100%
        );
}

/* =========================================
GRID
========================================= */

.majalah-grid{
    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:24px;
}

/* =========================================
CARD
========================================= */

.majalah-card{
    background:white;

    border-radius:28px;

    overflow:hidden;

    border:1px solid #e7edf5;

    transition:.35s;

    box-shadow:
        0 12px 35px rgba(15,23,42,.05);

    display:flex;

    flex-direction:column;

    height:100%;
}

.majalah-card:hover{
    transform:translateY(-6px);

    box-shadow:
        0 25px 45px rgba(15,23,42,.10);
}

/* =========================================
IMAGE
========================================= */

.majalah-cover{
    position:relative;

    overflow:hidden;
}

.majalah-cover img{
    width:100%;

    height:240px;

    object-fit:cover;

    transition:.5s;
}

.majalah-card:hover .majalah-cover img{
    transform:scale(1.05);
}

/* =========================================
CONTENT
========================================= */

.majalah-content{
    padding:28px 28px 20px;

    flex:1;
}

.majalah-date{
    display:inline-flex;

    align-items:center;

    gap:8px;

    background:#eff6ff;

    color:#1d4ed8;

    padding:8px 14px;

    border-radius:100px;

    font-size:13px;

    font-weight:600;

    margin-bottom:18px;
}

.majalah-content h4{
    font-size:18px;

    font-weight:800;

    line-height:1.7;

    color:#16315c;

    margin-bottom:14px;
}

.majalah-content p{
    color:#64748b;

    line-height:1.8;

    font-size:14px;

    margin:0;
}

/* =========================================
FOOTER
========================================= */

.majalah-footer{
    padding:22px 28px;

    border-top:1px solid #edf2f7;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;
}

.majalah-views{
    display:flex;

    align-items:center;

    gap:8px;

    color:#64748b;

    font-size:14px;
}

.majalah-read{
    height:46px;

    padding:0 22px;

    border-radius:14px;

    background:#002f6c;

    color:white;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    font-size:14px;

    font-weight:700;

    transition:.3s;
}

.majalah-read:hover{
    background:#0c4da2;

    color:white;
}

/* =========================================
SIDEBAR
========================================= */

.popular-wrapper{
    background:white;

    border-radius:28px;

    padding:30px;

    border:1px solid #e7edf5;

    box-shadow:
        0 12px 35px rgba(15,23,42,.05);

    height:fit-content;
}

.popular-line{
    width:60px;
    height:5px;

    background:#ffc107;

    border-radius:100px;

    margin-bottom:18px;
}

.popular-wrapper h4{
    font-size:26px;

    font-weight:800;

    color:#16315c;

    margin-bottom:28px;
}

.popular-item{
    display:flex;

    gap:16px;

    padding-bottom:20px;

    margin-bottom:20px;

    border-bottom:1px solid #edf2f7;
}

.popular-item:last-child{
    margin-bottom:0;
    padding-bottom:0;
    border-bottom:none;
}

.popular-number{
    width:34px;
    height:34px;

    border-radius:50%;

    background:#002f6c;

    color:white;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:14px;

    font-weight:700;

    flex-shrink:0;
}

.popular-image img{
    width:85px;
    height:110px;

    object-fit:cover;

    border-radius:14px;
}

.popular-content h5{
    font-size:15px;

    line-height:1.7;

    font-weight:700;

    color:#16315c;

    margin-bottom:10px;
}

.popular-views{
    font-size:13px;

    color:#64748b;

    display:flex;

    align-items:center;

    gap:6px;
}

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

@media(max-width:1400px){

    .majalah-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:992px){

    .majalah-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    .majalah-page{
        padding:40px 0 60px;
    }

    .majalah-header h1{
        font-size:38px;
    }

    .majalah-header p{
        font-size:15px;
    }

    .majalah-toolbar{
        flex-direction:column;
    }

    .majalah-search,
    .majalah-btn,
    .majalah-reset{
        width:100%;
    }

}