/* ===== Custom Variables ===== */
:root {
    --primary: #295c3b;
    --shaliz-dark: #1f1b18;
    --shaliz-brown: #295c3b;
    --shaliz-gold: #3c7a52;
    --shaliz-cream: #f8f3ea;
    --shaliz-soft: #fbf9f3;
    --shaliz-border: rgba(41, 92, 59, 0.14);
    --shaliz-shadow: 0 18px 45px rgba(41, 92, 59, 0.1);
    --container-width: 1200px;
    --section-padding: 80px;
}


/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.blog-hero,
.post-detail-hero {
    position: relative;
    padding: 90px 0 70px;
    background:
        radial-gradient(circle at top right, rgba(195, 154, 93, 0.22), transparent 34%),
        linear-gradient(135deg, #1c3b2a 0%, #295c3b 50%, #3c7a52 100%);
    color: #fff;
    overflow: hidden;
}

.blog-hero::after,
.post-detail-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -140px;
    bottom: -180px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.blog-hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.blog-hero-badge {
    display: inline-flex;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #f7e5c5;
    margin-bottom: 18px;
    font-size: 14px;
}

.blog-hero h1,
.post-detail-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 18px;
}

.blog-hero p {
    font-size: 18px;
    line-height: 2;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
}

.blog-page-section,
.post-detail-section {
    padding: 70px 0;
    background: var(--shaliz-soft);
}

.blog-layout,
.post-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.blog-section-head,
.comments-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 28px;
}

.blog-section-head span,
.comments-head span {
    color: var(--shaliz-gold);
    font-weight: 700;
    font-size: 14px;
}

.blog-section-head h2,
.comments-head h2 {
    margin: 6px 0 0;
    color: var(--shaliz-dark);
    font-size: 30px;
    font-weight: 900;
}

.blog-section-head p,
.comments-head p {
    color: #8a7b70;
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--shaliz-border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shaliz-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 25px 60px rgba(31, 27, 24, 0.14);
}

.blog-card-image-wrap {
    position: relative;
    display: block;
    height: 215px;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.07);
}

.blog-card-category,
.post-detail-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 25, 21, 0.84);
    color: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
}

.blog-card-category {
    position: absolute;
    right: 14px;
    bottom: 14px;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-meta,
.post-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #8b7a6d;
    font-size: 13px;
    margin-bottom: 12px;
}

.blog-card-meta i,
.post-detail-meta i {
    color: var(--shaliz-gold);
    margin-left: 4px;
}

.blog-card-title {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 10px;
    font-weight: 900;
}

.blog-card-title a {
    color: var(--shaliz-dark);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    color: #75665c;
    line-height: 2;
    font-size: 14px;
    min-height: 84px;
}

.blog-card-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    margin-top: 8px;
}

.blog-sidebar,
.post-side {
    position: sticky;
    top: 95px;
}

.blog-sidebar-box {
    background: #fff;
    border: 1px solid var(--shaliz-border);
    border-radius: 26px;
    padding: 22px;
    box-shadow: var(--shaliz-shadow);
    margin-bottom: 20px;
}

.blog-sidebar-title {
    color: var(--shaliz-dark);
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 18px;
}

.blog-search-form {
    display: flex;
    background: var(--shaliz-cream);
    border-radius: 18px;
    padding: 6px;
    border: 1px solid var(--shaliz-border);
}

.blog-search-input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px;
    color: var(--shaliz-dark);
}

.blog-search-btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 15px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

.blog-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-category-list li + li {
    margin-top: 9px;
}

.blog-category-list a {
    display: flex;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--shaliz-cream);
    color: #59473b;
    text-decoration: none;
    transition: 0.2s ease;
}

.blog-category-list a:hover,
.blog-category-list a.active {
    background: var(--primary);
    color: #fff;
}

.blog-latest-list {
    display: grid;
    gap: 14px;
}

.blog-latest-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-decoration: none;
}

.blog-latest-item img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
}

.blog-latest-item strong {
    display: block;
    color: var(--shaliz-dark);
    font-size: 14px;
    line-height: 1.8;
}

.blog-latest-item small {
    color: #98887b;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 38px;
}

.blog-pagination a,
.blog-pagination span {
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fff;
    color: var(--shaliz-dark);
    border: 1px solid var(--shaliz-border);
    font-weight: 700;
}

.blog-pagination span.active {
    background: var(--primary);
    color: #fff;
}

.blog-empty {
    background: #fff;
    border: 1px solid var(--shaliz-border);
    border-radius: 28px;
    padding: 45px;
    text-align: center;
    box-shadow: var(--shaliz-shadow);
}

.blog-empty h3 {
    color: var(--shaliz-dark);
    font-weight: 900;
}

