.featured_post-section{
    padding-top: 4.1rem;
    display: grid;
    gap: 0.25rem;
}

.featured_post-section-sub-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
}

.featured_post-section > div{
    height: 235px;
    overflow: hidden;
}

.featured_post-section-sub-grid > div{
    height: 158px;
    width: 100%;
    overflow: hidden;
}

.featured_post-section img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1)
}

.featured_post-section a{
    position: relative;
    display: block;
    height: 100%;
    width: 100%;
    background-color: var(--black);
    color: white;
    text-decoration: none;
}

.featured_post-section a >img{
    height: 100%;
}

.featured_post-section a:hover > img{
    transform: scale(1.1);
}

.featured_post-section a > section{
    position: absolute;
    background-color: rgba(0,0,0,0.44);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.featured_post-section a > section > div{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding:0 1rem;
}

.featured_post-section .tag{
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    max-width: 117px;
    text-align: center;
}

.featured_post-section p{
    font-size: 1.1rem;
    line-height: 27px;
    margin-top: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-width: 22rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

/*filter section*/
.search-sticky{
    background-color: var(--white);
    z-index: 10;
    padding-top: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--grey);
}

.filter_form{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap:5px;
}

.filter_form-select{
    display: flex;
    flex-direction: column;
    gap:5px;
    width: 100%;
}

.filter_form-select > section{
    width: 100%;
}

.filter_form-select  select{
    width: inherit;
    font-size: 0.875rem !important;
}

.filter_form-select label{
    font-size: 0.875rem;
    color: var(--text);
}

.reset_form-btn{
    display: flex;
    align-items: center;
    gap: 10px;
    color: blue;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    background-color: transparent;
    margin-top: 10px;
    flex: 1;
    white-space: nowrap;
}

.form_search-section{
    display: flex;
    gap: 5px;
    flex:1;
}

.form_search-section button{
    background-color: var(--primary);
    color: var(--white);
    border:none;
    padding: 10px 15px;
    cursor: pointer;
}

.form_search-section > div{
    display: flex;
    align-items: center;
    border: 1px solid #C5C5C5;
    flex: 1;
    transition: border 0.3s linear;
    gap: 5px;
    padding-left: 10px;
    padding-right: 5px;
}

.form_search-section > div label{
    display: flex;
    align-items: center;
    justify-content: center;
}

.form_search-section > div:focus-within{
    border: 1px solid var(--primary);
}

.form_search-section > div input{
    height: 100%;
    border:none;
    flex: 1;
    outline: none;
    font-size: 0.875rem;
}

.select2-container--default .select2-selection--single{
    border: 1px solid #C5C5C5 !important;
    border-radius:0 !important;
}


/*blog section*/
.blog_section-container{
    margin-top: 2rem;
}

.blog_section-container h1{
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.blog_section-container > main{
    flex: 1;
}

/*posts section*/
.posts_section{
    display: grid;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.post_card{
    text-decoration: none;
    display: block;
    padding-bottom: 20px;
}

.post_card span, .post_card{
    color: var(--text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.post_card > div:last-child{
    display: flex;
    flex-direction: column;
}

.post_card p:first-child{
    color: var(--black);
    margin-bottom: 10px;
    line-height: 26px;
    font-weight: 600;
}

.post_card p:last-child{
    font-size: 0.875rem;
    margin-top: 20px;
}

.post_card span{
    font-size: 0.75rem;
    line-height: 21px;
}

.post_card > div:first-child{
    height: 120px;
    margin-bottom: 10px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.load_more-btn{
    background-color: var(--primary);
    border: none;
    color: var(--white);
    padding: 10px;
    width: 15rem;
    display: block;
    margin: 2.5rem auto;
    cursor: pointer;
}

/*sidebar section*/
.sidebar_section{
    margin-top: 40px;
    margin-bottom: 40px;
    position: sticky;
    top: 10rem;
}

.sidebar_section-title{
    border-bottom: 2px solid var(--black);
    margin-bottom: 1.25rem;
}

.sidebar_section-title h2{
    background-color: var(--black);
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    max-width: fit-content;
}

.trending_insight-section{
    display: grid;
    gap: 10px;
}


.trending_insight-card{
    text-decoration: none;
    color: var(--text);
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #D0D0D0;
    padding-bottom: 10px;
}

.trending_insight-card div:first-child{
    height: 60px;
    width: 60px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    flex-shrink: 0;
}

.trending_insight-card p{
    color: var(--black);
}

.trending_insight-card span{
    color: var(--text);
    font-size: 0.75rem;
    line-height: 20px;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    transition: 0.3s color linear;
}

.trending_insight-section span:hover{
    color: var(--primary);
}

/*trending topics*/

.trending_topic-section{
    margin-top: 29px;
}

.trending_topics a{
    text-decoration: none;
    font-size: 0.875rem;
    color: var(--text);
    display: block;
    transition: 0.3s all linear;
}

.trending_topics a:hover{
    color: var(--primary);
}

.trending_topics li{
    border-bottom: 1px solid #D0D0D0;
    padding: 10px 0;
    list-style-type: none;
}

/*spinner*/
.spinner{
    height: 1.2rem;
    width: 1.2rem;
    border: 2.5px solid var(--grey);
    border-top-color: var(--white);
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

/* Keyframes for rotation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.no-content{
    text-align: center;
    margin-top: 2rem;
}

@media (min-width: 600px){
    .filter_form-select{
        flex-direction: row;
        gap:10px;
    }
    .search-sticky{
        position: sticky;
        top: 4.1rem;
    }
    .posts_section{
        grid-template-columns: repeat(auto-fill,minmax(222px,1fr));
    }
}

@media (min-width: 768px){
    .filter_form{
        flex-direction: row;
        align-items: end;
        justify-content: space-between;
        gap: 20px;
    }

    .form_search-section{
        max-width: 409px;
    }

    .filter_form-select  > section,
    .filter_form-select  select{
        max-width: 222px;
    }

}

@media (min-width: 1024px) {
    .featured_post-section > div > a > section > div:first-child{
        max-width: 600px;
        margin-left: auto;
    }
    .featured_post-section{
        grid-template-columns: repeat(2,1fr);
    }
    .featured_post-section-sub-grid{
        grid-template-columns: repeat(1,1fr);
    }
    .featured_post-section > div{
        height: 400px;
    }
    .featured_post-section-sub-grid > div{
        height: 198px;
    }
    .featured_post-section a > section > div{
        padding: 0 2rem;
    }
    .featured_post-section p{
        font-size: 1.1rem;
        line-height: 1.75rem;
    }

    .blog_section-container{
        display: flex;
        align-items: start;
        gap: 40px;
    }

    .sidebar_section{
        max-width: 300px;
        margin-top: 0;
    }
}

@media (min-width: 1250px) {
    .featured_post-section > div > a > section > div:first-child{
        padding-left: 0;
    }
}

@media (min-width: 1700px) {
    .featured_post-section{
        max-width: 1280px;
        margin:0 auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .featured_post-section > div > a > section > div:first-child{
        padding-left: 2rem;
    }
}
