/* Shared news-grid styles — extracted from trending-news.php / viral_stories.php
   (both carried a byte-identical inline <style> block). Cached across pages. */

.news-home {
    background: #f8f9fb;
}

.section-block {
    padding: 10px 0 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title-main {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #5e9244;
    position: relative;
    padding-left: 12px;
}

.section-title-main::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 4px;
    background: #5e9244;
}

.page-hero-box {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.06);
    margin-bottom: 22px;
}

.page-hero-box h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e57a18;
}

.page-hero-box p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

.large-news-slider {
    height: 430px;
}

.large-news-slider .slick-list,
.large-news-slider .slick-track,
.large-news-slider .slick-slide,
.large-news-slider .slick-slide > div {
    height: 430px;
}

.pb-hero-card {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 14px;
    text-decoration: none;
    background: #000;
    height: 430px;
    min-height: 430px;
}

.pb-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.pb-hero-card:hover .pb-hero-image {
    transform: scale(1.03);
}

.pb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
    z-index: 1;
}

.pb-hero-text {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    inset: auto 0 0 0 !important;
    z-index: 5 !important;
    width: 100%;
    padding: 18px;
    transform: none !important;
    translate: none !important;
    margin: 0 !important;
    animation: none !important;
    transition: none !important;
}

.pb-hero-heading {
    margin: 10px 0 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
    display: block;
    transform: none !important;
    translate: none !important;
    animation: none !important;
}

.pb-hero-card *,
.pb-hero-text *,
.pb-hero-heading {
    animation: none !important;
    transform: none;
}

.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-badges .badge {
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 999px;
}

.side-list-wrap {
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.06);
    height: 100%;
}

.small-news-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #edf0f2;
}

.small-news-card img {
    width: 130px;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.small-news-card .card-body {
    padding: 0;
    min-width: 0;
}

.small-news-card .card-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #e57a18;
}

.small-news-card .news-desc {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.news-grid-card {
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #fff;
}

.news-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.10) !important;
}

.news-grid-image-wrap {
    overflow: hidden;
}

.news-grid-image {
    width: 100%;
    height: 205px;
    object-fit: cover;
    display: block;
}

.news-grid-title {
    margin: 0;
    color: #e57a18;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.news-grid-desc {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin: 8px 0 0;
}

.empty-block {
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 18px;
    color: #6b7280;
    text-align: center;
}

.slick-prev,
.slick-next {
    z-index: 20;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.slick-prev {
    left: 12px;
}

.slick-next {
    right: 12px;
}

.slick-dots {
    bottom: 10px;
}

.slick-dots li button:before {
    color: #fff;
    opacity: 0.65;
}

.slick-dots li.slick-active button:before {
    color: #fff;
    opacity: 1;
}

@media (max-width: 991px) {
    .large-news-slider,
    .large-news-slider .slick-list,
    .large-news-slider .slick-track,
    .large-news-slider .slick-slide,
    .large-news-slider .slick-slide > div,
    .pb-hero-card {
        height: 320px;
        min-height: 320px;
    }

    .news-grid-image {
        height: 220px;
    }

    .small-news-card img {
        width: 110px;
        height: 76px;
    }
}

@media (max-width: 767px) {
    .large-news-slider,
    .large-news-slider .slick-list,
    .large-news-slider .slick-track,
    .large-news-slider .slick-slide,
    .large-news-slider .slick-slide > div,
    .pb-hero-card {
        height: 250px;
        min-height: 250px;
    }

    .pb-hero-heading {
        font-size: 1rem;
    }

    .small-news-card img {
        width: 100px;
        height: 72px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
