/* ===== Article Details Page ===== */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    padding: 22px 0 48px;
}
.article-main { min-width: 0; }

/* Breadcrumb */
.article-breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.article-breadcrumb a { color: var(--muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--red); }
.article-breadcrumb .sep { color: #c0c0c0; }
.article-breadcrumb .current { color: var(--black); font-weight: 600; }

/* Category badge */
.article-cat {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 12px;
}
.article-cat a { color: #fff; text-decoration: none; }
.article-cat a:hover { color: #fff; }

/* Headline */
.article-headline {
    font-family: "Noto Serif Bengali", serif;
    font-size: 38px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 14px;
}

/* Summary */
.article-summary {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

/* Meta */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}
.article-meta .author { color: var(--green); font-weight: 700; }
.article-meta .views { color: var(--red); font-weight: 700; }
.article-meta .dot { color: #c0c0c0; }

/* Share bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.share-bar .share-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter .15s;
}
.share-btn:hover { filter: brightness(.88); color: #fff; }
.share-btn.sb-facebook { background: #1877f2; }
.share-btn.sb-whatsapp { background: #25d366; }
.share-btn.sb-messenger { background: #0084ff; }
.share-btn.sb-x { background: #000; }
.share-btn.sb-telegram { background: #0088cc; }
.share-btn.sb-copy { background: var(--black-2); }
.share-btn.sb-print { background: #555; }

/* Figure */
.article-figure { margin: 0 0 22px; }
.article-figure img { width: 100%; height: auto; border-radius: 6px; display: block; }
.article-figure figcaption { font-size: 13px; color: var(--muted); padding: 8px 2px 0; }
.article-figure .credit { color: #9a9a9a; font-style: italic; margin-left: 6px; }

/* Body */
.article-body {
    font-size: 18px;
    line-height: 1.9;
    color: #1f1f1f;
    max-width: 780px;
}
.article-body p { margin: 0 0 18px; }
.article-body h2, .article-body h3, .article-body h4 {
    font-family: "Noto Serif Bengali", serif;
    margin: 28px 0 12px;
    color: var(--black);
    line-height: 1.4;
}
.article-body img { max-width: 100%; height: auto; border-radius: 6px; }
.article-body iframe { max-width: 100%; border: 0; }
.article-body blockquote {
    border-left: 4px solid var(--red);
    background: var(--soft);
    padding: 14px 18px;
    margin: 18px 0;
    color: #333;
    border-radius: 0 6px 6px 0;
}
.article-body a { color: var(--green); }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body table td, .article-body table th { border: 1px solid var(--line); padding: 8px 10px; }

/* In-article ad */
.in-article-ad { margin: 26px 0; text-align: center; }

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.article-tags a {
    background: var(--soft);
    color: #444;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 20px;
    text-decoration: none;
}
.article-tags a:hover { background: var(--green); color: #fff; }

/* Tools (print / copy) */
.article-tools { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

/* Author box */
.author-box {
    display: flex;
    gap: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    margin: 26px 0;
}
.author-box .ab-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 700;
    flex: 0 0 auto;
    overflow: hidden;
}
.author-box .ab-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box .ab-name { font-family: "Noto Serif Bengali", serif; font-size: 18px; font-weight: 700; color: var(--black); }
.author-box .ab-designation { font-size: 13px; color: var(--green); font-weight: 600; margin-bottom: 6px; }
.author-box .ab-bio { font-size: 14px; color: #555; margin: 0; }

/* Related news grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.related-card { text-decoration: none; color: var(--black); display: flex; flex-direction: column; }
.related-card .rc-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: var(--soft); }
.related-card .rc-title { font-family: "Noto Serif Bengali", serif; font-size: 15px; line-height: 1.4; font-weight: 700; margin-top: 8px; }
.related-card:hover .rc-title { color: var(--red); }

/* Sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: 24px; }
.side-widget { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.side-widget h3 {
    font-family: "Noto Serif Bengali", serif;
    font-size: 19px;
    margin: 0 0 14px;
    padding-top: 8px;
    border-top: 3px solid var(--red);
}
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.side-list li { margin: 0; }
.side-list a { text-decoration: none; display: flex; gap: 10px; color: var(--black); align-items: flex-start; }
.side-list .sl-rank {
    width: 26px;
    height: 26px;
    background: var(--green);
    color: #fff;
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    flex: 0 0 auto;
}
.side-list .sl-rank.top { background: var(--red); }
.side-list .sl-title { font-size: 14px; font-weight: 600; line-height: 1.45; }
.side-list a:hover .sl-title { color: var(--red); }

/* Sticky share (desktop) */
.sticky-share {
    position: fixed;
    left: calc(50% - 720px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 40;
}
.sticky-share a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}
@media (max-width: 1520px) { .sticky-share { display: none; } }

/* Mobile bottom share bar */
.mobile-share-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(0,0,0,.08);
    z-index: 60;
    padding: 8px 10px;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 992px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-main { order: 1; }
    .article-sidebar { order: 2; }
    .article-headline { font-size: 27px; }
    .article-body { font-size: 17px; }
    .related-grid { grid-template-columns: 1fr; }
    .article-summary { font-size: 16px; }
}

@media (max-width: 768px) {
    .mobile-share-bar { display: flex; }
    body { padding-bottom: 58px; }
}