.blog-empty p {
    color: #7b6c62;
    margin: 12px 0 22px;
}

.blog-empty a {
    display: inline-flex;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

.post-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.72);
}

.post-breadcrumb a {
    color: #f6d9a4;
    text-decoration: none;
}

.post-detail-category {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    margin-bottom: 16px;
}

.post-detail-meta {
    color: rgba(255, 255, 255, 0.78);
}

.post-detail-main {
    min-width: 0;
}

.post-cover-box {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shaliz-shadow);
    margin-bottom: 24px;
    background: #fff;
}

.post-cover-box img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.post-content-box {
    background: #fff;
    border: 1px solid var(--shaliz-border);
    border-radius: 30px;
    padding: 34px;
    box-shadow: var(--shaliz-shadow);
    color: #463a32;
    line-height: 2.25;
    font-size: 16px;
}

.post-content-box h1,
.post-content-box h2,
.post-content-box h3,
.post-content-box h4 {
    color: var(--shaliz-dark);
    font-weight: 900;
    line-height: 1.7;
    margin-top: 28px;
}

.post-content-box p {
    margin-bottom: 18px;
}

.post-content-box img {
    max-width: 100%;
    border-radius: 22px;
    margin: 20px 0;
}

.post-content-box a {
    color: var(--primary);
    font-weight: 700;
}

.post-comments {
    margin-top: 34px;
}

.comment-form-box,
.comments-list {
    background: #fff;
    border: 1px solid var(--shaliz-border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shaliz-shadow);
    margin-bottom: 22px;
}

.comment-form-box h3 {
    font-size: 22px;
    font-weight: 900;
    color: var(--shaliz-dark);
    margin-bottom: 15px;
}

.blog-comment-textarea {
    width: 100%;
    border: 1px solid var(--shaliz-border);
    background: var(--shaliz-cream);
    border-radius: 20px;
    padding: 16px;
    outline: 0;
    resize: vertical;
    line-height: 2;
    color: var(--shaliz-dark);
    font-family: 'Vazirmatn'
}

.blog-comment-textarea:focus {
    border-color: var(--shaliz-gold);
    background: #fff;
}

.comment-submit-btn,
.login-to-comment-box a {
    display: inline-flex;
    border: 0;
    margin-top: 14px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Vazirmatn';
}

.login-to-comment-box {
    background: var(--shaliz-cream);
    border-radius: 22px;
    padding: 22px;
}

.login-to-comment-box p {
    color: #77685d;
}

.comment-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
}

.comment-item + .comment-item {
    border-top: 1px solid var(--shaliz-border);
}

.comment-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--shaliz-gold));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-meta strong {
    color: var(--shaliz-dark);
}

.comment-meta span {
    color: #9a8a7d;
    font-size: 13px;
}

.comment-body p {
    line-height: 2;
    color: #5d5048;
    margin: 0;
}

.comments-empty {
    background: var(--shaliz-cream);
    border-radius: 20px;
    padding: 18px;
    color: #82ac58;
    text-align: center;
}

.form-error {
    color: #b3261e;
    font-size: 14px;
    margin-top: 8px;
}

.blog-empty-small {
    color: #9a8a7d;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-layout,
    .post-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar,
    .post-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .blog-hero,
    .post-detail-hero {
        padding: 64px 0 50px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-content-box {
        padding: 22px;
        border-radius: 24px;
    }
}
.blog-card-animated {
    opacity: 0;
    transform: translateY(18px);
}

.blog-card-animated.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* body,
.blog-page-section,
.post-detail-section,
.blog-card,
.post-content-box {
    font-family: "Vazirmatn", sans-serif;
} */

body {
    margin: 0;
    font-family: "Vazirmatn", sans-serif !important;
    background: var(--shaliz-soft);
    color: var(--shaliz-dark);
    line-height: 1.8;
}

h1,h2,h3,h4,h5,h6 {
    margin: 0;
    font-weight: 900;
}

p {
    margin: 0 0 1rem;
}

/* ===== Container بدون Bootstrap ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Hero Section ===== */
.blog-hero,
.post-detail-hero {
    padding: 100px 0 70px;
    background:
        radial-gradient(circle at top right, rgba(195, 154, 93, 0.22), transparent 34%),
        linear-gradient(135deg, #1c3b2a 0%, #295c3b 50%, #3c7a52 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #f7e5c5;
    margin-bottom: 18px;
    font-size: 14px;
}

.blog-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    margin-bottom: 18px;
}

.blog-hero p {
    font-size: 18px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Page Section ===== */
.blog-page-section,
.post-detail-section {
    padding: var(--section-padding) 0;
}

/* ===== Blog Layout ===== */
.blog-layout,
.post-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

/* ===== Section Heading ===== */
.blog-section-head,
.comments-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.blog-section-head h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--shaliz-dark);
}

