.comments-area {
    margin-top: 40px;
    font-family: 'Vazir', sans-serif;
}

.comments-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.comment-avatar-wrapper {
    flex: 0 0 48px;
    margin-right: 12px;
}

.comment-avatar-wrapper img.avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.comment-username {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #888;
}

.comment-text {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 6px;
}

.comment-actions {
    font-size: 12px;
    color: #555;
}

.comment-actions a {
    color: #0073aa;
    text-decoration: none;
    margin-right: 15px;
}

.comment-actions a:hover {
    text-decoration: underline;
}

.comment-form-wrapper {
    margin-top: 30px;
}

.comment-form-wrapper textarea {
    width: 100%;
    resize: vertical;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Vazir', sans-serif;
}

.comment-form-wrapper input[type="submit"] {
    background: #eb2121;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 8px;
}

.comment-form-wrapper input[type="submit"]:hover {
    background: #c11212;
}
.comment-container {
    display: flex;
    margin-bottom: 15px;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.comment-avatar-wrapper img {
    border-radius: 50%;
    object-fit: cover;
    width: 48px;
    height: 48px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-weight: bold;
}

.comment-username {
    font-size: 14px;
    color: #222;
}

.comment-date {
    font-size: 12px;
    color: #888;
}

.comment-text {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.comment-actions a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    gap: 4px;
}

.comment-actions a img.comment-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.comment-actions a:hover {
    opacity: 0.8;
}

.comment-actions .like-count,
.comment-actions .dislike-count {
    font-size: 13px;
}
.comment-actions img.active {
    filter: invert(27%) sepia(95%) saturate(7466%) hue-rotate(345deg) brightness(95%) contrast(108%);
}


@media (max-width: 768px) {
    .comment-container {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
        padding: 6px 8px;
    }

    .comment-header {
        display: flex;
        justify-content: space-between; 
        align-items: center;
        width: 100%;
        margin-bottom: 4px;
    }

    .comment-avatar-name {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .comment-avatar-wrapper {
        margin: 0; 
    }

    .comment-username {
        font-weight: bold;
    }

    .comment-date {
        font-size: 12px;
        color: #555;
    }

    .comment-text {
        margin-bottom: 4px;
        width: 100%;
    }

    .comment-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
        margin-top: 4px;
    }

    .comment-actions a {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
    }

    .comment-actions img.comment-icon {
        width: 16px;
        height: 16px;
    }
}
