@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
    --header-height: 300px;
}

#news-post-list{
    margin-top: 3%;
}

.font-wrapper {
    font-family: 'Poppins', sans-serif;
}

.news-header-container {
    width: 100%;
    background-image: url('https://lh3.googleusercontent.com/OFV9-eUmGCd3-78RD2Ktzud2c4hnoxm7-hgNaJT5FRBgV8rVnFAHTTjuOVw_ZVJi8S7Q_CAZbsQ6OS1IWtBieW2wmwMtT7JomsEiTHLS=w1500');
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
    height: var(--header-height, 300px);
}

.news-header-container .header {
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: var(--header-height, 300px);
}

.centered-block {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.header .page-heading {
    font-style: normal;
    font-weight: 700;
    font-size: 50px;
    line-height: 75px;
    color: #FFFFFF;
}

.header .page-subheading {
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 34px;
    color: #FFFFFF;
}

.header .page-subheading a{
    color: #fff;
}

.centered-block .trending {
    margin: 3% auto 0% auto;
    display: grid;
    grid-template-columns: 54% 46%;
}

.trending-posts {
    margin-left: 40px;
}

.trending-posts .trend-divide {
    border: 0.5px solid #d9d9d9;
    margin: 24px 0px;
}

.post {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.post .post-details {
    width: 100%;
    padding: 16px;
}

.post-details .publication-info {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #000000;
    opacity: 0.7;
}

.post-image-block{
    width: 100%;    
}

.post-details .post-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: #333333;
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-details .post-desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #838383;
    margin-top: 10px;
}

.post .post-image {
    width: 100%;
    display: block;
    border-radius: 8px;
    /* height: 200px; */
    object-fit: cover;
}

.post-image:hover{
    transform: scale(1.05);
    transition: 0.3s all;
}
.post-image-list{
    height: 200px;
}

.post.highlight .post-details {
    margin-top: 40px;
    border-left: 6px solid #EB0F69;
    padding-top: 0px;
    padding-bottom: 0px;
}

.post.highlight .post-details .post-title {
    font-weight: 500;
    font-size: 34px;
    line-height: 51px;
    color: #333333;
    opacity: 0.7;
    display: block;
}

.post.trend .post-details .post-desc,
.post.highlight .post-details .post-desc {
    display: none;
}

.post.trend {
    flex-direction: row;
    align-items: start;
}

.post.trend .post-image {
    width: 200px;
    margin-right: 20px;
    height: 100px;
    margin-bottom: 2%;
}

.post.trend .post-details {
    padding: 0px;
}

.post.trend .post-details .post-title {
    margin-top: 6px;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #333333;
    opacity: 0.7;
    -webkit-line-clamp: 3;
}

.post-list-heading {
    font-style: normal;
    font-weight: 600;
    font-size: 36px;
    line-height: 54px;
    text-align: center;
    color: #000000;
}

.post-list-filter {
    display: flex;
    justify-content: space-between;
    padding: 2% 1% 0 1%;
}

.post-list-filter .filter-dropdown{
    width: 20%;
}

.filter-dropdown .select{
    width: 90%;
    height: 100%;
    display: block;
    font-weight: 500;
    font-size: 16px;
    /* line-height: 24px; */
    color: #333333;
    /* background: rgba(239, 240, 242, 0.4); */
    border-radius: 8px;
    padding: 4%;
    border: 1px solid rgba(193, 193, 193, 1);
}

.filter-search{
    width: 25%;
    display: flex;
    border: 1px solid rgba(193, 193, 193, 1);
    border-radius: 8px;
    padding: 0.7% 1%;
}

.filter-search .input{
    width: 100%;
    display: block;
    font-weight: 500;
    font-size: 16px;
    /* line-height: 24px; */
    color: #333333;
    /* background: rgba(239, 240, 242, 0.4); */
    /* border-radius: 8px; */
    /* padding: 3%; */
    border: none;
}

.post-list-divide {
    margin: 3% 0 4% 0px;
    border: 0.5px solid #d9d9d9;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}
.post-list img:hover{
    transform: scale(1.05);
    transition: 0.3s all;
}
.article-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-actions .main-cta{
    background: transparent;
    border-radius: 8px;
    padding: 0;
    text-align: center;
    width: 15%;
    border: 1px solid #6561e8;
    /* box-shadow: 0 3px 0 0 #6561e8; */
    margin-top: 4px;
}

.main-cta .cta {
    background: white;
    color: #6561E8;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 0px solid #6561E8;
    margin: 0;
}
.main-cta .cta:hover{
    text-decoration: underline;
    background-color: rgba(101, 97, 232, 0.4);
}

.circular-loader{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.post-empty{
    text-align: center;
    margin-top: 6px;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #333333;
    opacity: 0.7;
}

@media (max-width: 800px) {
    .centered-block .trending {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .trending-posts {
        margin-top: 40px;
        margin-left: 0px;
    }

    .post.highlight .post-details .post-title {
        font-size: 24px;
        line-height: 30px;
    }
    
    .post-list-heading{
        font-size: 30px;
    }

    .post-list-filter{
        padding: 3% 0%;
    }

    .post-list-filter .filter-dropdown{
        width: 40%;
    }

    .filter-dropdown .select{
        padding: 5%;
        font-size: 12px;
    }

    .filter-search{
        width: 50%;
        padding: 0.7% 3%;
    }
    
    .filter-search .input{
        padding: 2% 5%;
        font-size: 14px
    }

    .article-actions .main-cta{
        width: 50%;
    }

    .header .page-heading {
        line-height: 50px;
    }
    
    .header .page-subheading {
        line-height: 24px;
        margin-top: 5%;
    }

    .news-header-container .header {
        padding: 0px;
    }

    .post-details .publication-info {
        line-height: 30px;
    }

    .post.trend {
        flex-direction: column;
    }
    
    .post.trend .post-image {
        width: 100%;
        height: 200px;
        margin-right: 0px;
    }

    .post-details .post-title {
        -webkit-line-clamp: 0;
    }

    .post .post-details{
        padding: 0 10px;
    }
}