:root {
    --bg: #f8f9fb;
    --card: #ffffff;
    --muted: #7b7f87;
    --accent: #4f46e5; /* indigo-600 */
    --accent-2: #0ea5a4; /* teal-500 */
    --danger: #e11d48;
    --radius: 12px;
    --soft-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
    --thin-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
    --transition: 180ms ease;
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial,
        sans-serif;
}

/* Container */
.blog-post-comment {
    background: transparent;
    padding: 0;
    margin: 0 0 2.5rem;
}

/* Comments list card */
.comments-list {
    background: var(--card);
    border-radius: calc(var(--radius) - 2px);
    box-shadow: var(--thin-shadow);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

/* List reset */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each comment */
.comment-item {
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(125, 129, 135, 0.06);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Avatar */
.avatar {
    flex: 0 0 auto;
}
.avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--soft-shadow);
    border: 3px solid rgba(79, 70, 229, 0.06);
    transition: transform var(--transition);
}
.avatar img:hover {
    transform: translateY(-3px);
}

/* Comment body */
.comment-info {
    margin-bottom: 0.35rem;
}
.c_name {
    display: inline-block;
    font-weight: 600;
    color: #0f172a;
}
.c_date {
    color: var(--muted);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Actions (Reply / Edit) */
.comment-actions a {
    color: var(--muted);
    font-size: 0.92rem;
    text-decoration: none;
    margin-left: 0.6rem;
    transition: color var(--transition);
}
.comment-actions a:hover {
    color: var(--accent);
}

/* Comment text */
.comment p {
    margin: 0;
    color: #111827;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Reply form & nested replies */
.reply-form {
    margin-top: 0.8rem;
}
.children {
    margin-top: 0.75rem;
    padding-left: 3.25rem;
}

.children .comment-item {
    padding: 0.5rem 0;
    border-bottom: none;
}
.children .avatar img {
    width: 48px;
    height: 48px;
}

/* Edit textarea / reply textarea styling */
.rt-contact-form .form-control,
.rt-contact-form textarea,
input.form-control,
textarea.form-control {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #e6e9ef;
    background: #fff;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
    box-shadow: none;
}
.rt-contact-form .form-control:focus,
input.form-control:focus,
textarea.form-control:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.85);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.06);
}

/* Error messages */
.text-danger {
    color: var(--danger);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.35rem;
}

/* Guest button (btn-main) */
.btn-main {
    --btn-bg: var(--accent);
    --btn-color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--btn-bg), #3b34c7);
    color: var(--btn-color);
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.12);
    transition: transform var(--transition), box-shadow var(--transition),
        opacity var(--transition);
    text-decoration: none;
}
.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.14);
}
.btn-main[disabled],
.btn-main:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Loading indicator (used by guest-button) */
.indicator-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 600;
}
.indicator-progress .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

/* Author box */
.author-box-style-1 {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--thin-shadow);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.author-img img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(14, 165, 164, 0.06);
}
.author-name {
    font-size: 1.15rem;
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}
.author-role {
    color: var(--muted);
    display: block;
    margin-top: 0.15rem;
    font-size: 0.9rem;
}
.user-desc {
    color: #334155;
    margin-top: 0.6rem;
    font-size: 0.95rem;
}

/* Social icons row */
.social-style-5 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}
.social-style-5 li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #111827;
    text-decoration: none;
}

/* Pagination block */
.post-pagination-box {
    margin-top: 1rem;
}
.next-prev-wrap {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.next-prev-wrap .item-icon a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}
.next-prev-wrap .content .title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #0b1220;
}
.next-prev-wrap.next-wrap {
    justify-content: flex-end;
    text-align: right;
}

/* Form wrapper */
.comment-form-wrapper {
    background: var(--card);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--thin-shadow);
}
.comment-form-wrapper h4 {
    margin: 0 0 1rem;
    font-weight: 700;
    color: #0b1220;
}

/* small screen adjustments */
@media (max-width: 767px) {
    .comment-item {
        flex-direction: row;
        gap: 0.75rem;
    }
    .author-box-style-1 {
        flex-direction: row;
    }
    .author-img img {
        width: 84px;
        height: 84px;
    }
    .avatar img {
        width: 48px;
        height: 48px;
    }
}

/* Utility tweaks for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid rgba(79, 70, 229, 0.12);
    outline-offset: 2px;
}

/* Minor helpers */
.ms-4 {
    margin-left: 1rem !important;
}
