/* =========================
Single Layout (Two Columns)
========================= */
.single-layout {
    margin: 0 10px;
    padding: 0 10px;
}

.single-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* Content */
.single-content {
    max-width: 100%;
}

/* Sidebar */
.single-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-box {
    background: #fff;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.sidebar-box h3 {
    font-size: 16px;
    margin-bottom: 12px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 6px;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box li {
    margin-bottom: 10px;
    font-size: 14px;
}

.sidebar-box a {
    color: #111;
    text-decoration: none;
}

.sidebar-box a:hover {
    color: #0073aa;
}

.sidebar-date {
    display: block;
    font-size: 12px;
    color: #777;
}

/* =========================
Post Meta Styling (Beautiful)
========================= */
.news-meta-single {
    font-size: 14px;
    background: #f5f7fa;
    padding: 10px 14px;
    border-left: 4px solid #0073aa;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #444;
    align-items: center;
}

.news-meta-single span {
    white-space: nowrap;
}

/* Meta Colors */
.news-meta-single .meta-author { font-weight: 600; color: #d6336c; }
.news-meta-single .meta-date { color: #0073aa; }
.news-meta-single .meta-views { color: #ff9900; }
.news-meta-single .meta-comments { color: #00aa55; }
.news-meta-single .meta-likes,
.news-meta-single .meta-dislikes { color: #555; }
.news-meta-single .meta-sep { color: #444; margin: 0 4px; }

/* Post Thumbnail */
.single-content .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Post Title */
.single-content .news-title {
    font-size: 32px;
    font-weight: 700;
    margin: 20px 0 15px;
    color: #111;
}

/* Post Content */
.news-content-single {
    font-size: 16px;
    line-height: 1.8;
    color: #222;
}

/* Comments Section */
.comments-area {
    margin-top: 40px;
}

/* =========================
Related Posts (3 Columns, 12 Posts)
========================= */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-post-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.related-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,.1);
}

.related-post-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post-title {
    font-size: 15px;
    font-weight: 600;
    padding: 12px 14px;
}

.related-post-title a {
    color: #111;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #0073aa;
}

.related-post-meta {
    font-size: 12px;
    color: #666;
    padding: 0 14px 12px;
}

/* =========================
Responsive
========================= */
@media (max-width: 1024px) {
    .single-grid { grid-template-columns: 1fr; }
    .single-sidebar { position: relative; top: auto; }
    .related-posts-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
    .single-content .news-title { font-size: 28px; }
    .news-content-single { font-size: 15px; }
    .related-posts-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 480px) {
    .single-content .news-title { font-size: 24px; }
    .related-posts-grid { grid-template-columns: 1fr; }
}
