/* ============================================================
   Default Single Post Page (Redesigned)
   ============================================================ */
.jm-single-post {
    padding: 20px 0 40px;
    width: 100%;
    max-width: 998px;
    margin: 0 auto;
}

.jm-single-main {
    width: 100%;
}

/* Breadcrumb */
.jm-single-post .jm-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 16px;
    flex-wrap: wrap;
}

.jm-single-post .jm-breadcrumb a {
    color: #64748b;
    text-decoration: underline;
    transition: color .2s ease;
}

.jm-breadcrumb a:hover {
    color: #132337;
}

.jm-breadcrumb-sep {
    color: #cbd5e1;
}

.jm-breadcrumb-current {
    color: #132337;
    font-weight: 600;
}

/* Article Card */
.jm-single-post .jm-single-article {
    background: #fff;
    overflow: hidden;
    padding: 0px;
}

/* Hero Header */
.jm-single-header {
    border-bottom: 1px solid #f1f3f5;
}

.jm-single-post .jm-single-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.jm-single-cat-badge {
    display: inline-block;
    background: #eef6ff;
    color: #1a6dd6 !important;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s ease;
}

.jm-single-cat-badge:hover {
    background: #d8eeff;
}

.jm-single-date,
.jm-single-reading {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    position: relative;
    color: #64748b;
}

.jm-single-post .jm-single-date::before {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        background: #64748b;
        right: -8px;
        top: 0;
}
.jm-single-post .jm-single-title {
    font-size: 50px;
    font-weight: 700;
    text-align: center;
    color: #132337;
    line-height: 1.4;
    margin: 0 0 14px;
}

.jm-single-excerpt {
    font-size: 17px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 24px;
}

/* Author (below content) */
.jm-single-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 40px;
    background: #f8fafc;
    margin-top: 15px;
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
}

.jm-author-avatar {
    border-radius: 50%;
    border: 2px solid #f7c55a;
}

.jm-author-info {
    display: flex;
    flex-direction: column;
}

.jm-author-name {
    font-size: 16px;
    font-weight: 700;
    color: #132337;
}

.jm-author-role,
.jm-author-label {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

/* Comments — Modern Redesign */
.jm-single-post .comments-area {
    margin-top: 48px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef0f3;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.jm-single-post .comments-title {
    font-size: 22px;
    font-weight: 700;
    color: #132337;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f7c55a;
    display: inline-block;
}

.jm-single-post .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.jm-single-post .comment {
    padding: 20px 0;
    border-bottom: 1px solid #f1f3f5;
}

.jm-single-post .comment:last-child {
    border-bottom: none;
}

.jm-single-post .comment-body {
    display: flex;
    gap: 16px;
}

.jm-single-post .comment .avatar {
    border-radius: 50%;
    border: 2px solid #f7c55a;
    flex-shrink: 0;
}

.jm-single-post .comment-content {
    flex: 1;
}

.jm-single-post .comment-author {
    font-size: 15px;
    font-weight: 700;
    color: #132337;
    margin-bottom: 2px;
}

.jm-single-post .comment-meta {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.jm-single-post .comment-meta a {
    color: #94a3b8;
    text-decoration: none;
}

.jm-single-post .comment-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 8px;
}

.jm-single-post .reply {
    margin-top: 8px;
}

.jm-single-post .reply a {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #1a6dd6;
    text-decoration: none;
    padding: 4px 14px;
    border-radius: 100px;
    background: #eef6ff;
    transition: all .2s ease;
}

.jm-single-post .reply a:hover {
    background: #1a6dd6;
    color: #fff;
}

.jm-single-post .comment-respond {
    background: #f8fafc;
    border-radius: 12px;
    padding: 28px;
    margin-top: 24px;
}

.jm-single-post #reply-title {
    font-size: 18px;
    font-weight: 700;
    color: #132337;
    margin: 0 0 20px;
}

.jm-single-post .comment-form p {
    margin-bottom: 16px;
}

.jm-single-post .comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.jm-single-post .comment-form input[type="text"],
.jm-single-post .comment-form input[type="email"],
.jm-single-post .comment-form input[type="url"],
.jm-single-post .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #132337;
    outline: none;
    transition: border-color .2s ease;
}

.jm-single-post .comment-form input:focus,
.jm-single-post .comment-form textarea:focus {
    border-color: #f7c55a;
}

