@charset "utf-8";
/* ============================================================
   NPL World News — Single Article (view.php) Redesign
   Reuses --npl-navy / --npl-orange / --npl-red / --npl-line /
   --npl-bg-soft / --npl-ink / --npl-grey from header-redesign.css
   — fallback hex values included so this also works standalone.
   ============================================================ */

.news-view-content h1{
    font: 800 28px/1.4 'Mukta', sans-serif;
    color: var(--npl-ink, #242424);
    margin: 8px 0 18px;
}
.news-view-content h1 span{
    display: block;
    font: 400 17px/1.5 'Open Sans', sans-serif;
    color: var(--npl-grey, #5f5f5f);
    margin-top: 8px;
}

/* ---------- Meta row (author + date + views) ---------- */
.newsDetail{
    margin-bottom: 18px;
}
.newsMetaRow{
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    background: none;
    border: none;
    border-radius: 0;
}
.newsMetaRow li{
    display: flex;
    align-items: center;
    gap: 6px;
    font: 400 14px 'Open Sans', sans-serif;
    color: var(--npl-grey, #5f5f5f);
    padding-left: 0;
}
.newsMetaRow li::before{
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--npl-line, #e6e6e6);
    display: inline-block;
    flex-shrink: 0;
}
.newsMetaRow li i{
    color: var(--npl-orange, #eb8d02);
    font-size: 13px;
}
.newsMetaRow .author-info{
    display: flex;
    align-items: center;
    gap: 10px;
}
.newsMetaRow .author-image{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}
.newsMetaRow .author-name{
    font: 700 14px 'Mukta', sans-serif;
    color: var(--npl-navy, #1c1677);
    text-decoration: none;
}
.newsMetaRow .author-name:hover{
    color: var(--npl-orange, #eb8d02);
}

/* ---------- Ad blocks ---------- */
.npl-prachar{
    margin: 24px 0;
    text-align: center;
}
.ad-label{
    display: block;
    font: 600 11px 'Open Sans', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a8a8a8;
    margin-bottom: 8px;
}

/* ---------- Main image ---------- */
.newsMainImg{
    margin: 22px 0;
}
.newsMainImg img{
    border-radius: 12px;
    width: 100%;
    height: auto;
    display: block;
}
.newsMainImg iframe{
    border-radius: 12px;
    width: 100%;
}
.newsMainImg span{
    display: block;
    font: 400 13px 'Open Sans', sans-serif;
    color: var(--npl-grey, #5f5f5f);
    text-align: center;
    margin-top: 10px;
    padding: 0 10px;
}

/* ---------- Article body typography ---------- */
.post-content{
    font: 400 17px/1.85 'Open Sans', sans-serif;
    color: var(--npl-ink, #242424);
}
.post-content p{
    margin: 0 0 22px;
}
.post-content h2,
.post-content h3{
    font-family: 'Mukta', sans-serif;
    color: var(--npl-navy, #1c1677);
    margin: 32px 0 16px;
    line-height: 1.4;
}
.post-content h2{ font-size: 24px; font-weight: 700; }
.post-content h3{ font-size: 20px; font-weight: 700; }
.post-content img{
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 6px auto 4px;
}
.post-content .post-content-caption{
    font: 400 13px 'Open Sans', sans-serif;
    color: var(--npl-grey, #5f5f5f);
    text-align: center;
    margin: 0 0 22px;
}
.post-content a{
    color: var(--npl-blue, #2760d4);
    text-decoration: underline;
}
.post-content blockquote{
    margin: 24px 0;
    padding: 4px 22px;
    border-left: 4px solid var(--npl-orange, #eb8d02);
    font-style: italic;
    color: var(--npl-grey, #5f5f5f);
}

/* ---------- Tags ---------- */
.tagsHeading{
    font: 700 15px 'Mukta', sans-serif;
    color: var(--npl-ink, #242424);
    margin: 30px 0 12px;
}
.trendingList.newsFooterTagList{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 30px;
    padding: 0;
}
.trendingList.newsFooterTagList li a{
    display: inline-block;
    font: 500 13px 'Mukta', sans-serif;
    color: var(--npl-navy, #1c1677);
    background: var(--npl-bg-soft, #f6f7fb);
    border: 1px solid var(--npl-line, #e6e6e6);
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.trendingList.newsFooterTagList li a:hover{
    background: var(--npl-orange, #eb8d02);
    border-color: var(--npl-orange, #eb8d02);
    color: #ffffff;
}

/* ---------- Related news (frontend\widgets\RelatedWidget → related.php) ---------- */
.related-news-section{
    margin: 34px 0 !important;
    padding-top: 24px;
    border-top: 2px solid var(--npl-line, #e6e6e6);
}
.related-news-section .cat-box{
    margin-bottom: 18px;
}
.related-news-section .cat-name{
    display: inline-block;
    font: 700 20px 'Mukta', sans-serif;
    color: var(--npl-ink, #242424);
    padding-left: 12px;
    border-left: 4px solid var(--npl-orange, #eb8d02);
}
.related-news-content .col-md-4{
    margin-bottom: 22px;
}
.related-news-content .img-zoom-effect{
    border-radius: 10px;
    overflow: hidden;
}
.related-news-img{
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.img-zoom-effect:hover .related-news-img{
    transform: scale(1.07);
}
.related-news-title{
    display: block;
    margin-top: 12px;
    font: 700 15px/1.45 'Mukta', sans-serif;
    color: var(--npl-ink, #242424);
    text-decoration: none;
}
.related-news-title:hover{
    color: var(--npl-navy, #1c1677);
}

/* ---------- Suggested reading (frontend\widgets\SuggestWidget → suggest.php) ---------- */
.related-news{
    margin: 26px 0;
    padding: 18px 22px;
    background: var(--npl-bg-soft, #f6f7fb);
    border-radius: 10px;
}
.related-news .yoPaniNews{
    font: 700 14px 'Mukta', sans-serif;
    color: var(--npl-navy, #1c1677);
    margin-bottom: 10px;
}
.related-news ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
.related-news ul li{
    padding: 8px 0;
    border-bottom: 1px dashed var(--npl-line, #e6e6e6);
}
.related-news ul li:last-child{
    border-bottom: 0;
}
.related-news ul li a{
    font: 500 14px 'Open Sans', sans-serif;
    color: var(--npl-ink, #242424);
    text-decoration: none;
}
.related-news ul li a:hover{
    color: var(--npl-navy, #1c1677);
}

/* ---------- Sticky sidebar ---------- */
.newsViewRow{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.sidebarStickyInner{
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* ---------- Responsive: stack + drop sticky/scroll below 992px ---------- */
@media (max-width: 991px){
    .newsViewRow{ display: block; }
    .sidebarStickyInner{
        position: static;
        max-height: none;
        overflow: visible;
    }
    .news-view-content h1{ font-size: 23px; }
    .post-content{ font-size: 16px; }
}

/* ============================================================
   SETUP NOTES (delete once applied)
   ------------------------------------------------------------
   1. Save this file at web/css/article-redesign.css. It's
      registered per-view via registerCssFile() in view.php —
      no AppAsset change needed.

   2. related.php (RelatedWidget's own template) was provided and
      is now styled directly above — no more guessing needed here.
   ============================================================ */
