/* --- Common Styles & Container 1320px --- */

.news-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
}

.latest_news_sec .our_commitment_ttl_box_inenr,
.trending_new_sec .our_commitment_ttl_box_inenr {
    padding-bottom: 20px !important;
}

.news-img-box {
    position: relative;
    overflow: hidden;
}

.news-img-box img {
    width: 100%;
    height: 404px;
    display: block;
    object-fit: cover;
}

.news-date-badge {
    position: absolute;
    top: 0;
    left: 18px;
    background: #699DCC;
    color: #fff;
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.trending-news-post .news-img-box img {
    height: 280px;
}

.news-date-badge .day {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.news-date-badge .month {
    display: block;
    text-transform: capitalize;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.news-content-box .news-title,
.small-content-box .news-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 7px 0;
    color: #000;
    line-height: 1.2;
    text-transform: capitalize;
}

.news-readmore {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-decoration: underline;
    line-height: 32px;
}


/* --- Layout 1: Our Latest News (Desktop Default) --- */

.latest-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.small-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.small-news-post {
    display: flex;
    gap: 35px;
    align-items: center;
}

.small-img-box {
    flex: 0 0 202px;
}

.small-img-box img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
}

.small-content-box {
    flex: 1;
}

.small-content-box .news-title {
    margin-top: 0;
}


/* --- Layout 2: Trending News (Desktop Default - 3 Columns) --- */

.trending-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
}

.news-content-box {
    margin-top: 20px;
}

.news-content-box .news-excerpt,
.small-content-box .news-excerpt {
    font-size: 16px;
    color: #848484;
    margin: 0 0 10px 0;
    font-weight: 400;
    line-height: 32px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 7px;
}

.pd90.trending_new_sec {
    padding-top: 0 !important;
}


/* ==========================================================================
   Responsive Media Queries (As requested)
   ========================================================================== */


/* 1. Mobile Extra Small Screen */

@media all and (min-width: 320px) and (max-width: 767px) {
    .latest-news-grid,
    .trending-news-grid {
        grid-template-columns: 1fr;
    }
    .small-news-post {
        flex-direction: column;
        gap: 10px;
    }
    .small-img-box {
        flex: unset;
        width: 100%;
    }
    .news-section-title {
        font-size: 26px;
    }
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
    .trending-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-content-box .news-title,
    .small-content-box .news-title {
        font-size: 15px;
    }
    .news-content-box .news-excerpt,
    .small-content-box .news-excerpt {
        font-size: 14px;
        line-height: 24px;
        margin: 0 0 7px 0;
    }
    .news-readmore {
        font-size: 14px;
        line-height: 24px;
    }
    .small-img-box img {
        height: 220px;
        width: 100% !important;
    }
    .news-img-box img {
        height: 220px;
    }
    .small-news-post {
        gap: 10px;
        flex-wrap: wrap;
    }
    .news-date-badge .day {
        font-size: 20px;
    }
    .news-date-badge .month {
        font-size: 14px;
    }
    .news-date-badge {
        left: 15px;
        padding: 6px 10px;
        font-size: 14px;
    }
    .latest-news-grid {
        gap: 15px;
    }
    .trending-news-grid {
        gap: 20px 15px;
    }
    .news-content-box {
        margin-top: 15px;
    }
    .small-img-box {
        flex: unset;
    }
    .trending-news-post .news-img-box img {
        height: 230px;
    }
    .small-news-list {
        display: grid;
        gap: 15px;
        grid-template-columns: repeat(1, 1fr);
    }
}


/* 2. Mobile Landscape/Small Tablets */

@media all and (min-width: 481px) and (max-width: 767px) {
    .trending-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .small-news-post {
        flex-direction: column;
    }
    .news-img-box img {
        height: 300px;
    }
    .small-img-box img {
        height: 300px;
    }
    .trending-news-post .news-img-box img {
        height: 190px;
    }
    .news-content-box {
        margin-top: 12px;
    }
}


/* 3. Tablets Portrait */

@media all and (min-width: 768px) and (max-width: 980px) {
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
    .trending-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-content-box .news-title,
    .small-content-box .news-title {
        font-size: 15px;
    }
    .news-content-box .news-excerpt,
    .small-content-box .news-excerpt {
        font-size: 14px;
        line-height: 24px;
        margin: 0 0 7px 0;
    }
    .news-readmore {
        font-size: 14px;
        line-height: 24px;
    }
    .small-img-box img {
        height: 180px;
        width: 100% !important;
    }
    .news-img-box img {
        height: 400px;
    }
    .small-news-post {
        gap: 10px;
        flex-wrap: wrap;
    }
    .news-date-badge .day {
        font-size: 20px;
    }
    .news-date-badge .month {
        font-size: 14px;
    }
    .news-date-badge {
        left: 15px;
        padding: 6px 10px;
        font-size: 14px;
    }
    .latest-news-grid {
        gap: 15px;
    }
    .trending-news-grid {
        gap: 20px 15px;
    }
    .news-content-box {
        margin-top: 15px;
    }
    .small-img-box {
        flex: unset;
    }
    .trending-news-post .news-img-box img {
        height: 230px;
    }
    .small-news-list {
        display: grid;
        gap: 15px;
        grid-template-columns: repeat(3, 1fr);
    }
}


