#blogs {
    padding-top: 60px;
    background-color: rgb(var(--background));
}

#blogs > section {
    background-color: rgb(var(--background));
}

#blogs .blogs-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    position: relative;
}

#blogs .blogs-wrapper .main {
    grid-column: span 3 / span 4;
}

#blogs .blogs-wrapper .main .blogs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#blogs .blogs-wrapper .main .blogs .item {
    border-radius: 16px;
    height: 320px;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    transition: all 0.3s;
    cursor: pointer;
}

#blogs .blogs-wrapper .main .blogs .item .content {
    grid-column: span 2 / span 3;
}

#blogs .blogs-wrapper .main .blogs .item:hover {
    box-shadow: 0px 0px 30px 5px rgba(var(--primary), 0.1);
}

#blogs .blogs-wrapper .main .blogs .item .img-wrapper {
    height: 100%;
    grid-column: span 1 / span 3;
}

#blogs .blogs-wrapper .main .blogs .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

#blogs .blogs-wrapper .main .blogs .item .title {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 10px;
    transition: 0.3s;
    color: rgb(var(--text_color));
}

#blogs .blogs-wrapper .main .blogs .item:hover .title {
    color: rgb(var(--primary));
}

#blogs .blogs-wrapper .main .blogs .item .content .description {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    line-height: 2;
    margin-bottom: 20px;
    color: rgb(var(--text_color));
}

#blogs .blogs-wrapper .main .blogs .item .content .footer {
    color: rgb(var(--foreground_text_color_alt));
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
}

#blogs .main #pagination {
    display: flex;
    justify-content: center;
    padding-top: 3rem;
}
#blogs .main .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}


#blogs .main .pagination .page-item a,
#blogs .main .pagination .page-item.active,
#blogs .main .pagination .page-item.disabled {
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background-color: rgb(var(--foreground));
    color: rgb(var(--text_color));
    border-radius: 0.375rem;
    transition: 0.3s all;
    cursor: pointer;
}

#blogs .main .pagination .page-item.disabled{
    cursor: default;
}

#blogs .main .pagination .page-item a:hover {
    background-color: rgba(var(--primary), 0.7);
    color: rgb(var(--secondary));
}

#blogs .main .pagination .page-item.active {
    background-color: rgb(var(--primary));
    color: rgb(var(--secondary));
}

#blogs .blogs-wrapper aside {
    grid-column: span 1 / span 4;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 0;
    height: max-content;
}

#blogs .blogs-wrapper aside > div {
    background-color: rgb(var(--foreground));
    padding: 2rem;
}

#blogs .blogs-wrapper aside > div h3:first-child {
    padding: 1rem;
}

#blogs .blogs-wrapper aside > div > h3 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#blogs .blogs-wrapper aside > div > h3::before {
    position: absolute;
    content: "";
    width: 50px;
    height: 3px;
    border-radius: 30px;
    background-color: rgb(var(--primary));
    bottom: -5px;
}

#blogs .blogs-wrapper aside .search-blog form {
    display: flex;
}

#blogs .blogs-wrapper aside .search-blog input {
    width: 100%;
    padding: 1rem;
    border: 0;
    outline: 0;
    font-size: 0.9rem;
    flex-grow: 1;
}

#blogs .blogs-wrapper aside .search-blog .search-btn {
    background-color: rgb(var(--primary));
    color: rgb(var(--secondary));
    border: 0;
    padding: 0 1.2rem;
    cursor: pointer;
}

#blogs .blogs-wrapper aside > div ul li {
    padding: 20px;
    border-bottom: 1px solid rgba(var(--border_color), 0.2);
}

#blogs .blogs-wrapper aside > div ul li a {
    display: flex;
    gap: 20px;
    align-items: center;
    color: rgb(var(--text_color));
    transition: all 0.3s;
}

#blogs .blogs-wrapper aside > div ul li i {
    font-size: 0.8rem;
}

#blogs .blogs-wrapper aside > div ul li a:hover {
    color: rgb(var(--primary));
}

#blogs .blogs-wrapper aside .trending_blogs .blogs {
    margin-top: 2rem;
}

#blogs .blogs-wrapper aside .trending_blogs .blogs .img-wrapper {
    height: 100%;
    width: 40%;
}

#blogs .blogs-wrapper aside .trending_blogs .blogs .item {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

#blogs .blogs-wrapper aside .trending_blogs .blogs .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

#blogs .blogs-wrapper aside .trending_blogs .blogs .item .title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
    transition: 0.3s;
    color: rgb(var(--text_color));
    width: 60%;
}

#blogs .blogs-wrapper aside .trending_blogs .blogs .item:hover .title {
    color: rgb(var(--primary));
}

@media only screen and (max-width: 1536px) {
    #blogs section {
        padding: 60px 4%;
    }
}

@media only screen and (max-width: 1280px) {
    #blogs .hero .wrapper {
        height: 300px;
    }
}

@media only screen and (max-width: 1024px) {
    #blogs .hero .wrapper {
        height: 260px;
    }
    #blogs .blogs-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #blogs .blogs-wrapper .main {
        grid-column: span 2 / span 3;
    }
    #blogs .blogs-wrapper aside {
        grid-column: span 1 / span 3;
    }
    #blogs .blogs-wrapper .main .blogs .item {
        display: flex;
        flex-direction: column;
        height: auto;
    }
}

@media only screen and (max-width: 768px) {
    #blogs .hero .wrapper {
        height: 240px;
    }
    #blogs .blogs-wrapper {
        display: flex;
        flex-direction: column;
    }
    #blogs .blogs-wrapper aside {
        gap: 30px;
    }
    #blogs .blogs-wrapper aside .search-blog {
        display: none;
    }
}

@media only screen and (max-width: 576px) {
    #blogs .hero .wrapper {
        height: 160px;
    }
}