/* ===== Blog Grid ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ===== Card ===== */
.blog-card {
    background: #fff;
    border: 1px solid var(--shaliz-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shaliz-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 25px 60px rgba(41, 92, 59, 0.14);
}

.blog-card-image-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 22px;
}

/* ===== Pagination ===== */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

/* ===== Sidebar ===== */
.blog-sidebar,
.post-side {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* ===== Comments section ===== */
.post-comments {
    margin-top: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .blog-layout,
    .post-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar,
    .post-side {
        position: static;
        margin-top: 40px;
    }

    .blog-page-section {
        padding: 60px 0;
    }
}

@media (max-width: 640px) {
    .blog-hero,
    .post-detail-hero {
        padding: 70px 0 50px;
    }

    .blog-hero p {
        font-size: 16px;
    }

    .container {
        padding: 0 14px;
    }

    .post-content-box {
        padding: 20px;
        border-radius: 20px;
    }
}

/* ===== Comment Reply UI ===== */

.replying-to-box {
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, rgba(41, 92, 59, 0.08), rgba(60, 122, 82, 0.12));
    border: 1px solid var(--shaliz-border);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.replying-to-box div {
    min-width: 0;
}

.replying-to-box span {
    display: inline-block;
    color: var(--shaliz-gold);
    font-size: 13px;
    font-weight: 800;
    margin-left: 4px;
}

.replying-to-box strong {
    color: var(--shaliz-dark);
    font-size: 14px;
}

.replying-to-box p {
    color: #6f6259;
    font-size: 14px;
    line-height: 1.9;
    margin: 5px 0 0;
}

#cancel-reply-btn {
    flex: 0 0 auto;
    border: 0;
    background: rgba(179, 38, 30, 0.09);
    color: #b3261e;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

#cancel-reply-btn:hover {
    background: #b3261e;
    color: #fff;
}

.comment-reply-preview {
    display: block;
    text-decoration: none;
    background: var(--shaliz-cream);
    border-right: 4px solid var(--shaliz-gold);
    border-radius: 16px;
    padding: 12px 14px;
    margin: 10px 0 12px;
    transition: 0.2s ease;
}

.comment-reply-preview:hover {
    background: #fff;
    box-shadow: 0 10px 28px rgba(41, 92, 59, 0.09);
}

.comment-reply-preview span {
    color: var(--shaliz-gold);
    font-size: 12px;
    font-weight: 800;
    margin-left: 4px;
}

.comment-reply-preview strong {
    color: var(--shaliz-dark);
    font-size: 13px;
}

.comment-reply-preview p {
    margin: 5px 0 0;
    color: #76675d;
    font-size: 13px;
    line-height: 1.8;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.comment-reply-btn,
.comment-login-reply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(41, 92, 59, 0.09);
    color: var(--shaliz-gold);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
    font-family: 'Vazirmatn';
}

.comment-reply-btn:hover,
.comment-login-reply:hover {
    background: var(--primary);
    color: #fff;
}

.comment-item:target {
    background: rgba(60, 122, 82, 0.07);
    border-radius: 20px;
    padding-right: 12px;
    padding-left: 12px;
}

/* Mobile Comment Reply UI */
@media (max-width: 640px) {
    .replying-to-box {
        flex-direction: column;
        align-items: stretch;
    }

    #cancel-reply-btn {
        width: fit-content;
    }

    .comment-item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
    }

    .comment-avatar {
        width: 44px;
        height: 44px;
        border-radius: 15px;
        font-size: 18px;
    }

    .comment-reply-preview {
        padding: 10px 12px;
        border-radius: 14px;
    }
}


/* ===== Post Detail / Comments Fix ===== */

.post-detail-main .post-comments {
    margin-top: 40px;
}

.post-detail-main .comments-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.post-detail-main .comment-form-box,
.post-detail-main .comments-list {
    background: #fff;
    border: 1px solid var(--shaliz-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shaliz-shadow);
}

.post-detail-main .comment-form-box {
    margin-bottom: 20px;
}

.post-detail-main .comment-form-box h3 {
    font-size: 22px;
    font-weight: 900;
    color: var(--shaliz-dark);
    margin-bottom: 14px;
    text-align: right;
}

.post-detail-main .comment-form-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}


.post-detail-main .blog-comment-textarea {
    width: 100%;
    min-height: 140px;
    display: block;
    max-width: 100%;
    font-family: inherit;
    font-size: 15px;
    border: 1px solid var(--shaliz-border);
    background: var(--shaliz-cream);
    border-radius: 18px;
    padding: 16px;
    outline: none;
    resize: vertical;
    line-height: 2;
    color: var(--shaliz-dark);
    transition: 0.2s ease;
}