/* 4. Tablets Landscape / Small Laptops */

@media only screen and (min-width: 981px) and (max-width: 1024px) {
    .news-content-box .news-title,
    .small-content-box .news-title {
        font-size: 16px;
    }
    .news-content-box .news-excerpt,
    .small-content-box .news-excerpt {
        font-size: 14px;
        line-height: 24px;
        margin: 0 0 7px 0;
    }
    .news-readmore {
        font-size: 14px;
        line-height: 24px;
    }
    .small-img-box img {
        height: 140px;
    }
    .news-img-box img {
        height: 350px;
    }
    .small-news-post {
        gap: 15px;
    }
    .news-date-badge .day {
        font-size: 20px;
    }
    .news-date-badge .month {
        font-size: 14px;
    }
    .news-date-badge {
        left: 15px;
        padding: 6px 10px;
        font-size: 14px;
    }
    .latest-news-grid {
        gap: 15px;
    }
    .trending-news-grid {
        gap: 20px 15px;
    }
    .news-content-box {
        margin-top: 15px;
    }
    .small-img-box {
        flex: 0 0 165px;
    }
    .trending-news-post .news-img-box img {
        height: 230px;
    }
}


/* 5. Standard Laptops */

@media all and (min-width: 1025px) and (max-width: 1140px) {
    .news-content-box .news-title,
    .small-content-box .news-title {
        font-size: 16px;
    }
    .news-content-box .news-excerpt,
    .small-content-box .news-excerpt {
        font-size: 14px;
        line-height: 24px;
        margin: 0 0 7px 0;
    }
    .news-readmore {
        font-size: 14px;
        line-height: 24px;
    }
    .small-img-box img {
        height: 140px;
    }
    .news-img-box img {
        height: 350px;
    }
    .small-news-post {
        gap: 15px;
    }
    .news-date-badge .day {
        font-size: 20px;
    }
    .news-date-badge .month {
        font-size: 14px;
    }
    .news-date-badge {
        left: 15px;
        padding: 6px 10px;
        font-size: 14px;
    }
    .latest-news-grid {
        gap: 15px;
    }
    .trending-news-grid {
        gap: 20px 15px;
    }
    .news-content-box {
        margin-top: 15px;
    }
    .small-img-box {
        flex: 0 0 165px;
    }
    .trending-news-post .news-img-box img {
        height: 230px;
    }
}


/* 6. Medium Laptops */

@media all and (min-width: 1141px) and (max-width: 1280px) {
    .news-content-box .news-title,
    .small-content-box .news-title {
        font-size: 17px;
    }
    .news-content-box .news-excerpt,
    .small-content-box .news-excerpt {
        font-size: 14px;
        line-height: 24px;
        margin: 0 0 7px 0;
    }
    .news-readmore {
        font-size: 14px;
        line-height: 24px;
    }
    .small-img-box img {
        height: 140px;
    }
    .news-img-box img {
        height: 350px;
    }
    .small-news-post {
        gap: 20px;
    }
    .news-date-badge .day {
        font-size: 20px;
    }
    .news-date-badge .month {
        font-size: 14px;
    }
    .news-date-badge {
        left: 15px;
        padding: 6px 10px;
        font-size: 14px;
    }
    .latest-news-grid {
        gap: 20px;
    }
    .trending-news-grid {
        gap: 25px 20px;
    }
    .news-content-box {
        margin-top: 15px;
    }
}


/* 7. Large Laptops / Desktops */

@media all and (min-width: 1281px) and (max-width: 1440px) {
    .news-content-box .news-title,
    .small-content-box .news-title {
        font-size: 18px;
    }
    .news-content-box .news-excerpt,
    .small-content-box .news-excerpt {
        font-size: 15px;
        line-height: 27px;
    }
    .news-readmore {
        font-size: 15px;
        line-height: 27px;
    }
    .small-img-box img {
        height: 140px;
    }
    .news-img-box img {
        height: 350px;
    }
    .small-news-post {
        gap: 20px;
    }
    .news-date-badge .day {
        font-size: 20px;
    }
    .news-date-badge .month {
        font-size: 14px;
    }
    .news-date-badge {
        left: 15px;
        padding: 6px 10px;
        font-size: 14px;
    }
    .latest-news-grid {
        gap: 20px;
    }
    .trending-news-grid {
        gap: 25px 20px;
    }
}


/* 8. Extra Large Screen */

@media all and (min-width: 1441px) and (max-width: 1680px) {
    .news-container-wrapper {
        max-width: 1320px;
    }
}


/* 9. Ultra Wide Screens */

@media all and (min-width: 1681px) and (max-width: 1880px) {
    .news-container-wrapper {
        max-width: 1320px;
    }
}