html{
    scroll-behavior: smooth;
}
.articles{
    width: min(1400px, 100%);
    margin-inline: auto;
    transition: 300ms ease;
}

.article{
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 40px;
    background-color: #F5F7F9;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.article.without-image{
	grid-template-columns: 1fr;
}

.article:last-child{
    margin-bottom: 0;
}

.article > img{
    width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

.article a{
    display: inline-block;
    text-decoration: none;
}

.article-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 25px;
}
.no-mb{
    margin-bottom: 0;
}

.article h3{    
    font-size: 32px;
    font-weight: 700;
    font-family: "TikTok Sans", sans-serif;
    margin-block: 0 25px;
}

.article p{
    font-size: 18px;
    margin-block: 0 25px;
    font-size: Inter, sans-serif;
    line-height: 25px;
}

.article .read-more, .article-tag{
    background-color: #DC2626;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 500;
    border-radius: 100vw;
    transition: 300ms ease;
    color: white;
    text-decoration: none;
}
.article .read-more{
    background-color: #DC2626;
    padding: 14px 21px;
    font-size: 16px;
}
.article-tag{
    padding: 10px 16px;
}

:is(.article .read-more, .article-tag):hover{
	color: white;
    filter: brightness(110%);
}

.pagination{
    display: flex;
    width: fit-content;
    margin-inline: auto;
    gap: 5px;
}

.pagination button{
    display: grid;
    place-content: center;
    width: 48px;
    height: 48px;
    font-size: 18px;
    cursor: pointer;
    background-color: #F5F7F9;
    border: none;
    border-radius: 100vw;
    transition: 300ms ease;
	color: black;
}
@media (hover: hover){
	.pagination button:is(:disabled, .active):hover{
		border: none;
		background-color: #F5F7F9;
		color: black;
	}
    .pagination button:not(:disabled, .active):hover{
		border: none;
        background-color: #113ED7;
        color: white;
    }
}
.pagination button.active{
    box-shadow: 0 0 0 2px #113ED7;
    color: #113ED7;
}
.pagination button:active{
    filter: brightness(120%);
    scale: 0.8;
}

.tags{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}
.tags a{
    display: block;
    flex-shrink: 0;
    text-decoration: none;
    background-color: #F5F7F9;
    border-radius: 100vw;
    font-size: 18px;
    padding: 10px 16px;    
    font-weight: 500;
    transition: 300ms ease;
	color: black;
}
.tags a.active{
    border: 2px solid #113ED7;
    color: #113ED7;
}
@media (hover: hover){
    .tags a:hover{
        background-color: #113ED7;
        color: white;
    }
}

.not-found-articles{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F5F7F9;
    border-radius: 20px;
    padding: 60px 30px;
    margin-bottom: 30px;
}
.not-found-articles svg{
    width: 200px;
    height: 200px;
    fill: #113ED7;
}
.not-found-articles h2{
    font-size: 54px;
    font-weight: 700;
    text-align: center;
    margin-block: 20px 0;
    line-height: 1em;
    letter-spacing: -1px;
}

@media (width <= 1200px){
    .article{
        grid-template-columns: 1fr;
    }
    .article img{
        width: 100%;
        height: 300px;
    }
}

@media (width <= 786px){    
    .article{
        padding: 15px;
        gap: 20px;
        margin-bottom: 20px;
    }
    .article:last-child{
        margin-bottom: 0;
    }
    .article > img{
        border-radius: 12.5px;
    }
    .article .tags{
        margin-bottom: 15px;
    }
    .article :is(h3, p){
        margin-block: 0 15px;
    }
    .article h3{
        font-size: 28px;
    }
    .article p{
        font-size: 14px;
        line-height: 1.2;
    }
    .article .read-more{
        font-size: 14px;
    }
    .tags{
        overflow: auto;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
		padding-bottom: 10px;
    }
    .tags a{
        scroll-snap-align: start;
    }
    .not-found-articles svg{
        width: 150px;
        height: 150px;
    }
    .not-found-articles h2{
        font-size: 36px;
    }
}