.post-detail-main .blog-comment-textarea:focus {
    border-color: var(--shaliz-gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(60, 122, 82, 0.08);
}

.post-detail-main .comment-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 160px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--primary), var(--shaliz-gold));
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(41, 92, 59, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.post-detail-main .comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(41, 92, 59, 0.24);
}

.post-detail-main .comment-submit-btn:active {
    transform: translateY(0);
    opacity: 0.92;
}

.post-detail-main .login-to-comment-box {
    background: var(--shaliz-cream);
    border-radius: 22px;
    padding: 22px;
    text-align: right;
}

.post-detail-main .login-to-comment-box h3 {
    margin-bottom: 10px;
}

.post-detail-main .login-to-comment-box p {
    color: #77685d;
    margin-bottom: 14px;
}

.post-detail-main .login-to-comment-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 46px;
    border-radius: 999px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--primary), var(--shaliz-gold));
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.post-detail-main .comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-detail-main .comment-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px 0;
}

.post-detail-main .comment-item + .comment-item {
    border-top: 1px solid var(--shaliz-border);
}

.post-detail-main .comment-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--shaliz-gold));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
    margin-inline: auto;
}

.post-detail-main .comment-body {
    min-width: 0;
}

.post-detail-main .comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.post-detail-main .comment-meta strong {
    color: var(--shaliz-dark);
}

.post-detail-main .comment-meta span {
    color: #9a8a7d;
    font-size: 13px;
    white-space: nowrap;
}

.post-detail-main .comment-body > p {
    line-height: 2;
    color: #5d5048;
    margin: 0;
    word-break: break-word;
}

.post-detail-main .comment-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 12px;
}

.post-detail-main .comments-empty {
    background: var(--shaliz-cream);
    border-radius: 20px;
    padding: 18px;
    color: #6f6259;
    text-align: center;
}

.post-detail-main .form-error {
    color: #b3261e;
    font-size: 14px;
    margin-top: -4px;
}

/* reply box improve */
.post-detail-main .replying-to-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, rgba(41, 92, 59, 0.08), rgba(60, 122, 82, 0.12));
    border: 1px solid var(--shaliz-border);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.post-detail-main .comment-reply-preview {
    display: block;
    text-decoration: none;
    background: var(--shaliz-cream);
    border-right: 4px solid var(--shaliz-gold);
    border-radius: 16px;
    padding: 12px 14px;
    margin: 10px 0 12px;
}

/* ===== Tablet ===== */
@media (max-width: 1100px) {
    .post-detail-main .post-comments {
        max-width: 860px;
        margin-inline: auto;
    }

    .post-detail-main .comment-form-box,
    .post-detail-main .comments-list {
        margin-inline: auto;
    }
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
    .post-detail-main .post-comments {
        max-width: 100%;
        margin-top: 32px;
        text-align: center;
    }

    .post-detail-main .comments-head {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-bottom: 18px;
    }

    .post-detail-main .comment-form-box,
    .post-detail-main .comments-list {
        padding: 18px 14px;
        border-radius: 20px;
        text-align: center;
    }

    .post-detail-main .comment-form-box h3,
    .post-detail-main .login-to-comment-box,
    .post-detail-main .replying-to-box,
    .post-detail-main .comment-body {
        text-align: center;
    }

    .post-detail-main .comment-form-box form {
        align-items: center;
    }

    .post-detail-main .blog-comment-textarea {
        min-height: 130px;
        border-radius: 16px;
        text-align: right;
    }

    .post-detail-main .comment-submit-btn {
        align-self: center;
        width: 100%;
        max-width: 260px;
        font-family: 'Vazirmatn';
    }

    .post-detail-main .login-to-comment-box a {
        width: 100%;
        max-width: 260px;
        margin-inline: auto;
    }

    .post-detail-main .replying-to-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .post-detail-main #cancel-reply-btn {
        width: 100%;
        max-width: 180px;
    }

    .post-detail-main .comment-item {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 10px;
        padding: 20px 0;
    }

    .post-detail-main .comment-avatar {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 18px;
    }

    .post-detail-main .comment-meta {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-align: center;
    }

    .post-detail-main .comment-meta span {
        white-space: normal;
    }

    .post-detail-main .comment-reply-preview {
        text-align: right;
        width: 100%;
    }

    .post-detail-main .comment-actions {
        justify-content: center;
    }

    .post-detail-main .comment-reply-btn,
    .post-detail-main .comment-login-reply {
        min-width: 110px;
    }
}
