/* =========================================================
   GLOBAL
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

.content-wrapper {
    max-width: 1240px;
    margin: auto;
    padding: 0 16px;
}

.majalah-grid{
    margin-top: 50px;
}

.majalah-latest-section{
    margin-top: 20px;
    margin-bottom: 60px;
}

/* =========================================================
   FILTER CAPSULE
========================================================= */

.majalah-year-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background-color: #e8e8e8;
    border-radius: 50px;
    padding: 5px;

}

.year-btn {
    border: none;
    padding: 8px 18px;
    border-radius: 50px;

    background: #f3f3f300;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    transition: 0.2s;
}


/* active */

.year-btn.active {
    background: #0d6efd;
    color: #fff;
}


/* hover */

.year-btn:hover {
    background: #ff8a00;
    color: #fff;
}

.all-btn{
    background: #ffffff;
}

.all-btn:hover{
    background: #ff8a00;
    color:#fff;
}

/* ========================================
DROPDOWN MODERN STYLE
======================================== */

.year-dropdown{

border:none;
padding:8px 18px;

border-radius:50px;

background:rgb(252, 252, 252);

font-size:14px;
font-weight:500;

cursor:pointer;

transition:.2s;

}

/* hover tombol */

.year-dropdown:hover{

background:#ff8a00;
color:white;

}


/* dropdown box */

.dropdown-menu{

border-radius:14px;
border:1px solid #dcdcdc;

box-shadow:0 6px 18px rgba(0,0,0,.08);

padding:6px;

max-height:220px;
overflow-y:auto;

width:100px;

}


/* item */

.dropdown-item{

border-radius:8px;

font-size:14px;
padding:8px 12px;

}


/* hover item */

.dropdown-item:hover{

background: #ff8a00;

}


/* active item */

.dropdown-item.active{

    background: #0d6efd;
    color: #fff;

}


/* scrollbar */

.dropdown-menu::-webkit-scrollbar{

width:6px;

}

.dropdown-menu::-webkit-scrollbar-thumb{

background:#cfcfcf;
border-radius:10px;

}


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

.majalah-latest-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.majalah-latest-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;

    overflow: hidden;
    border-radius: 8px;

    background: #eee;
}

.majalah-latest-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: 0.25s;
}

.majalah-latest-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}



/* =========================================================
   ICON
========================================================= */

.majalah-latest-icon {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 28px;
    height: 28px;

    background: #fff;
    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    color: #0d6efd;

    opacity: 0;
    transition: 0.2s;
}

.majalah-latest-card:hover .majalah-latest-icon {
    opacity: 1;
}



/* =========================================================
   INFO
========================================================= */

.majalah-latest-info {
    margin-top: 8px;
}

.majalah-latest-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.majalah-latest-date {
    font-size: 11px;
    color: #999;
}



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

.majalah-item {
    transition:
        transform 0.25s ease-in-out,
        opacity 0.18s ease-in-out;
}


/* item keluar */

.majalah-item.hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}



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

@media (max-width: 768px) {

    .year-btn {
        font-size: 13px;
        padding: 6px 14px;
    }

}
