/* Professional Single Blog Post Styles */

/* Single Blog Container */
.singleblgcvr {
    padding: 2rem 0 4rem;
    background: var(--bg-white, #ffffff);
}

.singleblggrid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;

}

/* Main Blog Post */
.singleblogbxone {
    background: var(--bg-white, #ffffff);
}

.bogposting {
    background: var(--bg-white, #ffffff);
    border-radius: var(--radius-lg, 0.75rem);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
    border: 1px solid var(--border-color, #e2e8f0);
}

.blogpostinghead {
    position: relative;
    overflow: hidden;
}

.blogpostinghead img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.blogpostingbody {
    padding: 2.5rem;
}

.singblogdate {
    color: var(--text-muted, #94a3b8);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.singblogtext {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary, #1e293b);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.singblogdtl {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.singblogdtl .admin {
    color: var(--text-secondary, #000000);
    font-size: 0.875rem;
    font-weight: 500;
}

.singblogdtl .admin a {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.singblogdtl .admin a:hover {
    color: var(--primary-dark, #1d4ed8);
}

/* Blog Content */
.singblogdtlpara {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary, #000000);
}

.singblogdtlpara h1,
.singblogdtlpara h2,
.singblogdtlpara h3,
.singblogdtlpara h4,
.singblogdtlpara h5,
.singblogdtlpara h6 {
    color: var(--text-primary, #1e293b);
    font-weight: 700;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.singblogdtlpara h2 {
    font-size: 1.875rem;
    border-bottom: 2px solid var(--primary-color, #2563eb);
    padding-bottom: 0.5rem;
}

.singblogdtlpara h3 {
    font-size: 1.5rem;
    color: var(--primary-color, #2563eb);
}

.singblogdtlpara p {
    margin-bottom: 1.5rem;
    color: #000000;
}

.singblogdtlpara ul,
.singblogdtlpara ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.singblogdtlpara li {
    margin-bottom: 0.5rem;
    color: black;
}

.singblogdtlpara blockquote {
    border-left: 4px solid var(--primary-color, #2563eb);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg-light, #f8fafc);
    border-radius: 0 var(--radius-md, 0.5rem) var(--radius-md, 0.5rem) 0;
    font-style: italic;
    color: var(--text-primary, #1e293b);
}

.singblogdtlpara code {
    background: var(--bg-light, #f8fafc);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm, 0.375rem);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--primary-color, #2563eb);
}

.singblogdtlpara pre {
    background: var(--text-primary, #1e293b);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-md, 0.5rem);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.singblogdtlpara pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Author Profile Card */
.profile-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light, #f8fafc);
    border-radius: var(--radius-lg, 0.75rem);
    border: 1px solid var(--border-color, #e2e8f0);
    margin: 2rem 0;
}

.profile-card__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-content {
    flex: 1;
}

.profile-card__article-by {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.profile-card__author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin: 0 0 0.75rem;
}

.profile-card__author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-card__author-name a:hover {
    color: var(--primary-color, #2563eb);
}

.profile-card__description {
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.6;
    margin: 0;
}

/* Tags */
.sigletag {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.tagheading {
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-right: 0.75rem;
}

.tag {
    display: inline-block;
    background: var(--primary-color, #2563eb);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Sidebar */
.singleblogbxtwo {
    background: var(--bg-light, #f8fafc);
    border-radius: var(--radius-lg, 0.75rem);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.singleltstbx,
.singleblogcategy {
    margin-bottom: 2.5rem;
}

.singleltstbx:last-child,
.singleblogcategy:last-child {
    margin-bottom: 0;
}

.singleltstbxhead,
.singleblogcathd {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.singleltstbxhead::after,
.singleblogcathd::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color, #2563eb), var(--primary-dark, #1d4ed8));
    border-radius: 1px;
}

.smlblogsingle {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    transition: all 0.2s ease;
}

.smlblogsingle:hover {
    background: var(--bg-white, #ffffff);
    margin: 0 -0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md, 0.5rem);
    border-bottom: 1px solid transparent;
}

.smlblogsingle:last-child {
    border-bottom: none;
}

.singleltstbxbdyone img {
    border-radius: var(--radius-sm, 0.375rem);
    object-fit: cover;
    width: 60px;
    height: 60px;
}

.singleltstbxbdytwo {
    font-size: 0.875rem;
    color: var(--text-primary, #1e293b);
    line-height: 1.4;
    font-weight: 500;
}

.singleblogcatbdone {
    padding: 0.75rem 1rem;
    background: var(--bg-white, #ffffff);
    border-radius: var(--radius-md, 0.5rem);
    color: var(--text-primary, #1e293b);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color, #e2e8f0);
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
}

.singleblogcatbdone:hover {
    background: var(--primary-color, #2563eb);
    color: white;
    border-color: var(--primary-color, #2563eb);
    transform: translateX(4px);
}

/* Related Posts */
.relaedblogbx {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color, #e2e8f0);
}

.relaredcrd {
    background: var(--bg-white, #ffffff);
    border-radius: var(--radius-lg, 0.75rem);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
    border: 1px solid var(--border-color, #e2e8f0);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.relaredcrd:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
    border-color: var(--primary-color, #2563eb);
    text-decoration: none;
    color: inherit;
}

.reldbloghed {
    position: relative;
    overflow: hidden;
}

.reldbloghed .blogimg img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.relaredcrd:hover .reldbloghed .blogimg img {
    transform: scale(1.05);
}

.reldblogbdy {
    padding: 1.25rem;
}

.reldblogbdy p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    line-height: 1.4;
    margin: 0;
}

.reldblogfooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
}

.flexone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flexone img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.flexone p,
.flextwo p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .singleblggrid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .singleblogbxtwo {
        position: static;
    }
}

@media (max-width: 768px) {
    .singleblgcvr {
        padding: 1rem 0 2rem;
    }

    .blogpostingbody {
        padding: 1.5rem;
    }

    .singblogtext {
        font-size: 1.75rem;
    }

    .singblogdtlpara {
        font-size: 1rem;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .relaedblogbx {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .blogpostinghead img {
        height: 250px;
    }

    .blogpostingbody {
        padding: 0rem;
        border: none;
        margin-top: 3%;
    }

    .bogposting {
        border: none;
    }

    .singblogtext {
        font-size: 1.5rem;
    }

    .singblogdtl {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1rem;
        gap: 0.5rem;
    }

    .comment-header {
        align-items: start !important;
        text-align: left;
        flex-direction: column;
    }

    .singleblogbxtwo {
        padding: 1.5rem;
    }
}

/* Bl
og Content Styles */
.singblogdtlpara .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2rem;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.comments-section h3 {
    margin-bottom: 2rem;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Comment Items */
.comment-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2563eb;
}

.comment-item.reply {
    border-left-color: #10b981;
}

.comment-item.reply-level-1 {
    margin-left: 2rem;
}

.comment-item.reply-level-2 {
    margin-left: 4rem;
}

.comment-item.reply-level-3 {
    margin-left: 6rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-header h5 {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
}

.comment-header .reply-indicator {
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 400;
}

.comment-header .comment-date {
    color: #64748b;
    font-size: 0.875rem;
}

.comment-content {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-actions .reply-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
}

.comment-actions .reply-btn:hover {
    color: #1d4ed8;
}

/* Reply Form */
.reply-form {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.reply-form.show {
    display: block;
}

.reply-form h6 {
    margin-bottom: 1rem;
    color: #374151;
}

.reply-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reply-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.reply-form input,
.reply-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.reply-form textarea {
    resize: vertical;
}

.reply-form-actions {
    display: flex;
    gap: 0.5rem;
}

.reply-form .btn-submit {
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.reply-form .btn-submit:hover {
    background: #059669;
}

.reply-form .btn-cancel {
    background: #6b7280;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.reply-form .btn-cancel:hover {
    background: #4b5563;
}

/* No Comments Message */
.no-comments {
    color: #64748b;
    font-style: italic;
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.comment-form h4 {
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form .btn-submit {
    background: #2563eb;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.comment-form .btn-submit:hover {
    background: #1d4ed8;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {

    .reply-form-grid,
    .comment-form-grid {
        grid-template-columns: 1fr;
    }

    .comment-item.reply-level-1,
    .comment-item.reply-level-2,
    .comment-item.reply-level-3 {
        margin-left: 1rem;
    }

    .comment-form {
        padding: 1.5rem;
    }

    .reply-form {
        padding: 0.75rem;
    }

    .singblogdtlpara .lead {
        font-size: 1rem;

    }

    .singblogdtlpara h2 {
        font-size: 1.25rem;
    }

    .singblogdtlpara h3 {
        font-size: 1.1rem;
        color: var(--primary-color, #2563eb);
    }
}