/* Single Post Styling */

.single-main {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Noto Nastaliq Urdu', serif;
}

/* Title */
.single-title-wrapper {
    background: #222;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.single-title {
    color: #fff;
    font-size: 34px;
    line-height: 1.6;
    font-weight: bold;
    margin: 0;
}

/* Meta Bar */
.single-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f3f3f3;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* Author */
.author-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-name {
    font-size: 18px;
    font-weight: bold;
}

/* Date */
.post-date {
    font-size: 16px;
    color: #333;
}

/* Categories */
.post-categories a {
    background: #111;
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    margin-left: 5px;
    text-decoration: none;
    font-size: 14px;
}

/* Featured Image */
.single-featured img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 25px;
}

/* Main Content */
.single-content {
    font-size: 20px;
    line-height: 2.2;
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* Share Section */
.single-share {
    margin: 40px 0;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 12px;
}

.single-share h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.single-share a,
.single-share button {
    background: #222;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    margin-right: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Comments */
.single-comments {
    margin-top: 40px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.related-item {
    text-decoration: none;
    display: block;
    background: #f1f1f1;
    padding-bottom: 10px;
    border-radius: 12px;
    transition: 0.3s;
}

.related-item:hover {
    background: #222;
    color: #fff;
}

.related-item img {
    width: 100%;
    border-radius: 12px 12px 0 0;
}

.related-item h4 {
    padding: 10px;
    font-size: 18px;
    margin: 0;
}

.post-author-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.post-author-box img.author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}