.jm-single-post .comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.jm-single-post .comment-form input[type="submit"],
.jm-single-post .comment-form .submit {
    background: #132337;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.jm-single-post .comment-form input[type="submit"]:hover,
.jm-single-post .comment-form .submit:hover {
    background: #f7c55a;
    color: #111;
    transform: translateY(-2px);
}

.jm-single-post .comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jm-single-post .comment-form .comment-form-cookies-consent label {
    font-size: 14px;
    margin-bottom: 0;
}

/* Featured Image */
.jm-single-featured {
    width: 100%;
    overflow: hidden;
}

.jm-featured-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

/* Content */
.jm-single-content {
    font-size: 18px;
    line-height: 1.9;
    color: #334155;
}

.jm-single-content p {
    margin: 0 0 18px;
}

.jm-single-content h2,
.jm-single-content h3,
.jm-single-content h4 {
    color: #132337;
    margin: 28px 0 14px;
    font-weight: 700;
}

.jm-single-content h2 { font-size: 24px; }
.jm-single-content h3 { font-size: 20px; }

.jm-single-content ul,
.jm-single-content ol {
    padding-left: 24px;
    margin: 0 0 18px;
}

.jm-single-content li {
    margin-bottom: 8px;
}

.jm-single-content blockquote {
    border-left: 4px solid #f7c55a;
    padding: 16px 24px;
    background: #fffbf0;
    margin: 20px 0;
    color: #92670a;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.jm-single-content a {
    color: #1a6dd6;
    text-decoration: none;
}

.jm-single-content a:hover {
    text-decoration: underline;
}

.jm-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
}

.jm-single-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 18px 0;
    font-size: 14px;
}

.jm-single-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.jm-single-content pre code {
    background: transparent;
    padding: 0;
}

.jm-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.jm-single-content th,
.jm-single-content td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}

.jm-single-content th {
    background: #f8fafc;
    font-weight: 700;
}

/* Tags */
.jm-single-tags {
    padding: 0 40px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jm-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569 !important;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .2s ease;
}

.jm-tag:hover {
    background: #132337;
    color: #fff !important;
}

/* Share Footer */
.jm-single-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #f8fafc;
    border-top: 1px solid #eef0f3;
    flex-wrap: wrap;
    gap: 16px;
}

.jm-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jm-share-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    margin-right: 4px;
}

.jm-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    transition: transform .2s ease, opacity .2s ease;
    text-decoration: none !important;
}

.jm-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.jm-share-facebook { background: #1877f2; }
.jm-share-whatsapp { background: #25d366; }
.jm-share-twitter  { background: #000; }

/* Post Navigation */
.jm-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding: 0 4px;
}

.jm-post-nav-prev,
.jm-post-nav-next {
    flex: 1;
    max-width: 48%;
}

.jm-post-nav-next {
    text-align: right;
}

.jm-post-nav a {
    display: inline-block;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #132337 !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: all .2s ease;
    max-width: 100%;
}

.jm-post-nav a:hover {
    background: #132337;
    color: #fff !important;
    border-color: #132337;
}

/* Related Posts */
.jm-related-posts {
    margin-top: 48px;
}

.jm-related-title {
    font-size: 24px;
    font-weight: 700;
    color: #132337;
    margin: 0 0 24px;
    position: relative;
    padding-left: 16px;
}

.jm-related-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 26px;
    background: #f7c55a;
    border-radius: 2px;
}

.jm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.jm-related-card {
    background: #fff;
    overflow: hidden;
    transition: all .3s ease;
}

.jm-related-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.jm-related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.jm-related-card:hover .jm-related-img {
    transform: scale(1.05);
}

.jm-related-body {
    padding: 20px 0px;
}

.jm-related-cat {
    display: inline-block;
    color: #d79a32;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.jm-related-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}

.jm-related-card-title a {
    color: #132337;
    text-decoration: none !important;
    transition: color .2s ease;
}

.jm-related-card-title a:hover {
    color: #d79a32;
}

.jm-related-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 10px;
}

.jm-related-date {
    font-size: 13px;
    color: #94a3b8;
}

/* Comments */
.jm-single-post .comments-area {
    margin-top: 48px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef0f3;
    padding: 32px 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .jm-single-header,
    .jm-single-content,
    .jm-single-tags,
    .jm-single-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .jm-single-title {
        font-size: 22px;
    }

    .jm-single-excerpt {
        font-size: 15px;
    }

    .jm-related-grid {
        grid-template-columns: 1fr;
    }

    .jm-post-nav {
        flex-direction: column;
    }

    .jm-post-nav-next {
        text-align: left;
    }

    .jm-single-post .comments-area {
        padding: 24px 20px;
    }
}
@media (max-width: 575px) {
        .jm-post-nav-prev,
        .jm-post-nav-next {
                max-width: 100%;
                text-align: center;
        }
        .jm-post-nav-prev a,
        .jm-post-nav-next a {
                width: 100%;
        }
}