#news-list img, #news-list video {
    object-position: center;
    object-fit: cover;
    height: 215px;
    border-radius: 5px;
    width: 100%;
}

#hero-news {
    padding: 50px 0;
}

#hero-news p {
    width: 55%;
}

#hero-news h1 {
    font-size: 35px!important;
    font-weight: 700;
    color: #2e2e2e;
}

#news-list {
    padding: 50px 0;
}

#news-list .row {
    padding: 0 0 25px 0;
    margin: 0 0 25px 0;
    border-bottom: 1px solid #e5e5e5;
}

#news-list .row:last-child {
    border-bottom: none;
}

#news-list a h3:hover {
    color: var(--primary)!important;
}

#news-list a h3 {
    font-family: 'Poppins'!important;
    font-size: 20px !important;
    font-weight: 600;
    /* margin-bottom: 20px; */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

#news-list .row p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
    text-overflow: ellipsis;
}

#news-list .col-lg-4, #news-list .container {
    padding: 0 20px 0 0 !important;
}

.filter-sort {
    padding: 0 0 30px 0;
}

.sort-by {
    text-align: right;
    justify-content: flex-end;
    display: flex;
    position: relative;
}

.sort-by h5 {
    font-weight: 400;
}

.sort-by i {
    font-size: 15px;
    margin-left: 15px;
}

#news-list .sort-by img {
    object-fit: contain;
    height: 17px;
    max-width: 17px;
    width: 100%;
}

.filter-by {
    padding: 0 0 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.filter-by {
    margin: 0 0 20px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.subscribe-modal {
    display: none;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    right: 0;
    z-index: 99;
    position: absolute;
    place-self: anchor-center;
}

.subscribe-modal i {
    margin-left: 0;
}

.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    text-align: left;
    padding: 10px 20px 20px 20px;
    right: unset;
    width: 100%;
    align-content: center;
    border-radius: unset;
}

.share-options {
    display: flex;
    gap: 19px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
}

.modal-content {
    width: 100%;
    max-width: 350px;
    border: none;
    padding: 15px;
    justify-self: anchor-center;
    display: flex;
    justify-content: center;
}

.share-icon {
    color: #fff;
    border-radius: 50%!important;
    width: 35px!important;
    background-color: #0f5647!important;
    text-align: center;
    height: 35px!important;
    padding-top: 10px!important;
}

.close-btn {
    cursor: pointer;
    font-size: 25px;
    line-height: 0.5;
}

#subscribe-modal {
    top: 30px;
    place-self: unset;
}

.share-btn a {
    font-weight: 600 !important;
}

.share-btn {
    font-weight: 400;
    font-size: 14px;
    text-align: right;
}

.category-news {
    max-width: fit-content;
    color: #fff;
    font-size: 12px !important;
    padding: 2px 10px 2px 10px;
    border-radius: 5px;
    margin-bottom: 5px !important;
    background: #069244 !important;
}

.author-name strong {
    font-weight: 400;
}

.author-name {
    font-size: 14px !important;
    font-weight: 500 !important;
}

.featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px 5px 0 0; /* rounded top corners */
    width: 100%;
}

.featured-description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* full width */
    padding: 10px;

    /* black fade from bottom (solid) to transparent (top) */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);

    border-radius: 0 0 5px 5px; /* matches your image rounding */
}

.featured-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.featured-card a div {
    width: 100%;
    height: 125px;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    border-radius: 5px 5px 0 0;
}

.featured-description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    z-index: 2; /* keeps text above overlay */
}

.featured-description a:hover h3 {
    /* color: var(--primary)!important; */
    text-decoration: underline;
}

.featured-description a h3 {
    color: #fff;
    font-size: 18px !important;
    font-weight: 600;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

#trending {
    /* margin-top: 260px !important; */
    margin-top: 100px !important;
}

#trending .trending-title {
    width: 100%;
    margin-bottom: 1rem;
}

#trending .trending-title h4 {
    width: 100%;
    border-bottom: 1px solid #E5E5E5;
    color: black;
    font-weight: 600 !important;
    padding-bottom: 5px;
}

.featured-description-link h3 {
    font-weight: 500;
    font-size: 18px !important;
    line-height: 1.3!important;
    margin-bottom: 0;
}

.featured-description-link h3:hover {
    color: #069244 !important;
    text-decoration: underline!important;
    font-weight: 600!important;
}

.featured-description-link p {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
    margin-bottom: 5px;
    font-family: "degular", sans-serif !important;
    font-size: 14px !important;
}

.page-item.active .page-link {
    background-color: #069244 !important;
    border-color: #069244 !important;
    color: #fff !important;
}

@media screen and (max-width: 980px) {
    #hero-news {
        padding: 20px 0 0 0;
    }

    #hero-news h1 {
        font-size: 28px !important;
    }

    #news-list a h3 {
        font-size: 20px !important;
    }

    .filter-sort {
        padding: 0;
    }

    #news-list .col-lg-4,
    #news-list .col-lg-8,
    #news-list .container,
    #news-list  {
        padding: 0 !important;
    }

    #news-list img {
        margin-bottom: 15px;
    }

    #news-list .row {
        padding: 0;
    }

    #hero-news p {
        width: 100%;
    }

    .subscribe-modal {
        text-align: left;
        width: 100%;
        padding: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pagination-numbers {
        justify-self: left;
    }

    .share-btn {
        margin-bottom: 15px;
        text-align: left;
    }

    #trending {
        display: unset !important;
    }

    .cont div#advertisement-side div.ads {
        padding-bottom: 20px;
    }

    #trending .trending-title h4 {
        margin-bottom: 0 !important;
    }
}
