.comments-area {
    margin-top: 40px;
}

.comment-form p {
    margin-top: 10px;
    margin-bottom: 10px;
}

.comment-metadata {
    display: none !important;
}

.comments-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}

.comments-title span {
    color: var(--color-primary-400);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .children {
    list-style: none;
    padding-right: 48px;
    margin: 10px 0 0 0;
}

.comment-list .children .children {
    padding-right: 80px;
}

.comment {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    position: relative;
}

.comment .children .comment {
    background: #f8fafc;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 42px;
    height: 42px;
}

.comment-author .fn {
    font-weight: 700;
    color: #1e293b;
    font-style: normal;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    color: #94a3b8;
    font-size: 14px;
}

.comment-metadata a {
    color: #94a3b8;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #ec4899;
}

.comment-content {
    background: var(--color-white);
    border-radius: 16px;
    padding: 20px;
    line-height: 1.8;
    color: #1e293b;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-body .reply {
    text-align: center;
    margin-top: 10px;
    padding: 6px 18px;
    display: inline-block;
    transition: 0.3s all;
}

.comment-reply-link {
    color: var(--color-brand);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-body .reply:hover {
    color: var(--color-primary);
}

.comment-navigation {
    margin: 20px 0;
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.comment-navigation .nav-links a {
    color: #ec4899;
    text-decoration: none;
    font-weight: 600;
}

.comment-navigation .nav-links a:hover {
    color: #db2777;
}

.no-comments {
    background: #fef9c3;
    color: #854d0e;
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
}

#respond {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    margin-top: 32px;
}

#reply-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

#cancel-comment-reply-link {
    color: var(--color-brand);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}

#cancel-comment-reply-link:hover {
    color: var(--color-primary);
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
    color: #1e293b;
    outline: none;
    font-family: inherit;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus {
    border-color: var(--color-brand);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    background: var(--color-white);
}

#commentform textarea {
    min-height: 120px;
    resize: vertical;
}

/* دکمه ارسال */
#commentform .form-submit {
    margin: 12px 0 0 0;
}

#commentform #submit {
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

#commentform #submit:hover {
    background: var(--color-box);
    box-shadow: 0 6px 20px rgba(0, 124, 145, 0.25);
    transform: translateY(-2px);
}

.logged-in-as {
    color: #64748b;
    font-size: 14px;
}

.logged-in-as a {
    color: var(--color-brand);
    font-weight: 700;
    text-decoration: none;
}

.logged-in-as a:hover {
    color: #db2777;
}

.comment-awaiting-moderation {
    background: #fef9c3;
    color: #854d0e;
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    font-size: 13px;
    margin-top: 10px;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 768px) {
    .comment-list .children {
        padding-right: 24px;
    }

    .comment-list .children .children {
        padding-right: 40px;
    }

    .comment {
        padding: 14px;
    }

    .comment-content {
        padding: 14px;
    }

    #respond {
        padding: 16px;
    }

    #reply-title {
        font-size: 17px;
    }

    #commentform input[type="text"],
    #commentform input[type="email"],
    #commentform input[type="url"],
    #commentform textarea {
        padding: 12px;
        font-size: 14px;
    }

    #commentform #submit {
        padding: 10px 24px;
        font-size: 14px;
        width: 100%;
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .comment-list .children {
        padding-right: 12px;
    }

    .comment-list .children .children {
        padding-right: 20px;
    }
}

.cf-turnstile iframe,
.cf-turnstile-comments iframe {
    max-width: 100% !important;
}

.cf-turnstile .cf-turnstile-comments {
    max-width: 267px !important;
}

/*Single Post Typography*/
.single-post .content p,
.archive .content p {
    font-size: clamp(1rem, 1vw, 1.5rem);
    line-height: 1.9;
    margin: 0 0 1.25rem;
}

.single-post .content p:last-child,
.archive .content p:last-child {
    margin-bottom: 0;
}

.archive .content h1 {
    font-size: 29px;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a;
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.archive .content h1::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #007C91, #14b8a6);
}

.single-post .content h2,
.archive .content h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a;
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.single-post .content h2::before,
.archive .content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #007C91, #14b8a6);
}

.single-post .content h3,
.archive .content h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #1e293b;
    margin: 2rem 0 0.85rem;
}

.single-post .content h4,
.archive .content h4 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: #334155;
    margin: 1.5rem 0 0.65rem;
}

.single-post .content ul,
.single-post .content ol,
.archive .content ol,
.archive .content ul {
    margin: 0 0 1.5rem;
    padding-right: 1.5rem;
}

.single-post .content li,
.archive .content li {
    font-size: 16px;
    line-height: 1.9;
    color: #334155;
    margin-bottom: 0.65rem;
    position: relative;
}

.single-post .content ul li::marker,
.archive .content ul li::marker {
    color: #007C91;
    font-size: 1.2em;
}

.single-post .content ol li::marker,
.archive .content ol li::marker {
    color: #007C91;
    font-weight: 700;
}

.single-post .content strong,
.single-post .content b,
.archive .content strong,
.archive .content b {
    font-weight: 700;
    color: #0f172a;
}

.single-post .content em,
.archive .content em {
    font-style: italic;
    color: #475569;
}

.single-post .content a,
.archive .content a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #007C91;
    transition: all 0.2s ease;
}

.single-post .content table,
.archive .content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.single-post .content thead,
.archive .content thead {
    background: linear-gradient(90deg, #007C91, #14b8a6);
    color: #ffffff;
}

.single-post .content thead th,
.archive .content thead th {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    text-align: right;
}

.single-post .content tbody td,
.archive .content tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    color: #334155;
}

.single-post .content tbody tr:last-child td,
.archive .content tbody tr:last-child td {
    border-bottom: none;
}

.single-post .content tbody tr:nth-child(even),
.archive .content tbody tr:nth-child(even) {
    background: #f8fafc;
}


.single-post .content blockquote,
.archive .content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f0fdfa;
    border-right: 4px solid #14b8a6;
    border-radius: 12px;
    color: #0f766e;
}

.single-post .content img,
.archive .content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.single-post .content .ventiran-callout-box,
.single-post .content .ventiran-product-card,
.single-post .content .ventiran-consultation {
    margin: 2rem 0;
}


@media (max-width: 640px) {
    .single-post .content,
    .archive .content {
        font-size: 15px;
    }

    .archive .content h1 {
        font-size: 25px;
        margin: 2rem 0 1rem;
    }

    .single-post .content h2,
    .archive .content h2 {
        font-size: 22px;
        margin: 2rem 0 1rem;
    }

    .single-post .content h3,
    .archive .content h3 {
        font-size: 18px;
        margin: 1.5rem 0 0.75rem;
    }

    .single-post .content h4,
    .archive .content h4 {
        font-size: 16px;
        margin: 1.25rem 0 0.5rem;
    }

    .single-post .content table,
    .archive .content table {
        font-size: 13px;
    }

    .single-post .content thead th,
    .single-post .content tbody td,
    .archive .content thead th,
    .archive .content tbody td {
        padding: 8px 10px;
    }
}