.article-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.article-main {
    flex: 1;
    min-width: 0;
}
.article-sidebar {
    width: 320px;
    flex-shrink: 0;
}
.sidebar-widget {
    background: var(--white, #fff);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary, #222);
    margin: 0 0 14px;
    padding-left: 12px;
    position: relative;
}
.sidebar-widget h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: var(--primary, #c00);
    border-radius: 2px;
}
.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sidebar-news-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    align-items: flex-start;
}
.sidebar-news-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}
.sidebar-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-news-title {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--secondary, #222);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}
.sidebar-news-item:hover .sidebar-news-title {
    color: var(--primary, #c00);
}

.single-article {
    max-width: 100%;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.article-title {
    font-family: 'Noto Sans Marathi', sans-serif;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary);
}
.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.article-meta .article-categories a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.article-meta .article-categories a:hover { text-decoration: underline; }
.article-meta .views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary, #222);
    white-space: nowrap;
}
.article-meta .views svg {
    color: var(--primary, #c00);
    flex-shrink: 0;
}
.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}
.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #222;
    overflow-wrap: break-word;
}
.article-content p { margin-bottom: 20px; }
.article-content img { max-width:100%; height:auto; border-radius:6px; }
.article-content p > img:only-child { display:block; margin:16px 0; }
.article-content .img-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    margin: 16px 0;
}
.article-content .img-row p,
.article-content .img-row figure { flex:0 1 auto; margin:0; max-width:100%; }
.article-content .img-row p > img,
.article-content .img-row figure img { margin:0; display:block; }

/* Galleries inserted from editor */
.article-content .img-gallery { display:grid; gap:10px; margin:16px 0; clear:both; }
.article-content .img-gallery img { display:block; width:100%; height:100%; object-fit:cover; border-radius:8px; margin:0; }
.article-content .g-row { display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-start; gap:10px; }
.article-content .g-row img { width:auto; max-width:100%; height:auto; max-height:240px; object-fit:fill; }
.article-content .g-cols-2 { grid-template-columns:repeat(2,1fr); }
.article-content .g-cols-3 { grid-template-columns:repeat(3,1fr); }
.article-content .g-hero-2 { grid-template-columns:repeat(2,1fr); }
.article-content .g-hero-3 { grid-template-columns:repeat(3,1fr); }
.article-content .g-hero-2 img:first-child,
.article-content .g-hero-3 img:first-child { grid-column:1/-1; aspect-ratio:16/9; height:auto; }
.article-content .g-cols-2 img,
.article-content .g-cols-3 img,
.article-content .g-hero-2 img:not(:first-child),
.article-content .g-hero-3 img:not(:first-child) { aspect-ratio:4/3; }
@media (max-width:600px) {
    .article-content .g-cols-3,
    .article-content .g-hero-3 { grid-template-columns:repeat(2,1fr); }
}
.article-content figure,
.article-content .wp-block-image { max-width:100%; margin:16px 0; }
.article-content pre,
.article-content code { white-space:pre-wrap; overflow-wrap:break-word; max-width:100%; }

.article-disclaimer {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    margin: 24px 0 0;
    font-size: 0.85rem;
    color: #5d4037;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0 0;
    margin-top: 30px;
    border-top: 1px solid #eee;
}
.share-label { font-size:0.85rem; color:var(--text-muted); font-weight:600; margin-right:4px; }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}
.share-btn:hover { transform: scale(1.1); }
.share-btn svg { width: 18px; height: 18px; }
.share-fb { background: #1877f2; }
.share-tw { background: #000; }
.share-wa { background: #25d366; }

.related-news { margin-top: 48px; padding-top: 32px; border-top: 2px solid #eee; }
.related-news h3 { font-size:1.35rem; color:var(--secondary); margin-bottom:20px; position:relative; padding-left:14px; }
.related-news h3::before { content:''; position:absolute; left:0; top:2px; bottom:2px; width:4px; background:var(--primary); border-radius:2px; }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.related-card { display:flex; flex-direction:column; background:var(--white); border-radius:10px; overflow:hidden; text-decoration:none; box-shadow:0 2px 8px rgba(0,0,0,0.08); transition:transform 0.2s,box-shadow 0.2s; }
.related-card:hover { transform:translateY(-3px); box-shadow:0 6px 20px rgba(0,0,0,0.12); }
.related-card-img { width:100%; aspect-ratio:16/9; overflow:hidden; background:#eee; }
.related-card-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.3s; }
.related-card:hover .related-card-img img { transform:scale(1.05); }
.related-card-body { padding:12px 14px 14px; flex:1; display:flex; flex-direction:column; justify-content:space-between; gap:8px; }
.related-card-title { color:var(--secondary); font-size:0.9rem; line-height:1.4; font-weight:600; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.related-card-date { color:#999; font-size:0.78rem; }

@media (max-width: 768px) {
    .article-layout { flex-direction:column; }
    .article-sidebar { width:100%; }
}
@media (max-width: 480px) {
    .single-article { padding:16px; }
    .article-title { font-size:1.4rem; }
    .share-buttons { justify-content:center; }
    .related-grid { grid-template-columns:1fr; gap:14px; }
}
