main {

    margin-left: 5.5rem;
    margin-right: 5.5rem;
}

.title{
    justify-self: center;
    margin-top: 25px;
    margin-bottom: 40px;
}

.filter{
    display: flex;
    list-style: none;
    gap: 20px;
    padding-left: 0;
    padding-bottom: 30px;
}

.filter a{
    text-decoration: none;
    border-radius: 10px;
    color: #bb1414;
    font-weight: bold;
    padding: 10px 10px;
    border: 1px solid #bb1414;
}

.filter a:hover{
    background-color: #bb1414;
    color: white;
}

.gambar img{
    border-radius: 10px;
    border: 1px solid #cfcfcf;
}

.content{
    display: grid;
    gap: 18px 25px;
    grid-template-columns: repeat(3, 1fr);
}

.gambar{
    height: 16vw ; 
    width: 28vw;
}

.berita-content{
    width: 28vw;
}

.berita-content p{
    padding: 20px 0px 10px 0px; 
    color: #505050; 
    font-size: clamp(0.75rem, 0.6vw, 1rem);
    text-decoration: none;
}

.berita-content h3{
    padding-bottom: 20px; 
    color: black;
}

.berita-content a{
    text-decoration: none;
}

.berita-content:hover{
    opacity: 80%;
}

.berita-content:active{
    opacity: 70%;
}

.filter div{
    display: flex;
    flex-wrap: wrap;
    gap: 30px 20px;
}

.page-number{
    justify-content: center;
    display: flex;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.page-number a{
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    color: #BB1414;
    font-weight: bold;
}

.page-number a:hover{
    background-color: rgba(200, 200, 200, 0.366);
}


@media (max-width :900px){
    .content{
        grid-template-columns: repeat(2, 1fr);
    }
}